blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
6012e1f1866de8de31f4b974be0306f5056a8448 | cad91ae76d2746a6c28ddda0f33a58f9d461378f | /PyTorch/Classification/ConvNets/triton/model.py | ca68fced5f0fe40bbe9d8415c35ddae661463d78 | [
"BSD-3-Clause"
] | permissive | NVIDIA/DeepLearningExamples | fe677521e7e2a16e3cb0b77e358f9aab72f8c11a | a5388a45f71a949639b35cc5b990bd130d2d8164 | refs/heads/master | 2023-08-31T20:57:08.798455 | 2023-08-23T10:09:12 | 2023-08-23T10:09:12 | 131,881,622 | 11,838 | 3,124 | null | 2023-08-28T16:57:33 | 2018-05-02T17:04:05 | Jupyter Notebook | UTF-8 | Python | false | false | 2,282 | py | # Copyright (c) 2021-2022, NVIDIA CORPORATION. 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 a... | [
"kkudrynski@nvidia.com"
] | kkudrynski@nvidia.com |
9baffbf6400b75ff897d651e29a37482f361074a | 780b01976dad99c7c2ed948b8473aa4e2d0404ba | /scripts/alphas_archive/zs_callspread/alpha_ichimokucloud_short_bearish_dec13.py | 0524cd48e92e52d51a903a2473ec20f0e8cb794c | [] | no_license | trendmanagement/tmqrexo_alexveden | a8ad699c2c3df4ce283346d287aff4364059a351 | 4d92e2ee2bc97ea2fcf075382d4a5f80ce3d72e4 | refs/heads/master | 2021-03-16T08:38:00.518593 | 2019-01-23T08:30:18 | 2019-01-23T08:30:18 | 56,336,692 | 1 | 1 | null | 2019-01-22T14:21:03 | 2016-04-15T17:05:53 | Python | UTF-8 | Python | false | false | 1,433 | py | #
#
# Automatically generated file
# Created at: 2016-12-16 11:17:40.443940
#
from backtester.swarms.rebalancing import SwarmRebalance
from backtester.swarms.rankingclasses import RankerBestWithCorrel
from backtester.strategy import OptParam
from backtester.strategy import OptParamArray
from strategies.strateg... | [
"i@alexveden.com"
] | i@alexveden.com |
f3d969aac241516fb33fc71462b9f4fba660ef17 | 8d753bb8f19b5b1f526b0688d3cb199b396ed843 | /osp_sai_2.1.8/system/apps/web/api/ipv4_static.py | fd41097596b6d6dd5580c8298e51ee5f2d4cd478 | [] | no_license | bonald/vim_cfg | f166e5ff650db9fa40b564d05dc5103552184db8 | 2fee6115caec25fd040188dda0cb922bfca1a55f | refs/heads/master | 2023-01-23T05:33:00.416311 | 2020-11-19T02:09:18 | 2020-11-19T02:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,671 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
'''
Created on May 9, 2016
@author: wangqj
'''
import base
import types
from vcl import vcmd
from base import log
def ipv4_static_route_set(req_data):
"""
API:
PUT: {/*static_route_cfg*/
dest : dest,
mast : mast,
next... | [
"zhwwan@gmail.com"
] | zhwwan@gmail.com |
dcd6b11f7192a11c3ecf75f1547fc353429eb35e | fb82fdf706863465b1f357cd1fa0447474cd8a70 | /ServerComponent/venv/Lib/site-packages/dask/array/backends.py | d2d0e5686294a5479f0a0b567bd3fec037142075 | [
"MIT"
] | permissive | CDU55/FakeNews | d79e2a069b3f1392f779d5b2256cd54c696e789a | 707bd48dd78851081d98ad21bbdadfc2720bd644 | refs/heads/main | 2023-02-20T06:27:18.618837 | 2021-01-17T15:14:27 | 2021-01-17T15:14:27 | 305,167,221 | 0 | 1 | MIT | 2020-12-07T19:51:46 | 2020-10-18T18:16:49 | Python | UTF-8 | Python | false | false | 2,867 | py | from .core import tensordot_lookup, concatenate_lookup, einsum_lookup
@tensordot_lookup.register_lazy("cupy")
@concatenate_lookup.register_lazy("cupy")
def register_cupy():
import cupy
concatenate_lookup.register(cupy.ndarray, cupy.concatenate)
tensordot_lookup.register(cupy.ndarray, cupy.tensordot)
... | [
"48147775+BiancaChirica@users.noreply.github.com"
] | 48147775+BiancaChirica@users.noreply.github.com |
2c0ebdc25fc3ee44aa04886294b16f91b75e5ba2 | 25fa5fdc9f67738332bd6f95a1e4f038cd286890 | /이것이 코딩테스트다/ch06_정렬/위에서 아래로.py | 12ceb5164b219ed0e04df7f640d10bafc338b946 | [] | no_license | mandos1995/online_judge | b0cfd56e3391495f22b9832895cddcea70334349 | 9b90bffdcbfb5369e8dd5dafbb07f8e9e7050617 | refs/heads/main | 2023-08-02T19:29:03.716295 | 2021-10-04T15:10:34 | 2021-10-04T15:10:34 | 329,517,747 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # 내가 푼 풀이
n = int(input())
num = []
for _ in range(n):
num.append(int(input()))
num.sort(reverse=True)
print(*num)
# 책 풀이
n = int(input())
array = []
for i in range(n):
array.append(int(input()))
array = sorted(array, reverse=True)
for i in array:
print(i, end=' ')
| [
"mandos19950620@gmail.com"
] | mandos19950620@gmail.com |
95cac80c28398f566f4a40a5bb805077c288f84a | caf8cbcafd448a301997770165b323438d119f5e | /.history/spider/car_spider_20201124005429.py | 4d3d4c95ab810d3b816c7d5c39292bf92e1a4647 | [
"MIT"
] | permissive | KustomApe/nerdape | 03e0691f675f13ce2aefa46ee230111247e90c72 | aef6fb2d1f8c364b26d91bf8570b4487a24de69a | refs/heads/main | 2023-01-23T10:13:26.584386 | 2020-11-28T22:29:49 | 2020-11-28T22:29:49 | 309,897,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | from selenium import webdriver
import pandas as pd
import time
"""[Initial Setting]
初期設定
"""
options = webdriver.ChromeOptions()
options.add_argument('--headeless')
options.add_argument('--disable-gpu')
options.add_argument('--lang-ja')
browser = webdriver.Chrome(chrome_options=options, executable_path='./chromedriver... | [
"kustomape@gmail.com"
] | kustomape@gmail.com |
ea1f514b221e3da47bcd6f653c87d5463cbe7364 | bec7e9f655df1758ad39cc1274defbb1cbd6d69b | /aux2mongodb/cron.py | 8015655288bd70751007dd9ee72c3ed05caeff97 | [
"MIT"
] | permissive | fact-project/aux2mongodb | 5558ca79098adf5f3216b90e34be9afa6c427f08 | fb24f427a1773181bb3818df9d168c191b2042e5 | refs/heads/master | 2021-01-09T20:33:14.103536 | 2016-10-28T17:44:38 | 2016-10-28T17:44:38 | 61,431,857 | 1 | 0 | null | 2016-11-11T14:39:21 | 2016-06-18T12:10:25 | Python | UTF-8 | Python | false | false | 2,150 | py | import schedule
from time import sleep
from datetime import datetime, timedelta
from argparse import ArgumentParser
import yaml
import logging
import os
from . import supported_services, connect_to_database, fill_service
dotdir = os.path.join(os.environ['HOME'], '.aux2mongo')
os.makedirs(dotdir, exist_ok=True)
parse... | [
"maximilian.noethe@tu-dortmund.de"
] | maximilian.noethe@tu-dortmund.de |
f52c1aa50d2b07a45e94a21ac4899852e5d60ff3 | 68a80b5d7f6bc7d7b531b36dc3e99b344fe20161 | /wort/blueprints/api/auth.py | 1eca16d7af4866a2893dfc39ff9aba6c7626ecb6 | [
"BSD-3-Clause"
] | permissive | mschatz/wort | cbc26451b2ff258137d8121413f1253600130be9 | 719354df806f82478afd23f647d4c5a1eaa47496 | refs/heads/master | 2021-04-27T12:09:27.711150 | 2018-02-21T19:52:44 | 2018-02-21T19:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | from flask import g
from flask_httpauth import HTTPBasicAuth
from wort.models import User
from wort.ext import basic_auth, token_auth
from .errors import error_response
@basic_auth.verify_password
def verify_password(username, password):
user = User.query.filter_by(username=username).first()
if user is None... | [
"luiz.irber@gmail.com"
] | luiz.irber@gmail.com |
c357993bff40941ced5e3f0b3ff399e5c91d9e5e | e4066b34668bbf7fccd2ff20deb0d53392350982 | /project_scrapy/spiders/time.py | 056533dd640549e8faec42b4ab370fa5213ed7ab | [] | no_license | sushma535/WebSites | 24a688b86e1c6571110f20421533f0e7fdf6e1a8 | 16a3bfa44e6c7e22ae230f5b336a059817871a97 | refs/heads/master | 2023-08-18T09:09:16.052555 | 2021-10-11T00:41:50 | 2021-10-11T00:41:50 | 415,621,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | import scrapy
from scrapy.crawler import CrawlerProcess
import os
import csv
from csv import reader
import re
total_data = {}
class SimilarWeb(scrapy.Spider):
name = 'SW'
user_agent = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36'
start_url... | [
"sushmakusumareddy@gmail.com"
] | sushmakusumareddy@gmail.com |
bd4f5d3eb99190a0c5238a45e1384b11dd9d641d | f8e010bd080d66f5a2d40c8a525eaf9802116833 | /scripts/calcfpp | 95c7bfbe019cf4a564176912ca1c8d2b2c98e690 | [
"MIT"
] | permissive | MNGuenther/VESPA | 6d45523e210b7dfc7e31e0fa0d09aa8b8b467a55 | 85c30d6351ee881fb1448690ca66acf94fb51d4a | refs/heads/master | 2021-06-29T04:05:25.811311 | 2017-07-06T17:53:10 | 2017-07-06T17:53:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,120 | #!/usr/bin/env python
"""
This script runs an FPP calculation for a provided
transit signal.
All parameters are defined in the ``.ini`` files,
which are by default assumed to be
in the current path (or in the folder defined as the
argument to this script).
The ``fpp.ini`` file should be of the following form::
... | [
"tim.morton@gmail.com"
] | tim.morton@gmail.com | |
952de4b05d81828c3b96db02c5261f60e2ec107f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/473/usersdata/348/110167/submittedfiles/Av2_Parte3.py | 7ed6fcb224edb9ff0daa8747afda072ae1822b00 | [] | 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 | 1,210 | py | # -*- coding: utf-8 -*-
n = int(input('informe a quantidade de elementos: '))
#lista 1
a =[]
for i in range (0,n,1):
a.append(int(input('informe o %.d° elemento da lista1: ' %(i + 1))))
print(a)
#lista 2
'''
b = []
for i in range (0,n,1):
b.append(int(input('informe o %.d° elemento da lista2: ' %(i + 1))))... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
53d61d01d7378d11389cf9c383f9b67f7b41e91b | 66669cfa3a982b75d5eb4c566b41c4847bb9c8d3 | /src/test/scenarios/compute/output/core_Incremental/src/azure-cli/azure/cli/command_modules/vm/generated/custom.py | c139208cfeb4d856d951a47f1896fbc127b6e052 | [
"MIT"
] | permissive | isabella232/autorest.az | 6bf92578cb3adb7d828bc7156c20fd6508d2bdd4 | a237977061608b9cdd8b66cbc27dd3db8891a669 | refs/heads/master | 2023-03-08T00:00:22.852751 | 2020-12-04T09:25:51 | 2020-12-04T09:25:51 | 318,479,773 | 0 | 0 | MIT | 2021-02-24T09:10:08 | 2020-12-04T10:21:34 | null | UTF-8 | Python | false | false | 918 | py | # --------------------------------------------------------------------------
# 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 cause incor... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
a43ac8351a9de89329e16b17eaed98ed93eb4e23 | 33a50bb13812090a36257078522b798762978c66 | /aliyun/api/rest/Ecs20130110AuthorizeSecurityGroupRequest.py | 6da48d3f81fa4463de0be74e455d85a67e4e6490 | [] | no_license | aa3632840/quanlin | 52ac862073608cd5b977769c14a7f6dcfb556678 | 2890d35fa87367d77e295009f2d911d4b9b56761 | refs/heads/master | 2021-01-10T22:05:14.076949 | 2014-10-25T02:28:15 | 2014-10-25T02:28:15 | 23,178,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | '''
Created by auto_sdk on 2014-09-08 16:48:02
'''
from aliyun.api.base import RestApi
class Ecs20130110AuthorizeSecurityGroupRequest(RestApi):
def __init__(self,domain='ecs.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.IpProtocol = None
self.NicType = None
self.Policy = None
self.PortRang... | [
"262708239@qq.com"
] | 262708239@qq.com |
c441f7ee4e5ca9bed6fffdf9b64c096fe92868a7 | 1a4a938f7936dd7ec44adf51fc0834a5b587e919 | /polygon/product/tests/test_product_tags.py | 51c45ad80fa0d2ad819acb9e2e73ce86ce61c5da | [
"CC-BY-4.0",
"BSD-3-Clause"
] | permissive | nanotob/Polygon | 6930148bd99d72fc5a659f71ef9259f12b941c04 | 55b7f10c5400be91144aab576f5b002a5eeb51aa | refs/heads/master | 2023-01-24T02:54:44.706552 | 2020-11-22T15:00:27 | 2020-11-22T15:00:27 | 314,883,716 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,243 | py | from unittest.mock import Mock, patch
import pytest
from django.templatetags.static import static
from django.test import override_settings
from ..templatetags.product_images import (
choose_placeholder,
get_product_image_thumbnail,
get_thumbnail,
)
@override_settings(VERSATILEIMAGEFIELD_SETTINGS={"crea... | [
"sendmesymbols@gmail.com"
] | sendmesymbols@gmail.com |
b29387b4466434f2769376d92fb2c0b072d97065 | cd65c043061b6534b8d9c822dd3e6fdd8b2c01b9 | /test.py | 42c1ba63fe737869a911a04248d143a9758c67fe | [
"MIT"
] | permissive | GabrielAmare/tklib37 | 7cabf41520a4efe433a428f84417734606b6c251 | 5da3353045b0f75ccfcec48b33ea2ba70f4854a0 | refs/heads/main | 2023-03-31T09:27:44.780505 | 2021-04-09T02:10:29 | 2021-04-09T02:10:29 | 342,272,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | import unittest
from tklib37 import *
from datetime import datetime, date
class TestTypedEntry(unittest.TestCase):
def test_001(self):
tk = Tk()
for value in [1, False, "x", 1.5, date.today(), datetime.now()]:
type_ = type(value)
entry = TypedEntry(tk, type_=type_, value=... | [
"67603418+GabrielAmare@users.noreply.github.com"
] | 67603418+GabrielAmare@users.noreply.github.com |
5d6d64f52a5b416675022163ce2952f0b0058ead | 9ee8de4544d9de8b9690bf425245103d0b77fc5b | /examples/convexify.py | 8fca5b6a62e39982c4bb09928922cbd6c7e17fbb | [
"MIT"
] | permissive | Artur-Sampaio/trimesh | 80a926495b1f71eedc99fb82130575841c4c9ae7 | 3743ae2d932d9f7eab9ad69e2626e1646589bb2c | refs/heads/master | 2020-03-23T13:17:14.545609 | 2018-07-20T16:15:54 | 2018-07-20T16:15:54 | 141,610,010 | 0 | 0 | MIT | 2018-07-19T17:16:51 | 2018-07-19T17:16:51 | null | UTF-8 | Python | false | false | 1,398 | py | '''
examples/convexify.py
Take a mesh with multiple bodies, take the convex hull
of each body, then combine them back into one mesh.
Useful for generating collision models of an object.
'''
import sys
import trimesh
import numpy as np
if __name__ == '__main__':
# attach to trimesh logs
trimesh.util.att... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
831fbb166fa6a0b89f545ea87d52b04dea9dfa7d | c489dd902955d805b6753f847c4fee38281c4c2f | /VB_Classes/Harris_Corners.py | c2378cf29666a539e0a473b2f2b83edeb258b455 | [
"MIT"
] | permissive | germal/OpenCVB | f4f866abdc1910ccac5804ff8581702f38d2e93b | 312c452f3e981aa8238aa5f2d3d9928100bbeab6 | refs/heads/master | 2023-03-06T06:09:15.749020 | 2021-02-19T00:11:52 | 2021-02-19T00:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | import cv2 as cv
import numpy as np
import argparse
title_window = 'Harris_Corners.py'
source_window = 'Source image'
corners_window = 'Corners detected'
max_thresh = 255
def cornerHarris_demo(val):
thresh = val
# Detector parameters
blockSize = 2
apertureSize = 3
k = 0.04
# Detecting corner... | [
"bobdavies2000@gmail.com"
] | bobdavies2000@gmail.com |
3f445ff1e79eb7556f04506b24ef4593e915948f | 6b148a053f5406e7daf2082fa1581d328972cca2 | /Predictor/Tools/DataTools/__init__.py | 3372e8a5da7d004a18746a28954fd9d5762111f8 | [] | no_license | CNDPlab/MSMARCO_Reshaped | cbfa8646b83eb1b4b2f142251f32518756b67a81 | 31c55ce4d2188f97978574f1793659824b737f1b | refs/heads/master | 2020-04-04T22:04:05.585829 | 2018-11-21T01:40:36 | 2018-11-21T01:40:36 | 156,309,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from .build_data_structure import *
from .extract_feature import *
from .extract_golden_span import *
from .tokenize import *
from .main import process_instance
from .pad import pad | [
"lancertong@live.com"
] | lancertong@live.com |
b3092ce323a8b7c080218c8098f41aa788e9e1ac | 5b2cf11d940201b91b68a74d2fd821ab7f6d5f6e | /掘金多因子开发测试/大师选股策略/master_strategy_backtest_industry_SW1.py | 21669e7c58e143faed3ae0d6c47cec07b835c630 | [] | no_license | huning2009/multi-factor-gm-wind-joinquant | 03bd9b7241daa0be268b6120c172ed4a9ddb0c28 | 43a2be75766a1e2cdfd94d46375e4a5491ce5c81 | refs/heads/master | 2020-06-24T13:44:54.068290 | 2019-07-24T02:34:54 | 2019-07-24T02:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,276 | py | from gm.api import *
import QuantLib as ql
from WindPy import w
import json
import sys
sys.path.append('D:\\programs\\多因子策略开发\\掘金多因子开发测试\\工具')
# 引入工具函数和学习器
from utils import get_trading_date_from_now, list_wind2jq, list_gm2wind, get_SW1_industry, SW1_INDEX
from 行业轮动SW1 import RSRS_standardization
from master_strategy i... | [
"395871987@qq.com"
] | 395871987@qq.com |
8e685fee376e9ec0e732e1b32657374b8312c5cc | 8ee5dcbdbd407eb5f294d430813b16eca22f571c | /data/HW3/hw3_469.py | 90e5df8ffcf7b807b5587ba24e354a32b8ea4895 | [] | no_license | MAPLE-Robot-Subgoaling/IPT | 5e60e2ee4d0a5688bc8711ceed953e76cd2ad5d9 | f512ea3324bfdceff8df63b4c7134b5fcbb0514e | refs/heads/master | 2021-01-11T12:31:00.939051 | 2018-08-13T23:24:19 | 2018-08-13T23:24:19 | 79,373,489 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | def main():
temp = float(input("Please enter the temperature:"))
CorK = input("please enter 'C' for celcius, or 'K' for Kelvin:")
if(CorK == "K"):
if(temp<=273.15):
print("At this temperature, water is a (frozen) solid.")
elif(temp>=373.15):
print("At this temperature... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
b8163bb76b64c4e499e68a26242ef77d3de458f2 | c60dacc471ce6e3e6d3682f5503b67802a62a13a | /Courses/models.py | 40ce4f23534185f9bd284136b68221d0df410e1b | [] | no_license | Pagante/CourseProject | 287c589049f88a6595dac09a5b81a3b5d2ba01ae | b3d3c35fe421af85847b9dc3196bdcea7a7bfed4 | refs/heads/main | 2023-04-21T22:24:18.394138 | 2021-04-19T00:00:54 | 2021-04-19T00:00:54 | 359,221,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from django.db import models
# Create your models here.
class PortFolio(models.Model):
category = models.CharField(max_length=100)
project_name = models.CharField(max_length=200)
image = models.ImageField(upload_to='Photos/')
def __str__(self):
return self.category
| [
"55301195+Pagante@users.noreply.github.com"
] | 55301195+Pagante@users.noreply.github.com |
8019d07fd18a383ea4b2b4aee568d4e053c77c39 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/thirtyPercent/rank_4gn3_T.py | ba2aeacb0a175cda93e36cef65c8efd46aaa8373 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
b1ee2ad031044be546f966297a588b38b7d65d0e | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/azurestackhci/__init__.py | 51babcc378bc50dba4523ec83a271f86ffb3b083 | [
"BSD-3-Clause",
"Apache-2.0"
] | 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 | 1,040 | 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! ***
from .. import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .arc_setting import *
from .cluster impo... | [
"noreply@github.com"
] | morrell.noreply@github.com |
51e67513a8db8da1373e13374df30fe87cbda1a6 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20191204/example_metashape/03nested-dataclass/main.py | 2cd4947eaa4d470159158c3aaf7439f220c29395 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 273 | py | import dataclasses
import logging
from dictknife import loading
from magicalimport import import_symbol
logging.basicConfig(level=logging.DEBUG)
target = import_symbol("./conf.py:toplevel", here=__file__)
d = dataclasses.asdict(target)
loading.dumpfile(d, format="yaml")
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
ff9a988af60480f44f3fc709648dbc55292cda18 | c15899ee195d5e4ee978f271767b899bcfe6ea60 | /ports/www/pyload/files/patch-module-utils.py | 479ba5dbea1d856fbbe794caf406e2ab22fcb879 | [] | no_license | josh4trunks/freenas-plugins | d39159aa8454ea6be02923cf276348124c84033c | ff7a4276fe4d6584700d271b10d350b23f3c03c5 | refs/heads/master | 2020-12-01T13:04:10.856791 | 2018-10-16T13:50:30 | 2018-10-16T13:50:30 | 26,624,312 | 34 | 13 | null | 2017-08-02T10:38:23 | 2014-11-14T05:46:58 | Python | UTF-8 | Python | false | false | 315 | py | --- module/utils.py.orig 2014-01-18 15:28:37.000000000 +0100
+++ module/utils.py 2014-02-07 15:27:44.256166988 +0100
@@ -110,7 +110,7 @@
from os import statvfs
s = statvfs(folder)
- return s.f_bsize * s.f_bavail
+ return s.f_frsize * s.f_bavail
def uniqify(seq, idfun=None):
| [
"joshruehlig@gmail.com"
] | joshruehlig@gmail.com |
20adc66f40026756430e7551bbcbb5ab6f227987 | 34a1e1a3c75a74c11e37153b69fd889ef9fb7e44 | /monitorrent/tests/plugins/clients/test_downloader.py | 39376bbc5f4b14126005fa2b38dc7dc9fa348539 | [
"WTFPL"
] | permissive | antirek/monitorrent | fbf1a720d0b64d8b534f9abd21e8b2ecb1ef8232 | 8b2caa6ad1188ae52f4a2b2e48a11bfe73904ebe | refs/heads/master | 2021-01-21T04:04:47.636724 | 2016-07-18T22:27:50 | 2016-07-18T22:27:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,137 | py | import os
import sys
import shutil
from datetime import datetime
from mock import patch, mock_open, MagicMock, Mock
from monitorrent.tests import DbTestCase, ReadContentMixin, tests_dir
from monitorrent.plugins.clients.downloader import DownloaderPlugin
from monitorrent.utils.bittorrent import Torrent
from pytz import ... | [
"werwolf.by@gmail.com"
] | werwolf.by@gmail.com |
1f42cd09300d116fe9d212dc2c6498775a21ef21 | 571ebcf06cc01309231a97a963f531f8dd90963d | /Hacking Scripts/network_programs/http_sniffer.py | 71e372fd65b81d2b4c3a9affb1325da4a1d2b716 | [] | no_license | SV-ZeroOne/Python-Projects | 3da0ec813e2764d5a3cd8f1d9825e698e368a84e | 8820c346e0dde3b4023ce400cb722d08c1b4c52e | refs/heads/master | 2023-08-19T20:43:07.294205 | 2021-10-16T11:57:33 | 2021-10-16T11:57:33 | 95,302,475 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | #!/usr/bin/python
# needed to pip install scapy_http
# sniffs HTTP traffic data for any of the words in the words list
import scapy.all as scapy
from scapy_http import scapy_http
def sniff(interface):
scapy.sniff(iface=interface, store=False, prn=process_packets)
def process_packets(packet):
if packet.has... | [
"steve@elitehost.co.za"
] | steve@elitehost.co.za |
c030c7de67b5b84b8b35a9e50e37022200e6c8d2 | 83e2fe88d4537403ee710b631d7d3e8c65415092 | /services/web__bnr_nl.py | 29944a8617ef4981f38a098335ec406e3b86d39e | [] | no_license | ArchiveTeam/NewsGrabber-Services | b01f560b18bd5395673132321c16bcf7602608f1 | 2d52eb06a6ca767f4b1d1e623505fa427b6af459 | refs/heads/master | 2020-01-23T21:40:57.220775 | 2019-07-01T09:56:38 | 2019-07-01T09:56:38 | 74,690,301 | 3 | 8 | null | 2019-06-03T19:49:47 | 2016-11-24T16:41:59 | Python | UTF-8 | Python | false | false | 215 | py | refresh = 1800
version = 20161106.01
urls = ['http://www.bnr.nl',
'http://www.bnr.nl/?widget=rssfeed&view=feed']
regex = [r'^https?:\/\/[^\/]*bnr\.nl']
videoregex = [r'^https?:\/\/[^\/]*bnr\.nl']
liveregex = []
| [
"Arkiver@hotmail.com"
] | Arkiver@hotmail.com |
2a7845b68e1169340513a8a52f76f571a9dcb3b8 | c71ff6fb15cbf98453fb3e2055594c085009d76e | /.old/0.3/manage.py | 4e7546713784723a069fd9548c4afedadd96e08c | [] | no_license | slagovskiy/lagovskiy.com | c37fa7f92555feccdcd94458a43490b9e5ced2d3 | e2785dfd07643aad8e16e9208cde3294ad543b0e | refs/heads/master | 2023-01-13T03:20:48.601919 | 2021-02-03T10:20:47 | 2021-02-03T10:20:47 | 6,757,957 | 3 | 0 | null | 2022-12-11T11:40:52 | 2012-11-19T09:42:24 | JavaScript | UTF-8 | Python | false | false | 358 | py | from project import app, db
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
from config import SQLALCHEMY_MIGRATE_REPO
migrate = Migrate(
app=app,
db=db,
directory=SQLALCHEMY_MIGRATE_REPO
)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __na... | [
"slagovskiy@gmail.com"
] | slagovskiy@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.