blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
8202e71838d04d0b2b4ccf5c3a73e1b423a6495a
933ed73cdf117fc6c88c1ebba7a17b82807a16e8
/docs/02.AI_ML/code-1805/Day06all/audio.py
a484f78da089d31453fcf1e9aa31a0039d15fc49
[ "Apache-2.0" ]
permissive
wan230114/PythonNote
c4fff80f6f3849ed0b0346526d3c6197a4867d2c
f4989a44c03efdcea3f7aa3484e3470e7fd983eb
refs/heads/master
2023-01-28T14:51:07.304066
2023-01-12T18:38:16
2023-01-12T18:38:16
242,367,069
5
6
Apache-2.0
2021-01-05T23:35:10
2020-02-22T15:45:01
JavaScript
UTF-8
Python
false
false
886
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import numpy as np import numpy.fft as nf import scipy.io.wavfile as wf import matplotlib.pyplot as mp sample_rate, sigs = wf.read('../../data/freq.wav') sigs = sigs / 2 ** 15 times = np.arange(len(sigs)) / sample_rate freqs = nf.fftfreq(len(sigs), d=1 / s...
[ "1170101471@qq.com" ]
1170101471@qq.com
7b893c27f6bb7e81de39e943a5200791f394b746
65a5f74ede8079d693a70bd9597f063acfbf33fd
/tasks/mc6800_hp53xx/hp5370.py
eeeb858175d2527d953467f6cbdd6f7c54c464ae
[]
no_license
pombredanne/PyRevEng
5372a8322313c81ce065c689eb4b816596c90f8b
08083744806258cfa31edd0132456d70377a9f71
refs/heads/master
2020-09-20T06:55:24.020304
2019-11-11T17:18:38
2019-11-11T17:18:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,795
py
#!/usr/local/bin/python # # Functions common to: # HP 5370A # HP 5370B # PyRevEng classes import tree import math import const def chargen(p, adr): for a in range(adr, adr + 16): const.seven_segment(p, a) p.setlabel(adr, "CHARGEN") ####################################################################### # def ke...
[ "phk@FreeBSD.org" ]
phk@FreeBSD.org
7eb892b540bec24047ab9b270b2878817367efbe
a0947c2778742aec26b1c0600ceca17df42326cd
/Python/PythonInADay2/CSV-Files-Drill/37of79-76.py
5d3b516908848e56823b4441139499a3dc51e4cb
[]
no_license
JohnCDunn/Course-Work-TTA
5758319d4607114914ba9723328658bed8fb2024
8c4f60d51007dac2ac4cceb84b0f9666e143c0d7
refs/heads/master
2021-01-10T16:37:02.609879
2016-02-01T18:05:38
2016-02-01T18:05:38
49,983,248
0
0
null
null
null
null
UTF-8
Python
false
false
982
py
import wx class Frame(wx.Frame): def __init__(self, title): wx.Frame.__init__(self, None,\ title=title, size=(300,200)) panel = wx.Panel(self) button = wx.Button(panel,label="Exit",size=(100,40),pos=(100,30)) # Bind button event to the function self.exit button.Bin...
[ "JohnClydeDunn@Gmail.com" ]
JohnClydeDunn@Gmail.com
158f9e632271af09efccef3413b918b3039ae34d
5e80f0b1af9fbf9dc774dbb68aa603574e4ae0ba
/algorithm-study/baekjun/1655.py
5e0d2afac622a64349c666e62c305e6b93e0a95a
[]
no_license
namujinju/study-note
4271b4248b3c4ac1b96ef1da484d86569a030762
790b21e5318a326e434dc836f5f678a608037a8c
refs/heads/master
2023-02-04T13:25:55.418896
2020-12-26T10:47:11
2020-12-26T10:47:11
275,279,138
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
import heapq as hq import sys n = int(input()) arr = [] min_heap = [] for _ in range(n): answer = [] i = int(sys.stdin.readline()) arr.append(i) for j in arr: hq.heappush(min_heap, j) for j in range(len(min_heap)): answer.append(hq.heappop(min_heap)) print(answer[(len(answer)...
[ "59328810+namujinju@users.noreply.github.com" ]
59328810+namujinju@users.noreply.github.com
daf2fd690c88a4240ea99c0bad37cc113a3714e3
1a0e2871897fec3d345653fc3502909d9d2c48c0
/cellprofiler_core/analysis/request/_debug_complete.py
bfe423f13d1202e2543f6980897e577b1bff1039
[]
no_license
citypalmtree/core
91ec8d75a09240c57a64708985a2e13fdeaab23d
51f7aa318f126d4ec7be59780c8f88d4208b0ab1
refs/heads/master
2022-11-15T03:13:01.843990
2020-07-08T01:56:39
2020-07-08T01:56:39
277,964,195
0
0
null
2020-07-08T01:54:03
2020-07-08T01:54:02
null
UTF-8
Python
false
false
204
py
import cellprofiler_core.utilities.zmq.communicable.request._analysis_request class DebugComplete( cellprofiler_core.utilities.zmq.communicable.request._analysis_request.AnalysisRequest ): pass
[ "allen.goodman@icloud.com" ]
allen.goodman@icloud.com
ec2100ffe81fc6bc9ee3ca2204b9dd7491bff4ad
7a20dac7b15879b9453150b1a1026e8760bcd817
/Curso/Challenges/URI/1154Ages.py
28441b2097ef52e9af04e5429015523bfb5896f7
[ "MIT" ]
permissive
DavidBitner/Aprendizado-Python
7afbe94c48c210ddf1ab6ae21109a8475e11bdbc
e1dcf18f9473c697fc2302f34a2d3e025ca6c969
refs/heads/master
2023-01-02T13:24:38.987257
2020-10-26T19:31:22
2020-10-26T19:31:22
283,448,224
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
soma = media = 0 while True: n = int(input()) if n < 0: break media += n soma += 1 media /= soma print(f"{media:.2f}")
[ "david-bitner@hotmail.com" ]
david-bitner@hotmail.com
ca699a7935f6cc559fb7425359c4f7e78b6d3cb4
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoJets/JetProducers/python/TracksForJets_cff.py
059b08f72f44f40aa58bc9d58c52963f54292b51
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
264
py
import FWCore.ParameterSet.Config as cms from SimGeneral.HepPDTESSource.pythiapdt_cfi import * trackRefsForJets = cms.EDProducer("ChargedRefCandidateProducer", src = cms.InputTag('trackWithVertexRefSelector'), particleType = cms.string('pi+') )
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
966dba2f8f26a6952139c9d1757edd97074c1c7a
505343f6ace00d22f8753c1a943a5794a619e698
/katas/Python/2 kyu/Assembler interpreter part II 58e61f3d8ff24f774400002c.py
fdbc8ca03e20526570fb2185924e2f3f83a72eed
[]
no_license
bullet1337/codewars
7652e50bf768bc47976a9124dd98b93602d4d458
ba7f13ddd766158b41e036dae5d6b15f7f08761a
refs/heads/master
2020-03-27T05:04:03.751302
2019-04-30T17:45:39
2019-04-30T17:45:39
145,991,995
1
0
null
null
null
null
UTF-8
Python
false
false
4,575
py
# https://www.codewars.com/kata/58e61f3d8ff24f774400002c class Frame: def __init__(self, ip=0): self.ip = ip self.cmp = 0 def mov(operands, frame): registers[operands[0]] = registers[operands[1]] if operands[1].isalpha() else int(operands[1]) frame.ip += 1 def inc(operands, frame): r...
[ "alichek95@mail.ru" ]
alichek95@mail.ru
33bea5a81924a0c881a7e98ae59251af0b7efea9
4d07dfc5005ffe1d40337f99dea2ce20a5454a4e
/call-management/rule-management/create-company-greeting/code-samples/createCompanyGreeting.py
69c0da247695ca7fa8e303df8fcf3c657f204ab1
[]
no_license
ringcentral/ringcentral-api-code-samples
c6160c7cf305ec01709ddf87e830a513e3b2d17e
92d75734e82809c56ae572b1a0347d5e8c222a0e
refs/heads/master
2021-12-25T02:09:17.653787
2019-08-30T22:06:03
2019-08-30T22:06:03
204,058,290
2
4
null
2021-11-30T14:37:01
2019-08-23T19:28:26
C#
UTF-8
Python
false
false
753
py
# https://developers.ringcentral.com/my-account.html#/applications # Find your credentials at the above url, set them as environment variables, or enter them below # PATH PARAMETERS accountId = '<ENTER VALUE>' import os from ringcentral import SDK rcsdk = SDK(os.environ['clientId'], os.environ['clientSecret'], os.env...
[ "drew.ligman@gmail.com" ]
drew.ligman@gmail.com
b7c88331aa45890842ae86b76706f18dc7eec82d
e9757274ddb8484e27590ff0cc3f24550776c6cc
/Solved/0118/0118.py
27c242f3f3dfd5e5fd672ace23028e7362ab786a
[]
no_license
Jinmin-Goh/LeetCode
948a9b3e77eb03507aad6f3c78640aa7f00e6ad5
d6e80b968032b08506c5b185f66d35c6ff1f8bb9
refs/heads/master
2020-09-22T10:22:18.443352
2020-09-06T06:34:12
2020-09-06T06:34:12
225,153,497
1
1
null
2020-01-29T15:16:53
2019-12-01T11:55:25
Python
UTF-8
Python
false
false
666
py
# Problem No.: 118 # Solver: Jinmin Goh # Date: 20200115 # URL: https://leetcode.com/problems/pascals-triangle/ import sys class Solution: def generate(self, numRows: int) -> List[List[int]]: if not numRows: return [] if numRows == 1: return [[1]] if num...
[ "eric970901@gmail.com" ]
eric970901@gmail.com
2bfd1f9141a25054ee6e3c064715759677b1c827
bed34365a9dab825fd9f4a4ff1b0863f441266ac
/neutron/tests/unit/services/l3_router/test_l3_router_plugin.py
f045e58567b74fdf465206b618b148d783818291
[ "Apache-2.0" ]
permissive
openstack/neutron
0913ee3cd69d5bdb9c10aa084d4e1803abee320c
dde31aae392b80341f6440eb38db1583563d7d1f
refs/heads/master
2023-08-31T13:09:41.831598
2023-08-31T11:37:30
2023-08-31T11:37:30
2,400,289
1,174
1,325
Apache-2.0
2022-06-29T08:00:05
2011-09-16T16:04:08
Python
UTF-8
Python
false
false
1,192
py
# 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 agreed to in writing, softw...
[ "ihrachys@redhat.com" ]
ihrachys@redhat.com
73bf36c731ba344577a5b0017978458b51d26d58
6a95b330e1beec08b917ff45eccfd6be3fd4629f
/kubernetes/test/test_v1beta1_cluster_role_list.py
5817779990b99ae2d28c041fd3d6cc6e8c697e19
[ "Apache-2.0" ]
permissive
TokkoLabs/client-python
f4a83d6540e64861b59e322c951380a670578d7f
f1ad9c6889105d8510472606c98f8d3807f82020
refs/heads/master
2023-07-14T01:36:46.152341
2017-12-21T21:32:11
2017-12-21T21:32:11
115,042,671
0
0
Apache-2.0
2021-08-06T03:29:17
2017-12-21T20:05:15
Python
UTF-8
Python
false
false
1,011
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
[ "mehdy@google.com" ]
mehdy@google.com
52f0f1e13a19477a42d2b64fe74e4c98a2fd2bb5
247b4e8e425b06a96a835426304629b39ed4021c
/foo/logs.py
4e95137361ffe91ec3fc42b4c147f928dce627b3
[ "MIT" ]
permissive
RobertoPrevato/PythonCLI
63f19a8e07e44731684aef0e7394afd7b63400fb
4d4af7cd66ab8f9a5bed2a5d01236ef29753401f
refs/heads/master
2023-04-04T17:45:38.330844
2020-07-06T09:02:17
2020-07-06T09:02:17
271,034,925
2
0
MIT
2021-04-20T20:01:41
2020-06-09T15:06:48
Python
UTF-8
Python
false
false
698
py
import logging import logging.handlers from datetime import datetime from essentials.folders import ensure_folder logger = None def get_app_logger(): global logger if logger is not None: return logger logger = logging.getLogger("app") logger.setLevel(logging.INFO) max_bytes = 24 * 10...
[ "roberto.prevato@gmail.com" ]
roberto.prevato@gmail.com
279de8adb2b3699b3b64a4025c81b0b05274086a
4eaa1b9b08914e0a2cc9276363e489ccef19d3a2
/ch8/greet_users.py
63aab04ab28079790f3930251a60e913741e89b7
[]
no_license
melihcanyardi/Python-Crash-Course-2e-Part-I
69b3b5b3f63cdbd7be6fabd6d4f2ddfd9a3434a3
0c9b250f512985c04b2c0397f3afaa8bf3a57f17
refs/heads/main
2023-03-12T21:43:14.012537
2021-03-03T19:23:41
2021-03-03T19:23:41
344,236,741
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
def greet_users(names): """Print a simple greeting to each user.""" for name in names: msg = f"Hello, {name.title()}!" print(msg) # usernames = ['hannah', 'ty', 'magot'] # greet_users(usernames)
[ "melihcanyardi@hotmail.com" ]
melihcanyardi@hotmail.com
9c33821a24871a6e6eabc82aca793dca44554b7d
38fff7bdefd8d62a740d51329b50d0e1e49258bb
/infra/cifuzz/cifuzz_end_to_end_test.py
30e28beda330c621ac3a0f5b9d1ee2dc11a5e463
[ "Apache-2.0" ]
permissive
google/oss-fuzz
026384c2ada61ef68b147548e830f60730c5e738
f0275421f84b8f80ee767fb9230134ac97cb687b
refs/heads/master
2023-08-31T23:30:28.157702
2023-08-31T21:49:30
2023-08-31T21:49:30
63,809,205
9,438
2,315
Apache-2.0
2023-09-14T20:32:19
2016-07-20T19:39:50
Shell
UTF-8
Python
false
false
1,841
py
# Copyright 2021 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 agreed to in writing, ...
[ "noreply@github.com" ]
google.noreply@github.com
d00d266ba80663b9ebfeb3cc61a78e1314118b06
2491df3f643539e6055bb0b2a4b659474c57491f
/nonRepeating.py
448672a1d5248162813e6d1da3a085a5576289a6
[]
no_license
ghilbing/Ejemplos
85efc91346028b8a3d26d7680d9286b26234c771
339a45ef48c9a61002a01f7c823cc42d34fab409
refs/heads/master
2021-05-13T13:58:33.010157
2018-02-26T20:44:44
2018-02-26T20:44:44
116,724,506
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
def nonRepeating(A): dictionary = {} for c in A: if c in dictionary: dictionary[c] += 1 else: dictionary[c] = 1 for c in A: if dictionary[c] == 1: return c return None A = "aabbdbc" print nonRepeating(A)
[ "ghilbing@gmail.com" ]
ghilbing@gmail.com
ed6e2fd9aa9f97143e4c73ed7f12ea853cca8b45
e2f0806ca1cdd887ea40d050a19fa2710427bd38
/도전 문제/04주차_그리디/1339_단어 수학/banghyungjin_1339.py
bace9ef7dcea98724223d5ffa32bf5cf39bdf06e
[]
no_license
JY-Dev/AlgorithmStudy-1
001f94d80097c850c79eeb2bc86971a01aa5bd5d
2ad1df0fd65c72a6f6d1feeba09f889000ff8c15
refs/heads/main
2023-08-21T18:38:18.235994
2021-09-28T07:07:11
2021-09-28T07:07:11
406,208,087
1
0
null
2021-09-14T03:14:32
2021-09-14T03:14:31
null
UTF-8
Python
false
false
1,904
py
import sys num_of_letters = int(sys.stdin.readline().split()[0]) # 단어의 개수 letters = {} # 알파벳과 그 알파벳이 나온 숫자 딕셔너리 answer = 0 # 정답 ...
[ "noreply@github.com" ]
JY-Dev.noreply@github.com
f36e3d60041a50a234a84aba86475d750f8bf046
8b7778d3c65f3688105e43718152da2c734ffa26
/2.Travel_Request/data/Get_TestData/Get_D1_AM_Data.py
f229dca9ebff929a4e5484ebfc330be6b5e81771
[]
no_license
zzworkaccount/OpenSourceLibrary
ab49b3f431c0474723dfad966ca09e29b07527eb
0f99f881eb8a1f4ddebbc5e7676289d01e6ffe19
refs/heads/main
2023-01-29T05:02:56.341004
2020-12-03T12:05:59
2020-12-03T12:05:59
315,920,584
0
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
# 从Save_TestData拿到测试数据 from tools.util import Utility class Get_SM_TestData: # 从Excel中获取登录的测试数据(查询演职人员) @classmethod def get_login_excel_data_query_actor(cls, row=0): login_info = Utility.get_json\ (Utility.get_root_path() + '\\conf\\Excel_conf\\D_AM.conf')[0] login_data = Uti...
[ "1434895836@qq.com" ]
1434895836@qq.com
aa03a2a0ee9d005770a80b0f38d0e4aaf1b36800
450448e0ddb786fd13cfe9f6df5aa47573769fdc
/tripleaxisproject/gui/bspline3.py
2013aaaf1ff207a20edbdcfe3f17b93f76a3155a
[]
no_license
williamratcliff/tripleaxisproject
70bbd9ab5f7f1d2f30ced18b0887e51a1e3551e8
8649730ccc03e7d172ad41db776e2df9b463f3d6
refs/heads/master
2021-01-19T20:18:25.875294
2018-09-12T20:43:46
2018-09-12T20:43:46
32,125,247
2
0
null
null
null
null
UTF-8
Python
false
false
5,791
py
import numpy as N def max(a,b): return (a<b).choose(a,b) def min(a,b): return (a>b).choose(a,b) def lookup(a,b): return a.searchsorted(b) def cat(*args): return N.concatenate(args) # f, f', f'', f''' = bspline3(knot, control, t, nderiv=0) # Evaluate the B-spline specified by the gi...
[ "william.ratcliff@e28a235e-f944-0410-a937-4d0c1e564b32" ]
william.ratcliff@e28a235e-f944-0410-a937-4d0c1e564b32
87c991b0181b8c4ceac044906c173fd51e8341be
b76615ff745c6d66803506251c3d4109faf50802
/pyobjc-framework-CoreText/PyObjCTest/test_coretext.py
1cbd69a8ce38bd6cf94b9f0fff3c13bac2b8271a
[ "MIT" ]
permissive
danchr/pyobjc-git
6ef17e472f54251e283a0801ce29e9eff9c20ac0
62b787fddeb381184043c7ff136f1c480755ab69
refs/heads/master
2021-01-04T12:24:31.581750
2020-02-02T20:43:02
2020-02-02T20:43:02
240,537,392
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
from PyObjCTools.TestSupport import * from CoreText import * class TestCoreText(TestCase): def testConstants(self): self.assertEqual(kCTVersionNumber10_5, 0x00020000) self.assertEqual(kCTVersionNumber10_5_2, 0x00020001) self.assertEqual(kCTVersionNumber10_5_3, 0x00020002) self.ass...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
a2c1ecc98cc0627fd78f90919a8545ff4de92e84
8426ae07c324370d87a0f009f1aae872a3efade1
/tools/viewing/view_histogram.py
47d3851ffbfb80add5f8d6c95cb0fc2809ba6f54
[]
no_license
TomChow01/docrec-tifs18
2d4e95592732d9b42c023c2be912ba52cb1054f5
08e8099a9f5c95f8d513083acc321bebabb41245
refs/heads/master
2022-02-12T05:58:13.276509
2019-06-24T11:48:33
2019-06-24T11:48:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
820
py
import sys sys.path.append('../') import matplotlib.pyplot as plt import cv2 import numpy as np from scipy import stats img_filename = sys.argv[1] fig = plt.figure(figsize=(12, 12), dpi=300) ax1 = fig.add_subplot(121) ax2 = fig.add_subplot(122) # Open as graysacle gray = cv2.imread(img_filename, cv2.IMREAD_GRAYSCA...
[ "paixao@gmail.com" ]
paixao@gmail.com
5991535deca4ef0b5cf2d84263c3b15c13c62e3c
609d037275a6b7c6aeae194c6ac0fe0a5ffc72e5
/train.py
882a10809c965c4a008846a208676957130e4b58
[]
no_license
RobertSamoilescu/Robotics
e23da73073a819a158c37701d7aede48e7b8946e
58a7fb61fd2f21bf0af5f73c5ffb2efe42b22a31
refs/heads/master
2020-05-24T20:51:52.256121
2019-05-22T17:58:01
2019-05-30T20:56:23
187,463,274
0
0
null
null
null
null
UTF-8
Python
false
false
3,515
py
import torch import model import sys from logger import Logger from model import * # define constants batch_size = 64 num_workers = 7 # define loaders train_dataset = UPBDataset("train", augmentation=True) train_dataloader = DataLoader(train_dataset, batch_size=batch_size, shuffle=True, num_workers=num_workers) va...
[ "robert.samoilescu@gmail.com" ]
robert.samoilescu@gmail.com
52eb6c8fd544416acfe3ad485d74995d1f24f22e
4040b4103295141d979e004e34426aefed01f5d6
/student_list.py
687cee506be61e27919b8792662e6e68166ea757
[]
no_license
mehulchopradev/bryan-python
f2fe55d8a6043333127bef7af9f359aae008b74f
7ef405b40855c6fe7efac981c6b9d7b6aadc3237
refs/heads/master
2020-08-23T07:23:21.109175
2019-10-30T13:04:05
2019-10-30T13:04:05
216,570,101
0
0
null
null
null
null
UTF-8
Python
false
false
684
py
from com.abc.college.student import Student '''slist = [ Student('mehul', 'm', 10), Student('bryan', 'm', 5), Student('jane', 'f', 23) ]''' smap = { 10: Student('mehul', 'm', 10), 5: Student('bryan', 'm', 5), 23: Student('jane', 'f', 23) } roll = int(input('Enter roll to search : ')) '''for student in s...
[ "Mehul.Chopra@avalara.com" ]
Mehul.Chopra@avalara.com
e7f1d3c40f50cd034136f6d0db6199b787754ea5
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/merra_scripts/03_model_fitting/merraRF882/868-tideGauge.py
ba649b09866db77f7861a146ed63d959be6d0543
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
7,456
py
# -*- coding: utf-8 -*- """ Created on Mon May 4 15:51:30 2020 This program is designed to validate a Random Forest model by using the KFOLD method @author: Michael Tadesse """ #import packages import os import glob import numpy as np import pandas as pd from sklearn import metrics from scipy import stats import se...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
da510a13d601fed9b2e8679f23a3ef9b8f484811
428853ca880fb863ef708022ccac1258c25fc850
/vart/network/nn_base.py
0902104c3683868705c0917fbf3164f205fc2d1f
[ "Apache-2.0" ]
permissive
NicoRenaud/vArt
2ddb47cd3ee9dd725096c40e69b153db2f78eb03
f6d50f9499c2fca7e07bf8a3b68d81f70649fb10
refs/heads/master
2020-07-24T08:04:18.602264
2019-09-12T16:27:32
2019-09-12T16:27:32
207,857,937
0
0
null
null
null
null
UTF-8
Python
false
false
5,090
py
import autograd.numpy as np from autograd import elementwise_grad as egrad from autograd import hessian, jacobian from functools import partial import torch from torch import nn import torch.nn.functional as F from torch.autograd import grad, Variable from time import time class WaveFunction(nn.Module): def __...
[ "nicolas.gm.renaud@gmail.com" ]
nicolas.gm.renaud@gmail.com
7022095a59a50e7551cff88e0bfad6084ddddf93
ff4fe07752b61aa6404f85a8b4752e21e8a5bac8
/challenge-215/roger-bell-west/python/ch-2.py
0dca0440e596590236e0101c7b6d153af66bb44f
[]
no_license
choroba/perlweeklychallenge-club
7c7127b3380664ca829158f2b6161c2f0153dfd9
2b2c6ec6ece04737ba9a572109d5e7072fdaa14a
refs/heads/master
2023-08-10T08:11:40.142292
2023-08-06T20:44:13
2023-08-06T20:44:13
189,776,839
0
1
null
2019-06-01T20:56:32
2019-06-01T20:56:32
null
UTF-8
Python
false
false
640
py
#! /usr/bin/python3 def numberplacement(a0, ct): a = [1] + a0 + [1] s = 0 tt = 0 for i in range(1, len(a)): if a[i - 1] == 1 and a[i] == 0: s = i elif a[i - 1] == 0 and a[i] == 1: tt += (i - s) // 2 return ct <= tt import unittest class TestNumberplacement(unittest.TestCase): def tes...
[ "roger@firedrake.org" ]
roger@firedrake.org
289e20471c5101745fd5c8ae3a1b183a640d13f0
6bf4e54f8ae95582b73bb969ba44069c64e87651
/kdhi/main_site/migrations/0064_auto_20200604_1726.py
274bb623cea8b66901484390548f0a57fc0e0532
[]
no_license
speedycowenator/kdhi_migration
4bc983c4656a2a87cb056461bfb4219e38da1a85
422b2e3f142a30c81f428fb8eaa813e4a71d56fc
refs/heads/master
2022-11-14T13:27:51.520697
2020-07-02T19:31:12
2020-07-02T19:31:12
246,138,874
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
# Generated by Django 2.2.5 on 2020-06-04 21:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main_site', '0063_auto_20200601_2331'), ] operations = [ migrations.AlterField( model_name='position', name='positio...
[ "54556114+speedycowenator@users.noreply.github.com" ]
54556114+speedycowenator@users.noreply.github.com
1d2be9dea9766f873a9dbdadadf1fdabc7f5fa98
fecca37427d8f6d3b2e818c16d0cb4d4d26a0092
/job_helper.py
72ac9509ef3542d67c0968affd81648238ea45e7
[ "MIT" ]
permissive
TheoPis/cutmix-semisup-seg
88993d3582b59c588bc8470f3a679879330ddb88
d5f7f58a202ec16d0276eec5a1160fd14c1d4b26
refs/heads/master
2022-11-13T10:16:19.764384
2020-07-10T08:46:07
2020-07-10T08:46:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,414
py
import os import inspect import sys, re LOG_PREFIX = re.compile('log_(\d+)') JOB_DIR_PREFIX = re.compile('(\d+)') class LogAlreadyExistsError (Exception): pass class Logger (object): def __init__(self, path, stream): self.path = path self.stream = stream def write(self, x): wi...
[ "brittix1023@gmail.com" ]
brittix1023@gmail.com
32c5685349516c253ce1c6823ff31d31d95fb77e
c9f1cc3a6715917d658a6e525b7c2d35b0380f9f
/Non_canonical_introns/SIM2/random_print.py
6c29297bbbdef8a3c5f1bced21b3825b26a980b3
[]
no_license
geparada/my_src
4f84887130b985e84aad3d0d35e85911087d9b4f
8d64f7ef51e1f74303ca88beb0ee964f546d8301
refs/heads/master
2021-01-17T01:50:50.414690
2017-03-14T10:01:50
2017-03-14T10:01:50
20,638,727
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
import sys import csv import random def ran_printer(bigfile, P): reader = csv.reader(open(bigfile), dialect='excel-tab' ) for row in reader: R = random.random() if R<=P: print " ".join(row) if __name__ == '__main__': ran_printer(sys.argv[1], float(sys.argv[2]) )
[ "geparada@omics.(none)" ]
geparada@omics.(none)