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
410cb4081e89dc3eb59cc3fbda59b68ae7844275
2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f
/aws.autoscaling.Group.mixed-instances-policy-python/__main__.py
2c3d5382d28b5d51dfca25f592d0fd7afc8785c2
[]
no_license
ehubbard/templates-aws
e323b693a18234defe6bd56ffcc64095dc58e3a1
2ae2e7a5d05490078017fed6d132dcdde1f21c63
refs/heads/master
2022-11-17T13:53:14.531872
2020-07-10T21:56:27
2020-07-10T21:56:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
871
py
import pulumi import pulumi_aws as aws example_launch_template = aws.ec2.LaunchTemplate("exampleLaunchTemplate", image_id=data["aws_ami"]["example"]["id"], instance_type="c5.large", name_prefix="example") example_group = aws.autoscaling.Group("exampleGroup", availability_zones=["us-east-1a"], desir...
[ "jvp@justinvp.com" ]
jvp@justinvp.com
ab019ff8f44d3ba691aebdc11c86e282acb76fe4
1fc45a47f0e540941c87b04616f3b4019da9f9a0
/src/sentry/api/endpoints/project_release_commits.py
ee4a0f82aea772d83f6c1a4e66e53739b4b45f9a
[ "BSD-2-Clause" ]
permissive
seukjung/sentry-8.15.0
febc11864a74a68ddb97b146cc1d2438ef019241
fd3cab65c64fcbc32817885fa44df65534844793
refs/heads/master
2022-10-28T06:39:17.063333
2018-01-17T12:31:55
2018-01-17T12:31:55
117,833,103
0
0
BSD-3-Clause
2022-10-05T18:09:54
2018-01-17T12:28:13
Python
UTF-8
Python
false
false
1,641
py
from __future__ import absolute_import from sentry.api.base import DocSection from sentry.api.bases.project import ProjectEndpoint, ProjectReleasePermission from sentry.api.exceptions import ResourceDoesNotExist from sentry.api.serializers import serialize from sentry.models import Release, ReleaseCommit class Proje...
[ "jeyce@github.com" ]
jeyce@github.com
8b110ee3b6013db04f1448091c8518136433b53e
7d800b5d51e47bf59ef5788bd1592d9c306d14c3
/orders/migrations/0023_order.py
acac20f5ce2afce9ee8126e02bb1517ca7612693
[]
no_license
paulitstep/cafe-website
2e28e5a218f58c491cd65c6dc2deee22158765e2
29d077b1924871941ef95d5715412ae64ff4e892
refs/heads/master
2020-04-19T04:06:02.902468
2019-02-11T11:08:54
2019-02-11T11:08:54
167,953,512
0
0
null
null
null
null
UTF-8
Python
false
false
1,231
py
# Generated by Django 2.1.1 on 2018-11-13 20:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cart', '0015_cart_cartitem'), ('orders', '0022_auto_20181113_2242'), ] operations = [ migrations.Cr...
[ "pasha-mo1@rambler.ru" ]
pasha-mo1@rambler.ru
4590727dcc68468074628fc79b7672369506aef3
4f5675d7d1cdb9dfb42cabcb9b154f08ed4f92e6
/sensor/manage4.py
19f8fd405b6dd84beea27a75322d39a9f510f808
[]
no_license
block1b/twisted_rpc
674934a85313761fabc48d8529f326a7f6958a29
5fa8f0f8ce07f99a280c4f8d81362532a443440a
refs/heads/master
2020-03-19T18:07:02.738900
2018-06-10T06:54:16
2018-06-10T06:54:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,627
py
# coding=utf-8 from init_pro import ConnectionFactory, ConnectionProtocol, Connector import sys from twisted.internet import reactor from twisted.python import log import random import json import datetime log.startLogging(sys.stdout) class CreateConnection(object): """ 创建主动的长连接 """ def __init__...
[ "1115064450@qq.com" ]
1115064450@qq.com
971f11bd2b61abcdffd848b6073412f022007d3a
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/built-in/cv/detection/SSD_for_PyTorch/configs/retinanet/retinanet_r101_caffe_fpn_mstrain_3x_coco.py
21352a07ca8f6642d491dc9a5b683b2b4483d2d5
[ "Apache-2.0", "GPL-1.0-or-later", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
853
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...
[ "chenyong84@huawei.com" ]
chenyong84@huawei.com
40af72dc5ee87cc11f60cf3e10c57cc8617d2fbf
8d2e5b5ea408579faa699c09bdbea39e864cdee1
/ufora/util/TypeAwareComparison.py
ec50d2969a9792de4b1a5196ed0ac3933d706cc9
[ "dtoa", "MIT", "BSD-3-Clause", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
iantuioti/ufora
2218ef4c7e33c171268ce11458e9335be7421943
04db96ab049b8499d6d6526445f4f9857f1b6c7e
refs/heads/master
2021-01-17T17:08:39.228987
2017-01-30T16:00:45
2017-01-30T16:00:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
965
py
# Copyright 2015 Ufora 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 law or agreed to i...
[ "braxton.mckee@gmail.com" ]
braxton.mckee@gmail.com
11723a0259f19eee03f62469fb9728c3ae122d34
ef02d3f3c5dbb2f1bf1b5a8b419d44efc9eb9cf1
/src/scraping/migrations/0006_auto_20210227_1647.py
99f1ec19ef18215e8c6e4f0d0c9e3b87564d93d2
[]
no_license
Kirill67tyar/scraping_service
d0e60c1a07e1455b007b80908a0145ac26c38ba4
e1c8ed8275d20e104e912e48bbc3d2b3a4e889ff
refs/heads/master
2023-03-23T00:49:11.641175
2021-03-05T14:49:57
2021-03-05T14:49:57
335,295,599
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
# Generated by Django 3.1.6 on 2021-02-27 13:47 from django.db import migrations import jsonfield.fields import scraping.models class Migration(migrations.Migration): dependencies = [ ('scraping', '0005_auto_20210224_1842'), ] operations = [ migrations.AlterField( model_name...
[ "50547951+Kirill67tyar@users.noreply.github.com" ]
50547951+Kirill67tyar@users.noreply.github.com
bbd30238c51b35c915d81fddbe1772cad0af452e
97bd006a2a9885f1733bead1fcb6cb59b7779c43
/experiments/naive_bayes/rbf_if/parameterization.py
04084965224f5451e61ed1fff97b8b3fa8453c45
[]
no_license
foxriver76/master-thesis-rslvq
d3524176d05e553b7cca5a37f580ef2cf9efc805
00a6c0b4bc3289fe30ead7d7c4e1ae41984dcf8b
refs/heads/master
2022-03-07T03:55:19.244161
2018-10-15T08:28:41
2018-10-15T08:28:41
139,425,955
0
0
null
null
null
null
UTF-8
Python
false
false
1,419
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Aug 14 08:34:18 2018 @author: moritz """ from sklearn.model_selection import GridSearchCV from rslvq_stream import RSLVQ import json from skmultiflow.data.random_rbf_generator_drift import RandomRBFGeneratorDrift """Subset of 30k""" stream = RandomRBF...
[ "moritz.heusinger@gmail.com" ]
moritz.heusinger@gmail.com
ca20ef76e3f12077d99b30818c4300e8d0ed1e2b
e6f02bafae8842cae7b45efc2d4719c1a931f68d
/python/scripts/serve_dir_single_file.py
92b87c034eb909ca4638e839c4e3aca61ae2d15f
[]
no_license
minhhoangcn4/nuxt-dashboard-template
71d7f54462edb96ddb09667fee9c5a4ea76583ca
7f15e1c79122ad45e398cc319d716d2a439b8365
refs/heads/master
2022-04-18T05:43:56.254971
2020-04-19T16:52:32
2020-04-19T16:52:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
import os import build_frontend as bf here = os.path.dirname(os.path.abspath(__file__)) folder_root = os.path.join(here, '..', '..') c = bf.ServeSingleFile(folder_root=folder_root, port=8080) c.run()
[ "olivier.borderies@gmail.com" ]
olivier.borderies@gmail.com
283c78dd3f670c65171d58c2b10825d443747d41
71fa0d6b0cf81dcd68fb4b5f43bb9fb7026df170
/code/lamost/mass_age/paper_plots/write_paper_table.py
d7d649c0c8413ca2e487c363c9867f887718c740
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
aceilers/TheCannon
31354db3df2495cea1e938090079f74f316a5bbf
c140a0c9555bb98956b013d1a9d29eb94ed4c514
refs/heads/master
2020-12-25T22:29:57.147937
2017-07-18T08:22:46
2017-07-18T08:22:46
64,823,554
0
0
null
null
null
null
UTF-8
Python
false
false
4,707
py
import pyfits import numpy as np from sigfig import round_sig def ndec(num): dec = str(num).split('.')[-1] return len(dec) def fmt_id(id_val): split_val = id_val.split('_') return split_val[0] + "\_" + split_val[1] inputf = pyfits.open("/Users/annaho/Data/LAMOST/Mass_And_Age/Ho2016b_Catalog.fits") da...
[ "annayqho@gmail.com" ]
annayqho@gmail.com
f5ddb3679e63a10e89433aa31c76875a957f6882
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/9sN5tvXZjYCsKb4Mx_10.py
87730daea0cefa4298f4002d9ce77ce7bf826233
[]
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
419
py
""" Create a function that takes the volume of a cube and returns the length of the cube's main diagonal, rounded to two decimal places. ### Examples cube_diagonal(8) ➞ 3.46 cube_diagonal(343) ➞ 12.12 cube_diagonal(1157.625) ➞ 18.19 #### Notes Use the `sqrt` function in the math module. ""...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
87e59e18201aa6e50de6d0578c21eb8a359dbb7c
2ea49bfaa6bc1b9301b025c5b2ca6fde7e5bb9df
/contributions/Acksl/python/Data Structures/2016-09-15.py
ad51408136aa1bb6e996fb00b61d28170f669b81
[]
no_license
0x8801/commit
18f25a9449f162ee92945b42b93700e12fd4fd77
e7692808585bc7e9726f61f7f6baf43dc83e28ac
refs/heads/master
2021-10-13T08:04:48.200662
2016-12-20T01:59:47
2016-12-20T01:59:47
76,935,980
1
0
null
null
null
null
UTF-8
Python
false
false
112
py
Built-in `list` methods `del` statement for lists `bytes` type `Dictionary` view objects Get the most of `int`s
[ "axel.dahlberg12@gmail.com" ]
axel.dahlberg12@gmail.com
8c5030a179cc631854c7d96c7e2d1c6386015dbf
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2209/60752/238089.py
1fbb44fa4a0aa3c0bafbae2da87777e5890a840f
[]
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
2,552
py
#include <bits/stdc++.h> #define ls q << 1 #define rs q << 1 | 1 using namespace std; const int N = 3e5 + 11; const int inf = 0x3f3f3f3f; char s[N], c[N]; int n, m, cnt, trie[N][26], ed[N], tr[N << 2]; int dep[N], f[N], g[N], v[N], fail[N]; queue<int> q; void insert() { int now = 0, len = strlen(c + 1); for (in...
[ "1069583789@qq.com" ]
1069583789@qq.com
f646f114ff492f1ee43d8edfa4022c398984be63
5c16b25d78823499d3a8b33a59636ce3b0923da1
/articleapp/migrations/0001_initial.py
7006451c2c3a7fda0d4f3cdbd5861c97b1908a4c
[]
no_license
noeul1114/gis_3ban_1
351b3dd5dd306a333df657bf9d1cdad0827f4161
e25fac8922984c7a3b42d8f97ac8ce230d0224fb
refs/heads/master
2023-08-26T14:41:27.970660
2021-10-06T06:59:00
2021-10-06T06:59:00
382,189,975
10
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
# Generated by Django 3.2.4 on 2021-08-03 01:10 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...
[ "parkhyongsok@naver.com" ]
parkhyongsok@naver.com
e97bec724b57e515c3368cbf9177b005f77ae1ea
af7466d6abfcce9e02efe91abe1875fbcf8d04aa
/lib/parsers/parse856Holding.py
7b351add50a67d0c83f41d770abb32c03de734fb
[]
no_license
NYPL/sfr-oclc-catalog-lookup
eb1472d1a6cab85734b4c0ac6648de846e5b00fb
4bf3bde518211870d6c20cde840c57bd83c1816c
refs/heads/development
2020-04-15T07:45:59.184860
2020-02-05T21:22:32
2020-02-05T21:22:32
164,501,003
1
1
null
2020-02-05T21:22:34
2019-01-07T21:43:14
Python
UTF-8
Python
false
false
7,355
py
import math from multiprocessing import Process, Pipe from multiprocessing.connection import wait import re import requests from helpers.errorHelpers import HoldingError from lib.dataModel import Link, Identifier class HoldingParser: EBOOK_REGEX = { 'gutenberg': r'gutenberg.org\/ebooks\/[0-9]+\.epub\.(?:...
[ "mwbenowitz@gmail.com" ]
mwbenowitz@gmail.com
d1896c910c15d67fea04a633a1af5eeb4bcb8691
a04363ff165d9de42ceb7f277fe3e9896a443627
/bdai_master-master/lambda_functions/twitter-pipeline/handler.py
3cd04f129c77bbc4e7b8d37c4fe2a0bbc0eaa1af
[]
no_license
webclinic017/bdai_master
45327d3ca29262c31986ad1fd05ea96c45949135
c6953cce37764965b5caa0ea6b3add6df47f8ce4
refs/heads/master
2023-07-26T06:43:42.545663
2020-04-13T23:13:05
2020-04-13T23:13:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,364
py
import re import tweepy import boto3 from tweepy import OAuthHandler from textblob import TextBlob # In[2]: consumer_key = 'GIw0j8Nm3Qx9YYQCo5SLnqljh' consumer_secret = 'HMLyZMmeGbhV9hnQkYeAFKJp0ynPsVWri3RT4FHTxNwQ2gad3g' access_token = '2748454529-gTBtq6YTLRTRdMhUMiVISbFp3BPlP5pmfB9wRST' access_token_...
[ "noreply@github.com" ]
webclinic017.noreply@github.com
bfa6c57b1cf19aaec50e98c4cf9775c806514880
0c752e60f2eeac20673db6298984f5300ee00591
/setup.py
266648b0a808735ec3e3ac432018f3b940929078
[]
no_license
Tamosauskas/collective.newsticker
d3473e5dc68c0874a0e812d9d9c2bb43746ed4f4
91ef5ba610b68895e2f7dba532c7b1a296eaba00
refs/heads/master
2021-01-16T00:47:38.423885
2011-10-06T13:23:52
2011-10-06T13:23:52
2,525,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,220
py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import os version = '1.0dev' setup(name='collective.newsticker', version=version, description="An implementation of the jQuery News Ticker Plugin for Plone.", long_description=open("README.txt").read() + "\n" + ...
[ "hector.velarde@gmail.com" ]
hector.velarde@gmail.com
c57cf7c79f465eda9b6a2c3a446cf3a641826adc
3bae1ed6460064f997264091aca0f37ac31c1a77
/apps/cloud_api_generator/generatedServer/tasklets/machine/rollback/machine_rollback.py
7ba45c98b3698e570b614117f8241526791bd529
[]
no_license
racktivity/ext-pylabs-core
04d96b80ac1942754257d59e91460c3a141f0a32
53d349fa6bee0ccead29afd6676979b44c109a61
refs/heads/master
2021-01-22T10:33:18.523799
2017-06-08T09:09:28
2017-06-08T09:09:28
54,314,984
0
0
null
2017-06-08T09:09:29
2016-03-20T11:55:01
Python
UTF-8
Python
false
false
179
py
__author__ = 'aserver' __tags__ = 'machine', 'rollback' __priority__= 3 def main(q, i, params, tags): params['result'] = '' def match(q, i, params, tags): return True
[ "devnull@localhost" ]
devnull@localhost
1018f09e7291d2d37f9db87d4d60882d3bba1b3f
388ee4f6147c28a54125c6c3e90e47da207fab65
/lib/python3.5/site-packages/boto-2.48.0-py3.5.egg/EGG-INFO/scripts/fetch_file
d4c43cc3fd280687105334bb2a32d6a23a3e3c79
[]
no_license
alikhundmiri/save_PIL_to_S3
08ea5f622906528504d6742a39d5f50d83b57340
2229ed410cd3acd4e1be3ed4287709747dccc617
refs/heads/master
2020-03-10T21:13:14.333990
2018-04-15T08:34:53
2018-04-15T08:34:53
129,588,519
0
0
null
null
null
null
UTF-8
Python
false
false
1,907
#!/Users/alikhundmiri/Desktop/pythons/Image/bin/python # Copyright (c) 2009 Chris Moyer http://coredumped.org # # 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 ...
[ "salikhundmiri@gmail.com" ]
salikhundmiri@gmail.com
8c5207ebadc1ac132c9e5ae23a332403c97b4c57
22c5fc7dd52149ebd4338a487ae9ab0db0e43f01
/tests/test_ahnet.py
509cfbc59c4f97b70213d092f404c5db9b7cb2e6
[ "Apache-2.0" ]
permissive
precision-medicine-um/MONAI-Deep_Learning
3d3f547dd9815152561a6853f8d4727b0e5ca4c4
d94c4d3a2c465717ba3fae01b7acea7fada9885b
refs/heads/master
2022-12-28T07:04:07.768415
2020-10-17T13:11:56
2020-10-17T13:11:56
305,346,962
3
0
Apache-2.0
2022-12-27T15:44:13
2020-10-19T10:30:07
Python
UTF-8
Python
false
false
5,322
py
# Copyright 2020 MONAI Consortium # 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 in writing, s...
[ "noreply@github.com" ]
precision-medicine-um.noreply@github.com
927250df7665ad2bafdbed1ebce7ed9e8f9b37d5
37061d249207275daad5f465522f0f5b258daac4
/mall/mall/apps/verifications/urls.py
b3b491292b8d83b6715561bce4ff44a4c0f5bb70
[]
no_license
chanwanxiang/mallinfo
e4d9322436cf1711f7864acb8e288fb8ccf44c0c
f730773509dcc052374720ae5eae2c012bf96bb8
refs/heads/main
2023-04-19T11:41:23.124078
2021-05-12T08:30:56
2021-05-12T08:30:56
354,263,545
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^image_code/(?P<uuid>[\w-]+)/$', views.ImageCodeView.as_view()), url(r'^sms_code/(?P<mobile>1[3-9]\d{9})$/', views.SmsCodeView.as_view()), ]
[ "595366700@qq.com" ]
595366700@qq.com
8deb8da80cad74ca6d0ca6fa50cd7220d4b62737
947a46aee6191a640938cf1b5892aa577ca8708b
/independentbanker/spiders/spider.py
690b4738b3eaf75543710e2d6532cc5596beaac6
[]
no_license
hristo-grudev/independentbanker
6f8a39555b093fdf52218d76ee0c656c37166cee
d2d1f0892227e5f14b98a38e67413bf78ec7a443
refs/heads/main
2023-03-30T15:14:37.784357
2021-04-02T07:36:43
2021-04-02T07:36:43
353,943,558
0
0
null
null
null
null
UTF-8
Python
false
false
1,421
py
import datetime import scrapy from scrapy.loader import ItemLoader from ..items import IndependentbankerItem from itemloaders.processors import TakeFirst base = 'https://independentbanker.org/{}/' class IndependentbankerSpider(scrapy.Spider): name = 'independentbanker' year = 2011 start_urls = [base.format(year...
[ "hr.grudev@gmail.com" ]
hr.grudev@gmail.com
544128c3d90a839809f1c93fffa23c0ff34618d2
97249b5f3b0054ccb7e61b211c525af7e9842f48
/clickpost/router.py
1d5cd19329b1b97edd20a5943801742409e865ad
[]
no_license
itssonamsinha/testing2
ebaf88b7c30c8d9bd995e0eac687c8650c3ebc83
8800baf8cf3dd5bbfc97959bab0a2c1a674c7587
refs/heads/master
2021-03-15T06:12:24.921359
2020-03-18T07:42:16
2020-03-18T07:42:16
246,830,372
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
from django.urls import path from .views import NotificationView urlpatterns = [ path('sendSms', NotificationView.as_view({'get': 'retrieve_sms'}), name='send-sms'), path('sendWhatsApp', NotificationView.as_view({'get': 'retrieve_whatsapp'}), name='send-sms'), path('sendProductNotification', NotificationVi...
[ "sonamsinha@policybazaar.com" ]
sonamsinha@policybazaar.com
6971479fb0d05f17efa38c065ea41d78c4494504
fdbb74a95924e2677466614f6ab6e2bb13b2a95a
/third_party/python/Lib/distutils/tests/test_extension.py
e35f2738b6a21966e862cb0bbecbe92f6b0d60ef
[ "Python-2.0", "GPL-1.0-or-later", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-copyleft", "ISC" ]
permissive
jart/cosmopolitan
fb11b5658939023977060a7c6c71a74093d9cb44
0d748ad58e1063dd1f8560f18a0c75293b9415b7
refs/heads/master
2023-09-06T09:17:29.303607
2023-09-02T03:49:13
2023-09-02T03:50:18
272,457,606
11,887
435
ISC
2023-09-14T17:47:58
2020-06-15T14:16:13
C
UTF-8
Python
false
false
2,768
py
"""Tests for distutils.extension.""" import unittest import os import warnings from test.support import check_warnings, run_unittest from distutils.extension import read_setup_file, Extension class ExtensionTestCase(unittest.TestCase): def test_read_setup_file(self): # trying to read a Setup file ...
[ "jtunney@gmail.com" ]
jtunney@gmail.com
df7aeee9a54209ea3c3d4e27855b4fcf5d6ef691
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/8/sUe.py
946ef0e25b70dd125c49ea77a1b22196b31a1016
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
83f72edc799573491790f4191be54267fb97346d
44ff608608e8042f86edf08aa8fa4469a9786837
/nacos/errors.py
79ede9ddef722579a47ca10738f250a44bb38d89
[ "MIT" ]
permissive
neggplant/pynacos-sdk
928a2297eaaaebdf3f595328f29d378d028a9fed
c98521ca706437262b680f9beeb1a2e4a6dad2d8
refs/heads/master
2023-02-26T17:57:45.967901
2021-02-03T13:24:16
2021-02-03T13:24:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
class RequestError(Exception): def __init__(self, message="failed to request data"): Exception.__init__(self, message) class ParamError(Exception): def __init__(self, message="invalid param"): Exception.__init__(self, message)
[ "olivetree123@163.com" ]
olivetree123@163.com
9da6a8533f52d115e139ed88b0df5fb07b8ce617
c08d8126a90f773f0cf04237157a578f82b0a2ac
/libs/dataset.py
b01b5ec07253fddd3c00bcc8654451e96caf6269
[]
no_license
GOSSAN0602/baidu_car_pose_estimation
cf2d4a8b69f629b01bc70f657c4f0981999034a4
2a2e77bae99011890ca7861a24298ebffa604b3d
refs/heads/master
2020-12-05T07:20:42.358114
2020-01-08T15:27:49
2020-01-08T15:27:49
232,045,848
0
0
null
null
null
null
UTF-8
Python
false
false
1,373
py
import numpy as np import pandas as pd import cv2 from torch.utils.data import Dataset, DataLoader import torch import sys sys.path.append('./') from libs.img_preprocess import * def imread(path, fast_mode=False): img = cv2.imread(path) if not fast_mode and img is not None and len(img.shape) == 3: im...
[ "google-dl-platform@googlegroups.com" ]
google-dl-platform@googlegroups.com
b5380f194e2ebf4483ba73e4bbda03f43357c625
efc9b70544c0bc108aaec0ed6a2aefdf208fd266
/7_Reverse Integer.py
89ccbc472a02918df9bb0a259e44de8755b77148
[]
no_license
fxy1018/Leetcode
75fad14701703d6a6a36dd52c338ca56c5fa9eff
604efd2c53c369fb262f42f7f7f31997ea4d029b
refs/heads/master
2022-12-22T23:42:17.412776
2022-12-15T21:27:37
2022-12-15T21:27:37
78,082,899
1
0
null
null
null
null
UTF-8
Python
false
false
918
py
''' Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−231, 231 − 1]. For the pu...
[ "noreply@github.com" ]
fxy1018.noreply@github.com
1ed1be18e715d55229010ba193864c1a21ca05e4
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/sieve/01b5423521084f56a7ead15fa4504e4f.py
99cb7e8e8668e1ae7fee586e05b9e99094a5c1b4
[]
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
348
py
def sieve(number): nonprimes = [] primes = [] for x in range(2,number/2): y = 2 result = 0 while (result < number +1): result = x*y nonprimes.append(result) y = y + 1 for a in range(2,number): if a not in nonprimes: primes....
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
1cce6bb01e3e8ebd4f9aba7c62c8d07cedbb2b9f
4c187f0f9d244e89facdddc1581bcef33e092a93
/benchmarks/QLib/QASM_src/benstein_vazirani_23b_secret_64.py
18e103f3200545383140d5d7ea73dd4ab19dc862
[]
no_license
Gonaco/Super-Qool-Benchmarks
419dea5306bcec7e502034527acffe371a4e8004
a630f3dd6f22bebd4ce7601a772fd3a8cd3dd08c
refs/heads/master
2021-01-25T13:40:57.523633
2018-04-03T09:31:56
2018-04-03T09:31:56
123,600,859
2
1
null
null
null
null
UTF-8
Python
false
false
1,394
py
from openql import openql as ql import os import numpy as np curdir = os.path.dirname(__file__) output_dir = os.path.join(curdir, 'test_output') ql.set_output_dir(output_dir) config_fn = os.path.join(curdir, '/home/daniel/Master/Quantum_Computing_and_Quantum_Information/OpenQL/tests/hardware_config_cc_light.json') plat...
[ "danielmoremanza@gmail.com" ]
danielmoremanza@gmail.com
4a709776d4093627ea30121af39de661a51c6b0b
ce1f8877fa9ff084b75bceec4cc7ddf5b3153b07
/clif/testing/python/t3_test.py
1ac9b2d39c371c6fecfc64077ee971e8438811cf
[ "Apache-2.0" ]
permissive
HenriChataing/clif
034aba392294ac30e40801815cf4d3172d3d44bd
307ac5b7957424706c598876d883936c245e2078
refs/heads/master
2021-01-23T16:25:19.543400
2017-09-01T22:18:03
2017-09-01T22:18:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,151
py
# Copyright 2017 Google 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 law or agreed to in writing,...
[ "mrovner@google.com" ]
mrovner@google.com
56b409a0f90af1f8c33c763c5b51333b9d2319d9
8fcc27160f8700be46296568260fa0017a0b3004
/client/carbon/common/lib/jinja2/nodes.py
a9ce7128c60779add4374f810a327ee3df669a85
[]
no_license
connoryang/dec-eve-serenity
5d867f4eedfa896a4ef60f92556356cafd632c96
b670aec7c8b4514fc47cd52e186d7ccf3aabb69e
refs/heads/master
2021-01-22T06:33:16.303760
2016-03-16T15:15:32
2016-03-16T15:15:32
56,389,750
1
0
null
2016-04-16T15:05:24
2016-04-16T15:05:24
null
UTF-8
Python
false
false
16,999
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\jinja2\nodes.py import operator from itertools import chain, izip from collections import deque from jinja2.utils import Markup, MethodType, FunctionType _context_function_types = (FunctionType, MethodType) _bino...
[ "masaho.shiro@gmail.com" ]
masaho.shiro@gmail.com
0199368418346d8e9f8d077120096ec470eb55f7
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/src/datadog_api_client/v1/model/service_level_objective_query.py
ee11656739b4377458798b17a374a2d58d95f8a3
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
1,316
py
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import annotations from datadog_api_client.model_utils import ( Mo...
[ "noreply@github.com" ]
DataDog.noreply@github.com
a7873b9123b4adc26592ecf2c7886ad5a18ad42f
7726380df6ca42be4398136eb133496b55ef23ff
/bin/demosaick
c643b8233e909503cd6523ff49b2bc5b0aa6a291
[ "MIT" ]
permissive
isVoid/demosaicnet
7f9bc98a2a6ba7afaddd8b7400b17e996a0d531f
d03c9b263d91f07ea198df53c62d5b6da00b4702
refs/heads/master
2021-09-06T18:35:35.946714
2018-02-09T20:03:41
2018-02-09T20:03:41
111,714,754
0
1
null
2017-11-22T17:41:45
2017-11-22T17:41:44
null
UTF-8
Python
false
false
11,524
#!/usr/bin/env python # MIT License # # Deep Joint Demosaicking and Denoising # Siggraph Asia 2016 # Michael Gharbi, Gaurav Chaurasia, Sylvain Paris, Fredo Durand # # Copyright (c) 2016 Michael Gharbi # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated do...
[ "gharbi@mit.edu" ]
gharbi@mit.edu
f002b030cd2969fee5c668a5cae035d7f1da8581
dbd603f5246059ce5fe3d426b4e7f5f98b944a78
/mlmath/vector.py
589999452c6de70857b5b5b0536d879990f1dc7c
[]
no_license
chyld/mlmath
f81522644b30e1a186032a6edbb908891730d9a7
7ce5606f02111d49f893f0f35e57bc72fb40cdcf
refs/heads/master
2020-04-18T21:41:56.910701
2019-01-27T05:12:48
2019-01-27T05:12:48
167,772,122
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
class Vector: def __init__(self, *elements): self.elements = elements def scale(self, amount): return Vector(*(e * amount for e in self.elements)) def norm(self): return sum((e ** 2 for e in self.elements)) ** 0.5 def __add__(self, other): return Vector(*(a + b for a, ...
[ "chyld.medford@gmail.com" ]
chyld.medford@gmail.com
d8b482999535ede7ae3f2ba3547c471e1c6f9eb1
1b8d87b37cc6de4b0ffaedf0d5dc3877888865c3
/fhirclient/r4models/messagedefinition_tests.py
68e8854a920536410beae208bafde5623997ea6e
[]
no_license
Healthedata1/Flask-Alerts-Sender
d222e689de01daaa59d51aea2054d538db231cf9
0637cb1bb2c8af18243fce3aecc09723c2fdd155
refs/heads/master
2022-12-12T14:14:04.708052
2021-05-05T20:52:49
2021-05-05T20:52:49
231,147,534
1
0
null
2022-12-08T03:22:29
2019-12-31T21:20:13
Python
UTF-8
Python
false
false
2,376
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07. # 2019, SMART Health IT. import os import io import unittest import json from . import messagedefinition from .fhirdate import FHIRDate class MessageDefinitionTests(unittest.TestCase): def ins...
[ "ehaas@healthedatainc.com" ]
ehaas@healthedatainc.com
d754a968e1f0df26c599e84104d0e8b552cb60ae
0d15c599ec1fed05d7acdb31cebe37a40d38c2e3
/setup.py
482189a2a087726c6040c10024b6ef6344ccf911
[]
no_license
VoteIT/voteit.notes
34753f6ed45aa6c015e9aa015d679f4ee132e4ff
ecdb9b945d7cdab0cd566b22c879b71ba3c23b75
refs/heads/master
2021-07-13T07:41:39.347100
2020-05-16T12:26:57
2020-05-16T12:26:57
133,809,741
0
0
null
null
null
null
UTF-8
Python
false
false
1,359
py
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CONTRIBUTORS = open(os.path.join(here, 'CONTRIBUTORS.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = ('voteit.core', ...
[ "robin@betahaus.net" ]
robin@betahaus.net
0b3a3a34c6f90fed16abed7da992f7be4a7df450
c89543dd926c1787c40616ed174a3d1371c54449
/superset/databases/commands/export.py
4d3bb7f99f251d041f0dff7b5e8faa99d90b2d68
[ "Apache-2.0", "OFL-1.1" ]
permissive
j420247/incubator-superset
7c7bff330393f0e91f5e67782f35efe8c735250a
c9b9b7404a2440a4c9d3173f0c494ed40f7fa2bd
refs/heads/master
2023-03-11T21:53:16.827919
2023-02-03T19:04:17
2023-02-03T19:04:17
157,780,350
1
1
Apache-2.0
2023-03-07T00:14:51
2018-11-15T22:24:29
TypeScript
UTF-8
Python
false
false
4,254
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
j420247.noreply@github.com
8d2ad9a8b6c480e830f3ac604361cacec07ae068
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf.0/gsn-edf_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=12/sched.py
5807deb25f4484e9338877651fe134cfb937907d
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
-X FMLP -Q 0 -L 5 100 300 -X FMLP -Q 0 -L 5 96 300 -X FMLP -Q 1 -L 5 88 300 -X FMLP -Q 1 -L 5 84 400 -X FMLP -Q 2 -L 3 64 300 -X FMLP -Q 2 -L 3 55 250 -X FMLP -Q 3 -L 2 49 300 -X FMLP -Q 3 -L 2 48 175 47 175 35 200 33 100 31 150 26 175 24 150 18 200 18 200
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
207423db38088cf820dfc1c434376eec194dd38d
7520e14426f46525605d87f6104b6100c0724d84
/examples/finite_differences.py
871c43dee817896f653bba1adcaf93428618e26f
[]
no_license
shanhaiying/pysketcher
1b40b1b230af429f93173cb6765d0b96d9806535
1007b71c64b3c812d301caa3b422b5308dcf87db
refs/heads/master
2021-01-17T07:55:17.362970
2015-01-28T18:09:09
2015-01-28T18:09:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,224
py
""" Illustrate forward, backward and centered finite differences in four figures. """ from pysketcher import * #test_test() xaxis = 2 drawing_tool.set_coordinate_system(0, 7, 1, 6, axis=False) f = SketchyFunc1('$u(t)$') x = 3 # center point where we want the derivative xb = 2 # x point...
[ "hpl@simula.no" ]
hpl@simula.no
f6531f7cfb43c1e68e3acf5fc0ab5dfd6c670dad
71b11008ab0455dd9fd2c47107f8a27e08febb27
/09、UI自动化测试及黑马头条项目实战/day16/03代码/scripts/mp/test_publish_article.py
bb0c9fc390b7a3689f3c4dbcddb3c679b9e20b14
[]
no_license
zmh19941223/heimatest2021
49ce328f8ce763df0dd67ed1d26eb553fd9e7da4
3d2e9e3551a199bda9945df2b957a9bc70d78f64
refs/heads/main
2023-08-25T17:03:31.519976
2021-10-18T05:07:03
2021-10-18T05:07:03
418,348,201
0
0
null
null
null
null
UTF-8
Python
false
false
1,879
py
# 定义测试类 import logging import allure import pytest from config import BaseDir from page.mp.home_page import HomeProxy from page.mp.login_page import LoginProxy from page.mp.publish_page import PublishProxy from utils import UtilsDriver, is_exist, get_case_data case_data = get_case_data(BaseDir + "/data/mp/test_login_...
[ "1780858508@qq.com" ]
1780858508@qq.com
806afa96acf010a531f3f9ea7f1949f08b8aed32
0bd00c67608b1ce6c5e76d77b3ced4cce64ee5a0
/python/problem57.py
1052c9808248f12fd2498667f322d48b963d14b6
[]
no_license
patrickdean/euler
420ef8b268764a7e47120c5879063a7d9164fa09
d42e94db3713bbbb65cb27e87ce1775211f53790
refs/heads/master
2020-05-18T17:44:18.738482
2014-05-20T00:48:51
2014-05-20T00:54:17
4,303,268
0
1
null
null
null
null
UTF-8
Python
false
false
665
py
#!/usr/bin/env python # Patrick Dean # Project Euler: #057 # In the first one-thousand expansions of the continued fraction of sqrt(2), find the number fractions contain a numerator with more digits than denominator def two_conv_gen(n): s= [2] * n return [1] + s def convergent(lst): if len(lst) == 1: ...
[ "=" ]
=
9962f987b25843ee987ebf75bc28b9e9c9c1dc90
c2fd315faa3d4ad91474197e0c55526f0db83e3f
/nonrecursive_tree_search.py
a1eaef60ee1e98a2b33bf5a79d30dae926a947c2
[]
no_license
zackmdavis/Standard_Algorithms
8db9f912bddcb5bf14756d21ce67745ddbcc69c9
655309a4440c7baea26de291f9881494b4695827
refs/heads/master
2021-01-17T08:58:52.214180
2016-04-03T03:01:03
2016-04-03T03:01:03
4,513,998
0
0
null
null
null
null
UTF-8
Python
false
false
3,946
py
#!/usr/bin/env python3 # I usually think of depth-first tree search in terms of recursive function # invocations, but we should be able to manage the node-stack ourselves instead # of leaving it implicit in the call stack! # Let's consider a tree where the leaf nodes have values, and, given a tree, we # want to find ...
[ "code@zackmdavis.net" ]
code@zackmdavis.net
76547e9354f9b0bb944103b940eec27806a919ec
1faf574fc2592e8c65043021762ed6eab441feb5
/프로그래머스/카카오_겨울_인턴_호텔방배정.py
f0d126466c2a7c547b29d692c9b9132de753635c
[]
no_license
YooGunWook/coding_test
4e9c8851a025271f79408fd7a0f097f07351b1e7
2806ecf5db3714d1a4b5dbfaa2b584bb8b6166a0
refs/heads/master
2022-10-15T03:37:46.129384
2022-09-26T13:45:53
2022-09-26T13:45:53
240,265,090
0
0
null
null
null
null
UTF-8
Python
false
false
1,692
py
import bisect import collections import copy # Only 정확성 def solution(k, room_number): rooms = {} # 방 정보 answer = [] # 배정 정보 for i in range(1, k + 1): rooms[i] = 0 # 각 방별로 정보를 넣어준다. room_num = list(rooms.keys()) # 이진탐색용 for idx, room in enumerate(room_number): if rooms[room] == 0...
[ "gunwook0307@yonsei.ac.kr" ]
gunwook0307@yonsei.ac.kr
a1ac33d8d408048b216a7e510c1fb0621d89afe5
890d11bd06222125b4b4f4af7cea814544755403
/graff/db.py
6d91204e1996641bee36be6458a2f7e6cc6b3cea
[]
no_license
eklitzke/graff
8f80f4a5ea015fa320c9dbd46dedbb6067d7ce2e
8146c4a4397d2ee481549c407fb976c0c763fcc8
refs/heads/master
2021-01-01T05:49:33.717421
2011-12-26T21:28:04
2011-12-26T21:28:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,070
py
import datetime import hashlib import os from sqlalchemy import create_engine, func, Column, ForeignKey from sqlalchemy.types import Integer, String, Float, DateTime, Boolean from sqlalchemy.orm import sessionmaker, relationship, backref from sqlalchemy.ext.declarative import declarative_base import warnings from graf...
[ "evan@eklitzke.org" ]
evan@eklitzke.org
8c49e8ae73abdd7a66789562176f376394c27e17
64f9f39485900853d64d1f727a80e097a6836053
/dabi/dabi/items.py
71177c9d7eedfa5c63ee957c1921f527c8b53231
[]
no_license
timbortnik/dabi-scraper
9f09e6f2e639b388106725f2a883b15fb7d7eb21
4262714b9ac62359b938b417abafae62cb76cfe3
refs/heads/master
2021-04-03T07:41:28.409473
2018-03-08T20:28:39
2018-03-08T20:28:39
124,365,911
0
0
null
2018-03-08T16:28:37
2018-03-08T09:07:56
Python
UTF-8
Python
false
false
251
py
from scrapy.contrib.loader import ItemLoader from scrapy.contrib.loader.processor import TakeFirst, MapCompose class TakeFirstItemLoader(ItemLoader): default_output_processor = TakeFirst() default_input_processor = MapCompose(unicode.strip)
[ "dchaplinsky@conversionscience.co.uk" ]
dchaplinsky@conversionscience.co.uk
e9d28e0e53301a24a36450014edba54f0c72b8ff
e53aa5ebfff14c484942cb6ae57db98c15000ee7
/test/integration/ggrc/services/test_collection_post.py
6b2579c1484b4853f4b43db50c36186275fe8969
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
dondublon/ggrc-core
bde266be2b8918afb85e7f659a561e63f49bd748
ea8258f0eb58a4b04f8c7b85c9ab9ae1e87cd228
refs/heads/release/0.10-Raspberry
2021-01-21T18:21:53.202351
2017-05-21T21:55:22
2017-05-21T21:55:22
92,039,199
0
0
null
2017-05-22T10:03:43
2017-05-22T10:03:43
null
UTF-8
Python
false
false
7,377
py
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Tests for collection post service.""" import json from ggrc import db from ggrc import models from integration.ggrc.services import TestCase class TestCollectionPost(TestCase): """Test for collectio...
[ "zidarsk8@gmail.com" ]
zidarsk8@gmail.com
bec70bf0707e4fecdfb9fa574828afe8dfd98e98
42685605f569e9d0afadc358ace6ce212e86bf1c
/1_Zadania/Dzien_3/nowy/nowy/bin/python-config
975871648d91ff51ce0d1b9a103b700bf84f288c
[]
no_license
Danutelka/Coderslab-Podstawy-Python
e6bdbbd9dc2031cf9ec5d9d3eeba717d22e9ecd7
eed6a957f081e488ae3c94298718f7b93e17a93c
refs/heads/master
2020-08-04T15:21:28.058433
2019-04-07T19:24:54
2019-04-07T19:24:54
212,181,477
0
0
null
null
null
null
UTF-8
Python
false
false
2,387
#!/home/danuta/KRA_PYT_W_03_Podstawy_Python/1_Zadania/Dzien_3/nowy/nowy/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opt...
[ "kawecka.d@gmail.com" ]
kawecka.d@gmail.com
2dadad188a8092ba4e9d3982cd96b444bb4ea81e
3e5fc180f90d63bcff54eab1cea310f3a2bbea10
/manage.py
d4baaecbe6653ea8773bc39d8cb8bc5c57dddba2
[]
no_license
eht16/dpaste.de
fbb9aa24c0fdf8373350d1d1f162f7bd596e60a6
2b9797ae125808567cfdcac9292a3d5f58d42aab
refs/heads/master
2021-01-17T03:42:55.691283
2013-03-31T09:20:01
2013-03-31T09:20:01
2,736,358
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
#!/usr/bin/env python import os import sys from django.core.management import execute_from_command_line if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pastebin.conf.local.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.ar...
[ "enrico.troeger@uvena.de" ]
enrico.troeger@uvena.de
b26774f0589d15eb68e5fa29c1c34e7a62e3d687
43a07c7e2b7f46e95e4693afa11ddbcce195c262
/yatra/urls.py
1320df4d2f2937954e47acdf2295fde68c91fb2a
[]
no_license
ashokkuikel/yatra
217ae9432852e164cec12c7a3aca55440cebfb91
3a1a5d7df6f754a1d5de1b07172f28496cd4beec
refs/heads/master
2020-03-07T00:53:40.816789
2016-07-03T03:16:33
2016-07-03T03:16:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,162
py
"""yatra URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
[ "bibekdahal.bd16@gmail.com" ]
bibekdahal.bd16@gmail.com
ad7d72c705124fc2255009e05d46d590e1a297f0
b12bcee65e72940f436c7b1b44f18e0312dd333d
/python/pyspark/sql/tests/connect/test_parity_functions.py
fa3388d43e115612939a71cc6c83084ab47c32c2
[ "CC0-1.0", "MIT", "Python-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown", "EPL-1.0", "Classpath-exception-2.0", "GCC-exception...
permissive
jalpan-randeri/spark
30804d28e35ff959b49588c74e24e9acab66269b
5a762687f416a11a3a6211bc6d90225503295485
refs/heads/master
2023-01-08T05:03:10.919327
2022-12-23T23:55:40
2022-12-23T23:55:40
221,611,476
0
0
Apache-2.0
2019-11-14T04:28:12
2019-11-14T04:28:09
null
UTF-8
Python
false
false
8,209
py
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
[ "gurwls223@apache.org" ]
gurwls223@apache.org
d810b2f8cd0199f8b3c9e947cef421163bf2a574
5a142fb7312fedd4a0386247337b0188112b426e
/project2/face-reco/reconnaissance avec sqlite/trainner.py
4ceedbed3e17fbc06e80d1f7ae6c1d751ae9b94a
[]
no_license
rolandus10/Projet_miroir
aece30aabe543d0165554476938c728a4e341af1
71cbca1fe2a0863b108f045f2f6f84e5eda45705
refs/heads/master
2020-04-25T16:54:23.361658
2019-05-10T14:56:19
2019-05-10T14:56:19
172,928,325
0
0
null
null
null
null
UTF-8
Python
false
false
941
py
import os import cv2 import numpy as np from PIL import Image recognizer= cv2.face.createLBPHFaceRecognizer() path='dataSet' def getImages_And_ID (path): ''' crée une liste avec les chemin relatif des différentes images ''' imagePaths=[os.path.join(path,f) for f in os.listdir(path)] faces=[] IDs=[] fo...
[ "pi@raspberrypi" ]
pi@raspberrypi
cd1abe48746f3e5e7806bdad54ba17455c93c632
9a206d604ea4bb976c35e8ea2a20abc20e2086aa
/scripts/RNN_217.py
10290816a41409706b0eb01e4986b0b5a5f2d296
[ "MIT" ]
permissive
ShepherdCode/BuildingEnergy
24c9e35bc26a9fba2dc5aa697fd8d0f5a6e46051
a2b5a260fed1a0adb57ffe373d3971099b1db66b
refs/heads/main
2023-06-04T02:50:57.513211
2021-05-06T11:11:00
2021-05-06T11:11:00
349,497,733
0
0
null
null
null
null
UTF-8
Python
false
false
7,487
py
#!/usr/bin/env python # coding: utf-8 # # RNN # Compare to RNN_218. No smoothing. Predictors = hour-of-day, day-of-year. Given 12 hrs, predict 12 hr starting 24 hr ahead. Train on year 1, test on year 2. # # In[1]: from os import listdir import csv from zipfile import ZipFile import numpy as np import pandas as p...
[ "jmill02@shepherd.edu" ]
jmill02@shepherd.edu
ebac8572ad03da254a425a4a75b0e61974e3b761
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03385/s603024800.py
7a526ca41c02972a2a71f7357059eef123871f20
[]
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
173
py
s = input() ans = True if "a" not in s: ans = False if "b" not in s: ans = False if "c" not in s: ans = False if ans: print("Yes") else: print("No")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
973c0bedba67067c54281cdc095a2919b8cf0883
bd696223aaf5404987df11832b4c17c916b9690f
/nlp_sample/deep_zero_nlp/ch07/train_better_seq2seq.py
50920b13d185794e98201df4a04b802eb0f7c886
[]
no_license
wararaki718/scrapbox3
000a285477f25c1e8a4b6017b6ad06c76f173342
9be5dc879a33a1988d9f6611307c499eec125dc2
refs/heads/master
2023-06-16T08:46:32.879231
2021-07-17T14:12:54
2021-07-17T14:12:54
280,590,887
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
import numpy as np from dataset import sequence from optimizer import Adam from trainer import Trainer from util import eval_seq2seq from peeky_seq2seq import PeekySeq2seq def main() -> None: (x_train, t_train), (x_test, t_test) = sequence.load_data('addition.txt') x_train, x_test = x_train[:, ::-1], x_test[...
[ "ky7.ott.w@gmail.com" ]
ky7.ott.w@gmail.com
fa413f4d8bb5301fad59fb5a048130fde9b3e8b9
bfa44aa7f6a54a9b60c5ff545897787b15e13c61
/webcart/users/signals.py
65e2687c2a7bb1d6aabb4b8ac6bc39735bdb8bb6
[]
no_license
BabGee/foodcart
e26ef7dbb19df9019c45c623d39e6612f56c8e27
30c213007313349af20e6efd650e1c71696ee14a
refs/heads/master
2022-11-27T12:24:11.279614
2020-02-22T10:41:41
2020-02-22T10:41:41
223,042,865
1
0
null
2022-11-22T04:51:01
2019-11-20T22:56:50
Tcl
UTF-8
Python
false
false
401
py
from django.contrib.auth.models import User from django.db.models import post_save from django.dispatch import receiver from .models import Profile @receiver(post_save, sender=User) def create_profile(sender, instance, created, **kwargs): if created: Profile.objects.create(user=instance) @receiver(post_save, sende...
[ "you@example.com" ]
you@example.com
dafcc875b720940b57d1893518cdca38e1fc1bc2
13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab
/home--tommy--mypy/mypy/lib/python2.7/site-packages/pandas/tests/io/parser/common.py
e85d3ad294655c7424a5049b82708f215de3a092
[ "Unlicense" ]
permissive
tommybutler/mlearnpy2
8ec52bcd03208c9771d8d02ede8eaa91a95bda30
9e5d377d0242ac5eb1e82a357e6701095a8ca1ff
refs/heads/master
2022-10-24T23:30:18.705329
2022-10-17T15:41:37
2022-10-17T15:41:37
118,529,175
0
2
Unlicense
2022-10-15T23:32:18
2018-01-22T23:27:10
Python
UTF-8
Python
false
false
60,098
py
# -*- coding: utf-8 -*- import csv import os import platform import codecs import re import sys from datetime import datetime import pytest import numpy as np from pandas._libs.lib import Timestamp import pandas as pd import pandas.util.testing as tm from pandas import DataFrame, Series, Index, MultiIndex from pand...
[ "tbutler.github@internetalias.net" ]
tbutler.github@internetalias.net
768c574e336ec16dd3c35ce7b0d914c8cd847468
e46e8ae7c95d16ce69bd21159335ab86bc2415cf
/Chapter2 recurrence/all_range.py
30f51a965f3127acd33384f06420cb5e435672ea
[]
no_license
HuichuanLI/play-with-data-structure-python
7f15ca1e679c1f2287a147e6472ebcebd96b235f
b36436efc6af4b1865dacc79db5fa7160eab9d6e
refs/heads/master
2023-05-25T19:08:01.745918
2023-05-16T17:30:40
2023-05-16T17:30:40
210,399,837
32
8
null
null
null
null
UTF-8
Python
false
false
578
py
data_list = [1, 2, 3, 4] arranges = [] total = 0 def search(depth, datas): if depth == len(data_list) + 1: print(arranges) global total total += 1 else: for element in datas: # 1.设置现场 arranges.append(element) next_datas = datas[:] ...
[ "lhc14124908@163.com" ]
lhc14124908@163.com
16991783d0b774c9275a5c191e4b92ce33c85c6d
e79b7882427836346ed6b5fe07506ab6210228c8
/seq2class/data_input.py
35006e6f6688c814c51c8c88fa841fffd8d76517
[]
no_license
feizhihui/standard-logistic-regression
d6ecc03a717dfcac2dd93a78bb5b61c24a755cfa
f54f758f9122e1a0668525a1f395e5aac2d5e0ba
refs/heads/master
2021-09-04T20:08:54.907030
2018-01-22T02:33:02
2018-01-22T02:33:02
108,926,584
0
0
null
null
null
null
UTF-8
Python
false
false
3,113
py
# encoding=utf-8 import numpy as np class DataMaster(object): # ============== def __init__(self, train_mode=True): if train_mode: filename = '../Data/ecoli_modifications.gff' # filename = '../Data/lambda_modifications.gff' cat_idx, seq_idx = 4, 10 # cat...
[ "helloworld@csu.edu.cn" ]
helloworld@csu.edu.cn
22d2c3c3f83ddb99fb4cac35a591c5d7abff3324
60cf5de97160c0c104b447879edd0ea1ca9724e8
/q9.py
1c3aa54c1c05b472f9496d5158c1dc41c9d979cc
[]
no_license
VinayHaryan/String
6f6b7924ab87ac8ea5509edefaa3aeda795b0de0
089dcf02a8d26afcae0ac2b23c640be5a6079095
refs/heads/main
2023-05-27T22:15:31.792837
2021-06-17T08:39:42
2021-06-17T08:39:42
377,736,749
2
0
null
null
null
null
UTF-8
Python
false
false
458
py
''' CONVERT A LIST OF CHARACTERS INTO A STRING Given a list of characters, merge all of them into a string. Examples: Input : ['g', 'e', 'e', 'k', 's', 'f', 'o', 'r', 'g', 'e', 'e', 'k', 's'] Output : geeksforgeeks Input : ['p', 'r', 'o', 'g', 'r', 'a', 'm', 'm',...
[ "noreply@github.com" ]
VinayHaryan.noreply@github.com
d65e3c85419dce845b7906e831452a24b0c0a059
75d8667735782cd1d0eb4877e52c89da5cd92dde
/nova/conf/libvirt.py
a5a1598c2af9d257272381e95696a7a45b4b2704
[ "Apache-2.0" ]
permissive
bopopescu/nova-token
ffecfd3ec561936b7d9d7e691bc57383cde05436
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
refs/heads/master
2022-11-22T09:53:31.073483
2016-05-14T02:47:01
2016-05-15T22:02:55
282,105,621
0
0
Apache-2.0
2020-07-24T02:42:19
2020-07-24T02:42:18
null
UTF-8
Python
false
false
32,335
py
begin_unit comment|'# Copyright 2016 OpenStack Foundation' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' co...
[ "dmg@uvic.ca" ]
dmg@uvic.ca
892b7d8bf3495d401e44eb57611f36916d1b43a7
fbfd4efc9f879f90c194aaefe6217a314737483e
/lib/python3.6/site-packages/pytablereader/spreadsheet/excelloader.py
4c7a6c47870aa80cc986c122a450bdcbc578913c
[]
no_license
EricSchles/pshtt_command
f3519da6def9b42afd7be274f6910be5086a0c6d
a1a01c95aad54fbf124483e3b34cce02ce8eb1d7
refs/heads/master
2021-01-20T11:38:32.529084
2017-08-28T18:56:34
2017-08-28T18:56:34
101,676,359
0
0
null
null
null
null
UTF-8
Python
false
false
4,665
py
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from __future__ import absolute_import from __future__ import unicode_literals import xlrd from six.moves import range from .._logger import FileSourceLogger from .._validator import FileValidator from ..error import InvalidD...
[ "ericschles@gmail.com" ]
ericschles@gmail.com
44cc6301ab5207e6ca94e5f9b3f11c3fa2c5d5df
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02661/s571444851.py
19bb23426d999efd3a0308fcee53bb7a6337cc35
[]
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
286
py
N = int(input()) A = [] B = [] for i in range(N): a, b = list(map(int, input().split())) A.append(a) B.append(b) A = sorted(A) B = sorted(B) if N % 2: ans = B[N//2] - A[N//2] + 1 else: l = A[N//2-1] + A[N//2] r = B[N//2-1] + B[N//2] ans = r-l+1 print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0885f9deabdbc6da3ce5bc00b3bdbd05693f715c
76a8ea60480331f0f61aeb61de55be9a6270e733
/downloadable-site-packages/statsmodels/tsa/arima/estimators/burg.py
13bff501b0145d03d78b3770b04644aef1090db9
[ "MIT" ]
permissive
bhagyas/Pyto
cd2ec3f35bec703db4ac29b56d17abc4bf03e375
907024a9b3e04a2a9de54976778c0e1a56b7b83c
refs/heads/master
2022-11-19T13:05:07.392454
2020-07-21T17:33:39
2020-07-21T17:33:39
281,886,535
2
0
MIT
2020-07-23T07:48:03
2020-07-23T07:48:02
null
UTF-8
Python
false
false
2,286
py
""" Burg's method for estimating AR(p) model parameters. Author: Chad Fulton License: BSD-3 """ import numpy as np from statsmodels.tools.tools import Bunch from statsmodels.regression import linear_model from statsmodels.tsa.arima.specification import SARIMAXSpecification from statsmodels.tsa.arima.params import SA...
[ "adrilabbelol@gmail.com" ]
adrilabbelol@gmail.com
96580f873da4af76eeaa0a7a2437894bdc7df269
67ed96b8b4762c78c8f96d16bae2076e30dc184d
/CMSSW_5_3_20/src/flowAnalysis/SkimTrack/test/crab/tracktc/anaM185150/crab_pPbrereco.py
8cd44ec51eb369b9e8a3f23ae7c6680aa1c168ef
[]
no_license
XuQiao/HI
4dae1dcf600d0ea64ea26403197135790ba3c4a2
e963cd9a5a393480e83e697b37327f4f7c4de8d4
refs/heads/master
2020-12-25T16:53:40.474495
2017-02-16T06:00:17
2017-02-16T06:00:17
64,085,142
1
0
null
null
null
null
UTF-8
Python
false
false
1,090
py
from WMCore.Configuration import Configuration config = Configuration() config.section_('General') config.General.transferOutputs = True config.General.requestName = 'FlowLYZHMpPbReReco' config.section_('JobType') config.JobType.pluginName = 'Analysis' config.JobType.psetName = 'skimtrack_185150_cfi.py' config.JobTyp...
[ "qixu@cern.ch" ]
qixu@cern.ch
4ec1cd9429ade9f0f19dfd8668f57e95449097d2
214c4a79fd77008bf688aa2fc8bafdff8a80780b
/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_configuration.py
c776f7eae7d56275c15a1602afefcb70b5d0b14a
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
openapi-env-test/azure-cli-extensions
abb8bcf005a5b75ee47a12745a958bcb64996a44
d4ffc4100d82af66c4f88e9401397c66b85bd501
refs/heads/master
2022-09-15T18:08:46.848581
2022-08-09T06:09:14
2022-08-09T06:09:14
243,698,123
0
1
MIT
2020-11-10T06:59:47
2020-02-28T06:53:57
Python
UTF-8
Python
false
false
3,668
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
6d4b092383c9317c609ea382bc8fb36cc34e6ff7
d9e7bd5f582dd3d1a63fb10197896d462ce49027
/numpy/arrays1.py
cd7171f3ef68e24bfb1c1eb73f84987129ff02d1
[]
no_license
abhinai96/Python_conceptual_based_programs
137aa8d4c1354ba7586f7ec2dea6683109cf9393
795883b28389ae2b0c46ddacea493530f40774a6
refs/heads/master
2022-12-15T11:57:28.862114
2020-09-15T03:10:35
2020-09-15T03:10:35
295,593,691
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
"""import numpy as np a=np.array([[1,2,3],[5,2,1],[3,4,5]]) print(a)""" """import numpy as np a=np.array([[1,2,3],[4,5,6]]) b=a.diagonal() print(b)""" """import numpy as np a=np.array([[1,2,3],[4,5,6]]) b=np.delete(a,1,axis=1) print(b)""" """# A basic code for matrix input from user R = int(inp...
[ "noreply@github.com" ]
abhinai96.noreply@github.com
cdfd8a0323170f29eafbe3b58d1bfae11f02cfc2
048df2b4dc5ad153a36afad33831017800b9b9c7
/atcoder/arc062/arc062_b.py
b829cb10fa916c10935843f0ebfb04777b776ee5
[]
no_license
fluffyowl/past-submissions
a73e8f5157c647634668c200cd977f4428c6ac7d
24706da1f79e5595b2f9f2583c736135ea055eb7
refs/heads/master
2022-02-21T06:32:43.156817
2019-09-16T00:17:50
2019-09-16T00:17:50
71,639,325
0
0
null
null
null
null
UTF-8
Python
false
false
44
py
S = raw_input() print len(S)/2-S.count('p')
[ "nebukuro09@gmail.com" ]
nebukuro09@gmail.com
55fa7227b63e17cf878b0681f01929bab06e011c
ec00584ab288267a7cf46c5cd4f76bbec1c70a6b
/Python/__Data structure/__List/__sorting/is_palindrome.py
4bf8f9ced8a4ee03328a9eb29a0597957fff6ee3
[]
no_license
rahuldbhadange/Python
b4cc806ff23953389c9507f43d817b3815260e19
7e162117f1acc12537c7eeb36d6983d804122ff3
refs/heads/master
2021-06-23T05:04:20.053777
2020-01-28T10:34:28
2020-01-28T10:34:28
217,307,612
0
0
null
2021-06-10T22:44:11
2019-10-24T13:35:42
Python
UTF-8
Python
false
false
513
py
def is_palindrome(word): q = len(word) - 1 # print(word) for p in word: # print("p:", p) # print("q:", word[q]) if p == word[q]: # print(p, word[q]) q = q - 1 # print("Yes !!!") else: # print("No !!!", p, word[q]) re...
[ "46024570+rahuldbhadange@users.noreply.github.com" ]
46024570+rahuldbhadange@users.noreply.github.com
ef9b3d8b1e318bffc12724be8704c0874cabf335
2fac796fa58c67fb5a4a95a6e7f28cbef169318b
/python/drop-eggs.py
8f4ad841c4590fea0575ac1b7cbb9419816ca206
[]
no_license
jwyx3/practices
f3fe087432e79c8e34f3af3a78dd10278b66dd38
6fec95b9b4d735727160905e754a698513bfb7d8
refs/heads/master
2021-03-12T20:41:59.816448
2019-04-14T06:47:30
2019-04-14T06:47:30
18,814,777
2
0
null
null
null
null
UTF-8
Python
false
false
499
py
class Solution: # @param {int} n an integer # @return {int} an integer # NOTE: remember solution!! def dropEggs(self, n): # Write your code here ans = 0 while ans * (ans + 1) / 2 < n: ans += 1 return ans def dropEggs(self, n): import math ...
[ "jwyx88003@gmail.com" ]
jwyx88003@gmail.com
efee169b60626091e6edbb58979c264141b84775
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_6_mask_unet/mask_5_7a_tv_sobel/tv_s004_sobel_k5_s080/step12 .py
3efac9d72a8c90fca1e3e55139426debea4e8184
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
6,248
py
''' 目前只有 step12 一定需要切換資料夾到 該komg_model所在的資料夾 才能執行喔! ''' if(__name__ == "__main__"): ############################################################################################################################################################################################################# ### 把 kong_model2 加入 s...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
ad27de88b1a43ef76f350d6be322d8b7a45a4a3f
f5d77defeaa244ed8df517d13f21cd6f073adebc
/programas/Laboratorios/8_Archivos/uneArchivos.py
2b1e581415d9988aa9a5f139b75f649a06d7766b
[]
no_license
lizetheP/PensamientoC
02a02cf6d537e1637a933a4f3957995f6690d7d6
5d5740e0afa4fc487fdc5f2c466df63e9b4a664f
refs/heads/master
2023-08-10T08:07:09.604983
2023-08-08T16:53:10
2023-08-08T16:53:10
200,893,283
1
0
null
null
null
null
UTF-8
Python
false
false
403
py
def uneArchivos(origen, destino): file1 = open(origen, "r") file2 = open(destino, "a") while True: letra = file1.read(1) file2.write(letra) if not letra: break file1.close() file2.close() nombre = str(input("Introduce el nombre del archivo origen: ")) nombre2 = s...
[ "lizetheperez@gmail.com" ]
lizetheperez@gmail.com
bd2e36959015fb718b9c87a58c8b3635a9e88f72
15e85b4d9527e7a87aded5b3c99ad9c785bca915
/datcore-sdk/python/datcore_sdk/api/organizations_api.py
0bcba63a4e47d34d39f06c9129cf1d9cb29b28d9
[ "MIT" ]
permissive
mguidon/aiohttp-dsm
4161f9977d3dffbb727aa26cce4e9fb347aa4e21
612e4c7f6f73df7d6752269965c428fda0276191
refs/heads/master
2020-03-30T09:03:49.791406
2018-10-02T07:05:35
2018-10-02T07:05:35
151,058,427
0
0
null
null
null
null
UTF-8
Python
false
false
77,038
py
# coding: utf-8 """ Blackfynn Swagger Swagger documentation for the Blackfynn api # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six fro...
[ "guidon@itis.ethz.ch" ]
guidon@itis.ethz.ch
784bb7180ef6d6cee3341ea995174a71a8b217e1
a4e502e9487cf17c53f9f931ec0dbc12168fea52
/packages/pyre/tracking/File.py
4c9369af2e3cfd664a739d1c24e5d9541b5c50d4
[ "BSD-3-Clause" ]
permissive
bryanvriel/pyre
bdc5dd59c46d53ff81f2ece532b9073ac3b65be1
179359634a7091979cced427b6133dd0ec4726ea
refs/heads/master
2021-09-28T00:10:26.454282
2018-11-11T16:42:07
2018-11-11T16:42:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2018 all rights reserved # # declaration class File: """ A locator that records a position within a file """ # meta methods def __init__(self, source, line=None, column=None): # save my info self.source = so...
[ "michael.aivazis@orthologue.com" ]
michael.aivazis@orthologue.com
f2e6792f3d5959656ede35df98bb81357ceeaa40
5d1fe71ab6ca5810680039552e2b7c884c212738
/jackdaw/utils/bhimport.py
8a34b8a08e3b86a8089b879efc2fe97e7686d6ac
[]
no_license
zimshk/jackdaw
76977c516a1426302840ec63659bdf0224898cbd
86d927a0a1a56d0d8685513df7c41afb21e7c521
refs/heads/master
2022-12-26T04:32:06.674672
2020-10-05T09:54:00
2020-10-05T09:54:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,196
py
import zipfile import json import codecs import pprint from jackdaw.dbmodel import * from jackdaw.dbmodel.adinfo import ADInfo from jackdaw.dbmodel.adcomp import Machine from jackdaw.dbmodel.aduser import ADUser from jackdaw.dbmodel.adgroup import Group from jackdaw.dbmodel.adou import ADOU class BHImport: def __ini...
[ "info@skelsec.com" ]
info@skelsec.com
c3ae3203d8281f0e944b529adfd94d0da0039498
d08cf46d3e16ab8e6a958731168469ba38daf069
/tests/test_la.py
b60f2699fb65d8f09970ee2b497d1629a323508c
[ "BSD-2-Clause" ]
permissive
spectralDNS/shenfun
ce808edc5258c896f2cccfbd88e67153e3f621c9
bcda39d8d8e4741df1cafe719d81733cc1024def
refs/heads/master
2023-07-27T20:29:57.075970
2023-07-11T12:33:04
2023-07-11T12:33:04
79,914,066
190
46
BSD-2-Clause
2022-05-11T19:10:33
2017-01-24T13:29:02
Python
UTF-8
Python
false
false
1,261
py
import numpy as np import pytest from shenfun import SparseMatrix, la import warnings warnings.filterwarnings('ignore') N = 10 d = [ {0: np.arange(N)+1}, {0: -2, 2: 1}, {-1: 1, 0: -2, 1: 1}, {-2: 1, 0: -2, 2: 1}, {-2: 1, 0: -2, 2: 1, 4: 0.1}, {-4: 0.1, -2: 1, 0: -2, 2: 1, 4: 0.1} ] @pytes...
[ "mikaem@math.uio.no" ]
mikaem@math.uio.no
9e85a07333331e1c9399606d62b5558722bd154b
d2dcc2033847c7a5284b5c4d89a3660b0c21de12
/applications/sptEditor/src/model/vd/axleCounter.py
268141ed06aaf5f61f13e37976404529d7829852
[]
no_license
shaxbee/eu07-spt
c0d27848041ed0511f9f3c32eddc7a6b28877cf9
78ae6e9cf4273aa1ca7e05db1326a1587f5eb3f1
refs/heads/master
2020-05-19T16:43:34.723930
2012-09-26T00:18:31
2012-09-26T00:18:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,298
py
''' Created on 2009-09-29 @author: gfirlejczyk ''' class AxleCounter(object): ''' Class handling axle counter like point that defines borders of VD Group ''' def __init__(self, id = None): self.__id = id self.__geometryPoint = (0,0,0) self.__railTrackingID = 0 ...
[ "devnull@localhost" ]
devnull@localhost
f5231fa60f936daac57c69923c3542d899206ca6
d1e88701f65692df9b9e9dcdd9ceb4620e8e0ea5
/docs/conf.py
abba2785a2c692df1567185e035e2248457a9ea6
[]
permissive
kiwnix/django-superform
48e81fe5f93829969eb2e7cdcb472c5008a74e79
835897f1a5fd4dd2769793dda90aa5b1805c289d
refs/heads/master
2023-03-09T08:05:45.232864
2021-02-03T05:28:12
2021-02-03T05:28:12
340,774,151
0
1
BSD-3-Clause
2021-02-20T23:16:28
2021-02-20T23:16:28
null
UTF-8
Python
false
false
9,064
py
# -*- coding: utf-8 -*- # # django-superform documentation build configuration file, created by # sphinx-quickstart on Fri Nov 7 10:47:24 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated fi...
[ "gregor@muellegger.de" ]
gregor@muellegger.de
3be998d3bcdd62746b22000503603354a0fb28a3
a6ed990fa4326c625a2a02f0c02eedf758ad8c7b
/meraki/sdk/python/updateNetworkApplianceTrafficShapingUplinkSelection.py
cbd1010acb7d9d178e903f4416c79445dcbee416
[]
no_license
StevenKitavi/Meraki-Dashboard-API-v1-Documentation
cf2352976c6b6c00c17a5f6442cedf0aeed46c22
5ed02a7def29a2ce455a3f2cfa185f76f44789f5
refs/heads/main
2023-03-02T08:49:34.846055
2021-02-05T10:31:25
2021-02-05T10:31:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,996
py
import meraki # Defining your API key as a variable in source code is not recommended API_KEY = '6bec40cf957de430a6f1f2baa056b99a4fac9ea0' # Instead, use an environment variable as shown under the Usage section # @ https://github.com/meraki/dashboard-api-python/ dashboard = meraki.DashboardAPI(API_KEY) network_id = ...
[ "shiychen@cisco.com" ]
shiychen@cisco.com
bccb08932de8e91329d9be799b262b36c9254568
673517e68db4b2540ac3a908a6374aaaa72e0f27
/synergine/synergy/event/Event.py
82a31511b1891015a5bb6d189010374c641d9ab2
[ "Apache-2.0" ]
permissive
buxx/synergine
3a977b69bc35c1a5af1056f98028f8b7412795d2
da05d762cdbc993362807d4851e1ca74784438ae
refs/heads/master
2021-07-03T19:57:24.486164
2017-09-04T09:19:45
2017-09-04T09:19:45
23,734,878
6
2
Apache-2.0
2021-06-10T14:15:26
2014-09-06T13:15:07
Python
UTF-8
Python
false
false
2,423
py
from synergine.core.exceptions import NotConcernedEvent from synergine.core.simulation.mechanism.Mechanism import Mechanism from synergine.cst import COL_ALL class Event(): """ Event are called by mechanisms and trig associated actions if conditions matches. """ _mechanism = Mechanism """Mechanis...
[ "sevajol.bastien@gmail.com" ]
sevajol.bastien@gmail.com
a877700a9eee5373e8e8075a715386a8c0cbcb9f
7dd30cae84f19aca8125d5cb35b099cb32cbcb64
/4-Object_Detection/YOLOV3/core/common.py
75b29aafe3ed6ee1fab993824ad9f7a08b566e12
[ "MIT" ]
permissive
Ray507/TensorFlow2.0-Examples
a5d7e38c10132a26203a4783cf539741953040a2
90037a846411aab5eb0fd6e74e699e8e58c78cc5
refs/heads/master
2020-06-21T18:49:46.249163
2019-07-18T06:00:06
2019-07-18T06:00:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,881
py
#! /usr/bin/env python # coding=utf-8 #================================================================ # Copyright (C) 2019 * Ltd. All rights reserved. # # Editor : VIM # File name : common.py # Author : YunYang1994 # Created date: 2019-07-11 23:12:53 # Description : # #========================...
[ "YunYang1994@github.com" ]
YunYang1994@github.com
547f748a31131edfdd4d47aab9f0b1066b0077be
4b87a0de0f43de2bde41f2590faac970c18fe482
/api/android/v1/daily_salary/views.py
63b2ac976436c9b036a2c2f97896f3a312229ea6
[]
no_license
krishSona/testbackend
d0bc325776537d9814b9022b3538b5e8a840e6a4
d87e050d02542c58876d4f81c2ea99815ab4160e
refs/heads/master
2023-04-08T01:26:42.070058
2021-04-03T06:08:54
2021-04-03T06:08:54
354,214,243
0
0
null
null
null
null
UTF-8
Python
false
false
3,594
py
import json from django.http import JsonResponse from rest_framework import viewsets, permissions from rest_framework.response import Response from api.android.v1.daily_salary.serializers import WorkerSerializer from workers.models import Worker, Advance # def session(request): # phone_number = request.GET.get(...
[ "kali@dailysalary.in" ]
kali@dailysalary.in
ed79d1c85a699c3fb5afa4325d3328de963e4a26
7762f4f7ae2c5703f89780ff416bd1d300388c2c
/stompy/restriction/body.py
47b9ee83e38204c125ac2aa5a756de00805a29a6
[]
no_license
braingram/stompy
36463d6e90bd7d475060c7866d678cad9e5a5693
7a92e670c88b500a5d3300863075ef4102c7ec02
refs/heads/master
2020-04-12T05:37:44.920930
2020-03-15T19:18:22
2020-03-15T19:18:22
61,507,690
3
4
null
2019-02-23T19:17:25
2016-06-20T01:00:47
Python
UTF-8
Python
false
false
13,656
py
#!/usr/bin/env python """ One issue is not knowing the non-halt target during halt (because set_target is used for both). So legs should have target: path to walk when walking halted: if halted (don't want) I want this to be modular so I can write tests that run in a perfect simulated environment (that doesn't...
[ "brettgraham@gmail.com" ]
brettgraham@gmail.com
b6a65345f6f8b4e0cf98221415f4497b86696cbe
db1e48d5f7b1b51c5a535b2a9477e350ad7d35c7
/angr/engines/pcode/arch/ArchPcode_PIC_12_LE_16_PIC_12C5xx.py
2674614f8e7b1d4e0fc0450e838d0ee8201dd2af
[ "BSD-2-Clause" ]
permissive
helloexp/angr
f4540c737c9e828e1bdd95bae0758558dd742143
724f2172bec21f51b2f798ab5613cf86bef62dae
refs/heads/master
2022-01-31T03:15:09.922425
2022-01-15T06:34:54
2022-01-15T06:34:54
216,943,426
0
0
BSD-2-Clause
2019-10-23T01:39:41
2019-10-23T01:39:40
null
UTF-8
Python
false
false
1,210
py
### ### This file was automatically generated ### from archinfo.arch import register_arch, Endness, Register from .common import ArchPcode class ArchPcode_PIC_12_LE_16_PIC_12C5xx(ArchPcode): name = 'PIC-12:LE:16:PIC-12C5xx' pcode_arch = 'PIC-12:LE:16:PIC-12C5xx' description = 'PIC-12C5xx' bits = 16 ...
[ "noreply@github.com" ]
helloexp.noreply@github.com
a2274f3e0f46f3c92f5974b51f2bb1bb09735353
914453d01d6e403fcdb2d93073ae7d3aa6552ca6
/python_challenges/challenge2.py
3b49e01617329ee5fc6b390989bf96bd92c1c01a
[]
no_license
AgustinParmisano/hackerank
684bc5c1d43ae0288328caac6ae7a5c8ca043aa1
648563f77c21985602ccab85936b434e6bd1188e
refs/heads/master
2020-04-28T03:09:04.582595
2019-03-11T20:44:04
2019-03-11T20:44:04
174,925,391
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
def swap_case(s): r = '' for i in s: i = i.upper() if i.islower() else i.lower() r+=i return(r)
[ "agustinparmisano@gmail.com" ]
agustinparmisano@gmail.com
7e56d4685227decfee31b1786f9de6321591bb55
3637fe729395dac153f7abc3024dcc69e17f4e81
/personal/pythonic/rules/rule2.py
aefdd616b730723104181fffd2d3a6dc46a081e5
[]
no_license
madmonkyang/cda-record
daced6846c2456f20dddce7f9720602d1583a02a
c431e809e8d0f82e1bca7e3429dd0245560b5680
refs/heads/master
2023-06-15T08:16:46.230569
2021-07-15T16:27:36
2021-07-15T16:27:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
# ---------------- 避免劣化代码 ---------------- """ 1)避免只用大小写来区分不同的对象 2)避免使用容易引起混淆的名称,如 element, list, dict 3)不要害怕过长的变量名(不追求过分缩写) """ # Bad: # 不推荐使用 list, element 这种变量名 def funA(list, num): for element in list: if num == element: return True else: pass # Good: def find_num(sea...
[ "silentbalanceyh@126.com" ]
silentbalanceyh@126.com
b63277ee93f4fd83c0e024ffaf151d39ce83f2bf
8c39ba92cc71ff78242477d3256f6ee3daa872c7
/conan/tools/build/cross_building.py
b446d562e003d06e75c9beea85008625a8b25035
[ "MIT" ]
permissive
conan-io/conan
eb4427e534a0edbb1fb06c753d5d9587faaef93c
bac455d1329b6744cdc41747354a727c9233179f
refs/heads/release/2.0
2023-09-03T18:51:54.345761
2023-09-03T17:30:43
2023-09-03T17:30:43
47,190,624
7,754
1,182
MIT
2023-09-14T15:16:09
2015-12-01T13:17:02
Python
UTF-8
Python
false
false
2,043
py
def cross_building(conanfile=None, skip_x64_x86=False): """ Check if we are cross building comparing the *build* and *host* settings. Returns ``True`` in the case that we are cross-building. :param conanfile: The current recipe object. Always use ``self``. :param skip_x64_x86: Do not consider cros...
[ "noreply@github.com" ]
conan-io.noreply@github.com
acb23822e7825dd59688e84c89494509cdefc861
ce005d2e7c72cf74491e099c047873bf56c2f0cd
/pymedphys/_vendor/pylinac/core/utilities.py
dd09826632bee13b79df9871f984e67cce4815b1
[ "Apache-2.0", "MIT" ]
permissive
ikevin2810/pymedphys
c645c6baccefd7a26fff37775dc72ddf2a14e9f5
ed408fc6d20e8640dfbd434b681b3b0828dd360d
refs/heads/master
2022-11-24T06:10:56.193835
2020-07-09T07:20:23
2020-07-09T07:20:23
278,422,520
1
0
Apache-2.0
2020-07-09T16:59:23
2020-07-09T16:59:22
null
UTF-8
Python
false
false
7,175
py
# Copyright (c) 2014-2019 James Kerns # 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, merge, publish, distr...
[ "me@simonbiggs.net" ]
me@simonbiggs.net
da17e6c2943d816d5cfa487be905b868ba633af5
bfd749303a728c3ec6abd92c0bd0515c8cf75192
/ceilometer/openstack/common/log.py
0683f98de85d095b265bb3b619a86e143977f224
[]
no_license
plomakin/ceilometer
5d823986c3a7515e615544b578b7629a6ccbeb58
16c892bbfa605aef6c80226c3198e997930cc973
refs/heads/master
2021-01-20T19:49:49.547093
2012-10-29T21:34:46
2012-10-29T21:34:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,970
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
[ "julien@danjou.info" ]
julien@danjou.info
f0bbc69af03e781a03605562638f43f37e5446bc
cad999eacee16dc0e001a57f50b5d8b0f4d4ebf6
/103.py
83aec0546a4d75a1bbf8170d83702f78938dcc69
[]
no_license
divyanarra0/pythonprogram
8694a41ba3b39eb44a94a693eac3f7f5f18b588b
10d8f59a472ccd4548771bad29be84a1a44854d8
refs/heads/master
2020-03-27T10:32:21.664657
2019-05-14T07:31:00
2019-05-14T07:31:00
146,427,260
0
0
null
null
null
null
UTF-8
Python
false
false
43
py
string1= raw_input() print string1.title()
[ "noreply@github.com" ]
divyanarra0.noreply@github.com
d953e11c4a8d357d4c6c96235dddf34c3f007316
b0ea541c0aef0fa8946aef3130490dc4fa068e9b
/ABC_PS1_Final/catkin_ws/build/learning_ros_noetic/Part_5/object_grabber/catkin_generated/pkg.develspace.context.pc.py
09a9f2fa704bbcae1cffdeb519029b82389c0271
[]
no_license
ABCaps35/ECSE473_ABC
b66c8288412a34c72c858e16fd2f93540291b8ff
f03b9ec90317dd730aa723cb7fa7254ea03e412f
refs/heads/master
2023-03-09T09:46:47.963268
2021-02-11T03:44:19
2021-02-11T03:44:19
337,913,499
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/abcaps35/catkin_ws/devel/include;/home/abcaps35/catkin_ws/src/learning_ros_noetic/Part_5/object_grabber/include".split(';') if "/home/abcaps35/catkin_ws/devel/include;/home/abcaps35/catkin_ws/src...
[ "acapelli345@gmail.com" ]
acapelli345@gmail.com
0037dab49f23b6ce338fa052ef1a4f5907b18201
4b44a299bafbd4ca408ce1c89c9fe4a449632783
/python3/13_OOP/47_Double_Linked_list.py
ee1958aedd7227c94122e736960e288a86341345
[]
no_license
umunusb1/PythonMaterial
ecd33d32b2de664eaaae5192be7c3f6d6bef1d67
1e0785c55ccb8f5b9df1978e1773365a29479ce0
refs/heads/master
2023-01-23T23:39:35.797800
2020-12-02T19:29:00
2020-12-02T19:29:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
#!/usr/bin/python """ Purpose: Double Linked List h e l l o 3 4 6 8 9 n1 n2 n3 pre_n_add None 3 4 value h e l l o next_n_add 4 6 8 """ class DoubleLinkedList: def __init__(self, data, prev_nd_addr=None, next_nd_addr=None): self.data = d...
[ "uday3prakash@gmail.com" ]
uday3prakash@gmail.com
3e51bac5b5e1539a03b9eac81156e4809de878df
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/cloud/dataproc/v1beta2/dataproc-v1beta2-py/google/cloud/dataproc_v1beta2/services/autoscaling_policy_service/transports/grpc.py
d0d97988371953e2d76178a1a77ce1f65d4657ce
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,721
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
8d9f5d7fe3cdbefae918b1115493c758f326a538
1c91439673c898c2219ee63750ea05ff847faee1
/configs/_base_/models/swin_transformer_v2/base_256.py
f711a9c8dcebf644d0479a887e4383a630c67384
[ "Apache-2.0" ]
permissive
ChenhongyiYang/GPViT
d7ba7f00d5139a989a999664ab0874c5c9d53d4d
2b8882b2da41d4e175fe49a33fcefad1423216f4
refs/heads/main
2023-06-08T00:10:07.319078
2023-05-26T15:52:54
2023-05-26T15:52:54
577,075,781
78
2
null
null
null
null
UTF-8
Python
false
false
857
py
# model settings model = dict( type='ImageClassifier', backbone=dict( type='SwinTransformerV2', arch='base', img_size=256, drop_path_rate=0.5), neck=dict(type='GlobalAveragePooling'), head=dict( type='LinearClsHead', num_classes=1000, in_channels=1...
[ "chenhongyiyang@Chenhongyis-MacBook-Pro.local" ]
chenhongyiyang@Chenhongyis-MacBook-Pro.local
ca4c6b2353645358b198d8ca20aaa41fea654678
2f0cb310e2ec8fb176ee240aa964a7eef5ed23b4
/giico/quality_control_and_material_testing/doctype/organic_impurities/test_organic_impurities.py
899ff309e9d723fb0ae2427dada4a1eea3848932
[ "MIT" ]
permissive
thispl/giico
b96cf6b707f361275f8723d15f8ea1f95f908c9c
14c5631639ab56a586a7962be9871d722c20e205
refs/heads/master
2021-06-18T03:56:02.928303
2021-04-27T06:42:59
2021-04-27T06:42:59
200,183,753
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
# -*- coding: utf-8 -*- # Copyright (c) 2021, VHRS and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestOrganicImpurities(unittest.TestCase): pass
[ "hereabdulla@gmail.com" ]
hereabdulla@gmail.com
f057dda260993448165227e609ab66b028018f15
1285703d35b5a37734e40121cd660e9c1a73b076
/at_coder/abc/old/126/d.py
0892272a0581a2cc5c7ac9868ed404a890a8fa87
[]
no_license
takin6/algorithm-practice
21826c711f57131108168775f08e4e13d07a3b38
f4098bea2085a77d11c29e1593b3cc3f579c24aa
refs/heads/master
2022-11-30T09:40:58.083766
2020-08-07T22:07:46
2020-08-07T22:07:46
283,609,862
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
N = int(input()) adj = [ [] for _ in range(N) ] for _ in range(N): u,v,w = map(int,input().split()) u -= 1 v -= 1 adj[u].append((v,w)) adj[v].append((u,w)) def dfs(node, w, color): colors[node] = color for n,nw in adj[node]: if colors[n] != -1: if (w+nw)%2 == 1 and colors[n] == 0...
[ "takayukiinoue116@gmail.com" ]
takayukiinoue116@gmail.com
a462ab5e1744a75fa107be73da72ae72b7366260
5980a1a0ae2bed966dc9d06a1e3f3b4929e17f04
/director/data_format/dot_dict.py
e8df212277ea5fadfd3e6ef8e8a398eb9ee4b6b9
[]
no_license
coblan/helpers
4aa4c6846cacf5f4a176e2de2fade0e98bd8126f
b2d3cb2583ce7469c88165968a8e74cda6e8cf11
refs/heads/master
2023-08-24T22:37:13.239226
2023-08-23T07:38:22
2023-08-23T07:38:22
83,221,829
0
0
null
null
null
null
UTF-8
Python
false
false
256
py
class DotObj(object): def __init__(self,dc): for k,v in dc.items(): setattr(self,k,v) def __getattr__(self,name): try: return object.__getattr__(self,name) except AttributeError: return ''
[ "he_yulin@163.com" ]
he_yulin@163.com
f00fc45c49e835d6c5baeef7d26a870c3c2cd541
cedab14839cfc276f028436ba79d103a8aff0d5b
/Philippines/Subject3_Math/E3_Math_StreetView/1_PassFailSplit.py
4bc194e252404379e22294a537ebb7586a9e8911
[]
no_license
wmgeolab/schoolCNN
aa686a4103695c1e10f5afa68ec2919761d33c15
1c73ec90732ec565ce552b27e4b2108a8ee916da
refs/heads/master
2021-01-09T03:25:44.895023
2020-02-21T22:52:41
2020-02-21T22:52:41
242,230,029
0
1
null
null
null
null
UTF-8
Python
false
false
1,168
py
import pandas as pd import shutil import os # Read in the data df = pd.read_csv("./Philippines/Subject3_Math/E3_Math_StreetView/data/y1314_Math.csv") df.head() # Set up the base directory directory = "./Philippines/Subject3_Math/E3_Math_StreetView/data/imagery/" for filename in os.listdir(directory): # The firt ...
[ "hmbaier@email.wm.edu" ]
hmbaier@email.wm.edu
5cfdfcac2d6b71e28041fc9cbcbab1ca89063cc2
346efbc9dbbb1d656fd579400530c0269dfce56d
/codeforces/1409/d.py
ec0869bd1541bf903931095714622d10d2f4ed60
[]
no_license
lmun/competitiveProgramingSolutions
1c362e6433fc985e371afe88f08277268c46afde
06d62240e2b3c58dd9ee72e41a78f7246d966652
refs/heads/master
2023-08-24T04:52:04.218922
2021-10-29T15:06:28
2021-10-29T15:06:28
167,073,540
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
def a(n,s): if sum(map(int,str(n)))<=s: return 0 return 10-n%10+10*a(1+n//10,s) if n%10 else 10*a(n//10,s) for t in range(int(input())): print(a(*map(int,input().split())))
[ "lester@ug.uchile.cl" ]
lester@ug.uchile.cl
1372f4114d3691052c65bfba4ddb42ea9662728d
2e6c95871bd255873fb563347c0f070e6fcdde74
/rf-grid-search.py
df196f6c517feac250666fcca3ebd1f5ff59ccc2
[]
no_license
MSBradshaw/BioHackathon2020
3203c5232bebd70d2c2a88b7f49063a09da023c4
31826b698a408541200b6f75bfe9c03217bf2d1a
refs/heads/master
2022-08-05T11:57:32.221444
2020-05-29T17:30:29
2020-05-29T17:30:29
258,961,184
0
1
null
null
null
null
UTF-8
Python
false
false
1,933
py
from sklearn import datasets from sklearn.model_selection import train_test_split from sklearn.model_selection import GridSearchCV from sklearn.metrics import classification_report from sklearn.svm import SVC import pandas as pd from bs4 import BeautifulSoup from sklearn.feature_extraction.text import TfidfVectorizer f...
[ "michaelscottbradshaw@gmail.com" ]
michaelscottbradshaw@gmail.com