blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11f73fbe56bc17b3b0a1fd41fe7b785b16cb6ab0 | 4a6d784fd44b57d6b2aabae9d2381884cc880aea | /w_form_cuotas_vencidas_30dias.py | 53a4658d5a415681d07bdf21ca61bb9eac419f7d | [] | no_license | blueautomatic/Slam_Sistema_creditos | 0e46c2f23d396793122739f838073eff77df88e3 | 7eb20a90abce53f10dcd18e3d47e9a5f330acbbd | refs/heads/master | 2020-03-26T19:13:36.634824 | 2018-02-05T15:46:42 | 2018-02-05T15:46:42 | 145,254,325 | 0 | 0 | null | 2018-08-18T21:37:23 | 2018-08-18T21:37:23 | null | UTF-8 | Python | false | false | 13,010 | py | import sys,datetime,os
from PyQt5.QtWidgets import QApplication,QDialog,QMessageBox, QTableWidgetItem
from PyQt5 import uic
from form_cuotas_vencidas_30dias import Ui_form_cuotas_vencidas_30dias
from N_cliente import N_datos_personales_cliente, N_party_address, N_party_otros, N_datos_laborales, N_party_garante,N_party_... | [
"lriccombene@gmail.com"
] | lriccombene@gmail.com |
8cae290d2e0f4814c027458fafbd56b76c6c8859 | e99bc88c211c00a701514761fdfcb9b755e6de4e | /payloads/oracle/reverse_sql.py | c8a4d05996c833f8976901daa94da532f212e589 | [] | no_license | Wuodan/inguma | 177f40f636d363f081096c42def27986f05e37e7 | c82e7caf86e24ad9783a2748c4f1d9148ad3d0ee | refs/heads/master | 2020-03-26T21:52:28.421738 | 2013-03-20T20:45:13 | 2018-08-20T12:19:30 | 145,413,992 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | #!/usr/bin/python
"""
NOTE: Should be rewritten from scratch!!!!
"""
import sys
sys.path.append("../../lib")
sys.path.append("../lib")
sys.path.append("lib")
import run_command
from oracleids import randomizeSpaces
data = """
DECLARE
data varchar2(32767);
v_ret varchar2(32767);
len number;
conn utl_tcp.con... | [
"muts@kali.org"
] | muts@kali.org |
acdee8e7dc59c9448b02b36d294aed46fbe74f2f | 0ca3a635fe2358ae562c04516226753fcd4a6729 | /src/create_generators.py | 64893b0a27c4158567b3833c44c58fc9d82963d0 | [] | no_license | YL1113/bert-multitask-learning | 9302037537c9c50a49ba2bb53a2f1db15904c7e2 | 182cb78efba46905cc1a804dcd7771b40475e874 | refs/heads/master | 2020-04-29T16:57:56.837957 | 2019-03-18T07:06:05 | 2019-03-18T07:06:05 | 176,280,952 | 1 | 0 | null | 2019-03-18T12:32:51 | 2019-03-18T12:32:50 | null | UTF-8 | Python | false | false | 16,070 | py | import random
from copy import copy
import numpy as np
import tensorflow as tf
from .utils import (punc_augument, tokenize_text_with_seqs,
create_mask_and_padding, create_masked_lm_predictions,
truncate_seq_pair, add_special_tokens_with_seqs,
BOS_TOKEN, EOS_... | [
"junpang.yip@gmail.com"
] | junpang.yip@gmail.com |
50c69f457a69549e37c8d673248b6a8b5ea1b3a8 | 8f02d21497912679d6ab91ea382ac9c477bda4fe | /setup.py | fb31227d6331999511c7297da29c6fb9b29c9e53 | [
"MIT"
] | permissive | DouglasWilcox/tpRigToolkit-dccs-maya-plugins-rbfsolver | ae2291f3e7117010341faeb7881998ec885dc216 | 3503c9b3982fe550a3d53dde79d3bf427c1b2289 | refs/heads/master | 2021-03-13T14:24:55.464354 | 2020-02-11T00:28:31 | 2020-02-11T00:28:31 | 246,688,218 | 1 | 0 | null | 2020-03-11T22:00:02 | 2020-03-11T22:00:01 | null | UTF-8 | Python | false | false | 104 | py | from setuptools import setup
from tpRigToolkit.dccs.maya.plugins.rbfsolver import __version__
setup()
| [
"tpovedatd@gmail.com"
] | tpovedatd@gmail.com |
e55349cdae31ad6838c68bcf8a78353c4625794a | 1e0355b293100873cedfcac789655a35180781db | /BOJ1541.py | 80f1eee1110f147baa91c39f0bbea9e2989c2d24 | [
"MIT"
] | permissive | INYEONGKIM/BOJ | 47dbf6aeb7a0f1b15208866badedcd161c00ee49 | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | refs/heads/master | 2021-06-14T13:50:04.124334 | 2021-03-09T14:04:14 | 2021-03-09T14:04:14 | 168,840,573 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | s=input().split("-")
if s[0]=="":
res=0
else:
res=sum(map(int,s[0].split("+")))
for i in range(1,len(s)):
res-=sum(map(int,s[i].split("+")))
print(res)
| [
"noreply@github.com"
] | INYEONGKIM.noreply@github.com |
aa718d4daf7a3e18af3a89fdaa2347cee9d3e036 | 7ba22c9826a1574777a08fb634ff15c56de6cb98 | /domain_adaptation/domain_separation/dsn_train.py | 2453d204f037ace6938252c8981854f5ef640dac | [] | no_license | dhanya1/full_cyclist | 02b85b8331f8ca9364169484ab97b32920cbbd14 | dd12c8d8a3deaaea15041e54f2e459a5041f11c2 | refs/heads/master | 2022-10-17T13:36:51.886476 | 2018-07-30T15:46:02 | 2018-07-30T15:46:02 | 142,896,293 | 0 | 1 | null | 2022-10-05T10:11:01 | 2018-07-30T15:46:15 | Python | UTF-8 | Python | false | false | 10,701 | py | # Copyright 2016 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"dhanyasj01@gmail.com"
] | dhanyasj01@gmail.com |
b4a2db0fc6da43c2eb0ad5f2cd65f2c360d65ad7 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /eDQDChGrv6y4fd44j_20.py | 1a24d4d5555b5a19f0f2a0043b0899ec7134f363 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | """
A billboard is an `m * n` list, where each list element consists of either one
letter or a blank space. You are given a phrase and the billboard dimensions.
Create a function that determines whether you can place the complete phrase on
the billboard.
There are two rules:
1. If there is a space between two wo... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f0c76d1fa08e79952459a729a781ae1b1a1a853d | 78144baee82268a550400bbdb8c68de524adc68f | /Production/python/Fall17/SMS-T2tt_mStop-1200_mLSP-100_TuneCP2_13TeV-madgraphMLM-pythia8_cff.py | c7058877ed083db8890af32476f19744018f6428 | [] | no_license | tklijnsma/TreeMaker | e6989c03189b849aff2007bad22e2bfc6922a244 | 248f2c04cc690ef2e2202b452d6f52837c4c08e5 | refs/heads/Run2_2017 | 2023-05-26T23:03:42.512963 | 2020-05-12T18:44:15 | 2020-05-12T18:44:15 | 263,960,056 | 1 | 2 | null | 2020-09-25T00:27:35 | 2020-05-14T15:57:20 | null | UTF-8 | Python | false | false | 3,838 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIIFall17Mini... | [
"Alexx.Perloff@Colorado.edu"
] | Alexx.Perloff@Colorado.edu |
4f4b68ca0c6623d671747618cbe6275ec180ab9f | b22cbe574c6fd43fde3dc82441805917b5996bb2 | /test/util.py | 9a84f69774201372124c9d12aad475c699637b11 | [] | no_license | matthagy/hlab | 7a7b16526ee06f9b6211e387795e09c6438b536c | 1bea77cf6df460f1828f99f3a54251d20e2d0f3d | refs/heads/master | 2021-01-25T03:26:52.311278 | 2012-07-23T16:20:11 | 2012-07-23T16:20:11 | 2,352,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | '''Assorted unit tests utilities
'''
import unittest
from HH2.pathutils import FilePath,DirPath
def basepath():
filebase = FilePath(__file__).abspath().stripext()
backpath = __name__.replace('.','/')
assert filebase.endswith(backpath)
path = DirPath(filebase[:-len(backpath)])
assert path.isdir()
... | [
"hagy@gatech.edu"
] | hagy@gatech.edu |
e91fb3b0579a68d2e180e42add34ad6919708d82 | 3929d114c1bc6aef86402300a8d5b278849d41ae | /186. Reverse Words in a String II.py | 8cc8dc1f28c024f2e87d00719eb97c60a509c32c | [] | no_license | lxyshuai/leetcode | ee622235266017cf18da9b484f87c1cf9ceb91d0 | 5f98270fbcd2d28d0f2abd344c3348255a12882a | refs/heads/master | 2020-04-05T21:29:37.140525 | 2018-12-16T13:17:15 | 2018-12-16T13:17:15 | 157,222,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | """
Given an input string, reverse the string word by word. A word is defined as a sequence of non-space characters.
The input string does not contain leading or trailing spaces and the words are always separated by a single space.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Could you do it in-p... | [
"442536013@qq.com"
] | 442536013@qq.com |
9dfef73bdb4ca36d08e448d5637ff33d58b50b88 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2019_02_01/models/managed_cluster_addon_profile_py3.py | 71e05cd14c0e9e64885cfee910165304b5df4421 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 1,290 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"wx44@cornell.edu"
] | wx44@cornell.edu |
419db0786d502a3cf9c1eae20144f684848c9409 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/gensim/test/test_utils.py | 240900129cf6621eddafef08f2c921360b47d10e | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 6,864 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Automated tests for checking various utils functions.
"""
import logging
import unittest
import numpy as np
from six import iteritems
from gensim import utils
class TestIsCorpus(unittest... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
547f56cae470648424b7485f6231f2167b17b872 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-hbase/aliyunsdkhbase/request/v20190101/CreateInstanceRequest.py | 6dcc7d5ca183ba80569cfe098efcfdd438b27383 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 6,117 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
afd5e9a732ae36b23155af1e2cba98c435520645 | dde6faa0857c8c7e46cbe3c48dbe80b1ac9c9bcf | /suspend_resume/scripts/suspend_resume_handler_3.py | 18f59181cb17badae55a3e34d125fbf2cc356724 | [] | no_license | ROSDevoloper/Atlas80EVO-Gazebo | 7119270f4421b1a077e3c4abbb90dcf11281023b | 468d068584e71c3cca2169b365ec43faaac33f47 | refs/heads/master | 2022-10-16T10:02:48.121404 | 2020-06-15T05:08:46 | 2020-06-15T05:08:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | #!/usr/bin/env python
"""
Author: (1) Arefeen Ridwan
(2) Samuel Chieng Kien Ho
Function: Suspend Resume based on service request
"""
import rospy
from atlas80evo_msgs.msg import FSMState
from atlas80evo_msgs.srv import SetFSMState
from std_srvs.srv import Empty
from geometry_msgs.msg import Twist
from std_m... | [
"kienho91@gmail.com"
] | kienho91@gmail.com |
f64feda20504dccac97a40d5747a0a3c49125432 | d05298a88638fd62f74e8f26c5a1959f821367d1 | /src/words_baseline/reddit_output_att.py | 413266f01e93721f50de7639a7e50fc75bac1c43 | [
"MIT"
] | permissive | rpryzant/causal-text-embeddings | d4b93f5852f1854d52a09e28b81ee784015e296a | 2966493f86a6f808f0dfa71d590e3403a840befc | refs/heads/master | 2022-12-22T09:33:23.654291 | 2020-03-05T19:41:33 | 2020-03-05T19:41:33 | 298,045,006 | 1 | 0 | MIT | 2020-09-23T17:28:18 | 2020-09-23T17:28:18 | null | UTF-8 | Python | false | false | 4,087 | py | from semi_parametric_estimation.att import att_estimates, psi_plugin, psi_q_only
from reddit.data_cleaning.reddit_posts import load_reddit_processed
from .helpers import filter_document_embeddings, make_index_mapping, assign_split
import numpy as np
import pandas as pd
import os
from sklearn.linear_model import Logisti... | [
"victorveitch@gmail.com"
] | victorveitch@gmail.com |
bf3628287d6912c3ae78c55e67f21dd80313b222 | b95e71dcc1b42ebf3459ee57bd0119c618a79796 | /Array/maximum_subarray.py | 562be03611c865ee216e753a51da805015ca258d | [] | no_license | anton-dovnar/LeetCode | e47eece7de28d76b0c3b997d4dacb4f151a839b5 | 6ed9e1bd4a0b48e343e1dd8adaebac26a3bc2ed7 | refs/heads/master | 2023-06-29T07:21:06.335041 | 2021-07-31T15:08:05 | 2021-07-31T15:08:05 | 361,205,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | class Solution:
def maxSubArray(self, nums: List[int]) -> int:
max_subarr = float('-inf')
curr_sum = 0
for n in nums:
curr_sum = max(n, curr_sum + n)
max_subarr = max(max_subarr, curr_sum)
return max_subarr
| [
"fode4cun@gmail.com"
] | fode4cun@gmail.com |
96302dbfad171e64160534464df2b0add5495106 | 59e613d6a0bcb8570c89defa77da398f69b82c77 | /qcengine/tests/test_config.py | 40178a4cfe0e32b0d39d4a31efe3c27904365901 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | ffangliu/QCEngine | 3e081e7f5e236c434016e222f716e6b34b24030b | 835b291986069669e4be0e708ec4846ebfd858d6 | refs/heads/master | 2020-04-22T23:57:35.470503 | 2019-02-14T16:57:30 | 2019-02-14T16:57:30 | 170,760,404 | 0 | 0 | null | 2019-02-14T21:27:14 | 2019-02-14T21:27:14 | null | UTF-8 | Python | false | false | 5,049 | py | """
Tests the DQM compute module configuration
"""
import copy
import os
import pydantic
import pytest
import qcengine
from qcengine.testing import environ_context
def test_node_blank():
node = qcengine.config.NodeDescriptor(name="something", hostname_pattern="*")
def test_node_auto():
desc = {
... | [
"malorian@me.com"
] | malorian@me.com |
25bb1e59fa52a1478f01a27db44ee8ae299b07d2 | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/subprocess/repeater.py | cf01ca41051f6970c677e34642d0326924274e24 | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 1,421 | py | #!/usr/bin/env python
#
# Copyright 2007 Doug Hellmann.
#
#
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in all
# copies and tha... | [
"350840291@qq.com"
] | 350840291@qq.com |
3f78c466709124429eaedfcbc4849133d80eb1be | 4c4509c34b57350b605af50600eefc0c24a74255 | /ecommerce/urls.py | 0dead703ab3eb8c660305689032883b343a6f140 | [] | no_license | sayanth123/ecomm | cd6dd7e8c3fb13048d35c272379a320c20eb3d24 | 67101ebbb08c82bbd15a7c1dfc22c3da5483e307 | refs/heads/main | 2023-05-05T03:20:16.660301 | 2021-05-27T04:21:44 | 2021-05-27T04:21:44 | 370,259,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | """ecommerce URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"you@example.com"
] | you@example.com |
9170b0b21899081c2505bb3e82a8d26b4391d673 | d650da884a0a33dd1acf17d04f56d6d22a2287fd | /test/test_inspect.py | 894d8f97bc3c3456e7baeaaca34461ea1c6b61a8 | [] | no_license | GaelicGrime/rpnpy | debe3a79e9a456e13dcd1421d42f01c0bcbe9084 | 5a095dd024403daad93a3222bd190bbb867a8ae2 | refs/heads/master | 2023-04-03T11:19:16.737278 | 2020-12-03T08:26:40 | 2020-12-03T08:26:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from unittest import TestCase
from math import log
from rpnpy.inspect import countArgs
class TestCountArgs(TestCase):
"""Test the countArgs function"""
def testZero(self):
"A function that takes zero arguments must be processed correctly"
self.assertEqual(0, countArgs(lambda: 3))
def te... | [
"terry@jon.es"
] | terry@jon.es |
d09e8cfd12158d7338f73096900aa2f29faece0c | 09cead98874a64d55b9e5c84b369d3523c890442 | /py210110c_python1a/day06_210214/homework/hw_5_yiding.py | 2b8e12eb578a330374112c74a1059c59eddd995b | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | """
1,1
2,1
3,1
4,0
5,0
6,1
7,0.5
8,1
"""
"""
q1.
none, false, else if, for, in, from, as
q2.
abc$, 0a
q3.
a
q4.
c
q5.
a
q6.
a
q7.
a
q8.
a
""" | [
"lada314@gmail.com"
] | lada314@gmail.com |
7a6ea156514e8fec2c46d6640f4d2fd9b8b57b5d | 80b7f2a10506f70477d8720e229d7530da2eff5d | /ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/statistics/misdirectedperflow/misdirectedperflow.py | 0562872acb73fb50d2a0e5450f633d42c7da8502 | [
"MIT"
] | permissive | OpenIxia/ixnetwork_restpy | 00fdc305901aa7e4b26e4000b133655e2d0e346a | c8ecc779421bffbc27c906c1ea51af3756d83398 | refs/heads/master | 2023-08-10T02:21:38.207252 | 2023-07-19T14:14:57 | 2023-07-19T14:14:57 | 174,170,555 | 26 | 16 | MIT | 2023-02-02T07:02:43 | 2019-03-06T15:27:20 | Python | UTF-8 | Python | false | false | 4,342 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
33f2f552754a26206f2b192b5ce5639d80bcdbf5 | 5efc0271eb922da63a6825112b4de786915b1b89 | /22_qpdf简化使用/test.py | def4e13a983537dc89696317c9b91c7f06cd114e | [] | no_license | uestcmee/PiecemealScripts | 41e7d45cbcd5d720822da6cbc935efd2ce0fcee4 | a18b4dd58229897aafe53767448e3fd8fb9c1881 | refs/heads/master | 2021-04-21T16:04:04.006230 | 2021-01-07T06:47:45 | 2021-01-07T06:47:45 | 249,794,695 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | import re
files='{D:/Desktop/Geryler Karadi 2015.pdf} D:/Desktop/光伏产业\链.png'
files.replace('\\','/')
print(files) | [
"zikepeng@outlook.com"
] | zikepeng@outlook.com |
006123581571814076c0c5a650ae638e95c97553 | 6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8 | /algorithms/algorithms-python/leetcode/Question_010_Regular_Expression_Matching.py | 68ae34c4b6feaa6b7adadbf0450d28621463d895 | [] | no_license | Lanceolata/code | aae54af632a212c878ce45b11dab919bba55bcb3 | f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb | refs/heads/master | 2022-09-01T04:26:56.190829 | 2021-07-29T05:14:40 | 2021-07-29T05:14:40 | 87,202,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | #!/usr/bin/python
# coding: utf-8
class Solution(object):
def isMatch(self, s, p):
"""
:type s: str
:type p: str
:rtype: bool
"""
if not p:
return not s
m, n = len(s), len(p)
dp = [[False] * (n + 1) for i in range(m + 1)]
dp[m][n] ... | [
"lanceolatayuan@gmail.com"
] | lanceolatayuan@gmail.com |
72c49aa9bbe684e1346f0668477ce89c841a9b0a | 74192ed5b9b5529c7b6ab9f238e9f44d5dce6aca | /backend/manage.py | abefc5fc0c9913675279a1ecc7a3677e5d3465ed | [] | no_license | crowdbotics-apps/black-mart-23466 | 47691415229f97248b7aaf18c6efca45f81d6e84 | 5be279d61e74cc543782b8879ca4d7abeb3ad06c | refs/heads/master | 2023-02-03T22:51:54.843742 | 2020-12-24T19:41:41 | 2020-12-24T19:41:41 | 322,783,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "black_mart_23466.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
342d7838454b684e37cb8847a8e2eb7083a265e8 | bae75bf1de75fb1b76e19b0d32c778e566de570a | /smodels/test/testFiles/scanExample/smodels-output/100488230.slha.py | 61b10a9b406b2f585c269025d1c544acdcb3f737 | [] | no_license | andlessa/RDM | 78ae5cbadda1875c24e1bb726096b05c61627249 | ac6b242871894fee492e089d378806c2c2e7aad8 | refs/heads/master | 2023-08-16T00:47:14.415434 | 2021-09-21T20:54:25 | 2021-09-21T20:54:25 | 228,639,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,108 | py | smodelsOutput = {'ExptRes': [{'AnalysisSqrts (TeV)': 8, 'chi2': -0.01262596850888705, 'dataType': 'efficiencyMap', 'Mass (GeV)': [[808.3, 321.4], [808.3, 321.4]], 'maxcond': 0.0, 'expected upper limit (fb)': 0.242, 'likelihood': 0.24134326901519393, 'AnalysisID': 'ATLAS-CONF-2013-093', 'upper limit (fb)': 0.21, 'theory... | [
"lessa.a.p@gmail.com"
] | lessa.a.p@gmail.com |
6c2cf63addd9d3664eeabb0d446ac9beeed5c449 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_287/ch16_2020_03_21_00_14_52_868139.py | 94be6d91f54a3fead1d374afc0cf87ba1bac9fca | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | f=float(input('conta:'))
f=f*1,1
print('Valor da conta com 10%:R$ {0:.2f}'.format(f))
| [
"you@example.com"
] | you@example.com |
ee3473b10902f6c6c697639c370c76082fa54da6 | 06919b9fd117fce042375fbd51d7de6bb9ae14fc | /py/dcp/problems/graph/find_order.py | 65b844789e326bb2a11db792095d06afc91af167 | [
"MIT"
] | permissive | bmoretz/Daily-Coding-Problem | 0caf2465579e81996869ee3d2c13c9ad5f87aa8f | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | refs/heads/master | 2022-12-07T15:41:06.498049 | 2021-11-18T19:45:19 | 2021-11-18T19:45:19 | 226,376,236 | 1 | 0 | MIT | 2022-11-22T09:20:23 | 2019-12-06T17:17:00 | C++ | UTF-8 | Python | false | false | 1,593 | py | '''Topological sort.
We are given a hasmap associating each courseId key with a list of courseIds values, which tells us that the prerequisites of courseId
are course Ids. Return a sorted ordering of courses such that we can complete the curriculum.
Return null if there is no such ordering.
For example, given the fo... | [
"bmoretz82@gmail.com"
] | bmoretz82@gmail.com |
f7383bb07b5a685e539266485c37b94cae869f20 | 992b6058a66a6d7e05e21f620f356d1ebe347472 | /fluent_pages/migrations/0001_initial.py | bebe90e32b27fb10654917cc68d5847990affc35 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | masschallenge/django-fluent-pages | 5ffb47a6dc4d7333ccbef9973cea4e6cf79569fe | 8beb083d89fba935ef3bfeda8cacf566f28b1334 | refs/heads/master | 2021-07-15T14:27:46.078658 | 2015-11-12T16:52:00 | 2015-11-12T16:52:00 | 28,341,345 | 0 | 0 | NOASSERTION | 2021-03-24T18:53:09 | 2014-12-22T14:17:52 | Python | UTF-8 | Python | false | false | 9,911 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'UrlNode'
db.create_table('fluent_pages_urlnode', (
('id', self.gf('django.db.m... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
b0ee96afdbb8d940aeeedbe2f8276662709cd207 | 09cead98874a64d55b9e5c84b369d3523c890442 | /py200913b_python2m8/day06_201018/filedir_4_remove.py | 0740189b7058ab68253a539e1376c26eddba0f08 | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | """
remove dir or file
remove(name)
"""
import os
# os.remove("mydir3a")
# remove a file
os.remove("rename_file_new.py")
| [
"lada314@gmail.com"
] | lada314@gmail.com |
9e673189f7b3663b9f3c1004c0d52e8ed3aec3bb | 871c8b48a58b3e7dc7821e14bc451acb92dfe33e | /cms/migrations/0009_auto_20160308_1456.py | e5cf4eb94dfd3f19f01071c28af85f5df2715bea | [
"BSD-3-Clause"
] | permissive | sonsandco/djangocms2000 | 6f3937e2185707c32f15e5e42d06e138751d85e4 | 25131e9e8659a7a30a8fd58b7da011cbb928c8ac | refs/heads/master | 2022-08-25T22:18:17.173639 | 2022-08-17T11:36:36 | 2022-08-17T11:36:36 | 121,998,739 | 0 | 0 | NOASSERTION | 2022-07-24T05:16:48 | 2018-02-18T23:00:47 | Python | UTF-8 | Python | false | false | 1,935 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-08 01:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cms', '0008_auto_20150216_1649'),
]
operations = [
migrations.AddField(
... | [
"gregplaysguitar@gmail.com"
] | gregplaysguitar@gmail.com |
7e96884df88998e1cd4b4b6f2f635021055b5322 | c317f99691f549b393562db200b1e9504ce11f95 | /algorithms_learn/what_can_be_computed/src/simulateDfa.py | efedb724f8a32d4de40d6a61ff15aa0d1e302d68 | [
"CC-BY-4.0"
] | permissive | RRisto/learning | 5349f9d3466150dbec0f4b287c13333b02845b11 | 618648f63a09bf946a50e896de8aed0f68b5144a | refs/heads/master | 2023-09-01T00:47:23.664697 | 2023-08-30T17:56:48 | 2023-08-30T17:56:48 | 102,286,332 | 15 | 24 | null | 2023-07-06T21:22:48 | 2017-09-03T18:42:58 | Jupyter Notebook | UTF-8 | Python | false | false | 1,135 | py | # SISO program simulateDfa.py
# Simulate a given dfa with a given input.
# dfaString: ASCII description of the dfa M to be simulated
# inString: the initial content I of M's tape
# returns: 'yes' if M accepts I and 'no' otherwise
# Example:
# >>> simulateDfa(rf('multipleOf5.dfa'), '3425735')
# 'yes'
import utils;... | [
"ristohinno@gmail.com"
] | ristohinno@gmail.com |
e92b6a0a8f15c772f6a3f238232ce0d47afa3a9f | ee87e89befa0d4bf353dcf682b6467f9daaf657e | /src/foo_ext/setup_foo.py | 00cab0b82444aae83ea486fa9f58bec6a8b7de40 | [
"BSD-3-Clause",
"MIT"
] | permissive | umedoblock/fugou | 43046056ce5f20b81d76e3c8e3149717b63708ed | 45d95f20bba6f85764fb686081098d92fc8cdb20 | refs/heads/master | 2021-07-15T15:26:30.856753 | 2018-11-26T23:44:18 | 2018-11-26T23:44:18 | 152,105,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | from distutils.core import setup, Extension
# module_camellia = Extension('camellia', sources = ['camellia/pycamellia.c'])
module_foo = \
Extension('_foo',
sources = ['foo/pyfoo.c'],
extra_link_args=['-Wl,-soname,build/lib.linux-i686-3.2-pydebug/_foo.cpython-32dm.so'])
# build/lib.linux-i686-... | [
"devnull@localhost"
] | devnull@localhost |
ff10aab701873a6743c66ff43a452b141e61b2e3 | d153c170a4839deb4d8606009be15198418aea69 | /알고리즘풀이/21.07.09/벽부수고이동.py | 9a0c96664f8cbc835b7ed167735d13703b0e7b60 | [] | no_license | rlatmd0829/algorithm | 669085907e2243b4c3a663feab87cd83ff50cc49 | 116bebf16afa6e20d9e968aa312b99b8eea447a5 | refs/heads/master | 2023-08-21T02:27:36.944919 | 2021-09-26T09:39:52 | 2021-09-26T09:39:52 | 345,480,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | # 시간초과
import collections
n, m = map(int, input().split())
graph = [list(map(int,input())) for _ in range(n)]
dx, dy = [-1,1,0,0], [0,0,-1,1]
def bfs():
queue = collections.deque()
queue.append((0,0))
distance = [[0]*m for _ in range(n)]
while queue:
x, y = queue.popleft()
for i in ... | [
"rlatmd0829@naver.com"
] | rlatmd0829@naver.com |
6053712f6528d72f50dd12642f249150218a7d4c | 651a296c8f45b5799781fd78a6b5329effe702a0 | /bvec/bvec_print.py | a927d2db4dfdd041e9b0fa3dbdc83056ccf7b51a | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | #!/usr/bin/env python
def bvec_print ( n, bvec, title ) :
#*****************************************************************************80
#
## BVEC_PRINT prints a binary integer vector, with an optional title.
#
# Discussion:
#
# A BVEC is an integer vector of binary digits, intended to
# represent an integer... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
1539d348092bab286434a5b073c5490382d7dffe | 9f4b1884273f995806c1e755665a92b785cc52a8 | /onnx/test/parser_test.py | 46604593e0c848bd177032dfeda4264980d26494 | [
"Apache-2.0"
] | permissive | zhijl/onnx | 340f7c5794a9aca96d2a9e76c3336aeebe798776 | ac0afea916f989c714692dd8551eff762a639cd5 | refs/heads/main | 2023-03-31T02:30:50.151799 | 2023-03-20T23:09:55 | 2023-03-20T23:09:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,295 | py | # SPDX-License-Identifier: Apache-2.0
import unittest
from parameterized import parameterized
import onnx
from onnx import GraphProto, OperatorSetIdProto, checker
class TestBasicFunctions(unittest.TestCase):
def check_graph(self, graph: GraphProto) -> None:
self.assertEqual(len(graph.node), 3)
s... | [
"noreply@github.com"
] | zhijl.noreply@github.com |
f4a8e3c81ba011c641b4218d7ed3cca00179f752 | e0c8662a56d89730043146ddc340e9e0b9f7de72 | /plugin/14e55cec-1596.py | 7b13f9266669dc060f05fe19bfca14b9054da31c | [] | no_license | izj007/bugscan_poc | f2ef5903b30b15c230b292a1ff2dc6cea6836940 | 4490f3c36d4033bdef380577333722deed7bc758 | refs/heads/master | 2020-09-22T17:20:50.408078 | 2019-01-18T09:42:47 | 2019-01-18T09:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | #coding:utf-8
from lib.curl import *
# -*- coding: utf-8 -*-
"""
POC Name : OGNL console
Author : a
mail : a@lcx.cc
Referer: http://wooyun.org/bugs/wooyun-2010-080076
"""
import urlparse
def assign(service, arg):
if service == 'www':
arr = urlparse.urlparse(arg)
return True, '%s://%s/... | [
"yudekui@wsmtec.com"
] | yudekui@wsmtec.com |
8787aeb0950cc8d74bb12753045c0ae4d10b16e6 | 17c280ade4159d4d8d5a48d16ba3989470eb3f46 | /18/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisWprime1800.py | 9e802f49450f00b24370cdff361d92b3565fac2c | [] | no_license | chengchen1993/run2_ntuple | 798ff18489ff5185dadf3d1456a4462e1dbff429 | c16c2b203c05a3eb77c769f63a0bcdf8b583708d | refs/heads/master | 2021-06-25T18:27:08.534795 | 2021-03-15T06:08:01 | 2021-03-15T06:08:01 | 212,079,804 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'Wprime_1800_weight_v2'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName='Analysis'
config.JobType.sendExternalFolder=True# = 'Analysis'
config.JobTy... | [
"c.chen@cern.ch"
] | c.chen@cern.ch |
3e466dffd0b79a8e26b47596233aa19edadc61ce | 47b4d76e9c87e6c45bab38e348ae12a60a60f94c | /Mutation_Modules/GLN_ASN.py | efbed28aa20e0ca0a3e8faeedc094ac0a4d66aac | [] | no_license | PietroAronica/Parasol.py | 9bc17fd8e177e432bbc5ce4e7ee2d721341b2707 | 238abcdc2caee7bbfea6cfcdda1ca705766db204 | refs/heads/master | 2021-01-10T23:57:40.225140 | 2020-10-14T02:21:15 | 2020-10-14T02:21:15 | 70,791,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,045 | py | # GLN to ASN Mutation
import Frcmod_creator
import PDBHandler
import Leapy
from parmed.tools.actions import *
from parmed.amber.readparm import *
def parmed_command(vxi='VXI', lipid='No'):
bc = {}
with open('Param_files/AminoAcid/GLN.param', 'r') as b:
data = b.readlines()[1:]
for lin... | [
"pietro.ga.aronica@gmail.com"
] | pietro.ga.aronica@gmail.com |
76c6d426ea19c82ba2d57cfb8810ec4fedfbf1d8 | f03f7f4cad663f4687b8b87ea9a001cd7a0c6b31 | /rule_engine/asgi.py | 626b087bf951a5d79ee0f8275ef1dc902482b7ec | [] | no_license | amarbabuk/rule-engine | 79f05a2338539a8791aaea3a0432e4b8a1a7d1d3 | 9b7a504501d2db02178e4bbeac0409dfd0ba4833 | refs/heads/master | 2023-05-03T20:40:01.259232 | 2021-05-15T21:24:18 | 2021-05-15T21:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for rule_engine project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"kohlivishrut@gmail.com"
] | kohlivishrut@gmail.com |
669563710a76da0b0965af59920ba5fa960381db | a1f009fbc7700cd17fffcd97518bda1593064e33 | /source_code/python/python_advanced/strings/bytes.py | b6ee415eaff9935b7df255dd1b656f9772eacbb5 | [] | no_license | Alrin12/ComputerScienceSchool | 2db06f9d198f67ad587535b3cab0dabd8a4b8e5c | 7543ae686394fc573f80bf680ae4371a2871dede | refs/heads/master | 2021-01-23T15:04:22.672139 | 2017-07-17T15:32:31 | 2017-07-17T15:32:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | b = b"abcde"
#print(b)
#print(b.upper())
#print(b.startswith(b"ab"))
#bytes -> string
string = b.decode('UTF-8')
print(string)
| [
"ythwork83@gmail.com"
] | ythwork83@gmail.com |
cbabaab8f53d23cfaa2ecbf319388276b6172f67 | 433d8d457ed431b9ad38e3ed8ed6e441b7caa334 | /bin/generate_zippylog_message_classes | 92c4f25b4a7ff5fa92a47278254795a8f91aaf8f | [
"Apache-2.0"
] | permissive | indygreg/zippylog | 365f4f95dd2c9f8743180178fa90d66b0611cc71 | 5efc10b28a3e9d5f4df6c2014e7121d689291a70 | refs/heads/master | 2020-05-09T17:15:23.063121 | 2012-09-06T23:53:19 | 2012-09-06T23:53:19 | 795,523 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,674 | #!/usr/bin/python
# Copyright 2011 Gregory Szorc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"gregory.szorc@gmail.com"
] | gregory.szorc@gmail.com | |
992b9fcf1f9245559736c39f1ff5f2a4fad0a1a8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/233/44940/submittedfiles/testes.py | c32c53695e128c23eb21837b58d93558de20eeb8 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
s='Um elefante incomoda muita gente'
print(a.capitalize(s)) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e724a3c48e595bf7c48a83851d2e887104b40271 | 605d63d23bc2e07eb054979a14557d469787877e | /atest/testdata/core/resources_and_variables/variables_imported_by_resource.py | 73662bdefa9dd586742fe3ebc59da8b64bfb1dc2 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | robotframework/robotframework | 407b0cdbe0d3bb088f9bfcf9ea7d16e22eee1ddf | cf896995f822f571c33dc5651d51365778b1cf40 | refs/heads/master | 2023-08-29T03:19:00.734810 | 2023-08-27T18:14:48 | 2023-08-28T18:14:11 | 21,273,155 | 8,635 | 2,623 | Apache-2.0 | 2023-09-05T04:58:08 | 2014-06-27T11:10:38 | Python | UTF-8 | Python | false | false | 82 | py | variables_imported_by_resource = 'Variable from variables_imported_by_resource.py' | [
"peke@iki.fi"
] | peke@iki.fi |
14fcaeb305d053f5521da45fd3ee2dd1a9697fba | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startCirq155.py | 094f1a6799a76414621d8cdf570c3e79f509ea54 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,673 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=3
# total number=29
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
627cf8253da28f9a0b598a5ce5132606b0f3c62b | a1431c25ebd62daead742e0120a16253c4cf67ca | /django/movie/migrations/0002_auto_20190910_2053.py | 212f7307d9b37543ceb71c884a998090b3067fed | [] | no_license | KonradMarzec1991/my_MDB | f840cbf495c23272b3e39db68c241219a60d63bd | d77339a4c37a3d7ae21b6d28bd9644ce15130f10 | refs/heads/master | 2022-04-29T10:15:37.109422 | 2019-11-03T20:13:57 | 2019-11-03T20:13:57 | 207,375,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | # Generated by Django 2.2.5 on 2019-09-10 20:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('movie', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Person',
fi... | [
"konrimarzec@gmail.com"
] | konrimarzec@gmail.com |
ca059aa8c32a39ed214dc0199c72e92922850c57 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02677/s955369222.py | 6cf51b7ad9b75384f56164aff5faa203ac653ac3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | """AtCoder."""
import math
a, b, h, m = [int(v) for v in input().split(' ')]
class Point:
def __init__(self, r, v):
self.r = r
self.w = (2 * math.pi) / v
def get_pos(self, t):
wt = self.w * t
return self.r * math.cos(wt), self.r * math.sin(wt)
p1 = Point(a, 12 * 60)
p2 = ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2f5a0fdf8f81ef767fc19d5a34d2bbaeb635d01d | 646f2a135dc8ba97b2fc7436194dcab2a8f0ae8c | /autocomplete_light/channel/base.py | 8ba3f984df5a1c0a22922c1c42937c3567e22822 | [
"MIT"
] | permissive | pix0r/django-autocomplete-light | 9f55252d4aa4fb8a28471772a98e793b171cdb0c | f1026dfe49934065206ca1fdae46289c68e8c231 | refs/heads/master | 2020-12-30T18:50:36.304623 | 2012-05-30T09:39:24 | 2012-05-30T09:39:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,932 | py | """
The channel.base module provides a channel class which you can extend to make
your own channel. It also serves as default channel class.
"""
from django.core import urlresolvers
from django.template import loader
from django.utils.translation import ugettext_lazy as _
__all__ = ('ChannelBase',)
class ChannelBas... | [
"jamespic@gmail.com"
] | jamespic@gmail.com |
070eb0eb248d00b0725d085b1937cb7a5da23da2 | 4351c4eed4c5b4ab0d477a989c96c0a0cfeda1e5 | /omnicanvas/canvas.py | 1dc679a7bd73f1dd22fd0d3b27ab18dc75d8b334 | [
"MIT"
] | permissive | samirelanduk/omnicanvas | b601eb5bbeb868211cdf195ad4168ea8d0ea3c25 | edc22ec802da6188759fbbbb30f0dd44aabb3a7a | refs/heads/master | 2020-12-29T02:37:48.896323 | 2017-01-22T21:40:43 | 2017-01-22T21:40:43 | 53,693,336 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,171 | py | """This module contains the main Canvas class."""
from .color import process_color
from . import graphics
from . import svg
class Canvas:
"""A backdrop on which other :py:class:`.Graphic` objects are painted.
:param width: The canvas's width in pixels.
:param height: The canvas's height in pixels.
:p... | [
"sam.ireland.uk@gmail.com"
] | sam.ireland.uk@gmail.com |
a585d4489cb8b4295cdbaa734255fddff64656b5 | 416f598c62277659f787a37d06f3ebc633a79d53 | /every_election/apps/organisations/migrations/0036_auto_20180606_1035.py | bfa7659c15a88e941da82db96db06e8575c0edfb | [] | no_license | chris48s/EveryElection | 53b6d807e97b2a8b9a943dedcc5ff6ecc65d20fc | 38192a075ae359b91e2aa352fb3886c6c93d3337 | refs/heads/master | 2021-01-22T19:49:15.898338 | 2018-08-17T09:11:42 | 2018-08-17T09:11:42 | 85,244,907 | 0 | 0 | null | 2017-03-16T21:53:29 | 2017-03-16T21:53:28 | null | UTF-8 | Python | false | false | 484 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-06 10:35
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('organisations', '0035_rename_divset_constraint'),
]
operations = [
migrations.Alte... | [
"chris.shaw480@gmail.com"
] | chris.shaw480@gmail.com |
0216d00c4a0280404201ed358bfc7c240952ec5a | 0202d8faff21f24e468654b3da56ca16457ff5b3 | /entrant/abc133/abc133-c.py | a93b0c17761a620084c2519ce520de7d390fcc5d | [] | no_license | ryogoOkura/atcoder | a3d8d052c6424db26994444eca1ebaa3efbd3e21 | 2865b42bbdb50d83bf129fd868083c2363e92024 | refs/heads/master | 2021-06-24T06:07:32.290393 | 2021-01-02T13:39:24 | 2021-01-02T13:39:24 | 187,552,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | l,r=map(int,input().split())
if (l//2019) == (r//2019):
l,r=l%2019,r%2019
ans=2018
for i in range(l,r):
for j in range(i+1,r+1):
tmp=(i*j)%2019
if tmp<ans:
ans=tmp
print(ans)
else:
print(0)
| [
"nem1442so@gmail.com"
] | nem1442so@gmail.com |
39ceb9d36775a75edf35014ee07e0ae39affc16f | f8f2536fa873afa43dafe0217faa9134e57c8a1e | /aliyun-python-sdk-hbr/aliyunsdkhbr/request/v20170908/DescribeHanaRestoresRequest.py | 29b991a2c5cbecc928a581fe3e4ae75d2966a997 | [
"Apache-2.0"
] | permissive | Sunnywillow/aliyun-openapi-python-sdk | 40b1b17ca39467e9f8405cb2ca08a85b9befd533 | 6855864a1d46f818d73f5870da0efec2b820baf5 | refs/heads/master | 2022-12-04T02:22:27.550198 | 2020-08-20T04:11:34 | 2020-08-20T04:11:34 | 288,944,896 | 1 | 0 | NOASSERTION | 2020-08-20T08:04:01 | 2020-08-20T08:04:01 | null | UTF-8 | Python | false | false | 2,536 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
e7b2527e9d44eef72048f1bb2f0a78a12a668f9b | 77639380e2c33eee09179f372632bcb57d3f7e3f | /favorita/base_xgb_model.py | d550fd5b81efab514e96961f156451c648bd8a32 | [] | no_license | razmik/demand_forecast_walmart | b8f5c4aaa3cb6dccae102e4ca19f1131131a9f26 | 56292bfbeebc1d3d4962e3ee26d05be2aebd5f4c | refs/heads/master | 2023-01-22T12:30:18.129486 | 2020-08-10T10:44:12 | 2020-08-10T10:44:12 | 283,923,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | """
Author: Rashmika Nawaratne
Date: 05-Aug-20 at 4:53 PM
"""
import pandas as pd
import numpy as np
from datetime import datetime
import time
import gc
from xgboost import XGBRegressor
from xgboost import Booster
import matplotlib.pyplot as plt
from favorita.load_data import Data
from favorita.evaluation import Ev... | [
"razmik89@gmail.com"
] | razmik89@gmail.com |
a3da9504f28fd24a09d5a381d01999f1ecc2ed4b | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/catalog/CatalogItemPanel.py | eec5dcc756b6e374f53146c1236fb2ebf461b5a8 | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 29,895 | py | # File: t (Python 2.4)
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from toontown.toonbase import ToontownGlobals
from toontown.toontowngui import TTDialog
from toontown.toonbase import TTLocalizer
import CatalogItemTypes
import CatalogItem
from CatalogWallpaperItem import getAllWallpapers
from... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
4103376dbbca20b7caa6c000a96c5304895c31f9 | e017eca53dbe0d35977546df1bb36a59915f6899 | /debugging/assert_variable.py | 8aec26cfafa0f80b02465a455cc3c785aa89bd35 | [] | no_license | clivejan/python_basic | 7d14b7335f253658f8814acbdb753a735481e377 | 773de644a87792b872e38017dcac34c1691ccc87 | refs/heads/master | 2020-12-04T17:44:24.737370 | 2020-01-09T14:43:36 | 2020-01-18T03:11:20 | 231,856,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #!/usr/bin/env python3 -O
# Assertion is used for programmer errors and
# should not use try except to handle it.
# Status well
job_title = 'DevOps'
assert job_title == "DevOps", "Tansform from SE to DevOps"
# Status wrong
job_title = 'Systems Engineer'
assert job_title == "DevOps", "Tansform from SE to DevOps"
pri... | [
"clive.jan@gmail.com"
] | clive.jan@gmail.com |
0116db3631d3d531836248a0bca1d5d46ba83d49 | 302442c32bacca6cde69184d3f2d7529361e4f3c | /cidtrsend-all/stage3-model/pytz/zoneinfo/Africa/Bujumbura.py | 76c4c7a6e44ba67e832b34d93a452c2827caf84f | [] | no_license | fucknoob/WebSemantic | 580b85563072b1c9cc1fc8755f4b09dda5a14b03 | f2b4584a994e00e76caccce167eb04ea61afa3e0 | refs/heads/master | 2021-01-19T09:41:59.135927 | 2015-02-07T02:11:23 | 2015-02-07T02:11:23 | 30,441,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | '''tzinfo timezone information for Africa/Bujumbura.'''
from pytz.tzinfo import StaticTzInfo
from pytz.tzinfo import memorized_timedelta as timedelta
class Bujumbura(StaticTzInfo):
'''Africa/Bujumbura timezone definition. See datetime.tzinfo for details'''
zone = 'Africa/Bujumbura'
_utcoffset = time... | [
"learnfuzzy@gmail.com"
] | learnfuzzy@gmail.com |
ab96c2674dd84ae1432b1ef67ca398aa1e033854 | 71f3ecb8fc4666fcf9a98d39caaffc2bcf1e865c | /.history/第2章/2-2/lishi_20200527235931.py | 947e75d59de12d8489b2a6b14a7c1c09b49fe148 | [
"MIT"
] | permissive | dltech-xyz/Alg_Py_Xiangjie | 03a9cac9bdb062ce7a0d5b28803b49b8da69dcf3 | 877c0f8c75bf44ef524f858a582922e9ca39bbde | refs/heads/master | 2022-10-15T02:30:21.696610 | 2020-06-10T02:35:36 | 2020-06-10T02:35:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | #!/usr/bin/env python
# coding=utf-8
'''
@version:
@Author: steven
@Date: 2020-05-27 22:20:22
@LastEditors: steven
@LastEditTime: 2020-05-27 23:59:31
@Description:将列表的最后几项作为历史记录的过程。
'''
from _collections import deque
def search(lines, pattern, history=5):
previous_lines = deque(maxlen=history)
for line in lin... | [
"a867907127@gmail.com"
] | a867907127@gmail.com |
82c5ce7b4ebbb0b5752945713ead109a06be2960 | 16ba38ef11b82e93d3b581bbff2c21e099e014c4 | /haohaninfo/Python_Future_Sample/實單交易/90.py | dbf39a68d38224f520449600d95099dfb3431206 | [] | no_license | penguinwang96825/Auto-Trading | cb7a5addfec71f611bdd82534b90e5219d0602dd | a031a921dbc036681c5054f2c035f94499b95d2e | refs/heads/master | 2022-12-24T21:25:34.835436 | 2020-09-22T09:59:56 | 2020-09-22T09:59:56 | 292,052,986 | 2 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | # -*- coding: UTF-8 -*-
# 載入相關套件
import sys,indicator,datetime,haohaninfo
# 券商
Broker = 'Masterlink_Future'
# 定義資料類別
Table = 'match'
# 定義商品名稱
Prod = sys.argv[1]
# 取得當天日期
Date = datetime.datetime.now().strftime("%Y%m%d")
# K棒物件
KBar = indicator.KBar(Date,'time',1)
# 定義威廉指標的週期、超買區、超賣區
WILLRPeriod = 14
Ov... | [
"penguinwang@smail.nchu.edu.tw"
] | penguinwang@smail.nchu.edu.tw |
5106152e77d060a927253686296d12540bed8155 | 2a94e60460f91c4a4b919953ef1a15de4d89166a | /argil_cb_pos_ticket/pos.py | 79525802be904af3b677e6207922930e7981aaf3 | [] | no_license | germanponce/addons_cb | de8ddee13df36cf2278edbbc495564bbff8ea29e | 858453d4f4c3e8b43d34a759b20306926f0bf63e | refs/heads/master | 2021-01-22T23:20:16.826694 | 2015-10-29T22:05:03 | 2015-10-29T22:05:03 | 41,502,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the ter... | [
"german_442@hotmail.com"
] | german_442@hotmail.com |
0a97d29e2bec4a1a9d370b41f0a000614f2f24db | c3e2f56672e01590dc7dc7e184f30c2884ce5d3a | /Programs/MyPythonXII/Unit1/PyChap06/filera.py | 9500b097eee3e35d0a288c02f76d1e850d45b55f | [] | no_license | mridulrb/Basic-Python-Examples-for-Beginners | ef47e830f3cc21cee203de2a7720c7b34690e3e1 | 86b0c488de4b23b34f7424f25097afe1874222bd | refs/heads/main | 2023-01-04T09:38:35.444130 | 2020-10-18T15:59:29 | 2020-10-18T15:59:29 | 305,129,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # File name: ...\\MyPythonXII\Unit1\PyChap06\filera.py
import os
txtfile = "Friends.txt" # Text file is assigned
if os.path.isfile(txtfile):
print ("Friends names are...")
print ("-------------------")
for F in open(txtfile).read(): # Both open and read the contents
print (F, end="")
... | [
"mridurb@gmail.com"
] | mridurb@gmail.com |
b8e7b0de85b7573829e61fafb9cd287c1173b9af | fbd5c602a612ea9e09cdd35e3a2120eac5a43ccf | /Finished/old_py/75.颜色分类.py | 7bd771f54cb7ff8dcc151c48d2e2b94a7f6bf8e8 | [] | no_license | czccc/LeetCode | 0822dffee3b6fd8a6c6e34be2525bbd65ccfa7c0 | ddeb1c473935480c97f3d7986a602ee2cb3acaa8 | refs/heads/master | 2023-09-01T18:18:45.973563 | 2023-08-27T02:44:00 | 2023-08-27T02:44:00 | 206,226,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | #
# @lc app=leetcode.cn id=75 lang=python
#
# [75] 颜色分类
#
# @lc code=start
class Solution(object):
def sortColors(self, nums):
"""
:type nums: List[int]
:rtype: None Do not return anything, modify nums in-place instead.
"""
left, right = -1, len(nums)
p = 0
w... | [
"lichchchn@gmail.com"
] | lichchchn@gmail.com |
5c9dac8602f051955f5bba3b5b992bee8b05f77a | 88900156c1fc6d496e87a0c403811e30a7398cfc | /check4fsm/Communication.py | 70dd87ad40c4646164be3443114f9caeac43fce8 | [] | no_license | Totoro2205/check4fsm | 4be7b73b9331ed2d46ce119b762d67a64a4420cc | 4245b7f0babca6f5d15d1f85ee85fddc69cf0196 | refs/heads/main | 2023-08-10T07:32:22.121413 | 2021-09-20T09:28:57 | 2021-09-20T09:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | #!/usr/bin/env python
from check4fsm.ProccesText import ProcessText
from check4fsm.TonalizeText import TonalText
from check4fsm.ProcessAppeal import ProcessAppeal
from check4fsm.extractAllData import ExtractData
from check4fsm import *
from natasha import Segmenter, Doc
from loguru import logger
from flask_cors impor... | [
"you@example.com"
] | you@example.com |
09a53f5f138f99f620cd6ce77126883840240b39 | 9c85d132b2ed8c51f021f42ed9f20652827bca45 | /source/res/scripts/client/gui/shared/gui_items/vehicle.py | 3abc3d8ff7ab639c495503159428a7e726120fa4 | [] | no_license | Mododejl/WorldOfTanks-Decompiled | 0f4063150c7148184644768b55a9104647f7e098 | cab1b318a58db1e428811c41efc3af694906ba8f | refs/heads/master | 2020-03-26T18:08:59.843847 | 2018-06-12T05:40:05 | 2018-06-12T05:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,084 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/shared/gui_items/Vehicle.py
import math
import random
from itertools import izip
from operator import itemgetter
import BigWorld
import constants
from AccountCommands import LOCK_REASON, VEHICLE_SETTINGS_FLAG
from account_shared... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
62cfb6b503b6ce9ea99f372bcf8a13687c42dca9 | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/conditional_layers/conditional_layer_handlers.py | 9f92448745a071c4aac20c994e6eed081d12f54c | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,967 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\conditional_layers\conditional_layer_handlers.py
# Compiled at: 2018-05-11 22:46:41
# Size of source... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
78de7289058ba6cd0376717e3c054543a4765a6e | dda618067f13657f1afd04c94200711c1920ea5f | /scoop/user/util/inlines.py | fae84630c7d38141cbccae33232c7d71bd188d6d | [] | no_license | artscoop/scoop | 831c59fbde94d7d4587f4e004f3581d685083c48 | 8cef6f6e89c1990e2b25f83e54e0c3481d83b6d7 | refs/heads/master | 2020-06-17T20:09:13.722360 | 2017-07-12T01:25:20 | 2017-07-12T01:25:20 | 74,974,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # coding: utf-8
from django_inlines import inlines
from django_inlines.inlines import TemplateInline
from scoop.user.models import User
class UserInline(TemplateInline):
"""
Inline d'insertion d'utilisateur
Format : {{user id [style=link|etc.]}}
Exemple : {{user 2490 style="link"}}
"""
inline... | [
"steve.kossouho@gmail.com"
] | steve.kossouho@gmail.com |
c387bf8145f4fb230a3446850b2101b88050201a | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/uz4.py | eb498670c22bbeea754028188e9d8126364e9394 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
3f56e0b32438cf0782e92e5ea2de9f3379161e3d | 679cbcaa1a48c7ec9a4f38fa42d2dc06d7e7b6ef | /main.py | d5f2cef309384ff826e8e3934d2f1a1e69578595 | [] | no_license | roblivesinottawa/canada_provinces_game | cb2242845e3dd3a3902c0f416ac1a4efa485aecf | 2aa5c7236c2ac7381522b493fddf415ece9c3a87 | refs/heads/main | 2023-03-04T08:08:31.409489 | 2021-02-17T21:46:18 | 2021-02-17T21:46:18 | 339,863,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | import turtle
import pandas
screen = turtle.Screen()
screen.title("Canada Provinces Game")
image = "canada_map.gif"
screen.addshape(image)
turtle.shape(image)
data = pandas.read_csv("canada_provinces.csv")
all_provinces = data.province.to_list()
guessed = []
while len(guessed) < 50:
answer = screen.textinput(ti... | [
"tech.rob@icloud.com"
] | tech.rob@icloud.com |
6605d4e27c4cb4a040af60508ae4e17b5382aed8 | f594560136416be39c32d5ad24dc976aa2cf3674 | /mmdet/core/bbox/samplers/__init__.py | f58505b59dca744e489328a39fdabb02a893fb51 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ShiqiYu/libfacedetection.train | bd9eb472c2599cbcb2f028fe7b51294e76868432 | dce01651d44d2880bcbf4e296ad5ef383a5a611e | refs/heads/master | 2023-07-14T02:37:02.517740 | 2023-06-12T07:42:00 | 2023-06-12T07:42:00 | 245,094,849 | 732 | 206 | Apache-2.0 | 2023-06-12T07:42:01 | 2020-03-05T07:19:23 | Python | UTF-8 | Python | false | false | 827 | py | # Copyright (c) OpenMMLab. All rights reserved.
from .base_sampler import BaseSampler
from .combined_sampler import CombinedSampler
from .instance_balanced_pos_sampler import InstanceBalancedPosSampler
from .iou_balanced_neg_sampler import IoUBalancedNegSampler
from .mask_pseudo_sampler import MaskPseudoSampler
from .m... | [
"noreply@github.com"
] | ShiqiYu.noreply@github.com |
95bd533c71288b3f5335ed21e13942f5d7a24460 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03501/s994611067.py | 15296b32c0316cdc8748c1ea5d5ad1e71546c200 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | n,a,b=map(int,raw_input().split())
if a*n <b:
print a*n
else:
print b | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
78a54771d395abae7a5403a3cdbd6b176f71da9e | d4252920cf72df6973c31dad81aacd5d9ad6d4c6 | /core_example/core_export_with_name.py | 52b36666b3edfbf02e3adaec01909a7214c30acb | [] | no_license | tnakaicode/GeomSurf | e1894acf41d09900906c8d993bb39e935e582541 | 4481180607e0854328ec2cca1a33158a4d67339a | refs/heads/master | 2023-04-08T15:23:22.513937 | 2023-03-20T04:56:19 | 2023-03-20T04:56:19 | 217,652,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,697 | py | import numpy as np
import sys
import time
import os
from OCC.Display.SimpleGui import init_display
from OCC.Core.gp import gp_Pnt
from OCC.Core.XSControl import XSControl_Writer, XSControl_WorkSession
from OCC.Core.XCAFApp import XCAFApp_Application
from OCC.Core.XCAFDoc import XCAFDoc_DocumentTool_ShapeTool
from OCC.... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
c116261efdbfd8e7028b91803627518d781d088c | d7d2712ed98c748fda35c47c8f6ae21ea1d3b421 | /users/settings.py | 30b0ed03d895aee405e289d97f99c6386f3b049e | [] | no_license | kamral/user_models | 5bdd4bd5583b075cfef70a2b7be229575518ad97 | b75c6441be9ed51268f1370051eab3aa572ed228 | refs/heads/main | 2023-01-14T20:38:10.342545 | 2020-11-30T12:32:34 | 2020-11-30T12:32:34 | 317,218,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,232 | py | """
Django settings for users project.
Generated by 'django-admin startproject' using Django 2.2.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"kamral010101@gmail.com"
] | kamral010101@gmail.com |
f8f06cef7eb7f8000f785ce17005caaadfb5e2b9 | 7241ebc05ce727585224b3a98b0824f99e63627d | /tool/parser/JsonParser.py | d6539c8d86cf5900ad1f23f9402586f492b77105 | [] | no_license | mabenteng/ai-kg-neo4j | ca0cc161244229821e3b89e516fb616828823609 | 713e978ffedda7986245307cace02fb7ec240acd | refs/heads/master | 2021-10-20T03:50:43.583436 | 2019-02-25T14:25:11 | 2019-02-25T14:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # -*- coding: utf-8 -*-
# coding=utf-8
"""
create_author : zhangcl
create_time : 2018-07-01
program : *_* parse the parameter and generate cypher *_*
"""
import json
class JsonParser:
"""
Parser of request parameter.
"""
def __init__(self):
"""
initialize local variables.
... | [
"254675123@qq.com"
] | 254675123@qq.com |
bcc9f50e79bc76fc958fb5af4610f1cf265ea29f | a2dc75a80398dee58c49fa00759ac99cfefeea36 | /bluebottle/projects/migrations/0087_merge_20190130_1355.py | 705027f9fe948f888b16eb0437a1f45584ffd9db | [
"BSD-2-Clause"
] | permissive | onepercentclub/bluebottle | e38b0df2218772adf9febb8c6e25a2937889acc0 | 2b5f3562584137c8c9f5392265db1ab8ee8acf75 | refs/heads/master | 2023-08-29T14:01:50.565314 | 2023-08-24T11:18:58 | 2023-08-24T11:18:58 | 13,149,527 | 15 | 9 | BSD-3-Clause | 2023-09-13T10:46:20 | 2013-09-27T12:09:13 | Python | UTF-8 | Python | false | false | 341 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-01-30 12:55
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0086_auto_20190117_1007'),
('projects', '0086_merge_20190121_1425'),
]
... | [
"ernst@onepercentclub.com"
] | ernst@onepercentclub.com |
7023e5ecdc00bc0113342ae94985d9d03e3efcba | afc693a1095f99cc586770fbd5a65dd40f2d822f | /docs/conf.py | 82c0e03d8f2804c1c403a6bc1943dfa63271cb9d | [
"LicenseRef-scancode-homebrewed",
"Beerware"
] | permissive | ndkoch/ihatemoney | 974f3b75d3bc2519d3c17f492d221da9fa780236 | 51bc76ecc5e310602216fb8eaa2ede2ab43b3d00 | refs/heads/master | 2020-09-27T00:03:31.320035 | 2019-12-09T00:19:22 | 2019-12-09T00:19:22 | 226,371,920 | 0 | 2 | NOASSERTION | 2019-12-09T00:19:23 | 2019-12-06T16:48:41 | Python | UTF-8 | Python | false | false | 266 | py | # coding: utf8
import sys, os
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = "I hate money"
copyright = "2011, The 'I hate money' team"
version = "1.0"
release = "1.0"
exclude_patterns = ["_build"]
pygments_style = "sphinx"
| [
"alexis@notmyidea.org"
] | alexis@notmyidea.org |
a138938f68658430a7186f241fa868fec2590e61 | 865bd5e42a4299f78c5e23b5db2bdba2d848ab1d | /Python/322.coin-change.135397822.ac.python3.py | 5e9a0619060981526f9753a831b848d95c17ab70 | [] | no_license | zhiymatt/Leetcode | 53f02834fc636bfe559393e9d98c2202b52528e1 | 3a965faee2c9b0ae507991b4d9b81ed0e4912f05 | refs/heads/master | 2020-03-09T08:57:01.796799 | 2018-05-08T22:01:38 | 2018-05-08T22:01:38 | 128,700,683 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | #
# [322] Coin Change
#
# https://leetcode.com/problems/coin-change/description/
#
# algorithms
# Medium (26.58%)
# Total Accepted: 92.2K
# Total Submissions: 346.9K
# Testcase Example: '[1]\n0'
#
#
# You are given coins of different denominations and a total amount of money
# amount. Write a function to compute t... | [
"miylolmiy@gmail.com"
] | miylolmiy@gmail.com |
59ec3812dd12a3af309dfdcc37161df0ee23d29f | 2e89ff0a41c5ae40bc420e5d298504927ceed010 | /anything/users/migrations/0001_initial.py | fdaae19b9ff03d88bd74ac05938ab739e8e817a4 | [] | no_license | darkblank/anything | 6dc676b7a099ddfce0c511db9234715a4f0ca66c | 17589f8988ed1cb6fa049962bfd3fbe57c392fba | refs/heads/master | 2020-03-11T09:40:32.608171 | 2018-05-12T09:20:27 | 2018-05-12T09:20:27 | 129,918,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | # Generated by Django 2.0.3 on 2018-05-11 23:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"darkblank1990@gmail.com"
] | darkblank1990@gmail.com |
615bcc7e7e8afc56a8dc513da89e9d4f4faab88d | 83f78318d1a85045b0e29f3fed10e8ba3e5c107c | /throwback/root.py | a5a39de95633bd252ed2a43ca57c8e352c04ff32 | [] | no_license | kadrlica/throwback | c396d00230ec0e6ed4ce8c31ac6cd12e2ee76690 | c628acb9716aad433c49de4e2f71c54d2a0bc83e | refs/heads/master | 2020-03-24T09:33:03.127648 | 2018-08-02T15:04:00 | 2018-08-02T15:04:00 | 142,631,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,349 | py | #!/usr/bin/env python
"""
Generic python script.
"""
__author__ = "Alex Drlica-Wagner"
import matplotlib
from collections import OrderedDict as odict
# A modern version (v6-14-02) of the Palette from TColor...
# https://github.com/root-project/root/blob/2762a32343f57664b42558cd3af4031fe2f4f086/core/base/src/TColor.cx... | [
"kadrlica@fnal.gov"
] | kadrlica@fnal.gov |
fe9df61a2e258863b6e2aee9719643e854ebe04c | 11ff5d1651b1a3972de8d7fe369943166cb1e8dd | /lab9/backend_squares/squares/squares_app/tests/e2e/test_e2e.py | 3c2864a8f70764ecee0fdd0d4badaa97762aeee1 | [] | no_license | ilyalevushkin/computer_networks | b0eb4fa1d20a381480b6b278c01a753a98bf23ee | 3fc63850ef27779404b8d3fd054f194b78c7ee21 | refs/heads/main | 2023-05-25T11:19:06.055725 | 2021-06-16T12:58:12 | 2021-06-16T12:58:12 | 316,938,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,684 | py | from http import HTTPStatus
from django.test import TestCase
import os
from copy import deepcopy
import json
from django.contrib.auth.models import User
from ...models import Users, PullPlayers, Games
class GameWithPoolUserTest(TestCase):
@classmethod
def setUpTestData(cls):
#arrange
cls.pass... | [
"ilyalyov@mail.ru"
] | ilyalyov@mail.ru |
2bae6e3b66955458f062196496992f4f9b1a1513 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn9 - minobot/M-17068-2501.py | 51567abcbd0bb9da09e40e7d35ee022e3cb5716c | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,142 | py | def premik(ukaz, x, y, smer):
smeri = "NESW"
premiki = [(0, -1), (1, 0), (0, 1), (-1, 0)]
ismer = smeri.index(smer)
if ukaz == "R":
smer = smeri[(ismer + 1) % 4]
elif ukaz == "L":
smer = smeri[(ismer - 1) % 4]
else:
dx, dy = premiki[ismer]
x += dx * ukaz... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
7157050d8baaafca99fac5e26a9089f52b26636c | b2e9e3db0202a6bd06b5d1f4c4fd3369b5260261 | /python/tests.py | db2473b8cd480c38936c4f0a6c01bddbac30db5c | [] | no_license | jackmoody11/project-euler-solutions | 66e7128cae130499ce518c2008e5df91a6883a68 | 8b6e00bfac7855f5c892f5b3094415935358cb98 | refs/heads/master | 2020-04-12T23:52:57.347142 | 2020-01-10T00:23:16 | 2020-01-10T00:23:16 | 162,831,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py | import importlib
import time
import doctest
import sys
import argparse
filename = "../answers.txt"
with open(filename, 'r') as f:
lines = [line.strip() for line in f.readlines()]
ANSWERS = {int(line.split(". ")[0]):
line.split(". ")[1] for line in lines}
def test(prob, expected):
try:
... | [
"jackmoody@unc.edu"
] | jackmoody@unc.edu |
714d966a83c3c2a5e4206edcffebd91a7fd93889 | d0cdcbe3471cc980809fd4ed5182385bb23216b5 | /backend/task_profile/migrations/0001_initial.py | 79a56729aed9aebe14923d104aef369745363a4a | [] | no_license | crowdbotics-apps/strippee-19912 | 4770d421f16389e3ada580018e52385094cedf00 | 16d1d6258dca231fb157ecb3fa6709f490a5c1fc | refs/heads/master | 2022-12-09T22:53:07.670289 | 2020-09-01T20:24:27 | 2020-09-01T20:24:27 | 292,099,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | # Generated by Django 2.2.16 on 2020-09-01 20:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d53072873c3a5166c4017a13617ff165c8605c46 | 5c89f7c8ad6213b8c194c6e45424db199ef31041 | /s5/1.5.1_operaciones_aritmeticas_input copy.py | d4c5cd82e4a065d1b2e3730e75c9ea76506033c8 | [] | no_license | camohe90/mision_tic_G6 | 1ccfe5eef6094a1bc0dc6ca5debf2c7a9e959121 | bc04a468a568b5972b29e40643799cd9848219d8 | refs/heads/master | 2023-05-29T14:26:53.946013 | 2021-06-09T14:44:59 | 2021-06-09T14:44:59 | 366,415,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | numero1 = int(input("ingrese numero 1: "))
numero2 = int(input("ingrese numero 2: "))
suma = numero1 + numero2
print(suma)
print(type(suma))
resta = numero1 - numero2
print(resta)
print(type(resta))
multiplicacion = numero1 * numero2
print(multiplicacion)
print(type(multiplicacion))
division = num... | [
"camohe90@gmail.com"
] | camohe90@gmail.com |
9494c14281d52325c997fa672d79c0f65cd32d67 | 92436a50cc26c8c8a216ba6d4a62e36069614234 | /test/losses_multi_output_sum_loss_test.py | 1bd83488fc1d642aace065a621b9b116176498fb | [
"MIT"
] | permissive | hahaxun/ClassyVision | 9341f4e6849c858094592052f3df111c13d1a91d | b3f714ef94275b3e9753ab3f3c8256cb852b96fc | refs/heads/master | 2021-08-17T07:42:34.402613 | 2021-03-08T08:50:01 | 2021-03-08T08:50:01 | 245,940,574 | 1 | 0 | MIT | 2021-03-08T08:50:01 | 2020-03-09T04:02:59 | Python | UTF-8 | Python | false | false | 1,176 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import torch
from classy_vision.losses import (
ClassyLoss,
MultiOutputSumLoss,
build_loss... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
ef4e6cc1b28a2ca6361fa63d714a9dabbaeca22d | f07a42f652f46106dee4749277d41c302e2b7406 | /Test Set/Open Source Projects/tensorlayer/0e46845d609c2ce2eeee19cf69ed2a8b14bfdacd-0-fix.py | 9c842d7bd821cd42159e6b32ab37a1fd196b4887 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,584 | py | # -*- coding: utf-8 -*-
"""
A collections of helper functions to work with dataset.
Load benchmark dataset, save and restore model, save and load variables.
TensorFlow provides ``.ckpt`` file format to save and restore the models, while
we suggest to use standard python file format ``.npz`` to save models for the
sake... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
7ba4b6660a56236839281e9a6a45e1423b62ebcc | 4de2a833df412e1609b9894c0cb809c4d70f8623 | /app/news/migrations/0002_auto_20180313_1540.py | 75c1430513d4b94067c753c0594020aecc4e7186 | [] | no_license | Isaias301/e-commerce | 06ea11238403b7fa70c5c8e387253441d0dd07f4 | e00f94406c432751adfa03556ecfe154ec222fd9 | refs/heads/master | 2021-04-09T10:34:23.399915 | 2018-03-16T00:33:43 | 2018-03-16T00:33:43 | 125,439,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2018-03-13 18:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0001_initial'),
]
operations = [
migrations.CreateModel(
n... | [
"isaiassantana301@gmail.com"
] | isaiassantana301@gmail.com |
7c7d39ff26b769153bb74f24a416d86ba8a0eaa3 | d0f4327ca33aa37e976b024ddfbd6361fdf1a8ee | /LogisticRegression.py | 1747d6347b97ed0cc2ae5c1f114f1c197b1a7726 | [] | no_license | MitsuruFujiwara/TensorFlowTraining | c5f828356ea93c868f16ea67335dd4f32b1c7040 | 3a391c849699bd8332c23ddfffb773cf3050c69c | refs/heads/master | 2021-01-17T17:48:21.340414 | 2016-07-24T13:05:53 | 2016-07-24T13:05:53 | 60,701,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import tensorflow as tf
from RegressionBase import RegressionBase
class LogisticRegression(RegressionBase):
def __init__(self, trX, trY, numStep, numParameter, learning_rate):
RegressionBase.__init__(self, trX, trY, numStep, numParameter, le... | [
"fujiwara52jp@gmail.com"
] | fujiwara52jp@gmail.com |
dc3b3885ca9501fe86d36963da993632c7abb1cf | 3a533d1503f9a1c767ecd3a29885add49fff4f18 | /saleor/order/migrations/0114_alter_order_language_code.py | 2a11cde671ec67e4f55975abffa65b13ea276bfa | [
"BSD-3-Clause"
] | permissive | jonserna/saleor | 0c1e4297e10e0a0ce530b5296f6b4488f524c145 | b7d1b320e096d99567d3fa7bc4780862809d19ac | refs/heads/master | 2023-06-25T17:25:17.459739 | 2023-06-19T14:05:41 | 2023-06-19T14:05:41 | 186,167,599 | 0 | 0 | BSD-3-Clause | 2019-12-29T15:46:40 | 2019-05-11T18:21:31 | TypeScript | UTF-8 | Python | false | false | 40,331 | py | # Generated by Django 3.2.6 on 2021-08-17 11:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("order", "0113_orderevent_app"),
]
operations = [
migrations.AlterField(
model_name="order",
name="language_code",
... | [
"noreply@github.com"
] | jonserna.noreply@github.com |
4f429af341e1d6a151535732aff18ab72fe74f77 | 443fbf0cdd31bb65db09e2b1f3e9770adc69c08d | /Python 1/1 - Introducion/5 - Comentarios/Comentarios.py | 63b10fefa4166d61ecf646f0d8d2eb7abb60000e | [] | no_license | marcvifi10/Curso-Python | b9b376c39713e525756eb26f31f914359aef537a | 047830ca92e027c7d37e2f6bb042971a773a5d6d | refs/heads/master | 2020-07-15T08:30:53.622053 | 2019-09-18T16:23:35 | 2019-09-18T16:23:35 | 205,521,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | # Comentario de una sola linea
'''
Comentarios de
más de una linea
'''
valor = 10
print("Valor1: ",valor)
valor = "Marc"
print("Valor2: ",valor) | [
"36198307+marcvifi10@users.noreply.github.com"
] | 36198307+marcvifi10@users.noreply.github.com |
1693a2db33c64357463d0eae112a25a4a985fb94 | 60d1a67f71d87db55feaa9424081ba74e5c4da0c | /tensor2struct/__init__.py | 73011f353e015638f8dbc1392192838313ce349b | [
"MIT"
] | permissive | ashutoshbsathe/tensor2struct-public | 4313308398164f2f2576aec9d55b48c834c0325b | cfcafa94f10565bc25a72c172a9e58dfa4170fe7 | refs/heads/main | 2023-08-03T09:04:29.269648 | 2021-09-18T09:34:13 | 2021-09-18T09:34:13 | 407,810,567 | 0 | 0 | MIT | 2021-09-18T09:03:56 | 2021-09-18T09:03:55 | null | UTF-8 | Python | false | false | 113 | py | from . import models
from . import modules
from . import datasets
from . import contexts
from . import languages
| [
"bailin.wang28@gmail.com"
] | bailin.wang28@gmail.com |
28bcb6383ea9d9eaa24f48fe4c6a536b56fdeeca | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/storage/v20210401/encryption_scope.py | 6a96d42af449b84f8c8ce339996a18581fd0adb2 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 17,446 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
8ba2e1d1a7dd1c30e8a51f573682ad69ca86c3a5 | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /systrace/systrace/decorators.py | 8545eaac83a986ba07ccf8d3d8f5e450b9ede645 | [
"BSD-3-Clause"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 1,238 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
def HostOnlyTest(func):
"""Decorator for running unit tests only on the host device.
This will disable unit tests from running on Android devices.
""... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
a361554f5dad634f34447cdfe1a41122e44a0a07 | 8f8498bb6f56b19d45a1989c8113a077348c0a02 | /백준/Gold/말이 되고픈 원숭이.py | 46295228740c2fdbc91505c286b5dad4b556c089 | [] | no_license | gjtjdtn201/practice | a09b437c892b0b601e156c09cb1f053b52fab11b | ea45582b2773616b2b8f350b927559210009d89f | refs/heads/master | 2021-01-01T13:29:46.640740 | 2020-11-28T00:55:37 | 2020-11-28T00:55:37 | 239,299,485 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | import sys
sys.stdin = open('말이 되고픈 원숭이.txt', 'r')
from collections import deque
import sys
input = sys.stdin.readline
def BFS():
while queue:
a, b, jump = queue.popleft()
if a == H-1 and b == W-1:
print(visit[a][b][jump]-1)
return
if jump < K:
monkey(a,... | [
"gjtjdtn201@naver.com"
] | gjtjdtn201@naver.com |
cde6425b065b34539b69cfdaeedad2b56631949b | cbd1c52de6cd45208ecce076c238dfc75cebd70a | /check_restfulapi_cluster.py | 7b0a74cda346221e1103d4859b6468d17aefbb0f | [
"Apache-2.0"
] | permissive | enterpriseih/distributed-realtime-capfaiss | 2e20cad0c788c0700df948b6a46be52d91ac5b9b | 3346f540b6c9d17a6be446fefa8c9b79164929d9 | refs/heads/main | 2023-08-16T20:30:20.807161 | 2020-12-11T02:50:41 | 2020-12-11T02:50:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,598 | py | import sys
sys.path.append('core.zip')
import json
import numpy as np
from core.utils.utils import NpEncoder
import requests
import argparse
from core.utils.udecorator import elapsed_time
import time
headers = {
# 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51... | [
"liuning11@jd.com"
] | liuning11@jd.com |
47949d71e67aab2c8326b7adfb8dd5c830cf7c92 | 4381f8499b38abb995a3495721802179e9a5868f | /cloudbroker/actorlib/authenticator.py | 9b9692b826caaf75fe0587a7eca5af0628a45174 | [] | no_license | rainmanh/openvcloud | 49733d9e87f499bcdd3d9a97393caac22b10c1c1 | 50a9d1d6d9d105fc7812eaa44f395e0f092e0ef8 | refs/heads/master | 2021-06-26T22:50:40.620705 | 2017-08-21T13:20:40 | 2017-08-21T13:20:40 | 103,622,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,769 | py | from js9 import j
from JumpScale9Portal.portal import exceptions
from .cloudbroker import models
class auth(object):
def __init__(self, acl=None, level=None):
self.acl = acl or dict()
for key in self.acl:
if key not in ['account', 'cloudspace', 'machine']:
raise ValueE... | [
"deboeck.jo@gmail.com"
] | deboeck.jo@gmail.com |
3925ddc8929dab5fdcfe92af27724f8b26c01938 | 9806c35c4acfa16e56535970dbe5f84271b67664 | /eod_aps/wsdl/cta_strategy_wsdl/cta_strategy_wsdl_assemble.py | 71c81c7c89cbf04204b023b497654d74226099a3 | [] | no_license | dsjmhjs/python_eod | a8e3513c77a37cfebf2f21a55bfb19449b8a013b | 48207dd15e7079ef5fd2cf999367c429087197ea | refs/heads/master | 2020-06-25T23:22:30.874309 | 2019-07-29T10:26:02 | 2019-07-29T10:26:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | # -*- coding: utf-8 -*-
import socket
from SimpleXMLRPCServer import SimpleXMLRPCServer
from eod_aps.wsdl.cta_strategy_wsdl.strategy_init_tools import backtest_init
from eod_aps.wsdl.cta_strategy_wsdl.load_strategy_parameter_tools import load_strategy_parameter
from eod_aps.wsdl.cta_strategy_wsdl.strategy_online_offlin... | [
"123456789"
] | 123456789 |
a0a5a76363e80cfc5a89359595d80aa2fb243154 | e0980f704a573894350e285f66f4cf390837238e | /.history/news/models_20201124143954.py | a2869c41e721c2526bbf773e0ca6be950d1e2aec | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | from django.db import models
from wagtail.contrib.forms.models import AbstractEmailForm
# Create your models here.
class NewsPage(AbstractEmailForm):
tempalte ='news/news_page.html'
leanding_page_template = 'news/news_page_leading.html'
subpage_types = []
max_coun = 1
intro = RichTextField(blan... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
05a4146fb28b5f723da1e8ab746ca4eb4e677b6b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03011/s395360833.py | 44b3d72ee3c129c4de5a06d9a9944ff6210fa8d1 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | a, b, c = [int(i) for i in input().split()]
d = a + b
e = a + c
f = b + c
print(min(d, e, f)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
287ffcfa056904f0ad86c399480127764911db51 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /kQayLoFNx4QgWahHu_2.py | bb1af1605885be1f995a2ebb66e86374b3d9b1ed | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | """
R, a programming language used for Statistics and Data Analysis, has the
function `order`, which returns a list with the indices needed to sort the
original vector(∗).
For example:
my_list = [1, 3, 3, 9, 8]
# Ordered would be: [0, 1, 2, 4, 3]
In plain words, `order` tells you what elements to look at ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
fea56c3ed93ad23d5f94bf01932101dfd8229ae3 | 29e526fb77bc4c13082a0f9c0f4104684a01893b | /apps/shared/tests/__init__.py | e2701bc458fa041f89d343db30d387d028135fda | [
"BSD-3-Clause",
"MIT"
] | permissive | Hugochazz/affiliates | 767034519426a657c0e9b3e38fee94cc3e0042ca | e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1 | refs/heads/master | 2020-12-25T13:51:53.974167 | 2012-10-30T14:55:50 | 2012-10-30T14:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,655 | py | from contextlib import contextmanager, nested
from functools import wraps
from smtplib import SMTPException
from django.conf import settings
from django.contrib.sessions.middleware import SessionMiddleware
from django.core.mail.backends.base import BaseEmailBackend
from django.core.management import call_command
from ... | [
"mkelly@mozilla.com"
] | mkelly@mozilla.com |
632ca58d7b0bc344597473fc66f370f4e79ffa9f | 5f22ddbd3eeb99709e43e7b9a7958c9987c7efa4 | /__competitions/2016/02_15_w19/05.py | 837fdc9e769430694fa5c641b0205db0b1b6dd68 | [] | no_license | salvador-dali/algorithms_general | 04950bd823fc354adc58a4f23b7d2f3d39664798 | aeee3356e2488c6fab08741b1ac26e8bd5e4ac0d | refs/heads/master | 2020-12-14T06:24:10.466601 | 2016-07-17T06:00:17 | 2016-07-17T06:00:17 | 47,397,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,629 | py | def getArraysFastEven(n, k):
if k == 1:
return tuple([val for pair in zip(range(n / 2, 0, -1), range(n, n/2, -1)) for val in pair])
if k == 2:
return tuple([val for pair in zip(range(n / 2 + 1, n + 1), range(1, n / 2 + 1)) for val in pair])
return -1
def getArraysFastOdd(n, k):
d={
... | [
"dmytro@knowlabs.com"
] | dmytro@knowlabs.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.