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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14bc887b39a0ef1763ad3da22c7d9239cd101b13 | 3803b6364290e21061e8c0c97d3e9c0b204c50fc | /gae_main.py | 7533cd5125638887f7837401aa16cc45aa1c6a9d | [] | no_license | t0ster/django-gae-buildout-skeleton | 5a146b94d35ff466b9ee5e981c0ecdfb31eb28b5 | 71c3553b661fbd58937797d352f1a337c1641b0a | refs/heads/master | 2020-05-27T06:28:21.745403 | 2011-06-27T19:24:21 | 2011-06-27T19:24:21 | 1,962,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | import sys
from os.path import dirname, abspath, join
PROJECT_DIR = join(abspath(dirname(__file__)), "testapp")
if PROJECT_DIR not in sys.path or sys.path.index(PROJECT_DIR) > 0:
while PROJECT_DIR in sys.path:
sys.path.remove(PROJECT_DIR)
sys.path.insert(0, PROJECT_DIR)
import djangoappengine.main.m... | [
"roman@bravetstudio.com"
] | roman@bravetstudio.com |
39b77ac51e19c5f33bf7b51871b0966c27a13121 | 141b42d9d72636c869ff2ce7a2a9f7b9b24f508b | /myvenv/Lib/site-packages/phonenumbers/data/region_SC.py | b0e98d3e74585ab661b7fde30f9021a9aaefbf4c | [
"BSD-3-Clause"
] | permissive | Fa67/saleor-shop | 105e1147e60396ddab6f006337436dcbf18e8fe1 | 76110349162c54c8bfcae61983bb59ba8fb0f778 | refs/heads/master | 2021-06-08T23:51:12.251457 | 2018-07-24T08:14:33 | 2018-07-24T08:14:33 | 168,561,915 | 1 | 0 | BSD-3-Clause | 2021-04-18T07:59:12 | 2019-01-31T17:00:39 | Python | UTF-8 | Python | false | false | 971 | py | """Auto-generated file, do not edit by hand. SC metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_SC = PhoneMetadata(id='SC', country_code=248, international_prefix='0(?:[02]|10?)',
general_desc=PhoneNumberDesc(national_number_pattern='[24689]\\d{5,6}', possible_le... | [
"gruzdevasch@gmail.com"
] | gruzdevasch@gmail.com |
410c72545e00ff4b20fa2686e2cb0a81edbfd253 | 0cea2eef085a16792b0722b5ea1ccecf22ebf56a | /emu/tests/test_wps_wordcounter.py | 7957d44ea5c7acf1ec7c8b324c4d11a2df58fc2a | [
"Apache-2.0"
] | permissive | Ouranosinc/emu | 6931657412c2a3412e9548b2ad80a91c7362e79b | f3b92f44555b9e85f8c62e8e34a8a59d420a1c67 | refs/heads/master | 2021-05-04T02:00:59.517729 | 2016-11-18T17:48:31 | 2016-11-18T17:48:31 | 71,271,528 | 0 | 0 | Apache-2.0 | 2020-11-11T03:21:22 | 2016-10-18T17:03:47 | Python | UTF-8 | Python | false | false | 550 | py | import pytest
from pywps import Service
from emu.tests.common import client_for, assert_response_success
from emu.processes.wps_wordcounter import WordCounter
@pytest.mark.online
def test_wps_wordcount():
client = client_for(Service(processes=[WordCounter()]))
datainputs = "text={0}".format(
"https:... | [
"ehbrecht@dkrz.de"
] | ehbrecht@dkrz.de |
ddc2256caa53e5da02d9ef82936e44811ede8002 | 71e50200ed8fec2bd567b060d52b6ab5c216dc08 | /app/auth/forms.py | 3a2250613203d75d661a4c5f7f01523c90374425 | [
"MIT"
] | permissive | ThiraTheNerd/the_blog | 5361d7b92be857e4576d3d96e64c176539ff7cba | 3edd51b2507726b4339f3b59b95133f9e2005700 | refs/heads/master | 2023-06-10T15:16:06.112694 | 2021-06-27T07:59:02 | 2021-06-27T07:59:02 | 379,469,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | from flask_wtf import FlaskForm
from wtforms import StringField,PasswordField,SubmitField,ValidationError,BooleanField
from wtforms.validators import Required,Email,EqualTo
from ..models import User
class RegistrationForm(FlaskForm):
email = StringField('Your Email Address',validators=[Required(),Email()])
usernam... | [
"thiragithinji@gmail.com"
] | thiragithinji@gmail.com |
264ea3af5cb07d50065bcd17d8510014c65e8225 | 65b4522c04c2be071c2d42095956fe950fe1cebe | /agu-paper/near_field_co_disp/verticals/plot_co_obs_pred.py | 1c81afdcebed862eb9e1599a073dafd28848637f | [] | no_license | geodesy/viscojapan | ac0cd93f7a2134cd2651623b94879dcc21c0c46a | 03e70265b56eb5994e73bcb6066f0be338e42f27 | refs/heads/master | 2021-03-03T18:19:07.779601 | 2015-07-16T03:50:49 | 2015-07-16T03:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,052 | py | from os.path import join
import numpy as np
import tempfile
import pGMT
import viscojapan as vj
gmt = pGMT.GMT()
gmt.gmtset('ANNOT_FONT_SIZE_PRIMARY','9',
'LABEL_FONT_SIZE','9',
'BASEMAP_TYPE','PLAIN',
)
gplt = gmt.gplt
lon1 = 139
lon2 = 145
lat1 = 34.7
lat2 = 41
gplt.psbasemap(
... | [
"zy31415@gmail.com"
] | zy31415@gmail.com |
b8543bcd94f5a24fda57f0ec6485022513811113 | e443674961b04476e96b0db3b7a963966bf72818 | /score/urls.py | d6fc782e280fdac71818a20f18de39f8174172f9 | [
"BSD-3-Clause"
] | permissive | jbbqqf/okapi | 14ded14219ba9ed9dc0acaea1c6b97a2b10afa73 | 3db29ef1e15685fae304190bd176f75c4e367d03 | refs/heads/master | 2022-11-28T15:08:37.357135 | 2016-01-04T16:01:25 | 2016-01-04T16:01:25 | 283,250,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter
from score.views import stats, mystats, ScoreView, CurrentScoreView
router = DefaultRouter()
router.register(r'scores', ScoreView)
router.register(r'currentscores', CurrentScoreView)
urlpatterns = [
... | [
"jbaptiste.braun@gmail.com"
] | jbaptiste.braun@gmail.com |
c301f72048c538c25d20741d719ccdcd362b3ffb | ad0857eaba945c75e705594a53c40dbdd40467fe | /baekjoon/python/pow_of_matrix_10830.py | 96dbae8eb57691de783032c11a2b4137b5b2df3e | [
"MIT"
] | permissive | yskang/AlgorithmPractice | c9964d463fbd0d61edce5ba8b45767785b0b5e17 | 3efa96710e97c8740d6fef69e4afe7a23bfca05f | refs/heads/master | 2023-05-25T13:51:11.165687 | 2023-05-19T07:42:56 | 2023-05-19T07:42:56 | 67,045,852 | 0 | 0 | null | 2021-06-20T02:42:27 | 2016-08-31T14:40:10 | Python | UTF-8 | Python | false | false | 1,347 | py | # Title: 행렬 제곱
# Link: https://www.acmicpc.net/problem/10830
import sys
import copy
sys.setrecursionlimit(10 ** 6)
read_list_int = lambda: list(map(int, sys.stdin.readline().strip().split(' ')))
def multiple_matrix(n: int, a: list, b: list):
res = []
for row in a:
t_row = []
... | [
"yongsung.kang@gmail.com"
] | yongsung.kang@gmail.com |
777aadcb892990786aef2675249423db680d99b2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_099/ch34_2019_08_28_17_31_34_673027.py | 1e0afb12ab5000e405d6a94403271238303134e8 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | dep = float(input('Qual o depósito inicial?'))
i = float(input('Qual a taxa de juros?'))
total=0
t=1
while i<=24:
mes = (dep*(1+i)**t)
total = total + mes
print ('{0}:.2f'.format(mes))
i=i+1
print ('{0}:.2f'.format(total)) | [
"you@example.com"
] | you@example.com |
413432f0777905651ea105e4b5bb856331ca8748 | f09edd827db021e4a22dd9b479f69acff1fe5079 | /tensorflow/contrib/learn/python/learn/estimators/run_config.py | ab48e3beea822ec8dc958f37d8060bd9b9af64f5 | [
"Apache-2.0"
] | permissive | tocigm/itemRec-offline | 24c92cc882c2cfab081a3a3761257272e01b6b81 | dafe10721a7bdc39dad27ded8325801b83fbd7e6 | refs/heads/master | 2022-11-25T12:30:23.445457 | 2016-09-07T14:51:52 | 2016-09-07T14:51:52 | 67,612,191 | 0 | 1 | Apache-2.0 | 2022-11-16T08:22:25 | 2016-09-07T14:05:16 | C++ | UTF-8 | Python | false | false | 9,970 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
f9ca04d56bc46f75f3cd88a867059f4016baeb1f | c60c199410289c1d7ec4aea00833b461e1f08f88 | /.history/older-than/older/source-example/day3/function/cpall.py | 4f328903303857e622385428d5a8aeb80f642d18 | [] | no_license | ver007/pythonjumpstart | 66fb111e6af197fad3e853b2c2d712a1b57a7d59 | 5b1f52479abd07456e2da494149e491d398f3b7d | refs/heads/master | 2021-01-21T01:34:35.501870 | 2015-05-13T14:10:13 | 2015-05-13T14:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | #!/usr/bin/env python
import sys
def copyall(*files):
target = files[-1]
with open(target, 'w') as fw:
for filename in files[:-1]:
with open(filename) as fp:
fw.write(fp.name.center(60, '-') + "\n")
for line in fp:
fw.write(line)
print "%s : file copied " % fp.name
fw.write('-'.... | [
"ravi@rootcap.in"
] | ravi@rootcap.in |
7eabfc4c5ae2a54b39ec1b5679ebc7261404c15a | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/101-200/week 195/1499. Max Value of Equation/Max Value of Equation.py | 4a8cd0f2c2a2c938b386ace14ced1673cfa96cb1 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: Wayne
@contact: wangye.hope@gmail.com
@software: PyCharm
@file: Max Value of Equation
@time: 2020/06/28 15:53
"""
import heapq
import sys
class Solution:
def findMaxValueOfEquation(self, points: list(list()), k: int) -> int:
h = []
ret = -sys.... | [
"905317742@qq.com"
] | 905317742@qq.com |
cc76df2f50876491c6194483bb5da74af6344ea2 | 7771130ea6eb1f076a7d18e672d3d82d5996e957 | /contrib/testgen/base58.py | 70fccf5b3202c12cb969d604d6ee3cb3e8055d00 | [
"MIT"
] | permissive | gdrcoin/gdrcoin | 49707508dfc1b14ace3817854416355a925539df | f9f2137b3d9069bfc8e3c69c90a684a061dfb6aa | refs/heads/master | 2020-03-10T18:01:49.563615 | 2018-04-14T12:36:52 | 2018-04-14T12:36:52 | 129,511,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | # Copyright (c) 2012-2016 The Gdrcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Gdrcoin base58 encoding and decoding.
Based on https://bitcointalk.org/index.php?topic=1026.0 (public domain)
'''
import has... | [
"37983255+spineinhalb@users.noreply.github.com"
] | 37983255+spineinhalb@users.noreply.github.com |
ad2f495082c2cab1b514035b13c0660751bebe7f | d0e379bfe75597bb7f20bd7cd5d62ea9c59478a4 | /appengine/clients/models.py | dfeccfd8287c5e9ccfeaa17dc95eaa3fcdd2e64a | [] | no_license | slee124565/flh-homecenter-appeng | 3064224dc8e7b1ce2b2e381242f26da823b89c5c | 92b508c3d39d173e250d221019cd0914ff65e5cd | refs/heads/master | 2021-04-30T11:10:02.808188 | 2018-02-27T06:40:28 | 2018-02-27T06:40:28 | 121,348,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
# from django.db import models
from firebasedb.models import FirebaseDB
import logging
logger = logging.getLogger(__name__)
def get_dev_db_obj(pi_serial):
firebase_db = FirebaseDB()
db_dev = firebase_db.get_dev_info(pi_serial)
return db_de... | [
"lee.shiueh@gmail.com"
] | lee.shiueh@gmail.com |
6e7b9d64a9343c09209781e9882c730170067fb8 | 66fbb969c8844f6a0db7cf8939c3412516bf54ca | /binary_tree_maximum_path_sum.py | ac6419d3ffe9ca2ad49c162cc8be4b6fa92bc5c3 | [] | no_license | chunweiliu/leetcode2 | 67a86d5a0d8c3ffe41f53a46b0e5960edc64c56d | 086b7c9b3651a0e70c5794f6c264eb975cc90363 | refs/heads/master | 2021-01-19T08:13:12.667448 | 2017-04-08T06:02:35 | 2017-04-08T06:02:35 | 87,612,004 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def maxPathSum(self, root):
"""
Each path in this tree is either
1) starting from a root to a lea... | [
"gtoniliu@gmail.com"
] | gtoniliu@gmail.com |
e0a2821d8090488a95f78871663fc5e00b3fc88c | 08e2c58c06ec587cc20c2bcd084efb9308d86043 | /milp/gen_data.py | b84d5e6d592b0fcc941730fa9ea3dcece023aef9 | [] | no_license | horacepan/qap_scratch | f866ac6c62715b779039488bb0e9f2b13d859e5b | 437ff78226173d9cfb465198c6e7183d86e948c6 | refs/heads/master | 2023-03-04T12:01:39.259432 | 2021-02-09T05:50:53 | 2021-02-09T05:50:53 | 287,471,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | import numpy as np
def generate_max_cut(n, e):
c = np.zeros(n + e)
c[n:] = -1
all_edges = [(i, j) for i in range(n) for j in range(i)]
picked_idx = np.random.choice(len(all_edges), size=e, replace=False)
edges = [all_edges[i] for i in picked_idx]
A = np.zeros((3*e, n + e))
b = np.zeros(3*e... | [
"hopan@uchicago.edu"
] | hopan@uchicago.edu |
2ef4fd2907d466bacb152306a4aa8b502e43bfc3 | 9ce40f0dbdfb3e32dc65207c37c8b65ea531162b | /asynchat/send_http_request.py | 18d473d2c7c81598d3b90076c843e4cd0ded15fe | [] | no_license | chenhz5/learn_socket | 83eba5c6e59a2f336311a443d39758313bcf2a5c | fbada734d97751fb0f01ac486ce2369437624ba3 | refs/heads/master | 2021-01-21T23:30:02.404537 | 2014-06-26T07:20:00 | 2014-06-26T07:20:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | import requests
r = requests.get("http://localhost:8000")
print r.text | [
"laike9m@gmail.com"
] | laike9m@gmail.com |
5ebe93bba8504216fbee8a7b1e51360b0fb5b8ed | cb657cd7c2260af788f9e03c7b0f3d9139c222fa | /Bath/Bath/settings.py | 6851b51e0c2223a8217166d31986589b34311507 | [] | no_license | west789/Bath-Of-University | f1b8cdcbb55795a04e3cf4ff869a59aa6576dc29 | c850e57b9e23be906c83883ce478aeb4cb618986 | refs/heads/master | 2020-03-08T04:36:45.474999 | 2018-04-03T15:16:40 | 2018-04-03T15:16:40 | 127,927,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | # -*- coding: utf-8 -*-
# Scrapy settings for Bath project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topics/d... | [
"738758058@qq.com"
] | 738758058@qq.com |
0df5c1a67bb3e0337a8ec0bcb8c2f0998e0366e9 | ee79e734486c0ca550bb8238ef54c78c7727384a | /BisulfiteSeq Bismark/samMethylationExtractor.py | c2b8bae5b238ace1d7cb0b812a37a996efa81c77 | [] | no_license | neilrobertson/BICRCode | 212636e5395f0c0e4dfb3ac3c133f01eb07273ee | 7b3f4da9cdefd7680f07b707339aee59faece1d2 | refs/heads/master | 2020-03-30T16:07:22.637571 | 2018-10-03T10:12:57 | 2018-10-03T10:12:57 | 151,394,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,001 | py | '''
Created on 19 Aug 2011
@author: mcbryan
'''
import getopt
import sys
import csv
from sam.SamFormat import SAMFile
from sequence.genome import MemoryGenome
from genemapping.chrmEnds import ChromosomeEnds
if __name__ == '__main__':
try:
opts, args = getopt.getopt(sys.argv[1:], "", ["sam="])
except ... | [
"neil.alistair.robertson@hotmail.co.uk"
] | neil.alistair.robertson@hotmail.co.uk |
7cc83d960c1b20ca0acd173372e6a5ff009be6b9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_352/ch9_2020_03_09_13_29_39_224551.py | f8f513cff5ecf9d663269d6059ffc6ee93b59378 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | import math
def calcula_volume_da_esfera(r):
v = (4/3)*(math.pi)*(r**3)
return v | [
"you@example.com"
] | you@example.com |
b4b98caaa2969e430f5d7568919aed86cdc98771 | e0c378f27462cb00b656473cbe0b172886741818 | /src/flash/core/hooks.py | dd62266117168b06ef9eb7657cc917bd923c24e1 | [
"Apache-2.0"
] | permissive | Lightning-Universe/lightning-flash | d0c955d7fdf962175750d154b3a369a483b8d188 | fc6c97a43d65b49561c896bf05bc1c75536d0dc0 | refs/heads/master | 2023-08-17T12:03:52.563905 | 2023-08-14T12:35:10 | 2023-08-14T12:35:10 | 333,857,397 | 58 | 12 | Apache-2.0 | 2023-09-11T14:43:06 | 2021-01-28T18:47:16 | Python | UTF-8 | Python | false | false | 942 | py | # Copyright The PyTorch Lightning team.
#
# 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 agreed to i... | [
"noreply@github.com"
] | Lightning-Universe.noreply@github.com |
6a3d89ee3512651ca1fc08d58c99c8187d13625d | 4da29a053ecbf0b4f35bbb0d9718436b271df74c | /language_skills/migrations/0020_auto_20200723_1017.py | daa9961d9ddee5010ddae913ecb51bae80c4ae73 | [] | no_license | alirezahi/QA-System | cd232234aa4310d0d8358b18f41e9156214cc503 | 28adc482ed2563374b70cfbea8ab935a2aa4eb2e | refs/heads/master | 2021-07-10T10:17:12.475850 | 2020-11-07T03:13:53 | 2020-11-07T03:13:53 | 211,319,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | # Generated by Django 2.1.1 on 2020-07-23 10:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('language_skills', '0019_auto_20200424_2159'),
]
operations = [
migrations.AddField(
model_name='blankquestion',
name... | [
"alireza97hi@gmail.com"
] | alireza97hi@gmail.com |
901d85aaa0f2e67d7829c00644e6973faf379c81 | f3b233e5053e28fa95c549017bd75a30456eb50c | /CDK2_input/L17/17-1Q_wat_20Abox/set_1ns_equi.py | 8ebca1c961ba017ec56400ce4e7ed9b2321bdc17 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import os
dir = '/mnt/scratch/songlin3/run/CDK2/L17/wat_20Abox/ti_one-step/17_1Q/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_pbs = filesdir + 'temp_1ns_equi.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in ... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
014b4a3ae3f9aff05afd54c12352843fa94c84d7 | bfd41fc543f6dbfc821341522cf8e7a9d2e34ce8 | /venvc/bin/webassets | 310b3858768f4cb03f0811a3a3fb16df0ce55f40 | [] | no_license | MaraKovalcik/Flask | 783243560ead637a381f76d3893da2b212eff898 | 1ff8413f3551b051f8e6c76db6cf402fc7428188 | refs/heads/master | 2021-01-22T09:09:16.165734 | 2015-02-24T16:57:14 | 2015-02-24T16:57:14 | 31,268,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | #!/home/student/PycharmProjects/flask-skeleton/venvc/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'webassets==0.9','console_scripts','webassets'
__requires__ = 'webassets==0.9'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('webassets==0.9', 'console_... | [
"mara.kovalcik@gmail.com"
] | mara.kovalcik@gmail.com | |
a888103bae83d2ead7218fd412b06478ce9351a5 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2514/60666/252527.py | 05e3a91ada6e526e829a7483701080f0f6eb25d1 | [] | 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 | 310 | py | s=input()
t=input()
if not s:
print(True)
else:
sIndex=0
tIndex=0
while tIndex<len(t):
if sIndex==len(s):
print(True)
elif s[sIndex]==t[tIndex]:
sIndex+=1
tIndex+=1
else:
tIndex+=1
flag=(sIndex==len(s))
print(flag) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d54310903f61c0db2c2d7ee18765f0b698ebaedb | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/batch/v20200301/_enums.py | 443b074d1c64b03bd1df443ab17ca5b607c42bad | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,776 | 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 enum import Enum
__all__ = [
'AutoUserScope',
'CachingType',
'CertificateFormat',
'CertificateStoreLocation',
'CertificateVis... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
0cfc589f684db4f5aed19ee3dc3ff803135e1f8a | f992a5b264b8ba117b5f90f3de942a6ce7a531d1 | /Code-Generation/v5/obj/Block.py | 2bb6eb3b7875e83d0022abd34026a7faa588c557 | [] | no_license | pean1128/UI2CODE-1 | 8f137c092199fb59171c64ccaa853d4df768f6c1 | 39bfe4780f823bc9bdafb933e441d97441e1abed | refs/heads/master | 2023-04-27T03:20:28.171023 | 2021-01-06T09:26:50 | 2021-01-06T09:26:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,123 | py | import pandas as pd
import cv2
from obj.Compo_HTML import CompoHTML
from obj.HTML import HTML
from obj.CSS import CSS
block_id = 0
def slice_blocks(compos_html, direction='v', is_slice_sub_block=True):
'''
Vertically or horizontally scan compos
:param compos_html: CompoHTML objects, including elements an... | [
"dsh15325@163.com"
] | dsh15325@163.com |
f3fbe02ead08747a6e90915969d89590f9fef352 | 4520f56d4952c788e198ee7eee39911c9a76c60f | /01_Jump_to_python/0_example/4_0704_t/3_rhombus_v3.py | 80617b22c286553148a0003f08aed8440ff5eb4d | [] | no_license | SuHyeonJung/iot_python2019 | bef8877a1cd41981ad2125291f5af44f4fd1701c | 7860630ae28c53677a3c2761c9e997b28ea55f26 | refs/heads/master | 2020-06-14T22:18:27.503781 | 2019-11-08T05:50:41 | 2019-11-08T05:50:41 | 195,142,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | odd = 0
while True:
odd = int(input("홀수를 입력하세요(0 <- 종료): "))
end = int(odd / 2)
value = int(odd / 2)
second_end = end + 1
if odd == 0:
break
elif odd % 2== 0:
print("잘못 입력하셨습니다.다시 입력하세요.")
else:
count = 1
i = 1
print(end=' ')
print(odd*'-')
... | [
"galma94815@naver.com"
] | galma94815@naver.com |
bc97a879f29cc25c84cbe0858be8759cafd2f892 | 1ac7f1035545fc9b1cbb1fee84bf5bdd1b70a991 | /neural/othermodels.py | a03cc3b06439630551e05442d7794741b0a44f6c | [] | no_license | HussainAther/neuroscience | 1e1225d811c64c260825540c210a0f7925386085 | 624bf82ce5c610c2ca83a0c4c49d3f4d0b92a1e2 | refs/heads/master | 2023-05-25T15:25:36.617994 | 2023-05-13T23:25:18 | 2023-05-13T23:25:18 | 157,743,251 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,299 | py | import numpy as np
import pylab as plt
from scipy.integrate import odeint
"""
McCulloch-Pitts replaces the involved Hodgkin-Huxley system by a threshold device
with only two states (0 and 1) in which 0 denotes the inactivated, silent condition
and 1 denotes the activiated, firing state. We use the equation:
X(t+1) =... | [
"shussainather@gmail.com"
] | shussainather@gmail.com |
5a115ced7ec699776c2e747f924d8bf8722a9b7d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02661/s028332585.py | 9e89e79c8a1f08abee3a9c1c567320963f0d6e4a | [] | 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 | 444 | py | N = int(input())
A = []
B = []
for _ in range(N):
a, b = map(int, input().split())
A.append(a)
B.append(b)
def median(arr):
arr.sort()
n = len(arr)
if n % 2 == 1:
return arr[(n + 1) // 2 - 1]
else:
return (arr[n//2 - 1] + arr[n//2]) / 2
med_a = median(A)
med_b = median(B)
i... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
21af6fdb705f8c486819d5022b336934d697fd99 | 7f8084cc37db622fb50cfa656ed1d0d4da007fe3 | /model.py | 1eb0af7c003f16f41327fe1b5e67595823862521 | [] | no_license | jessicagamio/testing-py | a3454878f1dbe1e2f914d2a126748b70dcbdc701 | 9d1745f1078dd3754dd62a622a94d61d78342e24 | refs/heads/master | 2021-06-22T14:25:58.300155 | 2019-08-09T23:34:54 | 2019-08-09T23:34:54 | 201,549,658 | 0 | 0 | null | 2021-03-20T01:28:20 | 2019-08-09T22:41:51 | Python | UTF-8 | Python | false | false | 1,024 | py | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Game(db.Model):
"""Board game."""
__tablename__ = "games"
game_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
name = db.Column(db.String(20), nullable=False, unique=True)
description = db.Column(db.String(100))
d... | [
"you@example.com"
] | you@example.com |
541da3b572ffefac450ea689dfd561a0cf40fba9 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/HiFaceGAN/src/util.py | d803a60fc82b93ac6689d07c104cb16cc4b1c51c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 2,673 | py | # Copyright 2022 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 agreed to... | [
"a.denisov@expasoft.tech"
] | a.denisov@expasoft.tech |
b9c3df3f4295b0a7f0bc2813d087a40f6b0aafff | 0f274618632a0cc96ac0b49e1f784759cfaf3a41 | /pytorch_models/unet/blocks.py | d45af78870e1646648fb4215ecce94f7de54dea5 | [] | no_license | brookisme/pytorch_models | 2cd0adf5104606ffd38c90af11fe330ce15fc7c5 | 2bd1c8527d7da7dda414250c28fab2fb02315821 | refs/heads/master | 2020-06-01T23:02:00.046636 | 2020-01-30T05:37:53 | 2020-01-30T05:37:53 | 190,959,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,059 | py | import torch.nn as nn
import pytorch_models.blocks as blocks
from pytorch_models.deeplab.blocks import ASPP
class RSPP(nn.Module):
""" Residual Spatial Pyramid Pooling
Removes the "Atrous" from a modified "Atrous Spatial Pyramid Pooling"
blocks and added a residual skip connection. By default also
... | [
"bguzder-williams@wri.org"
] | bguzder-williams@wri.org |
25e771061a927d9aeb0fc3aae302dc795ffb378e | 5068bc927a7fff73923ce95862ff70120160c491 | /electrum_axe/gui/qt/request_list.py | 3be7ce6113404ba464b82efed458c087817fdc27 | [
"MIT"
] | permissive | AXErunners/electrum-axe | cdbce2dbb92e23e32e9f9b733ae9f65f51c0ae9f | 7ef05088c0edaf0688fb167df353d6da619ebf2f | refs/heads/master | 2021-04-03T09:40:37.109317 | 2020-08-27T16:53:18 | 2020-08-27T16:53:18 | 124,705,752 | 336 | 75 | MIT | 2020-10-17T18:30:25 | 2018-03-10T23:00:48 | Python | UTF-8 | Python | false | false | 7,068 | py | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2015 Thomas Voegtlin
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without... | [
"slowdive@me.com"
] | slowdive@me.com |
6559879e77fdb556569fca0a190b2284efe64138 | e49cfd0ec48f2fc524b5f002bbea6a566f7b1dd4 | /synapse/lib/types.py | c9d524322eeebde5b6fb97a3b700dea750fa6819 | [
"Apache-2.0"
] | permissive | k1derly-fe/synapse | 0a069a4407e6aaeac26f4347ccdedc4a3fd2a556 | 603f7a7dfc9a10b603f6c8d97a9f33855c59a4c9 | refs/heads/master | 2020-04-05T15:05:49.513535 | 2016-06-30T16:52:05 | 2016-06-30T16:52:05 | 62,193,565 | 0 | 0 | null | 2016-06-29T03:45:55 | 2016-06-29T03:45:55 | null | UTF-8 | Python | false | false | 12,311 | py | from __future__ import absolute_import,unicode_literals
import re
import time
import socket
import struct
import datetime
import synapse.lib.urlhelp as s_urlhelp
from synapse.common import *
class DataType:
subprops = ()
def __init__(self, tlib, name, **info):
self.tlib = tlib
self.name = ... | [
"invisigoth.kenshoto@gmail.com"
] | invisigoth.kenshoto@gmail.com |
70d55931728e32b6b0ada6a287f875e2e79e7fb5 | ccb9425e4655cee0c06f3759e21e8477eb111d8f | /django_eveonline_connector/migrations/0010_auto_20191211_1514.py | a0b18ff1beebbef596039a7f2c63880f6b0a313f | [
"MIT"
] | permissive | KryptedGaming/django-eveonline-connector | 38fac86666598e0e9b6f0e330806e54678363a88 | 95fa146f4fcdf6bce84548b5cac1e5bf09cd72a0 | refs/heads/master | 2021-06-12T10:02:26.495615 | 2021-05-03T17:24:05 | 2021-05-03T17:24:05 | 201,830,836 | 3 | 2 | MIT | 2021-06-10T20:39:05 | 2019-08-12T00:34:21 | Python | UTF-8 | Python | false | false | 530 | py | # Generated by Django 2.2.8 on 2019-12-11 15:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('django_eveonline_connector', '0009_auto_20191210_1538'),
]
operations = [
migrations.AlterField(
... | [
"porowns@gmail.com"
] | porowns@gmail.com |
e8e1ea746c2d2d55c761d003d71ad43f43480823 | 94180b918cc2c590c5868113d3e604ade34473b3 | /jayd3e/models.py | 44f37beec4764775f20a77652560387d2d785d77 | [] | no_license | jayd3e-archive/jayd3e | beb9daf007915c96645512884387054adb247a51 | 88a0d91b7aaa7907260d802935b198892623934e | refs/heads/master | 2020-06-07T21:51:21.056787 | 2013-04-28T18:43:10 | 2013-04-28T18:43:10 | 1,386,947 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | from sqlalchemy import (
Column,
String,
Integer,
Date,
DateTime
)
from sqlalchemy.ext.declarative import declarative_base
class BaseClass(object):
id = Column(Integer, primary_key=True)
Base = declarative_base(cls=BaseClass)
def initializeDb(engine):
Base.metadata.bind = engine
clas... | [
"jd.dallago@gmail.com"
] | jd.dallago@gmail.com |
fd6f2e143779b6958f7dd6418992c04c7fb590d1 | 05cd0bee988d6d02841b23689517304defe7d00f | /goaway/emitter.py | 36188322a55e67ed3f97af2abc659314bd67f188 | [] | no_license | podhmo/goaway | cd41043c6386f58958a99f26009ef6f873716e23 | f870b4833a3aaf303c7ce161b78096e0b33e3c11 | refs/heads/master | 2021-10-11T11:05:11.639598 | 2021-10-06T01:57:56 | 2021-10-06T01:57:56 | 90,339,657 | 0 | 1 | null | 2021-10-06T01:52:23 | 2017-05-05T05:20:58 | Python | UTF-8 | Python | false | false | 697 | py | import os.path
import logging
logger = logging.getLogger(__name__)
class Emitter:
def __init__(self, repository):
self.repository = repository
def emit_package(self, package, d=None, onemit=None):
return dumptree(self.repository.writer, package, d=d, onemit=onemit)
emit = emit_package
... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
4fe1ebc7236a6d0e7e5805f2cd720f6a72951b89 | e1cf0e9941e72d06870baa63c792f1123f325762 | /classify/english_classify/SST_FlyAI/processor.py | c70e6453c71c1d7febd4757ea8ac1d301aa1819b | [] | no_license | yphacker/flyai_nlp | 1ab79be510d82fb0e9bc7d5d823c3fbaf9bf2ce5 | 78a8cd8680190dacc053993fe4a00d2391a62408 | refs/heads/master | 2020-07-16T02:22:03.338890 | 2020-01-02T12:52:14 | 2020-01-02T12:52:14 | 205,699,001 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | # -*- coding: utf-8 -*
import os
from flyai.processor.base import Base
import config
import bert.tokenization as tokenization
from bert.run_classifier import convert_single_example_simple
# class Processor(Base):
# def __init__(self):
# self.token = None
#
# def input_x(self, sentence):
# '''... | [
"yphacker@163.com"
] | yphacker@163.com |
15f3f035f2e8a0fe2a55846ba021bfa4732d8946 | b6d8049568e8068422bc4ac2b957972dc1ee0ab7 | /ui_extensions/cloudendure/__init__.py | 01817f14f2dc5e1ff60b1d569706c52ba539c117 | [
"Apache-2.0"
] | permissive | CloudBoltSoftware/cloudbolt-forge | a6dffd52bd074ad48a61527502fcddf8113508ff | a5584a84841be49bea69df506a91d18cb3f215d8 | refs/heads/master | 2023-08-11T08:08:07.730807 | 2023-08-10T11:40:07 | 2023-08-10T11:40:07 | 39,207,603 | 37 | 44 | Apache-2.0 | 2023-09-14T20:06:44 | 2015-07-16T16:18:02 | Python | UTF-8 | Python | false | false | 300 | py | """
Provides features to support CloudEndure server Migration integration.
This integration helps with creating a cloudendure project, adding a vm
to a project and starting replication. It also enables users to start
migration to AWS. Users can also install agents to servers without an
agent.
""" | [
"klaratta@cloudboltsoftware.com"
] | klaratta@cloudboltsoftware.com |
6feb5f7e88ae1c948ac192a971e99bcfe1b13bd8 | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-CoreServices/PyObjCTest/test_lssharedfilelist.py | 9624ae2b03efaa607e39d773668c2e0fcb634b77 | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,812 | py |
from PyObjCTools.TestSupport import *
import CoreServices
import os
class TestLSSharedFileList (TestCase):
def testTypes(self):
self.assertIsCFType(CoreServices.LSSharedFileListRef)
self.assertIsCFType(CoreServices.LSSharedFileListItemRef)
@min_os_level('10.5')
def testConstants10_5(self... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
0c488ceeb99828d94f18cbc4a70205200c17ac34 | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/googlecloudsdk/third_party/appengine/api/taskqueue/taskqueue_service_pb.py | 22507cc53681e81ea9a444cc13ea305778279d52 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 262,953 | py | # Copyright 2016 Google Inc. 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 applicable law or ag... | [
"jordan.robison@gmail.com"
] | jordan.robison@gmail.com |
041299a89176a6f13777916bbe8296efdd7198f6 | f16294a2b14754a0a3be754b8f5c5384ccf108c9 | /EPAD/virtual/bin/gunicorn | e4445b255bdfe421b20479d7fe8cafab19cc3145 | [] | no_license | antomuli/Work_Pad | bb24aac8b81cb7d8ae9173d7e099ae46eaf0b09b | 7cff39d27102398dd4c484933b620e00562fa812 | refs/heads/master | 2022-12-10T11:44:10.855797 | 2020-04-05T18:43:59 | 2020-04-05T18:43:59 | 252,779,135 | 2 | 0 | null | 2022-12-08T03:59:54 | 2020-04-03T16:04:19 | Python | UTF-8 | Python | false | false | 293 | #!/home/moringaschool/Documents/moringa-schools-projects/Capstone/EPAD/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"mulianthony561@gmail.com"
] | mulianthony561@gmail.com | |
e20baf3afedeae9e58e816b7163dd3d484d2c808 | 43aeee48c1f6fc468a43f9bb0d4edae8ee0dbee1 | /testforothers/testSentence.py | 568acfc3bc4ca9acd1e2c6968eb8c53ccff96a4c | [] | no_license | wiky2/mytestproject | f694cf71dd3031e4597086f3bc90d246c4b26298 | e7b79df6304476d76e87f9e8a262f304b30ca312 | refs/heads/master | 2021-09-07T20:54:19.569970 | 2018-02-28T23:39:00 | 2018-02-28T23:39:00 | 100,296,844 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,096 | py | #!/usr/bin/env python
# coding: utf-8
#声明必须放在前两行,# coding=<encoding name>
'''
@author:
@license:
@contact:
@software: Test
@file: testList2.py
@time: 2017/8/27 上午12:28
@desc:学习老王python-控制语句
python语句讲解
1.print语句
1.1 基本输出
1.2 print的逗号
1.2 输出到文件 >>为重定向
2.控制流语句(control flow)
2.1 由条件和执行代码块组成。
2.1.1 条... | [
"jerry_136510@aliyun.com"
] | jerry_136510@aliyun.com |
53284561112646ecce78b97cfe2b53bf34de1289 | 324764c9dba09bb3c2c5af24db292cd27d9e81c8 | /2018/09/part1.py | 113581e23ee454494dc922ff94b6f92099555fe8 | [] | no_license | thatsokay/advent-of-code | cebcde362e7f0f4b0587e7e2c01d874e886dcd5e | 3781b9da93e3064f28f11f22db374cf896159488 | refs/heads/master | 2022-12-24T23:48:43.549678 | 2022-12-21T15:55:39 | 2022-12-22T05:04:45 | 161,293,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | from operator import itemgetter
from collections import defaultdict, deque
def marbles(players, last):
circle = deque([0])
scores = defaultdict(int)
for marble in range(1, last + 1):
if marble % 23 == 0:
circle.rotate(7)
scores[marble % players + 1] += marble + circle.poplef... | [
"andre@andre-wong.com"
] | andre@andre-wong.com |
728f58df08533b6cc626d7f82176ccdf3635a4ad | 11228a51cf7bfe3cef852efb0de393ae42c768f2 | /rules/genome.seq.smk | 85ff349ed2a8d402eb8f7c0436de7bbd72d5e6d6 | [
"MIT"
] | permissive | orionzhou/snk | cd36c6ced8fb514101b1de7c70f322e76368e760 | 5ead8aebf5ed00a2aec15363b8023c9b75b0ed4a | refs/heads/master | 2021-07-13T12:08:53.168670 | 2020-06-01T05:19:46 | 2020-06-01T05:19:46 | 133,903,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,282 | smk | def fasta_input(w):
genome = w.genome
if config['x'][genome]['hybrid']:
genome1, genome2 = genome.split('x')
return ["%s/%s/%s" % (g, config['db']['fasta']['xdir'], config['db']['fasta']['ref']) for g in (genome1, genome2)]
else:
return "%s/download/raw.fna" % genome
rule fasta:
... | [
"zhoupenggeni@gmail.com"
] | zhoupenggeni@gmail.com |
b219d3a5ef11dd41e0bb63b460398506e79ab6a0 | 9905901a2beae3ff4885fbc29842b3c34546ffd7 | /nitro-python/nssrc/com/citrix/netscaler/nitro/resource/config/db/dbdbprofile.py | 3cd40c4dba9ac1ae941fcb40a81581dd9d95a1e6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | culbertm/NSttyPython | f354ebb3dbf445884dbddb474b34eb9246261c19 | ff9f6aedae3fb8495342cd0fc4247c819cf47397 | refs/heads/master | 2020-04-22T17:07:39.654614 | 2019-02-13T19:07:23 | 2019-02-13T19:07:23 | 170,530,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,345 | py | #
# Copyright (c) 2008-2016 Citrix Systems, Inc.
#
# 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 l... | [
"mdculbert@marathonpetroleum.com"
] | mdculbert@marathonpetroleum.com |
a37487f3fd56ae30f901da031243cd773ef35b7d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq3223.py | e080a241bb5691ff2e6ed02cf7ee28f88d4b9702 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,319 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=45
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
90b6785c7f5223d1dc216cddaf8db8fd5e3b3c37 | f2bec1dbb86b218fc1b7c9106ff13c15dea8c301 | /Interactive Tower of Hanoi/column/column.py | bd3deef5fada044b704a88cf513f425691695c0d | [] | no_license | PuffyShoggoth/hatch | 59e0f3684f041846084316f5bfafda1601cf5d2e | e1b32787cb0571469cd06a469b24890e23b78a58 | refs/heads/master | 2021-01-01T16:52:57.758161 | 2017-07-28T18:47:47 | 2017-07-28T18:47:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | class Column:
def __init__(self, position, disks, C):
self.position = position
self.disks = disks
self.ids = []
for k in range(len(self.disks)):
self.ids.append(self.display_disk(self.disks[k], C, k))
def can_add(self, column):
return len(self.disks)==0 ... | [
"shaar@utschools.ca"
] | shaar@utschools.ca |
8e839a17907ffc5edd0047756692fc187be920e7 | 1635e722e7ede72f4877671f36bbbc4199abae81 | /revised-addons/mrp_product_cost_calculation/mrp_production.py | 7f27de0d02cc1b22907e862f281f35ad313647a3 | [] | no_license | ecosoft-odoo/sqp | 7c09617048091ac6de4b25a33ad88127d36de452 | 7a7fc6b88087d98d536dd4ec39f9fb572918090e | refs/heads/master | 2023-08-08T00:07:48.405000 | 2023-08-04T15:47:43 | 2023-08-04T15:47:43 | 40,047,976 | 3 | 9 | null | 2023-08-02T08:38:53 | 2015-08-01T13:48:54 | Python | UTF-8 | Python | false | false | 4,254 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013 Mentis d.o.o.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Publi... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
51a1fe32d632ed84c07b28f8a561d7fbd57759b0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/85/usersdata/224/52688/submittedfiles/funcoes1.py | 210a3b6367327c545086dc3ad9ee60b36b4fb544 | [] | 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,327 | py | # -*- coding: utf-8 -*-
def cres (Ca):
cont=0
for i in range(0,len(Ca),1):
if Ca[i]<Ca[i+1]:
cont=cont+1
if cont==len(Ca)-1:
return True
else:
return False
def decre (lista):
cont=0
for i in range(0,len(lista),1):
if lista[i]>lista[i+1]:
c... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9c7d441f980e1aaef94cc526e2ba03edbd3154fe | 6a0d42149f8bbe5f7d6cb8103fe557d0d048c832 | /carts/views.py | 822a318160da7420c9dc5c3bc34769e0481eb52e | [] | no_license | syfqpipe/product-public | 8f3b2f81d0c9fdc61bb5841db1d4d9d26bb618a1 | 62b918bd9f24b4a47fab04398ca8112268e1e2b1 | refs/heads/master | 2023-01-22T05:14:19.132567 | 2020-12-05T03:22:56 | 2020-12-05T03:22:56 | 318,689,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,799 | py | import hashlib
import json
import datetime
from django.http import JsonResponse
from django.shortcuts import render,redirect
from django.db.models import Q
from rest_framework.permissions import IsAuthenticated, AllowAny
from rest_framework.response import Response
from rest_framework.decorators import action
from re... | [
"syafiqbasri@pipeline-network.com"
] | syafiqbasri@pipeline-network.com |
446ef7b61a2cbc8d7ca4a6da2a5caf36c3e620a7 | d4fac8ce52d8a058bb12fda402b9d25e24271ae6 | /examples/twisted/websocket/echo_site_tls/server.py | a5a43b7321a46fdf3dc8da70287bd241a662bbc8 | [
"MIT"
] | permissive | workingwim/AutobahnPython | 392ce2f11c320fe4b36bc0eefed1971418575394 | 3fce8aca718335db99aba7adbd4426c8a81cb0e0 | refs/heads/master | 2020-12-25T04:27:52.868814 | 2015-08-09T15:12:40 | 2015-08-09T15:12:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | ###############################################################################
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software with... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
fe977e99b30b1b067f56662d7f8d44e7183e60c7 | ee838ab1d552cd080ef02256e7049d4965c1eff1 | /backend/accessbahamas_20535/urls.py | f31c15ab8873d6011ec3551ab4e7fe58c25b347b | [] | no_license | crowdbotics-apps/accessbahamas-20535 | 8f365322474ab9c315a01face305b7f0f8c6c1b2 | 87721082fda4e79c8aa2b580ddadd6967c2cad32 | refs/heads/master | 2022-12-23T19:03:01.061507 | 2020-09-21T22:11:00 | 2020-09-21T22:11:00 | 297,465,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | """accessbahamas_20535 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
8b14a5f5b37c67b4d3fa56854765efd86eaa81b9 | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/ashvin/demos/legacy_pusher/bc1.py | b253935fcf875c8d3cd2a4123dc8b9009f53c566 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,529 | py | """Example behavior cloning script for pointmass.
If you are trying to run this code, ask Ashvin for the demonstration file:
demos/pointmass_demos_100.npy (which should go in your S3 storage)
"""
import rlkit.misc.hyperparameter as hyp
from multiworld.envs.mujoco.cameras import sawyer_pusher_camera_upright_v2
from mu... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
dfc4d96c5e1e422d9a810b84251872ff50ca2b40 | cae22103ac9b5d3aa90a6ee48e9e6694474fe64f | /recipes.py | e994a76f42ccd32316d88a12329c623614cb7446 | [
"MIT"
] | permissive | lennykioko/Yummy_recipes_2 | 22cf7f47971bc0197bf371696939c2c1a5dcb54b | 45e75612eff9cf5190014b4b3a7b6366d1479c7f | refs/heads/master | 2021-09-09T02:07:02.043545 | 2018-03-13T09:38:00 | 2018-03-13T09:38:00 | 114,108,725 | 1 | 0 | MIT | 2018-01-23T11:48:35 | 2017-12-13T10:44:42 | HTML | UTF-8 | Python | false | false | 1,379 | py | """Handle data on recipes
Created: 2018
Author: Lenny
"""
all_recipes = {}
class Recipe(object):
"""Contain recipe creation, update and delete methods"""
def create(self, title='', category='', description=''):
"""create a new recipe"""
global all_recipes
if title != '' and category... | [
"lennykmutua@gmail.com"
] | lennykmutua@gmail.com |
62879a3a29b2b619eb653cd7fb95819aca929e32 | 4adc1d1b8f9badefcd8c25c6e0e87c6545ccde2c | /OrcLib/LibProcess.py | 1b49001ddde66a2937ebcb8166f2bdfb5335b08d | [] | no_license | orange21cn/OrcTestToolsKit | eb7b67e87a608fb52d7bdcb2b859fa588263c136 | 69b6a3c382a7043872db1282df4be9e413d297d6 | refs/heads/master | 2020-04-15T07:30:35.485214 | 2017-09-30T06:16:17 | 2017-09-30T06:16:17 | 68,078,991 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,107 | py | # coding=utf-8
from OrcLib.LibLog import OrcLog
from OrcLib.LibNet import OrcResource
from OrcLib.LibNet import ResourceCheck
_logger = OrcLog('basic.process')
def get_mark(p_flag, p_id):
"""
获取标识
:param p_flag:
:param p_id:
:return:
"""
if "BATCH" == p_flag:
return get_batch_mar... | [
"orange21cn@126.com"
] | orange21cn@126.com |
99b05296f13f43de6bc7287bc0cbef34834095d2 | 085f74ad9dcaf192914cf191694f60201d1c271e | /mindinsight/datavisual/data_transform/loader_generators/loader_generator.py | 44e7210efb31379a38366eb7976f163dfe774dfd | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | fapbatista/mindinsight | 8aeb48c739c505de1a2b32c694b6310a4b7d4e85 | db5769eb80cbd13a2a9af7682c11f5667d8bf141 | refs/heads/master | 2023-02-08T17:25:03.950321 | 2020-12-29T12:38:28 | 2020-12-29T12:38:28 | 325,083,601 | 0 | 0 | Apache-2.0 | 2020-12-29T12:38:30 | 2020-12-28T18:13:10 | Python | UTF-8 | Python | false | false | 1,710 | py | # Copyright 2020 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 agreed to... | [
"gaocongli@huawei.com"
] | gaocongli@huawei.com |
35c81825c15777a71b5467275e3808b8693f61de | 03ef0d8f5cc5fcaffff188e0f8fcb76fa1986b53 | /inxwords.py | cffc4010b7366c56e9cef92febb68f13eafd234e | [] | no_license | macressler/inXwords | f858b93ad6ae323485f48e47352e7dcb0437622e | 28b68cacc84ac3d6d4dc736843fd2c0058c0397a | refs/heads/master | 2020-12-03T10:24:43.953646 | 2015-09-14T14:37:32 | 2015-09-14T14:37:32 | 44,265,115 | 1 | 0 | null | 2015-10-14T17:37:30 | 2015-10-14T17:37:29 | null | UTF-8 | Python | false | false | 9,081 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Find a trending topic along the lines of #YinXwords and
tweet a random X-word sentence from Project Gutenberg.
"""
from __future__ import print_function, unicode_literals
try:
import resource
mem0 = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss/(1024*1024.0)
exc... | [
"hugovk@users.noreply.github.com"
] | hugovk@users.noreply.github.com |
520660869fff6f627576c21a06b8c5e65de775b0 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/acc42607206743369b303b27783bb589.py | ef6fcb7229e7a8455b6ddfa3d7f2e026020e8853 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 186 | py | #leap year exercise
def is_leap_year(year):
if year % 400 == 0:
return True
elif year % 100 == 0:
return False
elif year % 4 == 0:
return True
else:
return False
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
d52cdf7164481357e9cc6e6bcf6c8d7b3ad73a73 | 17265d8af472ffd4dc629145f85497ce89dc3139 | /JaPanda/asgi.py | 90a3f1cd809c42ed4e1c04758670d9cb3e361280 | [] | no_license | Tomo-zhiye/JaPanda | 88eb69329d4432b4dd5d028b006f632bafff136c | 0391140563b2c324738335b6b82018f08f596dfe | refs/heads/master | 2023-04-21T19:41:35.344682 | 2021-04-29T08:14:20 | 2021-04-29T08:14:20 | 362,740,629 | 0 | 1 | null | 2021-04-30T12:46:48 | 2021-04-29T08:12:57 | Python | UTF-8 | Python | false | false | 391 | py | """
ASGI config for JaPanda project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"you@example.com"
] | you@example.com |
e9b50774cd67f89ff82ec7dfb29f5273a1cbcc3d | 8e542d1217ba58c5e04866b9a34cc0c0306701bb | /backend/users/api/v1/urls.py | 5554d6d5775e2f23807cf3a0ef413a5c40d7ec57 | [] | no_license | crowdbotics-apps/mobile-11-aug-dev-8774 | 6e3d2d3faa372dbad3d18924f3c37640715a2184 | 37669c511daa89cb38804a125156531f9b798d84 | refs/heads/master | 2023-07-06T02:47:39.279077 | 2020-08-11T11:33:03 | 2020-08-11T11:33:03 | 286,648,832 | 0 | 0 | null | 2021-08-03T20:01:40 | 2020-08-11T04:53:05 | JavaScript | UTF-8 | Python | false | false | 254 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import HfkhfjfhkViewSet
router = DefaultRouter()
router.register("hfkhfjfhk", HfkhfjfhkViewSet)
urlpatterns = [
path("", include(router.urls)),
]
| [
"team@crowdbotics.com"
] | team@crowdbotics.com |
05d05ed538bd5f49ce99838e53ce9c249b735d0d | 6bdad555fd073e8b1c73e373782249c364a0b5bd | /quotes/migrations/0017_auto_20170803_0027.py | 20fa87cd87f26592cfdceb32a2102aaf0d656be7 | [] | no_license | h4k1m0u/gistutorials | 35383f5e1197553c528bc75405094118815e72fd | 795da31428a469becb948deefe57c725116266be | refs/heads/master | 2023-01-05T20:38:39.552302 | 2019-04-29T01:03:34 | 2019-04-29T01:03:34 | 309,973,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-08-03 00:27
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('quotes', '0016_auto_20170325_0158'),
]
operations = [
migrations.RemoveField(
... | [
"h.benoudjit@gmail.com"
] | h.benoudjit@gmail.com |
d64835c8fd6f2cf6535393ea38a722b47cff4a05 | 192d54eadfdcd2588294e376c682fe97a8a6c160 | /wLyN84vMuTzXVjKJ/de0R1ljEpByhfkqz.py | 5df02c8b7838368769047052ee7ea0e1aab3e7ce | [] | no_license | urlib/i1OB8Mxh | fc953ae8e8dc4fe51b7588e77b28ad6fc9709458 | 7811957b67e50da2f38bb47cedac8ff16d4396d0 | refs/heads/master | 2023-01-08T19:56:26.906229 | 2020-04-15T03:52:43 | 2020-04-15T03:52:43 | 248,736,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,144 | py | 𬐤𭘰饕쬻𗤰뚟𨳛𧻪⠴𝐐ᣦ剼🇹𛰂屢𠝧𬙓𞋵⼃🃠𡵛𤡆ൕ𫘄賽碣𣨳𥑐𩆻𗟒𪁵🎁🃴𬟒䘔씞𡡷漼𡙑𘫯𤸒で𭡤꼁츏𡏦⁁ʦ𮩧𭳮햾𞥕𭘻𗎟䴍𧒴慌𮨩仴ꄪ䓋𝐎𭫷𮨠৸𖾅屨퓾㾊𫉩䊦𬐔𗯶⣨𭹂𔐥𧲄੦켡𗀳β劭𭔉㲯䨜𧧈𢼦𑦳탏𖩁볮뷄皠ㄐ𪒩𮥛𣝖𧢹ᵠ𘂍供𐝄𭛂🖅𩭳𫷋𢹇𨳧𦪄监𮯏⎡풢禨𦗮鹞𪂇鳔𧺜굗狼𗯦𥚿𠖔蠢𬂁𗭈𪣟𗁼𤵉𣓫𣐴𣻛𭅱䕂鲎𐃰ꈷ𢍊𣱴𠞏𬸩𫉶趼⢺󠇝좇𪣺𬀄𮌅䒂㢴퀀𬧴왜暤𬙗𢳙ꞩ徊ፀ瀀𡌓𢃭邔ᔇූ𨚛𮂖𤂼ꄄ𒉬𭑩𭐋핧䦴𫔕𭌋㍗ᦢ𢠃𧠨毺䪦놂𗡛🐈寠煯䀅䎙摒잉𡫽𓋸웆ᴙ𥛃𣒉莧쳥蘾挛𪪔�... | [
"45290401+vmlankub@users.noreply.github.com"
] | 45290401+vmlankub@users.noreply.github.com |
943647e0969453ab4879f65b5e762ec27cfc1bd8 | aeb1cd8ac86a0468865f7cf6a45ce9379478ad01 | /new_histograms/orthogonal_single_plume_new_histogram_method.py | 93e5caa1c99a15eaa87df9eeb2862b736adcf0a9 | [] | no_license | annierak/plume_tracking_statistics | 833388a11200fbb6df30b02d2187e6d4810adc38 | 647556254b534276590fbf8233b6c99b9157dccb | refs/heads/master | 2020-05-17T05:14:00.421633 | 2019-06-24T21:23:40 | 2019-06-24T21:23:40 | 183,527,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,791 | py | import time
import scipy
import matplotlib.pyplot as plt
import matplotlib.animation as animate
import matplotlib
import matplotlib.patches
matplotlib.use("Agg")
import sys
import itertools
import h5py
import json
import cPickle as pickle
from matplotlib.animation import FuncAnimation
from mpl_toolkits.axes_grid1.ancho... | [
"annie1rak@gmail.com"
] | annie1rak@gmail.com |
2892a29779329b536be0813eeed92579aafb9c44 | 4b3dc3173bf9ba136f7c2d3a4e7e52fba44c877a | /test/test_notification.py | 4d16328faa27618c34d268a3f43711969399e9b1 | [] | no_license | mr-arty/bitmex-client | cf00a4a6f97f7425a01ec587473dd7b1cfc09b90 | 2bbe7bebd9e43e45b9705c327a6dd12fa5f7c357 | refs/heads/master | 2020-04-28T02:10:25.946138 | 2017-07-30T20:43:08 | 2017-07-30T20:43:08 | 174,888,633 | 1 | 0 | null | 2019-03-10T22:26:35 | 2019-03-10T22:26:35 | null | UTF-8 | Python | false | false | 2,339 | py | # coding: utf-8
"""
BitMEX API
## REST API for the BitMEX Trading Platform [Changelog](/app/apiChangelog) ---- #### Getting Started ##### Fetching Data All REST endpoints are documented below. You can try out any query right from this interface. Most table queries accept `count`, `start`, and `reverse`... | [
"jose.oliveros.1983@gmail.com"
] | jose.oliveros.1983@gmail.com |
6132aa107f05e411512aa3ca638e2fafc769ffa2 | 732d750ce7b96090bc1b252fbefdadfe167990a1 | /networker/networkplanner_runner.py | 1d445499bfceb68c7ee9d0998c0ebcf7adc87cc9 | [] | no_license | carbz/networker | 4008174200db1865635f524646ad550187a4d289 | cab14026118db42603bd1a5757ec460c6cb4984d | refs/heads/master | 2021-01-15T10:24:59.858048 | 2015-04-22T17:11:49 | 2015-04-22T17:11:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,420 | py | # -*- coding: utf-8 -*-
import json
import jsonschema
import os
import networkx as nx
import numpy as np
from np.lib import dataset_store, metric, variable_store as VS
import networker.geomath as gm
from networker.classes.geograph import GeoGraph
from networker import networker_runner
from networker.utils import csv... | [
"chris.natali@gmail.com"
] | chris.natali@gmail.com |
b048c82de8d6c4b233cee4aa77e581fe72753f18 | f889bc01147869459c0a516382e7b95221295a7b | /test/test_quote_data_shipping_assignment_extension_interface.py | b82703cfb180e7b13b38325c6450a7fa4026bb1f | [] | no_license | wildatheart/magento2-api-client | 249a86f5c0289743f8df5b0324ccabd76f326512 | e6a707f85b37c6c3e4ef3ff78507a7deb8f71427 | refs/heads/master | 2021-07-14T16:01:17.644472 | 2017-10-18T13:33:08 | 2017-10-18T13:33:08 | 107,412,121 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | # coding: utf-8
"""
Magento Community
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sy... | [
"sander@wildatheart.eu"
] | sander@wildatheart.eu |
2f571add472e396515f178e0a28ad895ec6c58e3 | 24d33b98fb16cace92989a414a9121e505f47d68 | /gromacs/helper/create_request.py | 4813a9e35308d26978a07a3d83ee1c748483fa27 | [
"Apache-2.0"
] | permissive | michellab/BioSimSpaceCloud | eae9b2aff3184f097ffa667e987d7dd9a99c40e0 | 456b146a2131565e354352872d3e75a08c3652d1 | refs/heads/master | 2022-11-22T22:58:45.794442 | 2018-11-06T12:30:40 | 2018-11-06T12:30:40 | 137,510,733 | 2 | 1 | Apache-2.0 | 2022-11-16T01:28:44 | 2018-06-15T16:38:06 | Python | UTF-8 | Python | false | false | 648 | py | """
This script helps debugging by creating the login and request
from the .oci/config and hard-coded compartment and bucket names
"""
import oci
import json
import os
import sys
config = oci.config.from_file()
compartment = "ocid1.compartment.oc1..aaaaaaaat33j7w74mdyjenwoinyeawztxe7ri6qkfbm5oihqb5zteamvbpzq"
bucket ... | [
"chryswoods@gmail.com"
] | chryswoods@gmail.com |
65d06f0ba3e1e4830c7736caf8f8c72d0924672f | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetcodePythonProject/leetcode_0651_0700/LeetCode661_ImageSmoother.py | ea380490539357f477d176685b5386c8a0c01c7b | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 1,641 | py | '''
Created on Oct 8, 2017
@author: MT
'''
class Solution(object):
def imageSmoother(self, M):
"""
:type M: List[List[int]]
:rtype: List[List[int]]
"""
import math
matrix = M
if not matrix or not matrix[0]:
return []
m, n = len(matrix), le... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
c1c62be621c780e8e93f7cadb39985bb6590d277 | 15b53554ef4f9418e2aaffe663789c3a86dfc269 | /ratings/admin.py | 99a24a50c982cc72615f41ccd703d2258670666f | [
"MIT"
] | permissive | felkiriinya/Awards | 698c94c96f18c2dd19056adf9b94a2aaf6fc0f0e | 2f9aa725eafde02c648281c97635ac7242b05d2f | refs/heads/master | 2023-01-23T20:59:26.081077 | 2020-11-30T14:00:02 | 2020-11-30T14:00:02 | 316,494,399 | 0 | 0 | MIT | 2020-11-27T17:54:14 | 2020-11-27T12:22:54 | Python | UTF-8 | Python | false | false | 156 | py | from django.contrib import admin
from .models import Project,Profile
# Register your models here.
admin.site.register(Profile)
admin.site.register(Project) | [
"felkiriinya@gmail.com"
] | felkiriinya@gmail.com |
dedf793fa350bfeb39850c889f4b74b3ea4c6326 | 09e4b7c55279dca3914f69e27eadceb4ceeac885 | /algorithms/dynamic_programming_manim_animation.py | add71f6b7c77dd860c5f34dec7ec4baeec9d4d7c | [
"Apache-2.0"
] | permissive | Mageswaran1989/ai4e | 2ea14b2019990b31e36ccb9fbe8955ba0509da4d | 16fe8fc8c7886d36aac3df3c9c6e28414a5286c8 | refs/heads/main | 2023-07-27T18:20:35.393336 | 2021-09-03T02:22:41 | 2021-09-03T02:22:41 | 316,110,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98,543 | py | from manimlib.imports import *
from manim import *
import random
class GraphNode:
def __init__(self, data, position=ORIGIN, radius=0.5, neighbors=[], scale=1):
self.char = data
self.data = TextMobject(str(data))
self.data.scale(scale)
self.neighbors = []
self.center = posit... | [
"mageswaran1989@gmail.com"
] | mageswaran1989@gmail.com |
dcd5f09d699ae8005ad13ed0471cc5fc9cd3ad98 | 7791cae9c097ffbfeefd34dea31586b1963eb675 | /0x0A-python-inheritance/0-lookup.py | 569a633018f8263664a1cd264b61d7d4a4a2f514 | [] | no_license | jicruz96/holbertonschool-higher_level_programming | a33b6c326e832868be791cad87ac703cccbabd64 | 84361c552b7ba1cb173d1e4bd2ea077bb3999b0d | refs/heads/master | 2022-12-18T06:07:34.248796 | 2020-09-28T22:33:59 | 2020-09-28T22:33:59 | 259,228,049 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | #!/usr/bin/python3
""" defines lookup """
def lookup(obj):
""" returns list of available attributes and methods of an object """
return list(dir(obj))
| [
"accounts@jicruz.com"
] | accounts@jicruz.com |
1744fb64068f0170698c638c5665cd1bccc26c5e | 3665e5e6946fd825bb03b3bcb79be96262ab6d68 | /tests/test_ls.py | f4e454cbecd836e1dfba94644ab03d1de0b6e72b | [
"MIT",
"BSD-3-Clause"
] | permissive | philippeitis/jc | a28b84cff7fb2852a374a7f0f41151b103288f26 | d96b3a65a98bc135d21d4feafc0a43317b5a11fa | refs/heads/master | 2021-02-16T05:03:03.022601 | 2020-03-04T16:30:52 | 2020-03-04T16:30:52 | 244,969,097 | 0 | 0 | MIT | 2020-03-08T21:10:36 | 2020-03-04T18:01:38 | null | UTF-8 | Python | false | false | 18,866 | py | import os
import json
import unittest
import jc.parsers.ls
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class MyTests(unittest.TestCase):
def setUp(self):
# input
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/ls.out'), 'r') as f:
self.centos_7_7_ls =... | [
"kellyjonbrazil@gmail.com"
] | kellyjonbrazil@gmail.com |
c0776c2b71dbc2bdb19e3384ee68199840921c0c | b3d552675b36cb88a1388fcfc531e497ad7cbee9 | /day6/view_method_decorator_demo/front/views.py | 1ec7acae722b4aed907b645bc8aa11d6e724563a | [] | no_license | gaohj/1902_django | 3cea1f0935fd983f25c6fd832b103ac5165a2e30 | 822af7b42120c6edc699bf97c800887ff84f5621 | refs/heads/master | 2022-12-11T10:02:50.233398 | 2019-11-26T08:33:38 | 2019-11-26T08:33:38 | 209,241,390 | 2 | 0 | null | 2022-12-08T07:28:24 | 2019-09-18T07:05:48 | Python | UTF-8 | Python | false | false | 1,026 | py | from django.shortcuts import render
from .models import Article
from django.views.decorators.http import require_http_methods,require_GET,require_POST,require_safe
from django.http import HttpResponse
# Create your views here.
# @require_http_methods(['GET'])
#@require_GET = @require_http_methods(['GET'])
@require_GET
... | [
"gaohj@126.com"
] | gaohj@126.com |
9983fb155c2903b301cad1850061e7032e0161b4 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/comtypes/test/test_QueryService.py | d3c01ad2e505a3952d4b4fe8e118d3bf5894e9af | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 797 | py | import unittest
from ctypes import POINTER
import comtypes
from comtypes.client import CreateObject, GetModule
GetModule('oleacc.dll')
from comtypes.gen.Accessibility import IAccessible
@unittest.skip("This IE test is not working. We need to move it to using some other win32 API.")
class TestCase(unittest.TestCase):... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
a703dd3d46d7f867a7b64c23fdeb6357570abaf4 | ac8e5e7d52bd54f1b3690aac154920e003dbba2e | /DA_Faster_ICR_CCR/lib/model/nms/nms_cpu.py | 0b6ab667b4a17d2522f767cc5f43477ad70043b4 | [] | no_license | wanghui-cloud/CCR-ICR | 16b4704cb1eff031825fb3052080fe76597626fd | 155ff46f12627c84bde3b9c55ab6a5c8e1d1cd11 | refs/heads/master | 2023-04-26T07:30:43.384645 | 2021-05-28T12:21:20 | 2021-05-28T12:21:20 | 371,691,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | py | from __future__ import absolute_import
import numpy as np
import torch
def nms_cpu(dets, thresh):
# dets [12000, 5]= proposals_single, scores_single.squeeze(1)
dets = dets.numpy()
# x1、y1、x2、y2、以及score赋值
x1 = dets[:, 0]
y1 = dets[:, 1]
x2 = dets[:, 2]
y2 = dets[:, 3]
scores = dets[:, ... | [
"wh@hnu.edu.cn"
] | wh@hnu.edu.cn |
541f0193507c2dc7add9c3db34f5c64f48609ab5 | 2b6116b967f6b02a6c62392058623ba8824f5ee2 | /deal/migrations/0037_auto_20190809_0846.py | fe6f69d2904c855aac6077b60b714befb45a1654 | [] | no_license | tayursky/med-crm | 68a16d771a91a9a5ff3e61acd00c08ad6297c405 | 8e39904968a8217b9cd4593acc3afa27ff4584ba | refs/heads/master | 2023-01-11T08:28:23.762631 | 2020-03-15T20:53:59 | 2020-03-15T20:53:59 | 247,546,343 | 0 | 0 | null | 2023-01-06T02:27:23 | 2020-03-15T20:30:05 | Python | UTF-8 | Python | false | false | 1,283 | py | # Generated by Django 2.2.1 on 2019-08-09 08:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('company', '0005_auto_20190802_0616'),
('deal', '0036_auto_20190801_1443'),
]
operations = [
migrati... | [
"tayursky@gmail.com"
] | tayursky@gmail.com |
74f9f70c5cab3a26af146ed5bb0ee63971b5fea2 | 5ed2d0e107e4cdcd8129f418fdc40f1f50267514 | /bnb/PreferenceList/test.py | f69a3fdf4ef1e513313bbc0f839736e895ebbe5f | [] | no_license | tliu57/Leetcode | 6cdc3caa460a75c804870f6615653f335fc97de1 | c480697d174d33219b513a0b670bc82b17c91ce1 | refs/heads/master | 2020-05-21T03:14:07.399407 | 2018-07-08T18:50:01 | 2018-07-08T18:50:01 | 31,505,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | class Solution(object):
def preferenceList(self, preferences):
map = {}
degree = {}
result = []
if not preferences:
return result
for pref in preferences:
for elem in pref:
degree[elem] = 0
for pref in preferences:
for i in range(1, len(pref)):
for j in range(i):
if pref[j] not in map... | [
"tliu57@asu.edu"
] | tliu57@asu.edu |
8071eb95a1b07f7e380d1653e9db5a38f2283703 | 6f67606189b27ab3dfd20d9fa4b5dab00beb4302 | /MetamorphicTests/all_mutants/sales_forecasting_file/81.py | 2d13423f31c1f829bcadf99cabe287b212b90293 | [
"Apache-2.0"
] | permissive | fjgao/Sales-forecasting-with-RNNs | b8d468946d5df8d694178ef0664717c62bf156b8 | 22b4639ecbb48381af53326ace94a3538201b586 | refs/heads/master | 2022-02-09T11:29:04.815900 | 2019-02-08T08:51:23 | 2019-02-08T08:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,639 | py | def gen_mutants():
import tensorflow as tf
import pandas
import numpy as np
DATAFILE_TRAIN = 'mock_kaggle_edit_train.csv'
DATAFILE_VALIDATE = 'mock_kaggle_edit_... | [
"anurag.bms@gmail.com"
] | anurag.bms@gmail.com |
9873cc835d18dd5753bb7da09d533cd4103af5ed | 0682b9249e65c3bf0ee70f3c4fe85196562f1a95 | /tests/core/parameter/test_parameter_node.py | 3e1da62026cec97c59dd05aa327a0e469348d528 | [
"Apache-2.0"
] | permissive | perillaroc/takler | 7039cc3ba1e53be851993820fe8d684f84615fd2 | 654c2224e529c2f7c5fd600ee9272dcc24fd0287 | refs/heads/master | 2023-09-02T21:25:34.347695 | 2023-08-25T02:09:10 | 2023-08-25T02:09:10 | 23,487,487 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,896 | py | import pytest
from takler.core import Parameter
@pytest.fixture
def simple_flow_with_parameter(simple_flow):
flow1 = simple_flow.flow1
flow1.add_parameter("ECF_HOME", "/home/johndoe")
flow1.add_parameter("NODES", 4)
flow1.add_parameter("TIME_INTERVAL", 0.1)
container1 = simple_flow.container1
... | [
"perillaroc@gmail.com"
] | perillaroc@gmail.com |
28dc8edf1052517b8b4c2dd925c7538b887ebf09 | 3958e68814826e7104c4f013ea2aac4e5d77223a | /test/test_accuracy_large_files.py | c0aa5296d3c686623a79dabbbb057db7662534fd | [
"Apache-2.0"
] | permissive | phutares/ocreval | 2a1c935d36922755e1d89769c45371d56d344c70 | 873a0de5796c0b9ccf07a549afdd30159a9e0b3e | refs/heads/master | 2023-04-19T06:41:15.393399 | 2021-04-16T20:57:09 | 2021-04-16T20:57:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | #!/usr/bin/env python
# -*- encoding: UTF-8 -*-
"""
Tests accuracy on LARGE UTF-8 files.
"""
import random
import subprocess
import tempfile
import os.path as p
# Alias range as xrange in Python 3:
try:
xrange
except NameError:
xrange = range
# Create a Python 2/3 Unicode string literal:
try:
unicode
... | [
"easantos@ualberta.ca"
] | easantos@ualberta.ca |
63d0f327304779eea8cc5e57fe84a233c6c7a91a | ce4f7f8e9336b8bbf9cbfe147d922e37034ab6c3 | /abc193/b/main.py | 0e3c7e0f78cd78c0c45811485390821a3ab19d13 | [] | no_license | kussy-tessy/atcoder | 5604919747242ee9740b9131bb6e168e96af0151 | ee917fa5a5218d4a9e72f710d0d844e7c203f13b | refs/heads/master | 2023-07-21T09:25:15.464881 | 2021-09-04T14:06:02 | 2021-09-04T14:06:02 | 311,221,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | #!/usr/bin/env python3
N = int(input())
APXs = []
for _ in range(N):
APXs.append(tuple(map(int,(input().split()))))
ans = float('inf')
for A, P, X in APXs:
if A < X:
ans = min(P, ans)
print(-1 if ans == float('inf') else ans) | [
"teppei04285000@gmail.com"
] | teppei04285000@gmail.com |
e52d4984fc5ca34ed8bb3b24514f0d20e84ac60e | ac235a23f22be0d6f1818bb53902177f9969813a | /tests/lib-injection/dd-lib-python-init-test-django-uvicorn/django_app.py | dc0e14bad8c09edf3e6da8eadcefc9bd8dde30c3 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | DataDog/dd-trace-py | f09d6d48c4c69aea68f999fc8a458ade5c6150cf | 1e3bd6d4edef5cda5a0831a6a7ec8e4046659d17 | refs/heads/1.x | 2023-09-01T20:25:26.746324 | 2023-09-01T18:54:37 | 2023-09-01T18:54:37 | 61,572,326 | 461 | 426 | NOASSERTION | 2023-09-14T20:38:57 | 2016-06-20T18:52:23 | Python | UTF-8 | Python | false | false | 414 | py | import os
from django.core.asgi import get_asgi_application
from django.http import HttpResponse
from django.urls import path
filepath, extension = os.path.splitext(__file__)
ROOT_URLCONF = os.path.basename(filepath)
DEBUG = False
SECRET_KEY = "fdsfdasfa"
ALLOWED_HOSTS = ["*"]
def index(request):
return HttpRe... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
5dd37b5562aa1c5c76f36b7ae29235262b6fa21e | acf9787f29749a7cb3e45eb8f99f6022281ea0ec | /src/clustering.py | 871f3a07fa870cb155ea9cbfafea64b6871bdaaf | [] | no_license | abunuwas/ecs_admin | 35061dd572b7515932a7b6d594abcbc3cac872e9 | f5d0cbf62c08f0b4089ba25bd3335f4304ed9de7 | refs/heads/master | 2020-04-24T02:07:03.900116 | 2016-09-12T17:16:09 | 2016-09-12T22:31:03 | 67,236,727 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,708 | py | import boto3
from ecs import ECS
from ec2 import EC2Instance
from iam import IAM
from sns import SNS
from lambda_func import Lambda
from core_utils import filter_args
from exceptions import MissingValueError #EntityExistsError, LimitExceededError, DoesNotExistError, InvalidOPerationError
from policies import ec2_trust... | [
"joseharoperalta@gmail.com"
] | joseharoperalta@gmail.com |
e3d5ef7c2bf734988331695db571c4c9fba3f293 | a7744d27342514682189ff5fac7f198b380d1997 | /robonova/kinematics/kinelib/dh.py | 83496565a6147db910fb662d666da5fa958f5cd6 | [] | no_license | roboshepherd/myro-epuck | b6469cb2c30b50d625068eb9e306b8ac2cbe4fad | 564b7f2a7d262b11d8adc86b5f5efb1b825aef53 | refs/heads/master | 2020-05-17T00:21:56.339519 | 2010-03-16T16:36:26 | 2010-03-16T16:36:26 | 565,242 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | #DH Matrix representation of manipulator kinematics
#
# The original robot toolbox functions used a DH matrix to describes the
# kinematics of a manipulator in a general way.
#
# For an n-axis manipulator, DH is an nx4 or nx5 matrix, whose rows
# comprise
#
# 1 alpha link twist angle
# 2 A link length
# 3 theta li... | [
"Mdomarfaruque.Sarker@newport.ac.uk"
] | Mdomarfaruque.Sarker@newport.ac.uk |
193ce4e88456d4dcb2d636d9453aa8ed841f6d0e | 407490cf6e79695276236480bb8c00dd97a6b007 | /weekly_reports.py | 2f1432a1d63e51a0d84a222f554eabf428dd6a6d | [] | no_license | skreynolds/weekly_reports_dev | d17ac47c4642d946d294634152da77defbb2bd85 | cee840e62f21cdc69f6320f2ec0dc538743a1940 | refs/heads/master | 2020-04-06T16:43:45.733017 | 2018-11-16T02:27:27 | 2018-11-16T02:27:27 | 157,631,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,769 | py | #!/usr/bin/python
import psycopg2
from utils.config import config
from utils.file_conversion import *
from xref.tables import *
from xref.fixed_widths import *
# Specify the current year the routine is running
DATE = 2018
if __name__ == '__main__':
#############################################################
#... | [
"shane.k.reynolds@gmail.com"
] | shane.k.reynolds@gmail.com |
0b2b34071fffde256b2760d76923b04e0df0a9a3 | 02dc1f70da529c7c2aa45dcfe5e0a3aeeb1f98cc | /src/063_unique_paths_ii/063_unique_paths_ii.py | d86011baf7cc85f588f4a5609c367411ac6c3ac4 | [] | no_license | ypliu/leetcode-python | 2a5a14de6310cae19b9cc42091d81586e697fffb | 13e61c13c406a73debcfc996937cf16f715d55d1 | refs/heads/master | 2020-03-27T06:17:32.303442 | 2019-02-24T14:50:11 | 2019-02-24T14:50:11 | 146,094,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | class Solution(object):
def uniquePathsWithObstacles(self, obstacleGrid):
"""
:type obstacleGrid: List[List[int]]
:rtype: int
"""
if not obstacleGrid or 0 == len(obstacleGrid) or 0 == len(obstacleGrid[0]) or 0 != obstacleGrid[0][0]:
return 0
m, n = len(o... | [
"noreply@github.com"
] | ypliu.noreply@github.com |
01555860ba4b5b854365fb301034b8d6369a242b | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/webrtc/tools/internal_tools.gyp | bee8a8bf0e2186703fd1d761f9891e99b7d53ecf | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-google-patent-license-webrtc",
"LicenseRef-scancode-takuya-ooura",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"MS-LPL",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-... | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 842 | gyp | # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project a... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
21fdc4b381f624fa34e85401ed931bd31dd672a9 | 1e6871bc3bc87b67b1a18a0c69f17d901e1a1a7f | /tests/test_api_v1.py | 285f2da27d336deb7e49dec7ffd00bb72e7ee108 | [
"Apache-2.0"
] | permissive | fabric8-analytics/fabric8-analytics-jobs | 24ada2f21c728840df935be792c744839535e094 | 545b932a0eb4acac5f04753010dca446b0425a6a | refs/heads/master | 2023-04-20T19:53:42.321637 | 2023-03-23T12:14:18 | 2023-03-23T12:14:18 | 89,703,953 | 6 | 29 | Apache-2.0 | 2023-03-23T12:14:20 | 2017-04-28T12:27:05 | Python | UTF-8 | Python | false | false | 483 | py | """Tests for the module 'api_v1'."""
# TODO enable when new test(s) will be added
# from f8a_jobs.api_v1 import *
class TestApiV1Functions(object):
"""Tests for the module 'api_v1'."""
def setup_method(self, method):
"""Set up any state tied to the execution of the given method in a class."""
... | [
"ptisnovs@redhat.com"
] | ptisnovs@redhat.com |
b56c74b0a911abe2b46939ff7fcbdd05407bb9e3 | 00414b9d72c922b873cc2ebcb4d1ce068de5007f | /src/backend/partaj/core/migrations/0016_add_referral_activity.py | d7cf100798aec83db3fde67ef48c14dd605cf6a7 | [
"MIT"
] | permissive | MTES-MCT/partaj | 1de9691dc6e7615c1d228a0e39c9208b97222dab | 22e4afa728a851bb4c2479fbb6f5944a75984b9b | refs/heads/main | 2023-08-07T08:22:30.290701 | 2023-08-04T16:57:38 | 2023-08-04T17:22:26 | 237,007,942 | 4 | 3 | MIT | 2023-09-14T19:10:26 | 2020-01-29T14:54:46 | Python | UTF-8 | Python | false | false | 3,466 | py | # Generated by Django 3.0.5 on 2020-05-20 13:05
import uuid
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("contenttypes", "0002_remove_content_type_name"),
migrations.swappable_... | [
"me@mbenadda.com"
] | me@mbenadda.com |
334590c3e97d988d696edd6ac40aef16b17a0f72 | 29a04fe1221acab7b3d799a4c25db8fd8c141995 | /reagent/training/world_model/compress_model_trainer.py | 7adc1b03ff2630541e6440d402d5e0bc505b1449 | [
"BSD-3-Clause"
] | permissive | jaynotleno/ReAgent | fb588656890ac9d2b19618528ae21bb750a6eaa6 | acb98f8de7a5604487cd921545b631fdd2541021 | refs/heads/master | 2023-04-18T05:45:24.823728 | 2021-04-22T06:35:01 | 2021-04-22T06:35:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,228 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import logging
import reagent.core.types as rlt
import torch
import torch.nn.functional as F
from reagent.core.parameters import Seq2RewardTrainerParameters
from reagent.models.fully_connected_network import FullyConnectedN... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4c07dcbfb8366a5624a377756e0b8e8daa6b8ed4 | 0018a3b0429ce07f026534b61274e8c5fa25a0ef | /tests/test_crawler.py | 2896f6fe151f9a66353f6aa3029c8bac7b4ce43e | [] | no_license | carlosmaniero/cptm_analytics | ee184bf44efc0170c11261323f8214041d594d53 | b1e3d1da081e429a48ce9b8fb4e9d56efd1217d5 | refs/heads/master | 2021-01-01T04:33:42.996511 | 2016-05-24T20:43:30 | 2016-05-24T20:43:30 | 59,150,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,542 | py | import pytest
from tornado import gen
from crawler.crawler import Crawler
from crawler.data import CrawlerDataControl
from crawler.tasks import CrawlerTasks
from tests import setup_module # NOQA
def test_download_data():
'''
Run a single test downloading the CPTM data and checking the status_code
using t... | [
"carlosmaniero@gmail.com"
] | carlosmaniero@gmail.com |
18421b654dce2b71a36d0440ba6ced2729a412e6 | 659a8da3331f50e91578d48d47210abd5e88364b | /samples/BulkAQ.py | bb86c79f88772cb5139d6a726ba12381ac06b694 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ramboma/python-cx_Oracle | e15a073848ca273cf2d36c0be3ed2da30681a8cf | 3ab21c944705802b7433a5e3916143fe10af2b3f | refs/heads/master | 2020-05-23T23:57:16.166097 | 2019-05-03T21:49:57 | 2019-05-03T21:49:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | #------------------------------------------------------------------------------
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
#
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
#
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
# Canada. All ... | [
"anthony.tuininga@oracle.com"
] | anthony.tuininga@oracle.com |
7f80ab0319cfb31d50e0c4989e81ffc1f9d987c3 | 5a07e1afa5d172dcd4288f12636edd9c53148073 | /tests/test_calculator.py | 97b5fa4e3d9da0bf9e1d033cbced933a20b95265 | [
"Apache-2.0"
] | permissive | scikit-hep/pyhf | 3df3f9b12d1b362919629275b8746060833713f3 | 205eecfb0b57591eb6b70e98b01511797340a0c7 | refs/heads/main | 2023-09-02T18:50:35.990103 | 2023-08-31T00:10:41 | 2023-08-31T00:10:41 | 118,789,569 | 246 | 82 | Apache-2.0 | 2023-09-13T21:57:02 | 2018-01-24T16:14:39 | Python | UTF-8 | Python | false | false | 3,471 | py | import pytest
import pyhf
import pyhf.infer.calculators
def test_calc_dist():
asymptotic_dist = pyhf.infer.calculators.AsymptoticTestStatDistribution(0.0)
assert asymptotic_dist.pvalue(-1) == 1 - asymptotic_dist.cdf(-1)
@pytest.mark.parametrize("return_fitted_pars", [False, True])
def test_generate_asimov_... | [
"noreply@github.com"
] | scikit-hep.noreply@github.com |
0e6826f5eca7265ecfe8da2ea0bfe62ddf51bdf4 | e6ea71d6acbb41bd40d3a17b352e19c6369d5c4b | /senpai/sticker.py | 52dad769df6f26168e74249728669b3127b54c5f | [
"MIT"
] | permissive | alexyy802/waifucord | bbfb50515ca23bf711e940ac8921092ff6d1e12e | c3bb883a6a148effb127781a885e839697df6a8b | refs/heads/master | 2023-09-02T13:19:44.478472 | 2021-10-29T06:51:51 | 2021-10-29T06:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,135 | py | """
The MIT License (MIT)
Copyright (c) 2021-present waifucord
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, m... | [
"noreply@github.com"
] | alexyy802.noreply@github.com |
1210fa97dd02d25bcf6f192141e2e585187fb4d8 | d31d744f62c09cb298022f42bcaf9de03ad9791c | /runtime/mlir_tests/lit.cfg.py | d3cc5aa1abc19890ca261746033475c5e3deb1c0 | [
"Apache-2.0"
] | permissive | yuhuofei/TensorFlow-1 | b2085cb5c061aefe97e2e8f324b01d7d8e3f04a0 | 36eb6994d36674604973a06159e73187087f51c6 | refs/heads/master | 2023-02-22T13:57:28.886086 | 2021-01-26T14:18:18 | 2021-01-26T14:18:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | # Copyright 2020 The TensorFlow Runtime Authors
#
# 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 ag... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
dcf6e27fe7dbce5fea81433a54d9c38b7c123a7d | 8ec8579880082783bb4efa30bc9ea1a3bc5b13c4 | /dpf/process/__init__.py | 7971abef57f19d66294b7b5d14132e4566fad487 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | chaselgrove/dpf | 06fd280ccd747d7fd8d3a1ac73a863860b726f74 | fac71dd744fecb07b88f73a5dea10fd87fe006be | refs/heads/master | 2021-03-19T13:07:06.167775 | 2018-05-22T17:28:38 | 2018-05-22T17:28:38 | 19,864,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,728 | py | # See file COPYING distributed with dpf for copyright and license.
import os
import traceback
import tempfile
import shutil
import wsgiref
import sqlite3
import json
import dpf
db_ddl = """CREATE TABLE job (id TEXT NOT NULL PRIMARY KEY,
process TEXT NOT NULL,
... | [
"christian.haselgrove@umassmed.edu"
] | christian.haselgrove@umassmed.edu |
596451015e496db3243616f6d052da8d175442f8 | 752116ef4b69a3049fef0cfe9b3d212548cc81b1 | /sources/actions/profile/show.py | cd5a597e53b9b334781c5f88d5e5e68611ecb4f7 | [] | no_license | VDOMBoxGroup/runtime2.0 | e54af4af7a642f34b0e07b5d4096320494fb9ae8 | cb9932f5f75d5c6d7889f26d58aee079b4127299 | refs/heads/develop | 2023-07-07T11:06:10.817093 | 2023-07-03T06:11:55 | 2023-07-03T06:11:55 | 62,622,255 | 0 | 12 | null | 2023-05-23T02:55:00 | 2016-07-05T09:09:48 | Python | UTF-8 | Python | false | false | 4,565 | py |
import pstats
import re
from itertools import izip
import settings
import managers
import file_access
from utils.console import CONSOLE_WIDTH
from utils.tracing import BINARY_ALIAS, SERVER_ALIAS, TYPES_ALIAS, APPLICATIONS_ALIAS, format_source_point
from utils.auxiliary import fit, fill
from ..auxiliary import secti... | [
"nikolay.grishkov@vdombox.ru"
] | nikolay.grishkov@vdombox.ru |
a9661e7b5c5f4b1de005a245508c6ca122738ecc | effeae00f945e10e5c5a52f28d813c0b8b76d569 | /app/Test/tasks-dev.py | e6d6732d024a33c32d90de0a4b00bc618df38dc0 | [] | no_license | maro99/Celery-tutorials | 3e4833e44dcf9cee69f07303929cbdafd760234c | c554e17d210071168dac06c8798a889048014f9f | refs/heads/master | 2020-03-26T16:15:13.393049 | 2018-08-17T07:55:00 | 2018-08-17T07:55:00 | 145,090,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # Create your tasks here
from __future__ import absolute_import, unicode_literals
import datetime
import time
from celery import shared_task
# from Test.models import Task
@shared_task
def add(x, y):
return x + y
@shared_task
def mul(x, y):
return x * y
@shared_task
def xsum(numbers):
return sum(nu... | [
"nadcdc4@gmail.com"
] | nadcdc4@gmail.com |
56b13cb050bed40abe9d9b579c1da59cc8dc2c0d | 4d360320e06339a4f7d2a2723cddf02ff02a306e | /0x10-python-network_0/6-peak.py | 574e06c979ee4c5f8dcc9677cbca278c37e8ad95 | [] | no_license | AmineNeifer/holbertonschool-higher_level_programming | fd6ccdb1b5f0dc85e10750e9f2c7824290697e85 | f5c42bff003b85a7c19702e0233997645fce2fb1 | refs/heads/master | 2020-09-29T02:56:52.286548 | 2020-05-15T00:12:50 | 2020-05-15T00:12:50 | 226,933,206 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | #!/usr/bin/python3
""" funtion find_peak"""
def find_peak(list_of_integers):
""" find a peak in a list of integers
Arguments:
list_of_integers: list of int
Returns:
int or None if list is empty
"""
if list_of_integers == []:
return None
length = len(list... | [
"amineneifer2000@gmail.com"
] | amineneifer2000@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.