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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c17e38fa4503217660d4fdf3bb600bbf55492b99 | dd8363acd9a028d9b6432936d72e7a5344077c20 | /plugins/modules/aws_waf_condition.py | 17b923982606efcb4bd1e6356bf61ccd0a18bef6 | [] | no_license | gundalow-collections/amazon | 5d437c41af5e3cfa73731c9cd2c08b66c7480b43 | 23c743b63f58ba97960479e230b462fb1c90cc95 | refs/heads/master | 2020-08-28T04:53:02.641829 | 2019-10-25T19:40:04 | 2019-10-25T19:40:04 | 217,595,855 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 27,859 | py | #!/usr/bin/python
# Copyright (c) 2017 Will Thames
# Copyright (c) 2015 Mike Mochan
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DO... | [
"brian.coca+git@gmail.com"
] | brian.coca+git@gmail.com |
c999f446abdcd51b5f631e83efc75a0692f857d4 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/delete_environment_response.py | 89e2c803dbba695be0d35c6fcf246c7ad5173f40 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 2,219 | py | # coding: utf-8
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class DeleteEnvironmentResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
e7fdb0f588c2175612d8dd3609718dfafbf2427b | 3e2bc48b1242ea3e5fadb22a62393fc954ee9be9 | /search_2d.py | a6840a7e839d7ff8ff658c9fa32c321bed3e747d | [] | no_license | Cbkhare/Challenges | 397e9c9d50f3408b7a510d68d7484a249afa1968 | 0ae57bfbb2579c8b80af8708cd408d9b858d9d28 | refs/heads/master | 2020-12-18T11:47:27.669359 | 2020-08-22T11:20:46 | 2020-08-22T11:20:58 | 40,669,940 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | class Solution:
# @param A : list of list of integers
# @param B : integer
# @return an integer
def searchMatrix(self, A, B):
s = 0
e = len(A)-1
#finding suitable tuple
while s<=e:
m = int((s+e)/2)
if A[m][0]==B or A[m][len(A[m])-1]==B: ... | [
"chitrabasukhare89@gmail.com"
] | chitrabasukhare89@gmail.com |
1fdee976815be3563dbbaa213d2ecc1f47d8190c | 55defa28b5bd395e7ead2f9ca848f378ee2c8b13 | /apps/microtvm/ethosu/convert_labels.py | 0b468b9e069d56cd6793c2537c15352c8bd0edb8 | [
"Apache-2.0",
"BSD-3-Clause",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | neo-ai/tvm | 456d48c8d80bd7190c91b488b8f9d6cf22918706 | da529bf421fcfddd914b41bbe9bf9d5863671266 | refs/heads/dev | 2023-03-06T03:28:18.303189 | 2022-05-09T04:25:16 | 2022-05-09T04:25:16 | 167,632,700 | 101 | 43 | Apache-2.0 | 2023-02-17T20:49:09 | 2019-01-26T00:35:54 | Python | UTF-8 | Python | false | false | 1,561 | 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... | [
"ylchobe@gmail.com"
] | ylchobe@gmail.com |
daac53d3aec804319fcff6287426b1091abd6940 | 78eb766321c7ed3236fb87bb6ac8547c99d0d1a4 | /oneYou2/oneyou/panels.py | 6a315443121d9470f319f398354f9390cd21a1a9 | [] | no_license | danmorley/nhs-example | 9d7be76116ed962248e1f7e287355a6870534f5d | ae4b5f395d3518ee17ef89348ed756c817e0c08c | refs/heads/master | 2022-12-13T02:13:18.484448 | 2019-02-28T11:05:31 | 2019-02-28T11:05:31 | 203,353,840 | 1 | 0 | null | 2022-12-07T04:29:46 | 2019-08-20T10:30:15 | Python | UTF-8 | Python | false | false | 868 | py | from wagtail.core import blocks
from dctcmsbase.blocks import ImageBlock, SimpleCtaLinkBlock
from dctcmsbase.panels import Panel
from .blocks import ActionChooserBlock
class ActionGroupPanel(Panel):
title = blocks.CharBlock(required=True)
actions = blocks.StreamBlock([
('action_panel', ActionChooser... | [
"yohan.lebret@gmail.com"
] | yohan.lebret@gmail.com |
b6adc14641810224411f49f1df6e5e74fdbf527b | 7b02411227428bb746e7622736dc006ee24ca925 | /fhirclient/models/library.py | 8af0ffebb6ea702791195becb1e25f5376ce5b74 | [] | no_license | NCATS-Tangerine/CPKG | 81c74abaec8de75ad769724e84d893dec117cf97 | 92b6079d61bdb975a0a4bc08879f56b686ff08ef | refs/heads/master | 2022-12-10T17:55:52.586808 | 2019-08-20T20:19:56 | 2019-08-20T20:19:56 | 202,387,355 | 0 | 0 | null | 2022-12-08T06:01:57 | 2019-08-14T16:29:04 | Python | UTF-8 | Python | false | false | 5,148 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.1.0-0931132380 (http://hl7.org/fhir/StructureDefinition/Library) on 2019-08-06.
# 2019, SMART Health IT.
import sys
from dataclasses import dataclass
from typing import ClassVar, Optional, List
from .fhirabstractbase import empty_list
from .atta... | [
"solbrig@jhu.edu"
] | solbrig@jhu.edu |
c420285459f148180ff1921a50ffab2efb8d8b75 | 80301f1cffc5afce13256e2ecab6323c5df00194 | /en.3rd/py/U4250.py | 3de1f159f90364811e78850fc49acb809749875c | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 23,550 | py | from ED63RDScenarioHelper import *
def main():
SetCodePage("ms932")
CreateScenaFile(
FileName = 'U4250 ._SN',
MapName = 'Gaiden2',
Location = 'U4250.x',
MapIndex = 1,
MapDefaultBGM = "ed60230",
Flags ... | [
"ZJ.Yang@qq.com"
] | ZJ.Yang@qq.com |
0b4aee61613cf924c83d7e31c1a763bad5afc4fc | fc3f784c8d00f419b11cbde660fe68a91fb080ca | /algoritm/20하반기 코딩테스트/.Algorithm정리/.Sort/카운팅정렬.py | 8caac0113d01dbcbb04270850a31fc1e1e779773 | [] | no_license | choo0618/TIL | 09f09c89c8141ba75bf92657ac39978913703637 | 70437a58015aecee8f3d86e6bfd0aa8dc11b5447 | refs/heads/master | 2021-06-25T07:01:34.246642 | 2020-12-21T04:57:13 | 2020-12-21T04:57:13 | 163,782,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import sys
sys.stdin = open('sort.txt','r')
# 카운팅소
# 시간복잡도 O(N)
# 속도는 빠르나 최대값을 구해 카운팅 리스트를 만들어야하므로 숫자가 매우크면 메모리면에서 비효율적이다.
Counting=[0]*10001
N=int(input())
for _ in range(N):
Counting[int(input())]+=1
for i in range(10001):
sys.stdout.write('%s\n'%i*Counting[i]) | [
"choo0618@naver.com"
] | choo0618@naver.com |
5a6f631c2f1f0a05ab67479d8b80d8c70214d6be | d86c5aa92a9763510b539776510ad9795d33ae89 | /September 2020/04-Comprehension/Exercises/03-Capitals.py | d9a4cbd0416acc1d90c7362e5e777823a8343733 | [
"MIT"
] | permissive | eclipse-ib/Software-University-Professional-Advanced-Module | 42e3bd50ac5f0df8082add29f4113cffb87889e1 | 636385f9e5521840f680644824d725d074b93c9a | refs/heads/main | 2023-02-13T06:02:53.246980 | 2021-01-06T21:12:14 | 2021-01-06T21:12:14 | 306,282,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | countries = [i for i in input().split(", ")]
cities = [j for j in input().split(", ")]
result = list(zip(countries, cities))
print('\n'.join([' -> '.join(map(str, m)) for m in result])) | [
"65770519+eclipse-ib@users.noreply.github.com"
] | 65770519+eclipse-ib@users.noreply.github.com |
f04d052fb6f2ef695fe827eb645fe32bb8f6e584 | 48de70e198d6c8f446dcba7efcebbae971ede3b3 | /FireHydrant/Analysis/StudyLeptonjet_twoTkDist.py | 2a8840d90edf89fe630d08dcd350ac78a8e50ea8 | [] | no_license | phylsix/FireHydrant | 9e2eb95b9e20c2fcc38fb42af572a5d7ce3de7d1 | 0848bbe5595b73ee4b4b15aec00f5723a9a58752 | refs/heads/master | 2020-06-16T00:27:20.157672 | 2019-12-24T23:06:40 | 2019-12-24T23:06:40 | 195,430,826 | 0 | 3 | null | 2019-10-01T22:39:25 | 2019-07-05T15:24:18 | Jupyter Notebook | UTF-8 | Python | false | false | 16,266 | py | #!/usr/bin/env python
"""
leptonjet, any two track distance, min/max
"""
import argparse
import awkward
import coffea.processor as processor
import matplotlib.pyplot as plt
import numpy as np
import uproot
from coffea import hist
from coffea.analysis_objects import JaggedCandidateArray
from FireHydrant.Analysis.Datase... | [
"siweinan@gmail.com"
] | siweinan@gmail.com |
38b776715eb9d24172f3564103a688e6bb5d0178 | 3996710e5168e540bab07efb48aaf410a39dbdb5 | /app/tests/edgecases_test.py | 6d224bef7d8096f0ffa9d4c44ccfb0d78108b73a | [] | no_license | gkarumba/i-Reporter-endpoints | 860476d212a4f2b0019276cff99dce54c5d99e6a | 0c4f2a4f73a08cbb3af1526d642cb4e58aad433f | refs/heads/develop | 2022-12-10T16:20:31.866917 | 2019-02-25T15:45:25 | 2019-02-25T15:45:25 | 159,448,879 | 0 | 1 | null | 2022-12-08T01:27:15 | 2018-11-28T05:31:13 | Python | UTF-8 | Python | false | false | 6,566 | py | import unittest
import json
#local imports
from app import create_app
# from app.users.v1.database import ReportDB as db
class TestEdgeCases(unittest.TestCase):
"""
Class for the methods used in testing
"""
def setUp(self):
"""
Method for setting up the tests
"""
... | [
"gachegua@gmail.com"
] | gachegua@gmail.com |
81be820e9818c7daa18cc5562bcbc57067355835 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03167/s803633757.py | 9d0a29bc411c8f1abfa4327fc09e0435eddea652 | [] | 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 | 353 | py | h,w=map(int,input().split())
a=[]
for _ in range(h):
a.append(list(input()))
dp=[[0]*w for _ in range(h)]
dp[0][0]=1
for i in range(h):
for j in range(w):
if i+1<h and a[i+1][j]=='.':
dp[i+1][j]+=dp[i][j]%(10**9+7)
if j+1<w and a[i][j+1]=='.':
dp[i][j+1]+=dp[i][j]%(10**9... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8a90d85f8de2ea5d92bc3b14d1b2e6622e2dd24c | b366806c99ac30e77789f80417978902e25628da | /boto3_exceptions/cloudhsm.py | 5598948d1f8258084be788a9a076f1f7e0f2484b | [
"MIT"
] | permissive | siteshen/boto3_exceptions | 9027b38c238030859572afec7f96323171596eb7 | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | refs/heads/master | 2020-04-19T03:15:02.525468 | 2019-10-23T07:37:36 | 2019-10-23T07:37:36 | 167,928,540 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import boto3
exceptions = boto3.client('cloudhsm').exceptions
CloudHsmInternalException = exceptions.CloudHsmInternalException
CloudHsmServiceException = exceptions.CloudHsmServiceException
InvalidRequestException = exceptions.InvalidRequestException
| [
"xiaojiang@actwill.com.cn"
] | xiaojiang@actwill.com.cn |
c36c612cd5539c11e5bcbefa839e7d410393caa3 | a9375ae0cecba2f70e01fe9455af7173dab6a3da | /scheduled_tasks/get_earnings_calendar.py | 12645e1d3e6deded18d9d9cdc81aa99bce37a080 | [
"MIT"
] | permissive | kannavue/Stocksera | ca3c2680371fb106e7850ed7a1b956f64e56c8a0 | 80fbbfb7d38cf8bf09367d67bda85bdc0c7801d4 | refs/heads/master | 2023-09-04T01:59:27.353642 | 2021-11-04T13:13:09 | 2021-11-04T13:13:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,643 | py | import os
import sys
from datetime import datetime, timedelta
import requests
import sqlite3
import pandas as pd
from bs4 import BeautifulSoup
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import scheduled_tasks.reddit.stocks.fast_yahoo as fast_yahoo
conn = sqlite3.connect(r"database/database.db", c... | [
"tanguanquan@yahoo.com"
] | tanguanquan@yahoo.com |
0639b39a96b051940451a54da1221c6bf1e814f2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02420/s378286078.py | 77850131f8f3cd8c3484b886ee00cc6d56f9afd8 | [] | 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 | 210 | py | XS = open(0).read().split()
i = 0
while True:
t = XS[i]
i += 1
if t == "-":
break
n = int(XS[i])
i += 1
m = sum(map(int, XS[i:i+n])) % len(t)
i += n
print(t[m:] + t[:m])
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
769779d81342c9a6f1ad95b2c7fe17b6a52d270b | fd62d8096dc95923341cfac29f0209bfbea887b4 | /models_evaluation/xgboost/grid_search/jobs_test/10.0_0.3_0.0_200.0_10.0.job.py | 32a08e420698ad9d00a2c007c6035e15427a0a2f | [] | no_license | Eulerianial/premise-selection-deepmath-style | 06c8f2f540bc7e3840c6db0a66c5b30b5f4257f9 | 8684a59b5d8beab1d02a3a7c568a16c790ea4b45 | refs/heads/master | 2021-07-17T17:04:13.472687 | 2017-10-25T13:54:44 | 2017-10-25T13:54:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | import xgboost as xgb
import argparse
import sys
import os
from saving_loading import *
#####################################
p = {
"max_depth":int(10.0),
"eta":0.3,
"gamma":0.0,
"num_boost_round":int(200.0),
"early_stopping_rounds":int(10.0)
}
#####################################
if __name__ == ... | [
"bartoszpiotrowski@post.pl"
] | bartoszpiotrowski@post.pl |
58585a39619b83e34507d6342f215edcfc30d201 | b0210f0320e47e3384c43c56e686844081374c6d | /thrombin_input/TI_run/1b/1b_3a_wat/set.py | 3c3f3d2de7d5b111f5c0d5eadc762be43393a7cb | [] | no_license | taisung/MSU_Rutgers-GTI | 2531a9346e82131a38dfdef727380f1c100f5def | 3914a07a6be9af6d3d968288b9d4c3049fc10066 | refs/heads/master | 2021-09-14T05:45:38.906495 | 2018-05-08T17:42:16 | 2018-05-08T17:42:16 | 114,943,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | import os
dir = '/mnt/scratch/songlin3/run/thrombin/ligand_final/final/1b_resp/wat/ti_one-step/1b_3a/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_prodin = filesdir + 'temp_prod.in'
temp_pbs = filesdir + 'temp.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.6... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
26fa17eb3361adb486ccc9c85a0b05c9f096a2a3 | 7ae82923ef036e742b4b4a9d5ef21312f5535f8a | /pr 5.py | 5127bdf45845ce15a680f65161e71ae26180e089 | [] | no_license | Adikanatbek/python2 | 91d5e8458ea9a2b32f11134bf9462a7b40eec1de | e83fce00c3e5dcbf01f0e7cf0d3a3d8aeb71b011 | refs/heads/main | 2023-02-21T04:06:46.977982 | 2021-01-27T11:58:20 | 2021-01-27T11:58:20 | 333,441,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | n=85
m=(85**2)
e=n/3
if n%2==0:
print('Chetnoe')
if n%2!=0:
print('Ne chotn')
if (m>1000):
print('Yes')
if (m<1000):
print('No')
if e==True:
print('Da')
else:
print('No')
| [
"adikanatbekov5@gmail.com"
] | adikanatbekov5@gmail.com |
1a1924ddabb956a3ce933a55dfd5e3ecf5815101 | 52528b0447402f6ed3faddd6c7d32154b550094b | /mitmproxy/proxy2/commands.py | 25deca8beeb62a3872abed661c89f5a20edf9517 | [
"MIT"
] | permissive | sumonst21/mitmproxy | 0333c9902244f2c9f41c37ffb0814ec366a30a7e | b7efe9b2d4b986933f904912324b770dfb3e3da4 | refs/heads/master | 2023-01-30T13:22:57.682505 | 2020-12-13T19:07:47 | 2020-12-13T19:07:47 | 321,182,517 | 0 | 0 | MIT | 2023-09-04T20:30:24 | 2020-12-13T23:32:10 | null | UTF-8 | Python | false | false | 4,114 | py | """
Commands make it possible for layers to communicate with the "outer world",
e.g. to perform IO or to ask the master.
A command is issued by a proxy layer and is then passed upwards to the proxy server, and from there
possibly to the master and addons.
The counterpart to commands are events.
"""
import dataclasses
... | [
"git@maximilianhils.com"
] | git@maximilianhils.com |
c8084f002b9bb9a7d7903c5f549b536412fc1fb9 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part006739.py | ab09fc1f8d887b3f57ad51ae1940dcf1a11b173d | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,795 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
a0046e255f89860194b7e4b01466961155ece198 | 72467bcad6e490a9b39aae8c0f0eeb17bfbbe0ab | /examples/flask/app.py | 5c8cf1898b8dde3072a90a155cccc5cc71945169 | [
"BSD-3-Clause"
] | permissive | myblup/restless | b0afb3d0250eb3aaee6f18825eb93fa280fa127c | a574b0a51b267a3412090cb5d4e6e594aaadfe49 | refs/heads/master | 2021-01-25T13:35:35.367513 | 2018-06-21T10:22:59 | 2018-06-21T10:22:59 | 123,589,745 | 0 | 0 | BSD-3-Clause | 2018-03-02T14:33:58 | 2018-03-02T14:33:58 | null | UTF-8 | Python | false | false | 1,630 | py | from flask import Flask
import redis
from restless.fl import FlaskResource
import time
app = Flask(__name__)
class UserResource(FlaskResource):
def __init__(self, *args, **kwargs):
super(UserResource, self).__init__(*args, **kwargs)
self.conn = redis.StrictRedis(host='localhost', port=6379, db=0)
... | [
"daniel@toastdriven.com"
] | daniel@toastdriven.com |
715c49250069d2c2e62404ed78b8db293a658e4a | 7884d12ca6b1b50df0266ab62575203e461fe588 | /tools/genesisStats.py | 6776a4ca09ad02118cba32d6dcc23cfb0e6b1ab8 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | sfinder/bitshares-pytools | 29bfbbfdea63871dfbba6efd2aeba094d1dac7ce | d6645c05dfe707462afa8ff081be7270e37d0e9a | refs/heads/master | 2020-12-26T04:05:42.029122 | 2015-08-13T16:43:35 | 2015-08-13T16:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | #!/usr/bin/python3
import json
from pprint import pprint
from datetime import datetime
from prettytable import PrettyTable
import statistics
from numpy import *
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from numpy.random import randn
from matplotlib.ticker import FuncFormatter
#############... | [
"mail@xeroc.org"
] | mail@xeroc.org |
7030d8b6d3e20ac04555dd9a4241088a5f82223a | 61ce57892c172f71286a39c8c863aa8a7b29484b | /stampede_results/resultplot_mock.py | 34f7635fcedce6023633f2fc9dc7e0b871a2aa45 | [] | no_license | bd-j/cetus | cfbb46aa2d94fdf982a7906bc8bdcbe9375df67c | c9f7e0972184a0c2fcc7add6e766733b7a46b149 | refs/heads/master | 2021-05-01T00:06:10.518322 | 2015-02-17T16:49:46 | 2015-02-17T16:49:46 | 21,367,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,673 | py | import sys, pickle
import numpy as np
import matplotlib.pyplot as pl
from matplotlib import gridspec
from bsfh import read_results as bread
from bsfh.gp import GaussianProcess
from bsfh import sps_basis
sps = sps_basis.StellarPopBasis()
gp = GaussianProcess(None, None)
def comp_samples(thetas, model, inlog=True, phot... | [
"benjamin.duncan.johnson@gmail.com"
] | benjamin.duncan.johnson@gmail.com |
10d8c197e6d9310c29bcbf462986ec61fa8498d4 | 0801ce10fa308ef473d9604e6d8362e1b2099788 | /chapter_6/flatten_dict.py | e053b4e829510ceab438c3fa9dfad17a7851b038 | [] | no_license | shibinp/ANAND_PYTHON | 807c7437ea3798fa25c9589ead1fed782addf368 | dcc482022ae9b86434ad8f7692239a2e7b3669cb | refs/heads/master | 2021-01-01T17:04:52.588005 | 2014-11-10T08:52:03 | 2014-11-10T08:52:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | #Write a function flatten_dict to flatten a nested dictionary by joining the keys with . character.
def flatten_dict(a,result=None):
if result==None:
result={}
for z in a:
if isinstance(a[z],dict):
v=a[z].items()
l=0
kl=[]
res={}
for d in v:
kl.append(".".join([z,v[l][0]]))
l+=1
hj=a[z].... | [
"shibinpmpmp@gmail.com"
] | shibinpmpmp@gmail.com |
60ae8668fa40f7ddacf16bca64cbafa79925280f | 7b0e84d1af915d5133681c79cec77f475d9d2b3f | /popup/migrations/0015_auto_20180222_1334.py | 7097fc0bff06e1407f046c9a678ef80794d931f7 | [] | no_license | kshutashvili/teamfactory_py | c253511eb7e0d8d1ddfa9ad6805f780586eff7a5 | 5266fb51cc458a1a9da167566540213054eee49f | refs/heads/master | 2022-12-14T20:37:35.213963 | 2018-03-17T12:02:00 | 2018-03-17T12:02:00 | 203,862,369 | 0 | 0 | null | 2022-12-08T01:05:06 | 2019-08-22T19:47:15 | JavaScript | UTF-8 | Python | false | false | 463 | py | # Generated by Django 2.0 on 2018-02-22 13:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('popup', '0014_popupthankseventregister'),
]
operations = [
migrations.AlterModelOptions(
name='popupthankseventregister',
opti... | [
"kpi.study1@gmail.com"
] | kpi.study1@gmail.com |
b40f634039a7c3382175427081d58b281a0a09f0 | 3efd418b04bb830e6230f42fa1427eca1eecfd23 | /threesplit/__init__.py | 0502c1a7ccce6bfb5aaa8e4dc43bacc3aaf999a9 | [
"MIT"
] | permissive | kmedian/threesplit | 439f3702207740d44e0e82bed186966c579ecfb1 | b40a68f18df887eac400cd5f1b05b41a0c08ebbd | refs/heads/main | 2021-06-06T17:27:22.735948 | 2021-04-27T18:01:14 | 2021-04-27T18:01:14 | 154,453,064 | 0 | 0 | MIT | 2021-04-27T18:01:15 | 2018-10-24T06:53:13 | Python | UTF-8 | Python | false | false | 35 | py | from .threesplit import threesplit
| [
"554c46@gmail.com"
] | 554c46@gmail.com |
1a43f6178ab6cd3620b9c558b02147875ab41d28 | dcee9df798b95d56b853d076dd03618275d29869 | /templates/runnable.py | 4bbecc3c93bdc815fb5e1662084b8572f75173fd | [] | no_license | radiaconu/kwery | 987b1d05834f2cab28ab30751aff5dd6616a609f | 5e99f38a0ce81133c9d0edf7d9dd1ff8eb0deecd | refs/heads/master | 2020-12-02T08:08:53.199457 | 2017-07-10T12:37:04 | 2017-07-10T12:37:04 | 96,775,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 24 21:00:37 2015
@author: Raluca Diaconu (diaconu.raluca@gmail.com)
Runnable template. Something that runs on a machine:
- Node
- Proxy
- Dispatcher
- Coordinator
- etc.
"""
class Runnable(object):
def __init__(self, _config_file):
pass
def run... | [
"you@example.com"
] | you@example.com |
0c9454765a52dfe7a473d92ea0c7b44631078137 | 31e00afe8f782bd214f8e32949be928a51e5de39 | /Hangman/Problems/Checking email/task.py | 93af5d8c1332cfbac76ed9678a133606b104ff8f | [] | no_license | akocur/education | 65e2a0640bab5e9939c5692333fa2f500c9feb0b | d0a890861cd83dcc61ff2af6cfbb75c157fbaf02 | refs/heads/master | 2023-05-24T02:38:04.695665 | 2020-10-26T14:09:07 | 2020-10-26T14:09:07 | 269,410,671 | 0 | 0 | null | 2023-05-22T22:47:45 | 2020-06-04T16:32:11 | HTML | UTF-8 | Python | false | false | 219 | py | def check_email(string):
if ' ' in string:
return False
if not string.count('@') == 1:
return False
if not string.count('.', string.index('@') + 2) == 1:
return False
return True
| [
"akocur@yandex.ru"
] | akocur@yandex.ru |
cbb511eff2a2e9f35fde74e6c8aaf5921bce78ef | 240ff4c82e5f3738b33699d69fe4d81abfdd7d1a | /algorithms/greedy_and_divide_and_conquer/3_scheduling/solution/.model_solution.py | 6fcbf0060e6225af7beee6b56a1ff561457d2a75 | [] | no_license | FiodorGrecu/Exercises | f816549a3153d25ce2e7906789bfd0fac17d8d4a | 21121a0ca385883953b2f5a9886add40efa21e6f | refs/heads/master | 2023-04-18T15:11:04.023546 | 2021-04-22T00:39:41 | 2021-04-22T00:39:41 | 283,240,812 | 0 | 0 | null | 2020-08-20T18:43:57 | 2020-07-28T14:42:49 | Python | UTF-8 | Python | false | false | 335 | py | def task_schedule(tasks):
tasks.sort(key = lambda t: t[1])
num_tasks = 0
#cur_start = tasks[0][0]
cur_end = 0
for t in tasks:
if t[0] >= cur_end:
cur_end = t[1]
num_tasks += 1
return num_tasks
tasks = [(14, 15), (8, 13), (9, 11), (11, 13), (14, 16)]
print(task_s... | [
"avelikevitch@gmail.com"
] | avelikevitch@gmail.com |
3c21e1d8541a2effb8224335a91b11a0a46fdc39 | 4aef4598e8324b3893bf74079dea59ed0e05ea39 | /pynsot/commands/cmd_sites.py | bf314729d69329c5efe5870b300205556d2e9859 | [
"Apache-2.0"
] | permissive | jathanism/pynsot | 045efe05d8a8544a9416609e78d6dc6c132a0be2 | c5ca375c94b4c0d341f6a0c0075969ac32392650 | refs/heads/master | 2023-04-16T14:51:56.522469 | 2019-03-12T18:59:39 | 2019-03-12T18:59:39 | 29,377,847 | 0 | 0 | NOASSERTION | 2023-04-03T23:52:54 | 2015-01-17T02:59:15 | Python | UTF-8 | Python | false | false | 4,503 | py | # -*- coding: utf-8 -*-
"""
Sub-command for Sites.
In all cases ``data = ctx.params`` when calling the appropriate action method
on ``ctx.obj``. (e.g. ``ctx.obj.add(ctx.params)``)
Also, ``action = ctx.info_name`` *might* reliably contain the name of the
action function, but still not sure about that. If so, every fu... | [
"jathan@gmail.com"
] | jathan@gmail.com |
9cf0dab43858ad9d93fb6546de3b9c983bb04b5f | 48b2328b6b1f5c64ae693c1f16a353c949f93c0c | /Leetcode/885_BoatsSavePeople/sol.py | e96280d337ab31b380023f416d3315fe3fb765f8 | [] | no_license | salaschen/ACM | 1f766aa7449f1ed6ac76c81bff7ecc0756f20a60 | fe414fff98c5d49ea374e24ef50c0ee4f6c66be2 | refs/heads/master | 2022-03-20T19:15:20.481335 | 2022-03-16T09:34:16 | 2022-03-16T09:34:16 | 90,522,481 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | class Solution:
def numRescueBoats(self, people, limit):
result = 0 ;
people = sorted(people) ;
front, back = 0, len(people)-1 ;
while front < back:
f,b = people[front], people[back] ;
if f+b <= limit:
result += 1 ;
people[... | [
"ruowei.chen.aus@gmail.com"
] | ruowei.chen.aus@gmail.com |
564cad8e1ebe05af2a2cf8bceebf3aaa3e3a944e | 18017ff25b48ce5b163b70631eeac94bf3c65467 | /linkml_runtime/loaders/requests_ssl_patch.py | 5395af7daba62be016e224ca721c09057100559d | [
"CC0-1.0"
] | permissive | linkml/linkml-runtime | 700bea55878013de68ec7f53d1123bda4bb64694 | 8a8ee69db780eebf571d7344260b0e9bbfd88335 | refs/heads/main | 2023-08-20T16:11:25.231592 | 2023-08-02T18:03:33 | 2023-08-02T18:03:33 | 349,210,924 | 22 | 17 | CC0-1.0 | 2023-09-14T21:51:16 | 2021-03-18T20:38:43 | Python | UTF-8 | Python | false | false | 1,358 | py | import warnings
import contextlib
import requests
from urllib3.exceptions import InsecureRequestWarning
# ***** Taken from https://stackoverflow.com/questions/15445981/how-do-i-disable-the-security-certificate-check-in-python-requests
old_merge_environment_settings = requests.Session.merge_environment_settings
@con... | [
"solbrig@jhu.edu"
] | solbrig@jhu.edu |
1c07e0aa0076d045d8d00647b32457d097065dae | 4e30c855c253cc1d972d29e83edb9d5ef662d30a | /approval/models/__init__.py | 65ac12c49a34e3d78bc8fbce78c35c8516fd2058 | [
"MIT"
] | permissive | rajeshr188/django-onex | 8b531fc2f519d004d1da64f87b10ffacbd0f2719 | 0a190ca9bcf96cf44f7773686205f2c1f83f3769 | refs/heads/master | 2023-08-21T22:36:43.898564 | 2023-08-15T12:08:24 | 2023-08-15T12:08:24 | 163,012,755 | 2 | 0 | NOASSERTION | 2023-07-22T09:47:28 | 2018-12-24T17:46:35 | Python | UTF-8 | Python | false | false | 85 | py | from .approval import Approval, ApprovalLine
from .returns import Return, ReturnItem
| [
"rajeshrathodh@gmail.com"
] | rajeshrathodh@gmail.com |
d37c63bebc8e812804f968458edaf39f9e4790ed | 6b27179123529ee349e34ec5977a68feaa6ff6e3 | /src/collective/cmisquery/browser/views.py | a100262bac5a99db00e0a4af5eb0277fa08ed296 | [] | no_license | collective/collective.cmisquery | 3d374b279fb2173e0293663b1e2b56d98bcf3118 | feee47721779564ce9ddc200c6f467ab31add3e2 | refs/heads/master | 2023-03-22T15:30:41.592047 | 2013-05-28T09:35:56 | 2013-05-28T09:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2011 Infrae. All rights reserved.
# See also LICENSE.txt
# $Id$
from collective.cmisbrowser.errors import CMISConnectorError
from collective.cmisbrowser.cmis.api import CMISZopeAPI
from Products.Five import BrowserView
class CMISQueryView(BrowserView):
"""CMIS Query view
... | [
"thefunny@gmail.com"
] | thefunny@gmail.com |
0f102d30dfe288c212daff3e62348228791b9b10 | 3a01d6f6e9f7db7428ae5dc286d6bc267c4ca13e | /unittests/pytests/materials/TestMaterial.py | ffb11225a5030e9c36f1d4ab3ec73dd845a0b72b | [
"MIT"
] | permissive | youngsolar/pylith | 1ee9f03c2b01560706b44b4ccae99c3fb6b9fdf4 | 62c07b91fa7581641c7b2a0f658bde288fa003de | refs/heads/master | 2020-12-26T04:04:21.884785 | 2014-10-06T21:42:42 | 2014-10-06T21:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,822 | py | #!/usr/bin/env python
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
af4656ad829d72c3075e818611a697ac88172ee6 | 7ab429d70d67655e47097c2902c223a9d12f680f | /voting/models.py | 4425ea50a581e2568e315ab5cc9bf980cc65f40b | [] | no_license | darkdkl/voting_km | 379819bc4ebcaec55a9a6b472ce8242ba8bb8b5d | 2cf09c7dfcb540edb7595697fd9dcf29c95077ef | refs/heads/master | 2022-12-17T11:05:42.961535 | 2020-09-21T18:12:06 | 2020-09-21T18:12:06 | 296,884,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | from django.db import models
from django.urls import reverse
class Voting(models.Model):
name = models.CharField(max_length=255,verbose_name="Название")
date_start = models.DateTimeField(verbose_name="Дата начала")
date_finish = models.DateTimeField(verbose_name="Дата завершения")
early_count = models.... | [
"dark.dmake@gmail.com"
] | dark.dmake@gmail.com |
590fe75dcffac55ced75ce2616161c36dd4a82e4 | 0566cf76b456518875edecece15e763a36a4795f | /scrapers/fptplay_net.py | 7bb332ce193e164c02fd17a13de8aead5a512be1 | [] | no_license | theclonedude/Scraping_BeautifulSoup_phantomjs | 684b1f7a993e0d2555daa7a5455cf19bd29b0b1b | faf653feae46c21a72d13b2123cdebdb2f7c05d8 | refs/heads/master | 2023-03-16T19:36:14.867361 | 2018-06-14T14:21:02 | 2018-06-14T14:21:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | # coding=utf-8
from sandcrawler.scraper import ScraperBase, SimpleScraperBase
from sandcrawler.scraper.caching import cacheable
import re
class FptplayNet(SimpleScraperBase):
BASE_URL = 'https://fptplay.vn'
OTHER_URLS = ['https://fptplay.net']
SCRAPER_TYPES = [ ScraperBase.SCRAPER_TYPE_OSP, ]
LANGUAGE... | [
"stryokka@gmail.com"
] | stryokka@gmail.com |
f2dc48f5871b030ee3b769585f88de812a4fca79 | eaaaf281f73fca63b4eb649fc6133c89416d13bf | /week-03/day-2/31a.py | 0f358f2b9fc66f79ef3f4cfa6928a14a383b636e | [] | no_license | tpracser/PracserTamas-GF-cuccok | 87801dbe45acccffa9853269777d6a334bdbff4d | 6a152d76980881ef01abd1a648f3ea13eebd259d | refs/heads/master | 2021-09-01T15:48:03.556460 | 2017-12-27T20:00:12 | 2017-12-27T20:00:12 | 115,549,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | ae = 'Jozsi'
# create a function that greets ae
# def greet():
# return "Hello " + ae + "!"
#
# print(greet())
def greet(name):
print("Hello " + name + "!")
greet(ae)
| [
"t.pracser@gmail.com"
] | t.pracser@gmail.com |
a6d103e60777812023e5cc0dd47cd8c40ee70f78 | 63ba933a294865f65409635f62e0f1d59f725f37 | /src/arrays/findLHS.py | d10c50b871a71c90d68f69f4f3109da1a9d90e3c | [
"CC0-1.0"
] | permissive | way2arun/datastructures_algorithms | fc4302bdbb923ef8912a4acf75a286f2b695de2a | 4ea4c1579c28308455be4dfa02bd45ebd88b2d0a | refs/heads/master | 2021-12-07T04:34:35.732026 | 2021-09-30T12:11:32 | 2021-09-30T12:11:32 | 203,658,808 | 1 | 0 | null | 2020-08-08T15:55:09 | 2019-08-21T20:23:46 | Python | UTF-8 | Python | false | false | 1,680 | py | """
Longest Harmonious Subsequence
We define a harmonious array as an array where the difference between its maximum value and its minimum value is exactly 1.
Given an integer array nums, return the length of its longest harmonious subsequence among all its possible subsequences.
A subsequence of array is a sequence ... | [
"way2aru@yahoo.com"
] | way2aru@yahoo.com |
fdaa7eae858e6b3a8732a78b2736f731f5caa2c9 | b3d655616ec8a7caa12e0c65d89519dd0b055802 | /prediction.ml/python3/src/main/python/model_server_python3.py | 898f21346af84ea8b27fab5e95e3a1864d56a2a1 | [
"Apache-2.0"
] | permissive | akram-mohammed/pipeline | 0d295e62ffa8bfc09896170d6fb5fa6efcde4a0a | 5d97c8c66b8157230f98db3b0d2b69e446864a2f | refs/heads/master | 2021-01-23T12:54:48.491126 | 2017-06-02T21:42:47 | 2017-06-02T21:42:47 | 93,211,853 | 1 | 1 | null | 2017-06-02T23:50:52 | 2017-06-02T23:50:52 | null | UTF-8 | Python | false | false | 8,792 | py | #!/usr/bin/env python3
import os
import sys
import tornado.auth
import tornado.escape
import tornado.ioloop
#import tornado.options
import tornado.web
import tornado.httpserver
import tornado.httputil
#import tornado.gen
import dill as pickle
import fnmatch
import importlib.util
import tarfile
import subprocess
import... | [
"chris@fregly.com"
] | chris@fregly.com |
ce6f7f368edb1ea35f473a358c02d76ad64f0248 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Bert-text-classification_for_PyTorch/transformers/src/transformers/models/mbart/modeling_mbart.py | 8e2adaf9c6c706350ba530e2598a8bc1ebfcd2e9 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 85,452 | py | # coding=utf-8
# Copyright 2021, The Facebook AI Research Team and The HuggingFace Inc. team. 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.or... | [
"dongwenbo6@huawei.com"
] | dongwenbo6@huawei.com |
bd172b6f0d2673a5bcacfcda3a129a85696aa522 | 8287c1677795d23856edefecaf5e878f348e99ba | /biostar/forum/tests/test_api.py | b2ce3d5a2026ff96d03388f73f55a834b0419ff2 | [
"MIT"
] | permissive | ialbert/biostar-central | ba325593d6b3a9e2b1ebaddb6257b863b22eface | a051511350871dcd82bdf0b88ce5cda9fd9ef141 | refs/heads/master | 2023-08-30T06:07:44.892831 | 2023-07-24T15:43:02 | 2023-07-24T15:43:02 | 1,511,294 | 535 | 271 | MIT | 2023-02-15T18:49:10 | 2011-03-22T13:09:30 | Python | UTF-8 | Python | false | false | 2,059 | py | import logging
import os
import shutil
import datetime
from django.core import management
from django.urls import reverse
from django.test import TestCase, override_settings
from django.conf import settings
from biostar.forum import models, api
from biostar.utils.helpers import fake_request
from biostar.accounts.models... | [
"natay.aberra@gmail.com"
] | natay.aberra@gmail.com |
e2186cfa2eec3860b93e01f30a9beed1a7fe1a8d | 7ec04a925d5180e677dd8b4306ccd4a1ea0d96a5 | /leetcode/283_Move_Zeroes.py | 8c044fd6ef2b4cade53379dd62eea464ccea2c7f | [] | no_license | JianxiangWang/python-journey | 883e6a9f0b03ce2bd6fd71f272728dfc65c363b0 | f2c4f727689567e00ee06560132fca55a6fd9286 | refs/heads/master | 2020-03-25T22:54:23.462961 | 2019-02-06T07:55:03 | 2019-02-06T07:55:03 | 144,249,290 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | # coding=utf-8
#
# Copyright (c) 2018 Baidu.com, Inc. All Rights Reserved
#
"""
The 283_Move_Zeroes file.
Authors: Wang Jianxiang (wangjianxiang01@baidu.com)
"""
"""
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
Example:
Input: ... | [
"w51141201062@163.com"
] | w51141201062@163.com |
0ba105a4f76871172b554d5e9451e9dad4180d16 | 43b7ed3b713e2b5a3d90032911028acbf42aafc8 | /allocate3/apps/orders/managers.py | 05a3e2d65e736a3107d549c01a7495c91ae82a2a | [] | no_license | geeknam/A3 | f6e3e2c3ea819d05e5cdfc24da56c9ccd644f4c0 | d28d1122b086f63ce6d4c4b996f337a844dcbda4 | refs/heads/master | 2021-01-23T07:09:33.148914 | 2013-11-16T04:30:33 | 2013-11-16T04:30:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from django.db import models
from products.models import Product
class ManifestManager(models.Manager):
def bulk_create_products(self, data):
"""
data - list of dicts containing product data
"""
products = []
for entry in data:
products.append(Product(**entry))... | [
"emoinrp@gmail.com"
] | emoinrp@gmail.com |
2dc9c3a09a345d6a61867ded4481b7c96ca56539 | f4261971f4697d6c03c616bdf5684ed94ec8fc65 | /cmb_likelihood_utils.py | 69b7fe8a0cf2f21b5fbcca88f965c93b1cbd1c98 | [] | no_license | Kiiwi/COBE | a9d918124ec862935dac46207ca0706855c43bb8 | 24380e7a46e8d9b3a5bc74b61b7ae8d4dc32fed7 | refs/heads/master | 2021-01-25T06:18:03.674948 | 2017-06-06T18:24:53 | 2017-06-06T18:24:53 | 93,548,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,552 | py | # ****************************************************************
# Utility module for cmb_likelihood.py
# ****************************************************************
#
# The module contains the following functions, usage being
# returned_quantity = function(arguments)
#
# N_cov = get_noise_cov... | [
"tommy.lee.ryan@gmail.com"
] | tommy.lee.ryan@gmail.com |
fd343b639fdefb03115231d051ee48ef36c3204d | b9cd1b9758e58f00335900fd120e1d47c23600ce | /tests/test_idear.py | 10da643a01c1f561219bd0ace6ade0cd3c6d2d0b | [
"Apache-2.0"
] | permissive | Multiscale-Genomics/mg-process-fastq | 4fb7fef68526237f06312a3f137df031a448731c | 50c7115c0c1a6af48dc34f275e469d1b9eb02999 | refs/heads/master | 2020-04-12T06:46:01.100270 | 2018-11-19T16:05:03 | 2018-11-19T16:05:03 | 64,320,140 | 2 | 4 | Apache-2.0 | 2018-11-16T16:54:54 | 2016-07-27T15:29:25 | Python | UTF-8 | Python | false | false | 2,651 | py | """
.. See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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.... | [
"mark.mcdowall@gmail.com"
] | mark.mcdowall@gmail.com |
bc843ce0f1daf3e09c53a715a8a9e26e05d3d76f | 090026e83e6d4d86b68b64b929e2dac6e0d6d5ef | /core/urls.py | 05c936aee0f31a7a66b5a7f3de442eaa0f3bb58c | [] | no_license | Kazade/fpaweb | 281219ff634d603c2b6db8918b14b56c5bebe4b8 | 2170cea736f1a0e69fe93cd4c8e1c0757eefa9b3 | refs/heads/master | 2016-09-08T01:19:40.381254 | 2013-03-15T19:35:29 | 2013-03-15T19:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py |
from django.conf.urls import patterns, url
from django.conf.urls import include
from rest_framework.urlpatterns import format_suffix_patterns
from core import views
urlpatterns = patterns('',
url(r'^repositories/$', views.RepositoryList.as_view(), name='api-repository-list'),
url(r'^repositories/(?P<pk>[0-9]... | [
"kazade@gmail.com"
] | kazade@gmail.com |
d33ae1a4f75f20188769837c3516b4c12bcec572 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /vgbrdMw85i4C5sgS8_14.py | c9284b49d6d4b2b966021da8dd25d4dac7a42ca4 | [] | 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 | 647 | py | """
Write a function that takes a list of drinks and returns a list of only drinks
with **no sugar** in them. Drinks that contain sugar (in this challenge) are:
* Cola
* Fanta
### Examples
skip_the_sugar(["fanta", "cola", "water"]) ➞ ["water"]
skip_the_sugar(["fanta", "cola"]) ➞ []
skip_... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
de89cd258d63c86521d06a77b164668ec88d4876 | a29310948867f5f07109fcd225a84282ad7eea16 | /zeromq/request_reply/example/client.py | 2ef7df5a7ddac346909f2e0d7792674f844b102b | [] | no_license | likeweilikewei/Python-study-demo | 09b266c0756b6e340e8b8e3153a7e497be8ee1a9 | 7dd4bc851273a5815d8980f9857828abfa5364a7 | refs/heads/master | 2020-06-26T21:17:27.095532 | 2019-07-31T02:17:43 | 2019-07-31T02:17:43 | 199,760,324 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # coding=utf-8
'''
Created on 2015-10-10
你无法连续向服务器发送数据,必须发送一次,接收一次
REQ和REP模式中,客户端必须先发起请求
@author: kwsy2015
'''
import zmq
context = zmq.Context()
print('connect to hello world server')
socket = context.socket(zmq.REQ)
socket.connect('tcp://localhost:5555')
for request in range(1, 10):
print('send ', request, '...... | [
"1293120583@qq,com"
] | 1293120583@qq,com |
8ea2f1dbf98bbd5d6dc83242dc5ec0032e8bf82f | bbe7d6d59ef6d7364ff06377df9658367a19c425 | /encodings/cp037.py | 4bf84ec8e0245efff4ab058bba97b6400dfce08e | [
"Apache-2.0"
] | permissive | DedMemez/ODS-August-2017 | 1b45c912ad52ba81419c1596644d8db2a879bd9b | 5d6214732e3245f63bfa250e3e9c881cc2dc28ad | refs/heads/master | 2021-01-22T18:37:51.626942 | 2017-08-19T02:04:51 | 2017-08-19T02:04:51 | 100,762,513 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: encodings.cp037
import codecs
class Codec(codecs.Codec):
def encode(self, input, errors = 'strict'):
return codecs.charmap_encode(input, errors, encoding_table)
def decode(self, input, errors = 'strict'):
return codecs.charma... | [
"noreply@github.com"
] | DedMemez.noreply@github.com |
17b61a39a609a86fd0825c76706761762bdb0316 | ef243d91a1826b490e935fa3f3e6c29c3cc547d0 | /_bcrypt/lib.py | dc7ee9f226221ff657bc8f1f653f755977630db6 | [] | no_license | VentiFang/Python_local_module | 6b3d0b22399e817057dfd15d647a14bb1e41980e | c44f55379eca2818b29732c2815480ee755ae3fb | refs/heads/master | 2020-11-29T11:24:54.932967 | 2019-12-25T12:57:14 | 2019-12-25T12:57:14 | 230,101,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | # encoding: utf-8
# module _bcrypt.lib
# from F:\Python\Python36\lib\site-packages\bcrypt\_bcrypt.cp36-win_amd64.pyd
# by generator 1.147
# no doc
# no imports
# functions
def bcrypt_hashpass(char, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
"""
int bcrypt_hashpass(char... | [
"5149528+ventifang@user.noreply.gitee.com"
] | 5149528+ventifang@user.noreply.gitee.com |
2c2b6078a3c71f7c149ec8f7ea8c3232c3c70480 | f7677fc2c67b2e53a2a018245195ba8676a669e2 | /5.Rest_User/test_json.py | cd9ce0ba4a6b3b8f0e4571b13c449c116b01cc4b | [] | no_license | LukaszMalucha/TestingFlask | a3bec1d4d02e5124fc99433763b6c34a0d92ad72 | 86613f719ca09847fb9981810e6a98d354bf578b | refs/heads/master | 2020-04-15T22:19:31.192436 | 2019-01-14T16:53:10 | 2019-01-14T16:53:10 | 165,068,312 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | import unittest
from models.store import StoreModel
from models.item import ItemModel
from base_test import BaseTest
class StoreTest(BaseTest):
def test_create_store_items_empty(self):
store = StoreModel('test')
self.assertListEqual(store.items.all(), [] )
def test_crud(self):
... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
33b9c2e64df2b071661510f33c28abdf42d0dca8 | 1579a44bb3a25b382805bb222b521b50ca7ea0a5 | /lmctl/cli/commands/actions/render_action.py | 2775612826b2f7d1eee2ecea3009571231010fe0 | [
"Apache-2.0"
] | permissive | euconnor/lmctl | 7fae446a4a39e2e5f20cfc65e090d097e0ef9dc4 | 940e269a7260747bd7e0bf10654ee2324833f941 | refs/heads/master | 2023-08-24T16:04:24.259192 | 2021-09-15T09:22:13 | 2021-09-15T09:22:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from .action import Action
class Render(Action):
name = 'render'
group_attrs = {
'help': 'Render Descriptor Templates or any other supported objects'
}
| [
"daniel.vaccaro-senna@ibm.com"
] | daniel.vaccaro-senna@ibm.com |
a12c5170c873403cd54108e22df04dacdb4fb853 | 023167de90034d0ac4e3695db5d0fc419e298247 | /flash/core/integrations/labelstudio/visualizer.py | a284eee10b996e47024ff10d59135b20f633daac | [
"Apache-2.0"
] | permissive | dlangerm/lightning-flash | 9e66e90f86d597d362e5c307e391b623f509c092 | 892f7594fff40ebc4333b62a5c4e73b02549fb82 | refs/heads/master | 2023-08-06T22:11:56.467679 | 2021-09-29T11:00:22 | 2021-09-29T11:00:22 | 406,909,766 | 0 | 0 | Apache-2.0 | 2021-09-15T20:04:16 | 2021-09-15T20:04:15 | null | UTF-8 | Python | false | false | 3,705 | py | import json
import random
import string
from pytorch_lightning.utilities.cloud_io import get_filesystem
from flash.core.data.data_module import DataModule
class App:
"""App for visualizing predictions in Label Studio results format."""
def __init__(self, datamodule: DataModule):
self.datamodule = d... | [
"noreply@github.com"
] | dlangerm.noreply@github.com |
10f3f41faaa70afa20985413524c8964b321cfa8 | 01ac02f87cf30b584f1c59879928cc847554f7b8 | /PSADS_Course/_3_5_stack.py | dc60ee5f0735053e225b0311f9f9794027d4e659 | [] | no_license | waithope/leetcode-jianzhioffer | aee0a670a3b1c0df2e5828b30fa3ee962837f50f | 06ba01e808f184c385e721003e357019d81b1ee7 | refs/heads/master | 2020-03-11T19:46:16.468055 | 2019-09-07T02:50:16 | 2019-09-07T02:50:16 | 130,217,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py |
class Stack():
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def push(self, item):
self.items.append(item)
def pop(self):
return self.items.pop()
def peek(self):
return self.items[len(self.items) - 1]
def size(self):
return len(self.items)
# new_s... | [
"yunqiang.gan@gmail.com"
] | yunqiang.gan@gmail.com |
3b78c51298a7f1cba90b2a45ad54fdb07b1b0d8d | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Simulation/SimulationJobOptions/share/heavyIons/postInclude.HijingPars.py | 1bbfad8d37edbec2ed84ebd1f14f339d2ef27d95 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | #########################################################
#
# SimulationJobOptions/postOptions.HijingPars.py
# Andrzej Olszewski
#
# Mods for Hijing event parameters.
#
# This job option should be added via the postInclude
# command line argument. I.e. before theApp.initialize()
# is called.
#
#########################... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
380f50a4a5e3788d859d0cb5bf449d8d6ac3b31f | ba095b34fb62cff6f5f6f32dc7036f13b45681a2 | /llia/synths/rumklang/rumklang_data.py | 283f5b3ee7477cba58e08cb82694ddb602ab64d5 | [] | no_license | plewto/Llia | 7d3c60bd7355d02e9b00e97c82f24da5fa83b0f4 | 97f530ff0841b9604f0d9575e7e1f0e3c0660be0 | refs/heads/master | 2020-05-21T20:39:07.223990 | 2018-04-30T02:28:55 | 2018-04-30T02:28:55 | 63,315,753 | 17 | 2 | null | 2016-08-04T17:10:17 | 2016-07-14T08:05:33 | Python | UTF-8 | Python | false | false | 4,925 | py | # llia.synths.rumklang.rumklang_data
from __future__ import print_function
from llia.program import Program
from llia.bank import ProgramBank
from llia.performance_edit import performance
from llia.util.lmath import db_to_amp,amp_to_db
prototype = {"preDelay" : 0.01,
"roomSize" : 0.5,
"dam... | [
"plewto@gmail.com"
] | plewto@gmail.com |
792ed36b3b0202587080c6c0d497928ead3a64a1 | f444eede3cd341afc969756b00a34816f949238a | /stegapy.py | 4048933e3bb57ae6a57615ef032fe798ee19ef8d | [
"MIT"
] | permissive | dcbriccetti/StegaPy | 28ce6007c0c8a2dbb38de76e52344ec621c4a8ac | a20bb263737ae445e65a602c728acc4e3602baed | refs/heads/master | 2021-07-10T03:28:28.214664 | 2020-10-03T21:11:52 | 2020-10-03T21:11:52 | 204,844,779 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | from typing import Iterable
import numpy as np
from PIL import Image
def bits_provider(message) -> Iterable[int]:
for char in message:
ascii_value = ord(char)
for bit_position in range(8):
power = 7 - bit_position
yield 1 if ascii_value & (1 << power) else 0
def chars_pro... | [
"daveb@davebsoft.com"
] | daveb@davebsoft.com |
7da7a5fd1d1b54e8d570fbf996df47246cabdbfd | 2dfbb018568209864544375de59a157c8752689a | /skimreads/oauth/facebook.py | 5902c7735c6d2161943b72cdb070800e9cc98d2c | [] | no_license | tommydangerous/skimreads | 7df4bde603c6122f20242d4591357802a4484f9f | 6e73341ab034b52bb48cde4f076948946944d2a9 | refs/heads/master | 2020-05-17T23:20:15.020065 | 2014-09-27T06:28:34 | 2014-09-27T06:28:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from facepy import GraphAPI
import random
def facebook_app_id():
return settings.FACEBOOK_APP_ID
def facebook_app_secret():
return settings.FACEBOOK_APP_SECRET
def facebook_redirect_uri():
return settings.F... | [
"quantumventuress@gmail.com"
] | quantumventuress@gmail.com |
22435fb0fcc35a94bbc3ae84a06135af835b899d | 743da4642ac376e5c4e1a3b63c079533a5e56587 | /build/lib.win-amd64-3.6/fairseq/data/encoders/fastbpe.py | f2fbe6e2255d4ba354f2bf09835264302b35fb48 | [
"MIT"
] | permissive | tmtmaj/Exploiting-PrLM-for-NLG-tasks | cdae1b6e451b594b11d8ecef3c1cd4e12fe51c9b | e8752593d3ee881cf9c0fb5ed26d26fcb02e6dd5 | refs/heads/main | 2023-06-16T08:26:32.560746 | 2021-07-14T17:50:19 | 2021-07-14T17:50:19 | 371,899,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | # 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.
from fairseq import file_utils
from fairseq.data.encoders import register_bpe
@register_bpe('fastbpe')
class fastBPE(object):
... | [
"qkrwjdgur09@naver.com"
] | qkrwjdgur09@naver.com |
113e24c8dcb63d229a26e03ea9670be7a06da4e5 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py | 64e8accb95881e36f36eace9cbdb0ee84ce73751 | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 29,695 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from matplotlib.externals import six
import os
import re
import signal
import sys
from matplotlib.externals.six import unichr
import matplotlib
from matplotlib.cbook import is_string_like
from matplotlib.back... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
fab64928034e601e8dac1222a4b3a5f862975078 | 8b59108f621e94935b3b72aae3c441e10cb64a1c | /chunkfile/datastream_chunk.py | 331586c47e855b0cc813b7f306d478ecfe2671e4 | [] | no_license | CyberSys/CE_Python | 97a373b1fe2d214ae854d454dc5e7d79bc150d8e | 721ac005e215f1225fb3c99491b55dc48b19ab30 | refs/heads/master | 2022-01-13T08:04:08.558594 | 2019-07-22T17:05:46 | 2019-07-22T17:05:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,186 | py | # Embedded file name: chunkfile\datastream_chunk.pyc
from chunk import Chunk, VersionError, DataReader
from chunk_utils import *
import struct
import copy
class DataStreamChunk(Chunk):
typeDefEntries = [
("CGF_STREAM_POSITIONS", ("Position", [])),
("CGF_STREAM_NORMALS", ("Normal", [Field... | [
"chrissprance@gmail.com"
] | chrissprance@gmail.com |
5c39a721d21f5a118735b6d9494b04430717e93b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02861/s428665927.py | 160ba05b3be76501823413ee368769576cebb8f2 | [] | 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 | 478 | py | from collections import deque
N = int(input())
xy = [list(map(int, input().split())) for _ in range(N)]
def dist(a, b):
return pow(pow(b[0]-a[0], 2) + pow(b[1]-a[1], 2), 1/2)
que = deque([[i] for i in range(N)])
perm = []
while que:
seq = que.popleft()
if len(seq) == N:
perm.append(seq)
for j in range(N)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
de1a02dfa8606611ca374460bcde6e1ab0c7674e | 40c6fa589a0dfe88e82f8bd969cd5ef0ed04f303 | /SWEA/D5/1259.py | f5638df80650d0dd13b9e29c39401c5a23c1184b | [] | no_license | EHwooKim/Algorithms | 7d8653e55a491f3bca77a197965f15792f7ebe47 | 5db0a22b9dc0ba9a30bb9812c54d2d5ecec1676b | refs/heads/master | 2021-08-20T04:05:09.967910 | 2021-06-15T07:54:17 | 2021-06-15T07:54:17 | 197,136,680 | 0 | 2 | null | 2021-01-08T05:51:37 | 2019-07-16T06:46:57 | Python | UTF-8 | Python | false | false | 556 | py | #1259.금속막대
T = int(input())
for t in range(1, T + 1):
n = int(input())
n_list = list(map(int, input().split())) # 입력
arr = []
for i in range(n):
arr.append(n_list[2*i:2*i+2]) # 두개씩 나누기
for one in arr:
result = []
result.extend(one)
for i in rang... | [
"ehwoo0707@naver.com"
] | ehwoo0707@naver.com |
8d52e2ff3995a0a61ea1de10bda6852fd6599451 | 58064920494bc9bc92d006f5ecf4a38ac95b05e3 | /test_app/management/commands/test_job.py | 5c44937a7aa0c97f47caec7e5f510a1ef01b13c9 | [
"MIT"
] | permissive | defgsus/django-joblog | 04a6c92e20fc2a56124fb12031a3d8596fabd894 | 88467f951d7ebc586c69e421cab39e4caa395cca | refs/heads/master | 2020-03-24T21:40:12.872371 | 2019-11-06T15:14:58 | 2019-11-06T15:14:58 | 143,044,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | # encoding=utf-8
from __future__ import unicode_literals
from django.core.management.base import BaseCommand, CommandError
from django.db import transaction
from django.utils.translation import ugettext_lazy as _
from django_joblog import JobLogger, DummyJobLogger, JobLoggerContext
class Command(BaseCommand):
... | [
"s.berke@netzkolchose.de"
] | s.berke@netzkolchose.de |
06401ce66b6a51edd4402a6ce40760d372f8f208 | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/suit/DistributedSuit.py | c95debe3d3e8d54346b1ab78d841945652bc05f6 | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 44,825 | py | """DistributedSuit module: contains the DistributedSuit class"""
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from direct.directtools.DirectGeometry import CLAMP
from direct.task import Task
from otp.avatar import DistributedAvatar
import Su... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
1258f78cef3f4bbd71d4c10397fc9b17eb554863 | bd2d6f311799ef9622eaa8aae25c9f7d997785e5 | /terminus_addon.py | 9308147f7befff78373cc57dbddc13d11a83e0ed | [] | no_license | KristoforMaynard/TerminusAddons | d5c8d65edba13ddd365001169dfd0c984edc3583 | e4041f0d2901bae48cbd0b62235f128519ab439f | refs/heads/master | 2020-03-27T22:21:53.404584 | 2020-02-28T05:42:52 | 2020-02-28T05:43:31 | 147,224,379 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,991 | py | # in your User settings, it's useful to specify:
# > "origami_auto_close_empty_panes": true,
#
# There are some associated entries in
# > Default (OSX).sublime-keymap
# > Default (Linux).sublime-keymap
# > Default.sublime-commands
#
# cmd+alt+w, next pane?
# cmd+alt+shift+w, prev pane?
import datetime
import os
import... | [
"kristofor.maynard@gmail.com"
] | kristofor.maynard@gmail.com |
f8be411f13930aca271e0e3d94b9b5f94e31d0f8 | 64a1e495f7075ff2850514d6f53f8621ff5ad163 | /Algorithm/2.Sorting/1.Bubble Sort/1.Save_Patient.py | ab5505fab1248f6da1c47cd7a6e9c809af7e686e | [] | no_license | Angi16/Hackerearth_Practice | 41f129f20f2936f8fd5bfa71a423a1db6e978003 | 3614c20eb519676f01536cb68ff4b9ec58fb8421 | refs/heads/master | 2020-03-19T01:33:12.299339 | 2018-05-31T08:13:55 | 2018-05-31T08:13:55 | 135,553,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | n=int(input())
vacst=list(map(int,input().split()))
patst=list(map(int,input().split()))
count=0
for i in range(n):
if(vacst==patst):
count+=1
if count==n:
print("Yes")
else:
print("No") | [
"ra6231693@gmail.com"
] | ra6231693@gmail.com |
e2357255f4688cf16d82ab68ec21fe9f33ea855f | 51108a50ffb48ad154f587c230045bb783f22240 | /bflib/items/riding/__init__.py | 4df40a304c820bd1b96381e8579a549ed1a01d19 | [
"MIT"
] | permissive | ChrisLR/BasicDungeonRL | c90bd0866c457557cccbad24e14689d5d6db7b00 | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | refs/heads/master | 2021-06-15T13:56:53.888646 | 2019-08-05T16:33:57 | 2019-08-05T16:33:57 | 104,269,987 | 3 | 0 | MIT | 2019-08-05T16:28:23 | 2017-09-20T21:35:19 | Python | UTF-8 | Python | false | false | 89 | py | from bflib.items.riding.common import BitAndBridle, Horseshoes, SaddlePack, SaddleRiding
| [
"arzhul@gmail.com"
] | arzhul@gmail.com |
245af86fac7f55f403c2808da4c6c61b1f0aef18 | a7ee3be53bd3ed9d1d17422f2eb0ac769ab0fe72 | /amqp_conn.py | 4c14454ef7cef647e1659bc0ba0e11ce4458a42b | [] | no_license | grauwolf32/UrlFuzzer | fee86b6e8b6277c6c8dadecc008ccbbfd86d55f2 | 303930581875f4b4ef9dde3587a2397affa92eef | refs/heads/master | 2021-08-26T09:12:44.300485 | 2017-11-22T15:05:56 | 2017-11-22T15:05:56 | 105,917,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,894 | py | import pika
import threading
import json
class Connection():
def __init__(self,user,password,host):
self.credenials = pika.PlainCredentials(user, password)
self.host = host
def get_connection(self):
return pika.BlockingConnection(pika.ConnectionParameters(credentials=self.credenials, h... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
bdce771ef120b08337ca01103a71c7fb29f57f52 | 5c145ae9dd6ec34cbd418ec3b2609edd44b3497d | /store/migrations/0011_auto_20210108_2145.py | 0a8f00da740ef2dac50a49a1856900566d127c53 | [] | no_license | Emad-ahmed/Emadonline_shop | 7b37f43e32caee184cbe78b5019216ac28934a5b | 6d8d8262647568f9538ff398a812299b07e1b5db | refs/heads/main | 2023-02-17T03:27:26.334418 | 2021-01-11T03:13:38 | 2021-01-11T03:13:38 | 328,386,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # Generated by Django 3.1.3 on 2021-01-09 05:45
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0010_auto_20210108_2144'),
]
operations = [
migrations.AlterField(
model_name='order',
name... | [
"amadahmed1234678@gmail.com"
] | amadahmed1234678@gmail.com |
d0c292aa7eccd20c8527fee8d2de507067b7cff3 | 56de4dd1bfc5ca08047475edd4981e42d99d000a | /data/reg_data_balance.py | db3d3f0cc7948d22a811c4ee9a12d7e5403ef1e9 | [] | no_license | nancywang1991/ecogdeep | 858ace3a3870ea914c5a531fa362ca1196e8f8f4 | b6474b30d7568de496ec8fa8187a8ae3ba8b4459 | refs/heads/master | 2021-01-13T03:38:31.750540 | 2018-12-13T22:58:48 | 2018-12-13T22:58:48 | 77,300,060 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | import numpy as np
import glob
import shutil
import argparse
import pdb
def y_loc(file):
end = int((3500 + 999) * (30 / 1000.0))
ydata = np.load(file)[(end - 15):end]
ydata_start = ydata[0]
ydata_end = ydata[-1]
t = 0
while ydata_start[0] < 0:
t += 1
ydata_start = ydata[t]
t... | [
"nancywang1991@yahoo.ca"
] | nancywang1991@yahoo.ca |
5e2ec69e5262a90356ed7f4a189b2a6e64843607 | 59387662fba5de9d20209d855e688266aabe4961 | /tshop/shop/__init__.py | 41ddc6c97a62c7f4e67513deea32df8caccfb059 | [
"BSD-2-Clause"
] | permissive | jordic/django_tiny_shop | b41eac9f3d0d12b378359817d65ac34c9977a676 | 46dd4c1c2e3fdf96676c3d02ad197b7cecff6bc3 | refs/heads/master | 2021-01-18T22:01:29.712718 | 2014-12-01T05:45:37 | 2014-12-01T05:45:37 | 3,014,559 | 4 | 1 | null | 2018-06-08T10:48:15 | 2011-12-19T19:51:47 | JavaScript | UTF-8 | Python | false | false | 332 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# ^ la línia superior serveix per poder posar accents a l'arxiu
# Autor: jordi collell <jordi@tempointeractiu.cat>
# http://tempointeractiu.cat
# -------------------------------------------------------------------
__version__ = '0.82'
VERSION = tuple(map(int, __version__.sp... | [
"jordic@gmail.com"
] | jordic@gmail.com |
754e2f092122341e2b4408ee5f03541775fd0057 | 8c135e7eed5d34b7bcd2510b8d3a21f1ab22d27d | /ProtectionDomains/scripts/Service_Centos_Action___create___Task_AddtoProtectionDomain.py | f7e42a1ae7264acb06926e5a871cef4bf1e11bca | [
"MIT"
] | permissive | kingsleyck/NutanixCalm | a3061a4fcc54cdf49bddd1f88fa721c4d46e9299 | 35012c983a78490ee454d564ebbcbaf221055b8d | refs/heads/master | 2022-05-27T13:33:42.268250 | 2020-04-29T22:29:03 | 2020-04-29T22:29:03 | 260,053,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,896 | py | # REST API call to Prism Central to add VM to protection domain
# setup common variables
uri = "localhost:9440"
cluster_uuid = "@@{platform.status.cluster_reference.uuid}@@"
vm_uuid = "@@{id}@@"
hostname = "@@{calm_application_name}@@"
remote_cluster = "@@{remote_protection_domain_cluster}@@"
# setup credentials
user... | [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
d043185cf138851830a7d418a60fa33fd2f08349 | 82fd5509f3d39ad3dcf2b55a03ebd5c201eb6817 | /djikstraAlgorithm.py | 3a24442132196966d0d8ce66a679ca6952cf6917 | [] | no_license | simba28/daily-codes | c26491a1597eb5af565a4e76291fd8a42a9605f0 | 8ac943e0c24a3ade1a24c8f00c3a6a3b0ffb388d | refs/heads/master | 2023-06-17T13:20:37.695778 | 2021-07-15T05:24:36 | 2021-07-15T05:24:36 | 331,525,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,432 | py | # Single source shortest path
import sys
class Graph:
def __init__(self, vertices):
self.V = vertices
self.graph = [[0 for column in range(vertices)]
for row in range(vertices)]
def printSolution(self, dist):
print('Vertex \tDistance from Source')
for nod... | [
"sudh2810@gmail.com"
] | sudh2810@gmail.com |
7fc9ccb2be14e4f9f3dd3b0bd308f7c47b16ade9 | 5b565e331073a8b29f997c30b58d383806f7d5a8 | /ch_04/4_2_animals.py | 5f6250df06fdaa48d551cc69c16417e377a80790 | [] | no_license | jeongwook/python_work | f403d5be9da6744e49dd7aedeb666a64047b248d | bba188f47e464060d5c3cd1f245d367da37827ec | refs/heads/master | 2022-04-02T23:16:57.597664 | 2020-01-21T08:29:48 | 2020-01-21T08:29:48 | 227,506,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | animals = ['dogs', 'cats', 'bunnies']
# print the list of animals
for animal in animals:
print(animal)
print()
# print the list of animals used in a sentence
for animal in animals:
print('A ' + animal + ' would make a great pet.')
print('\nAny of these animals would make a great pet!')
| [
"jeongwook.yu@utexas.edu"
] | jeongwook.yu@utexas.edu |
68454ba90c415121ae0d7cc91cadd15f8765250c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02789/s494992870.py | c13f76c86e3a8f363cf31adf8930d76db70ca6eb | [] | 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 | 88 | py | a,b=map(int,input().split(' '))
count=0
if a==b:
print("Yes")
else:
print("No")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
925fcf4593f06462d03b7a401abfa56246ab3da7 | 713f9168a7ba68740bb9b4ea6994e853a56d2d5c | /2021-03-15-python-data-science/numpy_pyplot_pandas/kalorien.py | 946ab52127169346f924c52ca747869bbc01ce00 | [] | no_license | marko-knoebl/courses-code | ba7723c9a61861b037422670b98276fed41060e2 | faeaa31c9a156a02e4e9169bc16f229cdaee085d | refs/heads/master | 2022-12-29T02:13:12.653745 | 2022-12-16T09:21:18 | 2022-12-16T09:21:18 | 142,756,698 | 16 | 10 | null | 2022-03-08T22:30:11 | 2018-07-29T11:51:04 | Jupyter Notebook | UTF-8 | Python | false | false | 447 | py | import numpy as np
kalorientabelle = np.array([30, 52, 88, 36, 86, 160, 375, 115, 43, 71])
jouletabelle = kalorientabelle * 4.1868
print(jouletabelle)
verzehr_in_gramm = np.array([240, 95, 135, 120, 200, 160, 290, 450, 500, 0])
verzehr_in_kg = verzehr_in_gramm / 1000
print(verzehr_in_kg)
kalorien_pro_gericht = kalor... | [
"marko.kn@gmail.com"
] | marko.kn@gmail.com |
aa18206b0342fc4a2972b5d3abcb93cef82b7898 | 76165c94318022ae467572a8c73cdb9c88ffb6a9 | /env/bin/easy_install-3.7 | 05ef49192720d29560eda1ed80119c44b5a774ee | [] | no_license | fatihkgm/AutoDelarWebsite_Django | a0a8c101a4eb4433cea07fd1348599b0e81dd8cf | 3effa78b547a439ffdd4328c03f1f1506dd0735b | refs/heads/main | 2023-03-22T11:09:53.106040 | 2021-03-22T06:32:37 | 2021-03-22T06:32:37 | 350,187,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | 7 | #!/Users/test/Documents/Dice-app-ios/AutoDelarWebsite_Django/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"fatih.kgokmen@gmail.com"
] | fatih.kgokmen@gmail.com |
bc576b65ec9e240570b92b2ac86e566dcf8284b8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2738/60825/251079.py | 9f8e24deb7ee9f693b697a268cfa3d821d29ac31 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | def asd(matrix):
if not matrix or not matrix[0]:
return 0
nums = [int(''.join(row), base=2) for row in matrix]
ans, N = 0, len(nums)
for i in range(N):
j, num = i, nums[i]
while j < N:
num = num & nums[j]
if not num:
break
l, cu... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
6d87c64ce1bc7402215435807d0910b789321a01 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631989306621952_1/Python/pkrbits/A.py | 82212872f35276bc7024c7366c92a0560b605280 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #! /usr/bin/env python
def last_word(str):
if not str:
return ""
word_char_list = [str[0]]
for i in range(1, len(str)):
if str[i] >= word_char_list[0]:
word_char_list.insert(0, str[i])
else:
word_char_list.append(str[i])
return ''.join(word_char_list)
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
e934a7d5244f85c96def1f1d0836fc48ec0edf42 | ccb173a87bdceb9059b1a8857ff580a2d39bb219 | /sub/key-seq-permutation/key-seq-permutation.py | 1a7c8b175366a486f31522cf3c0ca5f5122a93a8 | [] | no_license | fans656/quick-console | 67de3373b71e15cf98fda8b39313c04e44e8c0dc | 62c484e4f3a42ee22f6548cce89df8f0615c781a | refs/heads/master | 2022-08-20T09:34:05.733800 | 2022-06-27T15:39:11 | 2022-06-27T15:39:11 | 23,045,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,668 | py | import sys
import string
from itertools import permutations
from collections import Counter, deque
ident = lambda e: e
def extract(l, pred=ident, key=ident):
return (e for e in l if pred(key(e)))
def split(l, pred):
a = []
b = []
for e in l:
if pred(e):
a.append(e)
... | [
"fans656@yahoo.com"
] | fans656@yahoo.com |
a16fea5b79ca341d862f89f59993ca8d9b6a3161 | 440d2f83d1b061bea39adb13d15caeec3322e663 | /FirestormProject/OldFireExtinguishing/fire_smdp_params newer.py | 2f952d0323a2a8d8efff7305577a08005ed5b4bc | [
"MIT"
] | permissive | jfyao90/event-driven-rllab | 39cedac13d5ba56c8e1479a1e29cb7d489591201 | 932d6cc0911071443d1d43277ee011f4d832631e | refs/heads/master | 2023-03-21T06:49:53.249962 | 2018-10-01T23:09:13 | 2018-10-01T23:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,622 | py | import numpy as np
import math
import pdb
import random
# ---- 10 Agents 20 Fires
def fire_param_generator(num_fires_of_each_size):
normalized_fire_extinguish_times = np.exp(-np.array(list(range(NUM_AGENTS)))) # How long will
# it take 1, 2, .... agents to extinguish the fire?
scaling_factor = 3. / normalized_fir... | [
"kunal.menda@gmail.com"
] | kunal.menda@gmail.com |
20a4eb8f3e0f278cc6be38801a6ff35ea44e0919 | 69ef637ffa5739c368bc3a2da935f084203b56b6 | /exercises/en/exc_02_15.py | 510d65c58a5a592edc139e008819e53063cdb348 | [
"MIT"
] | permissive | betatim/MCL-DSCI-011-programming-in-python | 3e03734abb5af49b3dfc0b127e65b3573911afb0 | b51f43a6bb1bedf0db028613d48d6566309ec44a | refs/heads/master | 2022-11-08T06:03:56.190181 | 2020-06-25T16:20:30 | 2020-06-25T16:20:30 | 275,013,051 | 0 | 0 | MIT | 2020-06-25T20:53:13 | 2020-06-25T20:53:12 | null | UTF-8 | Python | false | false | 267 | py | import pandas as pd
pokemon = pd.read_csv('data/pokemon.csv')
# Create a new column named total_special
# that is the sum of column sp_attack and sp_defense
# Save it, overwriting the dataframe named pokemon
____
# Display the first 5 rows of the dataframe
____ | [
"hayleyfboyce@hotmail.com"
] | hayleyfboyce@hotmail.com |
9e022b1bcb567fbc1263402b090ab65151960896 | 9ed772649bc80780016e044e9dfbf0ab9b73b68b | /release.py | 5f773e5f2cd40888bed4b5a87b067345d19c014c | [
"Apache-2.0"
] | permissive | dspmandavid/urh | 7b5c112115746f3f1a9a761d826c656dd1b1d6fe | 30643c1a68634b1c97eb9989485a4e96a3b038ae | refs/heads/master | 2021-01-17T14:54:54.720747 | 2017-03-06T17:18:47 | 2017-03-06T17:18:47 | 84,102,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,018 | py | import os
import sys
from subprocess import call, check_output
import pytest
from urh import constants
from urh.util.Logger import logger
open("/tmp/urh_releasing", "w").close()
script_dir = os.path.dirname(__file__) if not os.path.islink(__file__) else os.path.dirname(os.readlink(__file__))
rc = pytest.main(["--ex... | [
"Johannes.Pohl90@gmail.com"
] | Johannes.Pohl90@gmail.com |
68ec7d68e354df6988711f3fca1628186fd72fbf | 69513c018c3482370d62a1a88fb323244a6c11cd | /newproject/news/migrations/0001_initial.py | fce354fc4f9904ea0b7fb516da46027d1a3c1a99 | [] | no_license | Xdimax1488/D13-Logger | 6711eb326c7bc3a1f759b803a1fd2579280a3178 | c40f720ac18bdfbb1aeeb7045974c55a14c56ea1 | refs/heads/main | 2023-03-12T10:55:31.615972 | 2021-02-28T18:23:41 | 2021-02-28T18:23:41 | 343,179,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,824 | py | # Generated by Django 3.1.5 on 2021-01-24 15:04
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),
]
ope... | [
"dima_kurinnoy@mail.ru"
] | dima_kurinnoy@mail.ru |
bea0591e7012b5be5e6a2463c9aefcbf13d9913b | b501a5eae1018c1c26caa96793c6ee17865ebb2d | /Networking/socket/socket_gethostbyname_ex.py | ee7ac2a363d35471e54614e782306aed53be07a4 | [] | no_license | jincurry/standard_Library_Learn | 12b02f9e86d31ca574bb6863aefc95d63cc558fc | 6c7197f12747456e0f1f3efd09667682a2d1a567 | refs/heads/master | 2022-10-26T07:28:36.545847 | 2018-05-04T12:54:50 | 2018-05-04T12:54:50 | 125,447,397 | 0 | 1 | null | 2022-10-02T17:21:50 | 2018-03-16T01:32:50 | Python | UTF-8 | Python | false | false | 423 | py | import socket
HOSTS = [
'jincurry.github.io',
'pymotw.com',
'www.python.org',
'nosuchname',
]
for host in HOSTS:
print(host)
try:
name, aliases, addresses = socket.gethostbyname_ex(host)
print(' Hostname:', name)
print(' Aliases:', aliases)
print(' Addresses:'... | [
"jintao422516@gmail.com"
] | jintao422516@gmail.com |
5a327411be7027614688f30f3598fd2319dd15bd | 828bd40f2b500416fd679949bc06648fdf40a7e0 | /prev_ob_models/exclude/GilraBhalla2015/analysis/analysis_utils.py | b3f8054f0bcfb74fe0a8e61c166b2e34a0650666 | [
"MIT"
] | permissive | fameshpatel/olfactorybulb | f513c480a1010c1a30911f12a3e4cf8ab5059dee | 8d7a644b4560309ef177c0590ff73ed4c2432604 | refs/heads/master | 2023-07-24T16:35:15.855708 | 2019-09-24T19:22:26 | 2019-09-24T19:22:26 | 212,605,801 | 0 | 0 | MIT | 2023-07-06T21:23:06 | 2019-10-03T14:51:17 | Jupyter Notebook | UTF-8 | Python | false | false | 10,485 | py | import pickle
import sys
sys.path.extend(["..","../networks","../generators","../simulations"])
from sim_utils import * # has rebin() to alter binsize
import generate_firerates_odors as gen_frate_odors # has respiration_function()
## minimum error that must be present.
errcut = 1e-20
def set_min_err(errListOrig, err... | [
"jbirgio@gmail.com"
] | jbirgio@gmail.com |
a24c88a65e66e91270b39d2d02f0aa63d42c0408 | 5bb616be2a0d22e5f2aa79a8587c5d8dc101e872 | /Product/信宝分期.py | 91364be2634ef622fda1817c8b9a24541a129bdc | [] | no_license | Chihihiro/Backstage | 81f0ca452dc9f05723f4557e842b4f0a2581e999 | 5b4dec28ce2ba15591f85ca4af44b24ceae58989 | refs/heads/master | 2020-04-14T18:57:12.849203 | 2019-01-24T01:15:03 | 2019-01-24T01:15:03 | 164,039,198 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2018年12月26日 21:56
# @Author : 逗比i
# @Project : Backstage
# @File : 抱金砖.py
# @Software: PyCharm
# @Describe:
from requests import Session
from BaseSpider import BaseSpider
from DealWithCookie import cookie_to_dict
import time
import warnings
class BJZ(Bas... | [
"chihiro123"
] | chihiro123 |
d17f5aca3a19b0b7941ab087be8f2e287577a0d9 | 656315b686eedba99b77b83d9932f44221741024 | /virtual/lib/python3.6/locale.py | 39b0baf15fca8a94a27f15a36d659bfe03d0fee9 | [] | no_license | edithamadi/capstone | 8e370314e612b0c7064b2044a673f465636bdadf | 8a2b8fe9e2e5a9ac5bc62a69ed726fbfcd67d349 | refs/heads/master | 2022-12-09T04:31:23.319789 | 2018-10-26T13:26:27 | 2018-10-26T13:26:27 | 154,452,359 | 0 | 1 | null | 2022-11-22T02:54:00 | 2018-10-24T06:47:29 | Python | UTF-8 | Python | false | false | 57 | py | /home/edith/.pyenv/versions/3.6.1/lib/python3.6/locale.py | [
"you@example.com"
] | you@example.com |
eedd61454e3f25799f5045dc66ffcba3b4cdd086 | c85b91bfdd7eb2fa5a7d6c6a9b722c8548c83105 | /vscode/extensions/ms-python.python-2020.3.69010/languageServer.0.5.31/Typeshed/third_party/2/six/moves/xmlrpc_client.pyi | ddaf9ee4aa8b303c0369368a203b0e2915619cb7 | [
"MIT",
"Apache-2.0"
] | permissive | ryangniadek/.dotfiles | ddf52cece49c33664b56f01b17d476cf0f1fafb1 | be272baf6fb7d7cd4f4db1f6812b710196511ffe | refs/heads/master | 2021-01-14T07:43:12.516127 | 2020-03-22T20:27:22 | 2020-03-22T20:27:22 | 242,632,623 | 0 | 0 | MIT | 2020-09-12T17:28:01 | 2020-02-24T02:50:06 | Python | UTF-8 | Python | false | false | 25 | pyi | from xmlrpclib import *
| [
"ryan@gniadek.net"
] | ryan@gniadek.net |
52cba61d07908fd6c69689160612a2d1a14629a1 | a08d885cb9150d7e84f5ffbf0c9734893105a898 | /2017/Day 21/fractal_art_test.py | 2c324220af91504e04f65de7bb6eb22ee119bbca | [] | no_license | vhsw/Advent-of-Code | ab422c389340a1caf2ec17c5db4981add6433fbe | 3c1dac27667472202ab15098c48efaac19348edf | refs/heads/master | 2022-12-29T03:56:59.648395 | 2022-12-26T11:01:45 | 2022-12-26T11:01:45 | 162,491,163 | 0 | 0 | null | 2022-05-10T08:43:32 | 2018-12-19T21:10:26 | Python | UTF-8 | Python | false | false | 329 | py | """Day 21: tests"""
from fractal_art import DATA, part1, part2
EXAMPLE = """
../.# => ##./#../...
.#./..#/### => #..#/..../..../#..#
""".strip()
def test_part1():
"""Part 1 test"""
assert part1(EXAMPLE, 2) == 12
assert part1(DATA) == 160
def test_part2():
"""Part 2 test"""
assert part2(DATA) ==... | [
"nevermind1025@gmail.com"
] | nevermind1025@gmail.com |
09a936adf21f7bdc4b36454176293a244e169e8b | 143c728c6145218c73da5d8973692b6f5149c416 | /python/src/fillstate.py | f605d54eaaf3980c880a6c6948f0dd080230712b | [] | no_license | jaycoskey/Icfp2018 | 0ed91beda5f13013a797f5cc697fb8ce61d3ba3a | 95f64633e892978ea433099dadbaa1f9c01b2a2e | refs/heads/master | 2020-03-23T20:56:25.663601 | 2018-07-23T22:37:28 | 2018-07-23T22:37:28 | 142,072,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | from enum import Enum
class FillState(Enum):
Void = False
Full = True
| [
"jay.coskey@gmail.com"
] | jay.coskey@gmail.com |
8f6b709f96973022dc495d30372a1a55010324e9 | ffa651d0a81ce5629ab760fbd18d4e18f2b3f3ed | /venv/lib/python3.9/site-packages/pip/_vendor/chardet/langgreekmodel.py | ee19eaf02956d69acab426d7a89ec457b4a132a1 | [] | no_license | superew/TestUI-Setel | b02d4c18a3301b57eaecb7ff60ccce7b9e1e7813 | 5cd48475fc6622ed289d15c109428f55d3d5d6f6 | refs/heads/master | 2023-08-02T11:16:34.646927 | 2021-09-30T17:21:43 | 2021-09-30T17:21:43 | 410,351,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74,829 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel
# 3: Positive
# 2: Likely
# 1: Unlikely
# 0: Negative
GREEK_LANG_MODEL = {
60: { # 'e'
60: 2, # 'e'
55: 1, # 'o'
58: 2, # 't'
36: 1, # '·'
61: 0, # 'Ά'
46: 0, # 'Έ'
54: 0, # 'Ό'... | [
"blackan.andrew@gmail.com"
] | blackan.andrew@gmail.com |
16fa6e966a886a19d56536fa8cf8491fc578242a | d43c842066568b4fd2744dcf9d11f1e055f33533 | /Value_Passing.py | 5265b8172b5f19f49bbd9197b9b56f312f296cff | [] | no_license | LRBeaver/Eduonix | 1498b74673191b94a73122a1ceb87ce2733be5e0 | 3fea48de09406b307fb3a2bda4a79b191ebc7ee2 | refs/heads/master | 2021-01-01T05:09:05.684263 | 2016-04-14T12:46:50 | 2016-04-14T12:46:50 | 56,150,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py | __author__ = 'lyndsay.beaver'
import sqlite3 as sq1
import random as rnd
#"{:,}".format(value)
starting = 10000
balance = starting
portfolio = {'DEF': 23, 'HGI': 14}
goto_menu = True
def create_market():
stocks = ['ABC', 'DEF', 'HGI', 'LMK', 'OMN', 'PQR', 'STU', 'XYZ']
prices = []
for x i... | [
"lrbeaver@gmail.com"
] | lrbeaver@gmail.com |
b069c7286565121aa31df708255a42c4cf974aec | 0c0a6a41b5bb15e74f2e938218a971d6036dfd0d | /drf33/drf33/wsgi.py | 1bafeb630b2a54b39e4e6b9b620f566946b72aeb | [] | no_license | kamal0072/API-s-based-on-drf-and-python | 54067cd1b364a50ace2c3f4b35cccaafc977d39f | b31299ff2bc32f836c85f402dbe2cfa34f34dd69 | refs/heads/master | 2023-03-25T16:51:36.511505 | 2021-03-24T16:27:46 | 2021-03-24T16:27:46 | 351,147,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for drf33 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"hasan.kamaal0072@gmail.com"
] | hasan.kamaal0072@gmail.com |
bf43c5326af5d8e787fac71fd0fc922cd670547e | a983c40db193d9294ea93628c57f514e0e6e9c2a | /src/foobar/tests/factories.py | 7e984e25eb1cdd741c9808f3306c4b560a551015 | [
"MIT"
] | permissive | ElinSwedin/foobar-api | 80f4d1dd5e0dabefb80eab77bd92e4e8a277c9b9 | 7ab204894c7579dd3f9dec3d2cee1166eb046199 | refs/heads/develop | 2021-01-19T12:26:27.085054 | 2017-02-17T09:42:11 | 2017-02-17T11:05:38 | 82,311,799 | 2 | 0 | null | 2017-02-17T15:43:49 | 2017-02-17T15:43:49 | null | UTF-8 | Python | false | false | 357 | py | import factory.fuzzy
from .. import models
class AccountFactory(factory.django.DjangoModelFactory):
class Meta:
model = models.Account
class CardFactory(factory.django.DjangoModelFactory):
class Meta:
model = models.Card
account = factory.SubFactory(AccountFactory)
number = factory.... | [
"me@kjagiello.com"
] | me@kjagiello.com |
d2d22d2036ec1a5af95da77011958e0626cd942e | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/YoloV3_ID1790_for_PyTorch/mmdet/utils/__init__.py | 1d0f5d079c31a67df97619bf03d90a7cefcbfe6d | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 712 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 law or agree... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
f7618c6c3a3814104dcea811a3e0e2ba239fdb94 | a262151ecb151b4c8335354c972fb166b81f4635 | /sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_content_type_operations.py | aa6c61a99cb815b84793ef85a70a9c6f0326f033 | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | fenwickt/azure-sdk-for-python | 5fc8f3383caa4e5e7a61f5b497a73635c4377935 | 0d1f644925d2472c72b195588508bd0efc4baf0c | refs/heads/master | 2023-03-31T08:02:37.322485 | 2021-03-29T07:48:41 | 2021-03-29T07:48:41 | 319,299,226 | 0 | 0 | MIT | 2020-12-07T11:31:48 | 2020-12-07T11:31:48 | null | UTF-8 | Python | false | false | 16,474 | 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 may ... | [
"noreply@github.com"
] | fenwickt.noreply@github.com |
3083404bcc18fc9eaa40401f79460e27f1f54987 | 74230f68a1bb947c88b3448e537fe41ce2c820b9 | /2018/whalectf/web2/x.py | ad194a64c362f73799304d1594c474ac6a23fda8 | [] | no_license | virink/ctflog | 98934a3d6af470ed9eb338beefc7487dbdaf3b3f | e5ed8f7fdf7945f9aa781824184131b00529d073 | refs/heads/master | 2020-05-02T13:15:08.256096 | 2020-03-09T03:48:05 | 2020-03-09T03:48:05 | 177,979,168 | 49 | 10 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | import requests
import itertools
import hashlib
import string
import random
import re
URL = "http://106.39.10.134:10002/index.php?action=admin&mode="
class Problem:
def __init__(self):
self.rand = "wh"
self.url = URL + "index"
self.csrf = URL + 'login'
self.setpagenum = URL + 'se... | [
"virink@outlook.com"
] | virink@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.