blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e334ac0a0f3bb525390a29d98649e40bb01cccc4 | 40a54f724ad1d343c94366745551eb559a671969 | /pc/pythone/server/Windows64/TrayIcon.py | 2d83f99bd8a9652dfd8d3de0e7f36f97c32de566 | [] | no_license | liushiwei/PTPC | d320c9aaa45b3404b3c5af21b93a138876e0fa50 | 5bb80a16d7d34228e0def46b6d861a5ef50ef262 | refs/heads/master | 2021-01-18T13:42:54.748764 | 2014-06-06T09:34:08 | 2014-06-06T09:34:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,548 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from win32api import *
# Try and use XP features, so we get alpha-blending etc.
try:
from winxpgui import *
except ImportError:
from win32gui import *
import win32con
import sys, os
import struct
import time
from collections import namedtuple
PyNOTIFYICONDATA = nam... | [
"liusw@carit.com.cn"
] | liusw@carit.com.cn |
acc85dad8ae26e4d8552b7b8f3228b41d07b394f | 66fdca0d6d3420fec4e6c24cab041737c4f36960 | /nowa/util/bcmd.py | 68dbf7ce631a325bb8dae2302d813fc55e0656d6 | [] | no_license | a-bunch-of-nerdy-ass-developers/nat-one-with-advantage | eac86756a21bfe9a00f27ad6c90297d9a0b9d84a | 3d13e5a2dc2ebd13477b1d48fff4deb1db62b1b8 | refs/heads/master | 2023-01-14T19:49:45.429462 | 2019-07-13T19:16:07 | 2019-07-13T19:16:07 | 175,209,131 | 0 | 0 | null | 2022-12-22T11:15:34 | 2019-03-12T12:43:25 | JavaScript | UTF-8 | Python | false | false | 1,667 | py | from cmd import Cmd
class BetterCmd(Cmd):
def do_EOF(self, arg):
print()
return True
def emptyline(self):
pass
def do_exit(self, arg):
"""Exits the command line"""
return True
def do_help(self, arg):
'List available commands with "help" or detailed help with "help cmd".'
if arg:
# XXX check ar... | [
"hooman.shaah@gmail.com"
] | hooman.shaah@gmail.com |
2c2739f472c192a6a1d708b67cc4007b1fdd782c | 44e69670ee5417bd1c0739448a8859f6b5e848c6 | /tf/lanczos_experiment.py | b818484a6d48d0d1065daad6718299f698b3469c | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | PForet/spectral-density | 4b3e3ebebdb47893d303e62fd5df29784db9a592 | 6defcc310cfce77c6aafd7ea7324fd5e6bf434c3 | refs/heads/master | 2021-01-06T20:04:55.870322 | 2020-03-13T19:18:48 | 2020-03-13T19:18:48 | 241,473,175 | 0 | 0 | Apache-2.0 | 2020-02-18T21:39:51 | 2020-02-18T21:39:51 | null | UTF-8 | Python | false | false | 9,466 | py | # Copyright 2019 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"7751707+yingusxiaous@users.noreply.github.com"
] | 7751707+yingusxiaous@users.noreply.github.com |
e03dfaabbfac03e7cdeb9ee8fedae62f5be8c5fa | 49b7e9fe956a400d6901aaf1e6fa7b74c69001c5 | /tools/eval_metrics.py | 502cca3b3f9b32ce83d66c483cbfb142f55db2cd | [
"MIT"
] | permissive | xujinglin/AutoLoc | 4e718bf748f03a5f1c440826e83e496fa11b917c | 82c7e51a28eb740a8f002a460ce5c918fc61731b | refs/heads/master | 2022-03-22T19:37:39.561780 | 2019-10-31T23:20:47 | 2019-10-31T23:20:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,221 | py | """
Script entry for evaluation of training & testing results.
Usage:
1. $ mkdir exp/<DATASET>/<EXPNAME>
2. Setup configuration in `config.yml`
3. Setup proto template in `solver.tpl` and `train.tpl`
4. $ python tools/eval_metrics.py --phase <PHASE> --dataset <DATASET> \
--expname <EXPNAME> --rs... | [
"zs2262@columbia.edu"
] | zs2262@columbia.edu |
e60141fc9175b8b095edf6b88d3c23dba960f9da | 12e2288e00a6cb7bceb17420dd0adf065b33fa4d | /palindrome.py | a57cd6d4edfe71d54df905c4be851a3abc5de563 | [] | no_license | Gurpreet1928/python_programs | 6fe87034b0746f0ea51598fbd0cc3d6c9ddb84df | a3fb3594a2e23431e1988dfa6132984541208a92 | refs/heads/master | 2020-03-22T07:56:20.905877 | 2018-07-04T14:57:24 | 2018-07-04T14:57:24 | 139,733,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!/usr/bin/env python
from pythonds.basic.deque import Deque
def palindrome(str):
match = true
deqChk = Deque()
for s in str:
deqChk.addFront(s)
i=1
while i < deqChk.size() and match:
first = deqChk.removeFront()
last = deqChk.removeRear()
if first != last:
... | [
"m19.gurpreet@gmail.com"
] | m19.gurpreet@gmail.com |
7c6e2ad300adefc46b95d659f9cefe698aeb499b | 20f951bd927e4e5cde8ef7781813fcf0d51cc3ea | /fossir/modules/events/contributions/models/subcontributions.py | 9ff806fba366acfa3d3ecfa78f127ae91c426fa9 | [] | no_license | HodardCodeclub/SoftwareDevelopment | 60a0fbab045cb1802925d4dd5012d5b030c272e0 | 6300f2fae830c0c2c73fe0afd9c684383bce63e5 | refs/heads/master | 2021-01-20T00:30:02.800383 | 2018-04-27T09:28:25 | 2018-04-27T09:28:25 | 101,277,325 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,998 | py |
from __future__ import unicode_literals
from fossir.core.db import db
from fossir.core.db.sqlalchemy.attachments import AttachedItemsMixin
from fossir.core.db.sqlalchemy.descriptions import DescriptionMixin, RenderMode
from fossir.core.db.sqlalchemy.notes import AttachedNotesMixin
from fossir.core.db.sqlalchemy.util... | [
"hodardhazwinayo@gmail.com"
] | hodardhazwinayo@gmail.com |
e4a74ac10624419e9d79fd36fe88aaa4a7d402bc | 6632037358152602fab2c79abde181369bfeeae9 | /Python Projects 2020/untitled-1.py | 27c2a3cc451489125cbb31a43ff52d7c3ba1ce01 | [] | no_license | abbihankey/Software-Development-Portfolio | d6a1c0df2ac6dd8ab2a8f874d368966a73936782 | 6bafd65b0689a6f480e5142c49eaa21e7366289a | refs/heads/main | 2023-02-27T03:39:32.299641 | 2021-01-26T23:24:49 | 2021-01-26T23:24:49 | 332,872,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | infile = open ("/users/abbih/desktop/disks.txt",'r')
print (infile) | [
"67207650+abbihankey@users.noreply.github.com"
] | 67207650+abbihankey@users.noreply.github.com |
6305acaf43a088e91df5df323d21cd70ced14c36 | a062669a7f37412f016534ae30bd41e9efe6afa5 | /product/migrations/0013_auto_20201127_0026.py | 8b034f4bd8a91d3a1e265777d20c4ce041f762fb | [] | no_license | techappg/meat_fun_backend | 7c05045ae0ca6a442eb6e24693a800ca98447e9b | e16da0ec1ccfb583a43f534ad9fd6cb79fe1e6c1 | refs/heads/main | 2023-04-16T22:42:38.183722 | 2021-04-22T07:37:07 | 2021-04-22T07:37:07 | 360,430,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # Generated by Django 3.1 on 2020-11-27 08:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0012_auto_20201127_0024'),
]
operations = [
migrations.AlterField(
model_name='contact_us',
n... | [
"techappg@gmail.com"
] | techappg@gmail.com |
4c55d65f8078736e34c5d784a6d565b14ca42660 | 31b8a4df6e85e892e1b9256d541dd356747eb173 | /src/json_input.py | 6898f17f232217baced77c3ec7297ccbf50a6b91 | [] | no_license | mohamedhamidat/Challenge | 350dda9e80bd3cd4ef78432537a70c25e463b64a | e93eadc19e36f2d62dc25165b27bef65f22f1121 | refs/heads/master | 2021-05-12T11:10:52.768601 | 2018-01-15T10:59:09 | 2018-01-15T10:59:09 | 117,379,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | """
Just a model to simulate json request
"""
import json
def get_json_queries():
input = """
{
"queries": [
{
"paths": {
"start": "A",
"end": "D"
}
},
{
"... | [
"hamidatmohamed@yahoo.fr"
] | hamidatmohamed@yahoo.fr |
0da5f63ab37786b346f1218ce0aa3ca6d77a1fe2 | f09070893d83f8817f7a3f1bf9f55ff81d66df68 | /lights/__init__.py | c7fbd2fac0c62a2d8d557a030903367220374555 | [] | no_license | elmanhamdi/Ambient-Occusion-Rick-and-Morty | 197a53c930632ece286d7c224c5892c37124b967 | aeca1c8acf7db0277942872fe576f5e4fca30cb3 | refs/heads/main | 2023-06-09T16:19:11.341034 | 2021-07-02T09:33:02 | 2021-07-02T09:33:02 | 382,293,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | from lights.ac_light import ACLight
from lights.light import Light
| [
"elmanhamdi@outlook.com"
] | elmanhamdi@outlook.com |
f537bf04f346e99870d3ad9631a48a39b9687a28 | 048c37a95c719395eebfc1d012afff37ba49c5ed | /backend/machinelearning/code/example.py | 5316fc24ea9150340750dd62aa19a85c50e01319 | [] | no_license | connorjohnson85/CLIFF | cbdefa773e022fb7bd2bad945bcf851476c4e48e | 9289fd3fb5bec5426eeeca867dac9e00e0847dcf | refs/heads/master | 2022-12-04T23:55:06.802844 | 2020-08-29T01:58:48 | 2020-08-29T01:58:48 | 261,602,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | # Load libraries
import pandas
from pandas.plotting import scatter_matrix
import matplotlib.pyplot as plt
from sklearn import model_selection
from sklearn.metrics import classification_report
from sklearn.metrics import confusion_matrix
from sklearn.metrics import accuracy_score
from sklearn.linear_model import Logisti... | [
"connor.johnson@plenadata.com"
] | connor.johnson@plenadata.com |
b8ac9e4e5e5b51e779ce717e261223ecb9453dfe | d5799c4769faa9ff5df7b8fa2045a65a1427ea89 | /COMP6701DataAnalysis/ProductReviewStatistic.py | 7f8a9e8c19a28087cb02a7f76fc5a68909c8dd5d | [] | no_license | GerardRique/Ecommerce-Data-Analysis | 5bf6eed9da39e0106e9f6b44304b89a3f3ca764d | c6a3daa32dc5dcb6fe32aa2be9ffc1a1898bea52 | refs/heads/master | 2020-04-30T00:12:33.765040 | 2019-04-06T11:53:41 | 2019-04-06T11:53:41 | 176,497,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | class ProductReviewStatistic:
def __init__(self, productId):
self.productId = productId
self.mean_review = 0
self.mode_review = 0
self.median_review = 0
self.num_reviews = 0
self.statistics = [0, 0, 0, 0, 0]
def get_mean(self):
return self.mean_review... | [
"grique25@gmail.com"
] | grique25@gmail.com |
6b55749028ea28c93409e9c487cc998ad8248282 | 25d1a97cad09f2f16708778e9abd01bb27e31e3d | /src/libs/thirdparty/doctest/src/scripts/test_output_windows.py | 03b3e84523167aa0469006afac8d7093d4dbbd0c | [
"MIT"
] | permissive | bibhas/tracer | 5af520581492c2ed197706c4d89172e24d4a2f8e | 0d37d78916028e832308d8faa30419109feaf96d | refs/heads/master | 2021-06-20T09:08:51.889566 | 2017-07-10T10:53:53 | 2017-07-10T10:53:53 | 96,389,719 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | #!/usr/bin/python2.7
import os
import sys
os.chdir("../")
if not os.path.exists("build"): os.makedirs("build")
if not os.path.exists("build-mingw"): os.makedirs("build-mingw")
res = 0
os.chdir("build")
res = res + os.system("cmake .. -G \"Visual Studio 14 2015 Win64\"");
res = res + os.system("cmake .. -DTEST_MODE... | [
"mail@bibhas.com"
] | mail@bibhas.com |
9c0ab7e22c182aa299289f693983a392bca03839 | 643442f41dbb0b8094c0aaa50c9ef948da3adee4 | /crawler/plugin/chengji/chengjizf_list_page.py | 58d3f82a58b85c95c5d36108166f02c28020d670 | [] | no_license | 1424480731/conch-plugin-platform | ecef5a2b3ce3151d1b856cd1e17351a303b45ac4 | 68c98df504aa4d1703bea7d3d8e81b4e9d7f7c7c | refs/heads/master | 2021-04-07T03:59:01.256162 | 2020-03-20T02:46:17 | 2020-03-20T02:46:17 | 248,643,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | from crawler.search.chengji.search_chuzu import SearchChuzu
from crawler.parse.chengji.parse_chengji_fc import ChengJiFangChan
from database.mongo import MongoChengJiApi
from crawler.tools.chengji.generation import Generation
from crawler.tools.chengji.utils import div_array,ProxyTool
from crawler.tools.chengji.threadi... | [
"“your_mail"
] | “your_mail |
98bbe2eefa6f1fb4cf434d5f7d1171a548f7067f | b57943732ce8883ad17b19eed8e644fc255c283a | /env/bin/pip | 80c31350ca54d18cce7fd2206bc281eea0480e78 | [] | no_license | Albardiaz/my-first-test-django | 7c561abedde4fc9d295d9ae04f5c0273af8c3c57 | fccc0793efa4f7a7dd8847d366386eb0add34ba3 | refs/heads/master | 2023-01-13T14:39:11.018223 | 2020-11-17T12:20:35 | 2020-11-17T12:20:35 | 313,581,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/javi/django-apps/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"albardiaz@gmail.com"
] | albardiaz@gmail.com | |
d118824d1a1abb31dad6b3ab52b9722b4509b23f | 82dc9f951c693324ef32a5cc8f78d0563eacf0f7 | /examples/compare_all.py | 99ecba1b8a9d1074300a8252260e84f9a0f97633 | [
"BSD-2-Clause"
] | permissive | nmcveity/pyfreetype | ebf11359908f53d254bc16f06fea7e12dd18e700 | 51b0ce7d13509a556940606cbbf35b74e9130b0e | refs/heads/master | 2021-01-10T21:10:50.714479 | 2015-01-19T18:56:20 | 2015-01-19T18:56:20 | 1,354,659 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | import os
import os.path
from compare import generate_comparison
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-d", "--directory", dest="path", help="The directory to search for fonts", action="store", default="c:\\windows\\fonts")
parser.add_option("-o", "--output", dest="output", hel... | [
"nmcveity@gmail.com"
] | nmcveity@gmail.com |
8407e71af54b5030a04c8ad0b1ed06504ccdca51 | 8ea1daa200e304aa878427d6a7d91b955b9b7660 | /autoload.py | 7a4319028639b52d981f66326350f7c0b5c2033e | [] | no_license | techite/PythonImp | 6877dbdac379f90515cde77b558de40b1fdb1e1b | 30573586d52012ab97c3958314357949a45c0829 | refs/heads/master | 2021-01-10T02:55:57.372489 | 2016-01-27T12:11:42 | 2016-01-27T12:11:42 | 50,400,346 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #Auto Load multiple URLs from a text file
#By Shashi Prakash Agarwal
import webbrowser
with open('a.txt') as f:
for line in f:
webbrowser.open(line)
#Ensure that a.txt exists and contains URLs separated by line break (i.e. one URL per line)
| [
"admin@techite.com"
] | admin@techite.com |
bc3b351bbccb227b31d600a3edca67e9054aa2ea | 1b97fd817f5c6534ab8186123bebeb76a8175cfe | /posterfig.py | dade2b81afe58ae1aa109f758584d17a37be71e7 | [] | no_license | AaEll/LearnedIndexStructures | 65f0b8826d17ac0208b0720ed0907dd6f366d79f | 122114c9afdb5e7cc5067cfd39f6120b57642c79 | refs/heads/master | 2020-03-07T02:10:58.443852 | 2018-05-11T18:46:39 | 2018-05-11T18:46:39 | 127,202,591 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import matplotlib.pyplot as plt
plt.plot([1,2.8,8.6,12.3, 14.7, 18.6,23.4], [1,2,3,4,5,6,7], 'ro')
#plt.axis([0, 20, 0, 20])
plt.xticks([])
plt.yticks([])
plt.xlabel("Key Values")
plt.ylabel("Memory Location")
plt.savefig("key1.png")
| [
"spencerhayes@dhcp-wifi-8021x-155-41-1-193.bu.edu"
] | spencerhayes@dhcp-wifi-8021x-155-41-1-193.bu.edu |
6e8f096e44d929342dfcc643a90bc0e282ce9fb7 | 1efe93d146686b2e6196ce1981b570ea3ffc3089 | /main.py | 161097992ae99fc261505183154ab344a9536f42 | [] | no_license | varunbhoopalam3/kivyapp | 39d2d477ae9ec1ed78105c93fe995bf32a609a42 | 898702771e9c1a0b449f52498f29fe46ffff224d | refs/heads/master | 2022-04-20T02:17:26.642208 | 2020-04-20T19:11:22 | 2020-04-20T19:11:22 | 257,378,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,140 | py | from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.dropdown import DropDown
from kivy.uix.button import Button
from kivy.uix.popup import Popup
from kivy.uix.label import Label
from kivy.config import Config
Config.set('kivy', 'exit_on_escape', '0')
from kivy.properties import NumericProper... | [
"noreply@github.com"
] | noreply@github.com |
61dd5369e2d53dbdce6dd16942cd7fb403a4b534 | 444a9480bce2035565332d4d4654244c0b5cd47b | /community/cv/pointrend/maskrcnn/maskrcnn_mobilenetv1/anchor_generator.py | 949e89ea120b4c3d9ad573cdeba0e9ea3e67a9ce | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 3,126 | py | # Copyright 2022 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"brendalxy64@gmail.com"
] | brendalxy64@gmail.com |
621043d1803ffe6b0f2b3f8aba72ba5c31fba865 | c3b14bad834e9d8ef054573566c769154d8da731 | /www/migrations/0002_remove_biography_slug.py | 8969e4ddbb4a2b48c1b41d38a702e57bebf82adb | [] | no_license | adufi/Resume_Django | d5109c12222d15973392e53b4b3ffcb89e532c89 | 23860acdd1b86b141f6cca6feb5a27edb4da9dc7 | refs/heads/master | 2022-04-29T01:37:04.566327 | 2019-07-27T17:41:00 | 2019-07-27T17:41:00 | 195,679,343 | 0 | 0 | null | 2022-04-22T21:41:54 | 2019-07-07T17:31:43 | CSS | UTF-8 | Python | false | false | 314 | py | # Generated by Django 2.2.3 on 2019-07-23 17:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('www', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='biography',
name='slug',
),
]
| [
"sneelshneider@gmail.com"
] | sneelshneider@gmail.com |
cd772570a9118b6aefed6682af3ac79748dceffd | 1c76a9a7c52d2446174ccd2a349bccfca85c07d1 | /Label_Pack_Attributes_3.py | f9ae233541b5ec21843cd350b94f88c76032994b | [] | no_license | Manish9718/Assignment-Brillica | fe59cada1413527988245dce18023bfd8d361a91 | 9aa796221227ba535c7d00c7f94e1a67af8d0d04 | refs/heads/master | 2022-06-01T05:37:44.026410 | 2020-05-04T12:27:34 | 2020-05-04T12:27:34 | 261,168,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py |
from tkinter import *
root = Tk()
root.geometry("1000x399")
root.title("Sumit GUI")
root.minsize(400, 300)
# # Important Label Options
# # text - adds the text
# # bg - background
# # fg - foreground
# # font - sets the font
# # 1. font=("comicsansms", 19, "bold")
# # 2. font="Helvetica 19 bold"
#bord... | [
"noreply@github.com"
] | noreply@github.com |
ed6a4ab01226c402541becc7afe28423eff22758 | 036a41c913b3a4e7ae265e22a672dd89302d3200 | /0201-0300/0248/0248_Python_1.py | 760cb2e6b8f7b3dda42f9d212933b86444a78d20 | [] | no_license | ChangxingJiang/LeetCode | e76f96ebda68d7ade53575354479cfc33ad4f627 | a2209206cdd7229dd33e416f611e71a984a8dd9e | refs/heads/master | 2023-04-13T15:23:35.174390 | 2021-04-24T05:54:14 | 2021-04-24T05:54:14 | 272,088,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,018 | py | class Solution:
# 已知开始范围,计算两个数之间的数量
@staticmethod
def num1(low, high, middle=False):
if middle:
return len([str(i) for i in [0, 1, 8] if int(low) <= i <= int(high)])
else:
return len([str(i) for i in [0, 1, 6, 8, 9] if int(low) < i < int(high)])
# 计算各个位的数量
@s... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
2b0615333037ac5f82a70ba9f3c11a8703902251 | 4cb2213cd01addb25881b8779b365f4fa6c61bb0 | /Jogos/Battle Turn based/Nomes.py | 475b4e7421d77e35a66285288f9f9ef3a7e4518c | [] | no_license | thiagoaxll/Python | b6dc65737a2cc64ca8f86a881e09b6620a3fbc72 | 23eb2f40892b8a0985af69f04d5d67797641c3ab | refs/heads/master | 2021-01-01T04:57:41.750492 | 2018-07-14T19:31:28 | 2018-07-14T19:31:28 | 56,942,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | """______________________________________________
| Fiap |
| Nome: Thiago Zacarias da Silva |
| Programa : Turn Based |
| Data : 18/04/2016 |
|________________________________________________|
"""
import ran... | [
"thiagocnpf@gmail.com"
] | thiagocnpf@gmail.com |
ee72d48b0b16078c5de7755e8c7eb8fe2dd4fd02 | 828a355eef4667153426ccae89d10e124a35c8a7 | /src/tests/ftest/deployment/critical_integration.py | b6ae19546a62342787d8ce44a39f02af95733b09 | [
"BSD-2-Clause",
"BSD-2-Clause-Patent"
] | permissive | paolofrb/daos | af3707115bbf620690f65bbfd6934f68cc6851ee | 440e11bf5be538aeb0211cf1b4e7711c6843fe95 | refs/heads/master | 2022-09-02T02:00:33.227078 | 2022-08-19T17:29:46 | 2022-08-19T17:29:46 | 176,794,832 | 0 | 0 | null | 2019-03-20T18:32:29 | 2019-03-20T18:32:29 | null | UTF-8 | Python | false | false | 8,727 | py | """
(C) Copyright 2018-2022 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
from datetime import datetime
from ClusterShell.NodeSet import NodeSet
from general_utils import run_command, DaosTestError, get_journalctl
from ior_test_base import IorTestBase
from exception_utils import CommandFail... | [
"noreply@github.com"
] | noreply@github.com |
a92a405822c88617d4d103a6370e8e6b22c84f02 | 2c1061c1ad03ba97ec795c504b8adc63a5071792 | /venv/Lib/site-packages/fcmaes/bitecpp.py | da28838cb5ae8f51cbfdf92d23d0cb3baa9e9974 | [
"Apache-2.0"
] | permissive | StuartMolnar/Whale-Optimization | 657b38591494c375af4cb22444841cba41a9e942 | 743e395935501b7a716c58ed06aecc60117e9a45 | refs/heads/main | 2023-04-26T20:38:59.767515 | 2023-04-14T18:03:27 | 2023-04-14T18:03:27 | 353,915,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,452 | py | # Copyright (c) Dietmar Wolz.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory.
""" Implements a stochastic non-linear
bound-constrained derivative-free optimization method.
Description is available at https://github.com/avaneev/biteopt
"""
import sys
im... | [
"stuartmolnar@hotmail.com"
] | stuartmolnar@hotmail.com |
9277ddc026afe786dbfa6c7fce9b98dc97c38959 | 19cec240505e27546cb9b10104ecb16cc2454702 | /linux/app/web/python/wikicode/dc/__init__.py | 92f91ec3adc810b7ed3614687a82c4219108541c | [] | no_license | imosts/flume | 1a9b746c5f080c826c1f316a8008d8ea1b145a89 | a17b987c5adaa13befb0fd74ac400c8edbe62ef5 | refs/heads/master | 2021-01-10T09:43:03.931167 | 2016-03-09T12:09:53 | 2016-03-09T12:09:53 | 53,101,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | import sys, socket, os, wikicode
import flume.flmos as flmo
from wikicode import to_rpc_proxy
class Declassifier (object):
def config (self):
"""
This is a CGI program used to configure the declassifier
"""
import wikicode
class Config (wikicode.extension):
def r... | [
"imosts"
] | imosts |
70856f11716f2c40b20cd0381b940b88989a2669 | 8a101d80fd1acfe19a65ad7de7b494ece52ed646 | /polls/models.py | a19469bafcfede169530ff9e1da7f528a328f4c9 | [] | no_license | xiaoming688/django_polls | e02fdb22b34038ea18c8ec85d78076041fc9cf86 | 62334939cb655e9e18ae4a5f10ef060c6339aa9a | refs/heads/master | 2021-01-11T14:25:29.869680 | 2017-02-09T04:05:19 | 2017-02-09T04:05:19 | 81,404,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | import datetime
from django.db import models
# Create your models here.
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
def was_pub... | [
"gcm688@126.com"
] | gcm688@126.com |
426b7764f3fbbc5daacb7212a83b9f1c295ceec7 | e441c6f1134bc3ab4ae09c444ab0e2a21594b561 | /search/indexer/sphinxql.py | a6624f6c60b92b3b9c821ac4717b6ce962753d38 | [] | no_license | running-fish/818717 | 0f0992cac96e574723ad5f25c0abcdac103ddcbe | 2e6cd29535e1f733fdd3cc841294b6514d37a8c4 | refs/heads/master | 2020-04-09T21:11:44.004784 | 2013-09-09T15:42:56 | 2013-09-09T15:42:56 | 12,477,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,088 | py | #coding=utf-8
"""
SphinxQL python wrapper
http://sphinxsearch.com/docs/2.1.1/sphinxql-reference.html
注意: 不需要安装mysql-server, sphinx的searchd进程会假装自己是mysql
"""
import MySQLdb
import json, time, datetime
RESERVED_KEYWORDS = (
'AND', 'AGENT', 'AS', 'ASC', 'AVG', 'BEGIN', 'BETWEEN', 'BY', 'CALL', 'COLLATION', 'COMMIT',... | [
"reindexer@gmail.com"
] | reindexer@gmail.com |
95b157bc229cb0fead9e16a544d926300c4699a6 | 8547b55faf692e8e3dcff5eb117be6bae13ca4e0 | /LeetCode/409 Longest Palindrome.py | 48255d00c9ea751e31fa41c70c82d3bffc42b7c4 | [] | no_license | zjuyuchen/LeetCode | 931f8ad488567cab3ad5897e1ef73679f9621d0b | cfae933b1b4074f2f34945a2e17515e2a11515c5 | refs/heads/master | 2021-05-16T17:37:49.628693 | 2017-11-21T09:29:33 | 2017-11-21T09:29:33 | 102,973,142 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 27 23:58:44 2017
@author: Administrator
"""
class Solution(object):
def longestPalindrome(self, s):
"""
:type s: str
:rtype: int
"""
dic = {}
for i in s:
if dic[i]:
dic[i] += 1
el... | [
"2010wangzhen@zju.edu.cn"
] | 2010wangzhen@zju.edu.cn |
498eaee64e265a43c2e6410f4c9a93ab97344240 | d4ab333b49484bc4a9e72bce202b8aa2e04350a8 | /resnet50-inference.py | 20784a39f193551eaf0494103082169623bab350 | [] | no_license | petrovicu/onnx-segmentation | 672db75a7174fe092eaa3b707a9596261ca46d60 | 1389379bbc481cb6f732717267d5e7fbbcd0018a | refs/heads/master | 2021-04-02T08:34:27.783271 | 2020-03-19T17:53:47 | 2020-03-19T17:53:47 | 248,238,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,377 | py | import numpy as np
from PIL import Image
import onnxruntime as rt
import onnx
from onnx import numpy_helper
import json
import os
import glob
from PIL import Image, ImageDraw, ImageFont
import time
def load_labels(path):
with open(path) as f:
data = json.load(f)
return np.asarray(data)
def preproces... | [
"urock358gh"
] | urock358gh |
4a06f45ebcfae1c27542cfcd6dcf5cb71bce062f | 97807b89370b982a1ddb260f49fc8266f077c653 | /python practice/p1.py | c5785fd81374e0f30d7de1e57fbcf4873d2e5243 | [] | no_license | Nidhi4-p/python | 39fdcbd83409118166c61068e0e9310dc6cf802c | a611698bdc20401df5760818f13b686791da6b9d | refs/heads/master | 2020-04-02T22:16:06.717474 | 2020-01-26T16:24:30 | 2020-01-26T16:24:30 | 154,827,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | '''question1:
Write a program that computes the net amount of a bank account based a transaction log from console input. The transaction log format is shown as following:
D 100
W 200
D means deposit while W means withdrawal.
Suppose the following input is supplied to the program:
D 300
D 300
W 200
D 100
Then, the outp... | [
"noreply@github.com"
] | noreply@github.com |
667fa4b0e2e3855ca0a2cfb361d7ae552916988f | f4b45c93d11192791e44459f04f3c354adff1c98 | /extract_features.py | 797777f4c51959e1fb4d6e63788e7a53f9a63cd9 | [] | no_license | 5H400W/Image-Caption-Generator-Flicker8K | de7cf34eabcdb26b0ad3099059870052cce57edc | 3584c0e68407ef16a93e9ec37a8e1aded2d0635d | refs/heads/main | 2023-04-01T21:03:38.512772 | 2021-04-11T21:11:50 | 2021-04-11T21:11:50 | 356,978,992 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,080 | py | """
COMP5623M Coursework on Image Caption Generation
Forward pass through Flickr8k image data to extract and save features from
pretrained CNN.
"""
import torch
import numpy as np
import torch.nn as nn
from torchvision import transforms
from models import EncoderCNN
from datasets import Flickr8k_Images
from util... | [
"noreply@github.com"
] | noreply@github.com |
6d7a305cad64f252e8094e027c01dccba9c5ea72 | 914ee65bf1d9b99fa9e4c98aaa2a724bc031b1a7 | /sqli_blinder/huffman_tree.py | db6eb15b46ca3316dc51900615297788b6886f34 | [] | no_license | sorokinpf/sqli_blinder | 4abf4203a8b1acf96688c804ca574c6c9a5c9c31 | 6e0693154edc5149e60ea0cd08a8a48fac19d9b5 | refs/heads/master | 2022-05-03T03:06:57.910609 | 2022-03-26T14:29:06 | 2022-03-26T14:29:06 | 197,442,366 | 17 | 3 | null | 2021-02-14T10:03:54 | 2019-07-17T18:29:25 | Python | UTF-8 | Python | false | false | 1,292 | py |
def huffman_tree(stats):
total = sum([stats[k] for k in stats])
data = [(ch,stats[ch]*1./total) for ch in stats]
#data_sorted = np.sort(data)[::-1]
#data_sorted = sorted(data)[::-1]
data_sorted = sorted(data,key=lambda x: x[1])[::-1]
struct = [(x,x) for x in data_sorted]
while True: ... | [
"pavsorokin@ozon.ru"
] | pavsorokin@ozon.ru |
3e200464fcd0c7743e17cb6998f1810928aa115a | a2b6bc9bdd2bdbe5871edb613065dd2397175cb3 | /Cookbook/Array/岛屿数量.py | 571395c6c2f6f2f328b0dda10d09b4a6f34e41e6 | [] | no_license | Asunqingwen/LeetCode | ed8d2043a31f86e9e256123439388d7d223269be | b7c59c826bcd17cb1333571eb9f13f5c2b89b4ee | refs/heads/master | 2022-09-26T01:46:59.790316 | 2022-09-01T08:20:37 | 2022-09-01T08:20:37 | 95,668,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,635 | py | '''
给你一个由 '1'(陆地)和 '0'(水)组成的的二维网格,请你计算网格中岛屿的数量。
岛屿总是被水包围,并且每座岛屿只能由水平方向和/或竖直方向上相邻的陆地连接形成。
此外,你可以假设该网格的四条边均被水包围。
示例 1:
输入:grid = [
["1","1","1","1","0"],
["1","1","0","1","0"],
["1","1","0","0","0"],
["0","0","0","0","0"]
]
输出:1
示例 2:
输入:grid = [
["1","1","0","0","0"],
["1","1","0","0","0"],
["0","0... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
18f271cb6780ce818361102f677a4d69226a8d4a | d1087ce7130b13a591410c38b17e921c2dd1d6b3 | /Stack/Car Fleet.py | f170326005c39c793606bce0cb241a10d04dd5b2 | [] | no_license | lulukdog/leetcode-Python | e577c1a24443d68961b6e5fd6e37d30070ff0570 | 56c9bfde870e2d682539e5bf223e0f32e411e610 | refs/heads/master | 2020-04-04T18:03:13.611655 | 2019-06-29T03:00:41 | 2019-06-29T03:00:41 | 156,147,753 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import math
import re
class Solution(object):
def carFleet(self, target, position, speed):
"""
:type target: int
:type position: List[int]
:type speed: List[int]
:rtype: int
"""
if len(position)<=1:
r... | [
"zhaolu@kuaishou.com"
] | zhaolu@kuaishou.com |
b242154ac5e1fa01e9374f146b4f0f1ec9373658 | 02e4b94a84601f3adc141e5bea3ffe1d26cb6abe | /doku/blueprints/api/v1/template.py | 0aaefd4665238d20d27049d882ff1a73f0547cfa | [
"BSD-3-Clause"
] | permissive | pbehnke/doku | 64bf548f56e6c9b43e26738c3cf894ddaacbcd24 | 19f9d5411b175651339fec6f5414cb32f36fdd48 | refs/heads/master | 2022-12-02T08:29:10.689676 | 2020-08-02T13:08:33 | 2020-08-02T13:08:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | from flask import Blueprint, jsonify
from sqlalchemy import and_
from werkzeug.exceptions import BadRequest
from doku import db
from doku.models.schemas import TemplateSchema
from doku.models.template import Template, Stylesheet, template_stylesheet_relation
from doku.utils.db import get_or_404
from doku.utils.decorat... | [
"jonas.drotleff@gmail.com"
] | jonas.drotleff@gmail.com |
5be9b51e708bbeaef1294169c8781b6c9ede7c44 | dd90078d0d40c92648b987912de6c5c9272c7693 | /queue/queue.py | 7317104c9317b35631b01ae2618eb78f26254e22 | [] | no_license | hariprohandler/dataStructurePython | cadb2c2522f65532629d69ded5489443ef216dbb | a0a046d202ef5ba429843a26b5080ffd15ebf0b0 | refs/heads/master | 2023-03-15T21:15:11.443881 | 2021-03-11T14:50:21 | 2021-03-11T14:50:21 | 342,467,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | from collections import deque
class Queue:
def __init__(self):
self.buffer = deque()
def enqueue(self, data):
# self.buffer.insert(0,data)
self.buffer.appendleft(data)
def dequeue(self):
self.buffer.pop()
def is_empty(self):
return len(self.buffer) == 0
def s... | [
"hari.prasad@gingerwebs.in"
] | hari.prasad@gingerwebs.in |
5830f48435f046b1a14c8ac35172c775349572ab | a768973744766f1d750540f7eedd39efcfa73ad9 | /Information Retrieval/er2.py | 389f8b3bbeef52bd189ec5ebfd88c3e0181ee15b | [] | no_license | PanosChristopoulos/CEIDjungle | a6e453ff29c87cdaa44613e392be19de580bc573 | 6e2b47f924d36a6904fcb8dd4a650614a9ad66e1 | refs/heads/master | 2021-09-25T11:40:24.106342 | 2021-09-14T21:45:21 | 2021-09-14T21:45:21 | 212,848,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,005 | py | import pandas as pd
import numpy as np
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.metrics import pairwise_distances
from sklearn import preprocessing
from elasticsearch.helpers import bulk
from elasticsearch import Elasticsearch
from progress.bar import FillingSquaresBar
import time
ratings_da... | [
"panoschristopoulos41@gmail.com"
] | panoschristopoulos41@gmail.com |
36f9a5a17d867bec808d13b8edd8bda6d492f826 | 741e81d3f3234f385cd1a8080e39698a48100af5 | /AaoKhaoJao/models.py | 355963ed6f92efd1b096d31a08c7a066822228ce | [] | no_license | meshubh/MyFirstWebApp | fa7f976fc232b9d97c8c2ed84b2b29a438882733 | 73ec33466a9c5f4ce6868d156946e72946fb3882 | refs/heads/master | 2020-02-26T17:32:04.479511 | 2016-08-04T14:44:53 | 2016-08-04T14:44:53 | 64,316,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.admin import User
from django.core.validators import RegexValidator
class Restaurants(models.Model):
name = models.CharField(max_length=50)
location=models.CharField(max_length=50)
owner=models.ForeignKey(User)
... | [
"shubhamagarwal9625@gmail.com"
] | shubhamagarwal9625@gmail.com |
9230bbfe91b13c42b8c3644c609cf0fd7bcc87c4 | 26a91702cd5e9b167caa8e5ea85f332f85a39d92 | /sdk/bin/migrate-check | 0d7cd285e830a32c8fb51e1c4bdf5fea2d8715c6 | [] | no_license | cozybearca/django-sdk-template | 3a7a863af8dc263b206d3607c02a7d753ff21a75 | 2cd922b61b93c905d1c2322175677a69c1976e3f | refs/heads/master | 2023-02-21T22:27:54.630670 | 2021-01-27T05:22:34 | 2021-01-28T02:50:14 | 332,351,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,290 | #!/usr/bin/env python3.8
"""Django's command-line utility for administrative tasks."""
import os
import re
from pathlib import Path
from shutil import rmtree
from subprocess import run
import click
def list_migrataion_names(appname):
"""
Returns ["0001_initials", "0002_migrationname", ...]
"""
from s... | [
"ylilarry@gmail.com"
] | ylilarry@gmail.com | |
b1288bd4b65cec227d856f6eb4cca2152248c0dd | 944f35e5c02cd94128d9509b62697ac3c88d34a2 | /scripts/evt_loadtest.py | f9a987af05f02b13ac029626ca88cc558fafaa81 | [
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"MIT"
] | permissive | CandyZ93/evt | 281e2fab95553085724606fbd830cb5f265bc64b | aeaef90db20428a8430753b5fdd1ae95705c5468 | refs/heads/master | 2020-04-02T16:58:45.416111 | 2018-10-23T07:48:27 | 2018-10-23T07:48:27 | 154,638,277 | 1 | 0 | NOASSERTION | 2018-10-25T08:42:50 | 2018-10-25T08:42:50 | null | UTF-8 | Python | false | false | 9,521 | py | import os
import sys
import time
import click
import docker
def remove_dir(dir):
items = os.listdir(dir)
for item in items:
os.remove(os.path.join(dir, item))
def get_info_in_content(content, writer):
head = '"reqs","fails","Avg","Min","Max","Median","req/s"'+'\n'
writer.write(head)
lin... | [
"harrywong@live.com"
] | harrywong@live.com |
b1246c06b1a6bfdf9325257356e54bb7ca8ff507 | ebeb2297addb2b942879c1a2a9bf1de1b119bc45 | /connection_plugins/packer.py | 773c98e1dad6924aa955dd26d7f70ce320dbb6bd | [
"Apache-2.0"
] | permissive | chris-smith-zocdoc/packer-windows-example | d3c594293d3be267ed9f09985c5de5acecdd7bed | f50ae58fd882754cda9426951b5bdb58d50ddbca | refs/heads/master | 2021-01-12T11:53:47.214900 | 2017-02-27T23:06:34 | 2017-02-27T23:06:34 | 69,514,240 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.plugins.connection.ssh import Connection as SSHConnection
class Connection(SSHConnection):
''' ssh based connections for powershell via packer'''
transport = 'packer'
has_pipelining = True
b... | [
"chris.smith@zocdoc.com"
] | chris.smith@zocdoc.com |
fa091d4a5b67cc3425553a4c3c7993b379d5a42c | 2a2505108cd429d39746050d0100f4963dcd9c69 | /src/compas/geometry/bbox/__init__.py | b19dd1d59cd854d5d9397b2cf4ef284c580ed6d6 | [
"MIT"
] | permissive | adacko/compas | 677095bea007c22a98b44af3281131b445cb1ae1 | 47c443ad3825897ec7ed932ec20734c2f08ef120 | refs/heads/master | 2020-07-23T00:55:51.348907 | 2019-09-09T16:44:18 | 2019-09-09T16:44:18 | 207,390,442 | 0 | 1 | MIT | 2019-09-09T19:40:41 | 2019-09-09T19:40:41 | null | UTF-8 | Python | false | false | 260 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import compas
from .bbox import *
if not compas.IPY:
from .bbox_numpy import *
__all__ = [name for name in dir() if not name.startswith('_')]
| [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
d2d66ff81e45d30525bbf75995a977f93338724c | 861ef9660c13a7d1a506647abd4c7c85b5ba463d | /trades.py | dc141750a77cb8f613687e11f9eadff17e41228e | [
"MIT"
] | permissive | icse2022testing/themis | a724fcec725409eee161b2b1e3b55b00a35341ff | 6bfc8198f5074fed006b13cef05aaf02626a7ab5 | refs/heads/main | 2023-04-18T16:09:41.998690 | 2021-05-14T07:23:26 | 2021-05-14T07:23:26 | 365,360,296 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,138 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import torch.optim as optim
def squared_l2_norm(x):
flattened = x.view(x.unsqueeze(0).shape[0], -1)
return (flattened ** 2).sum(1)
def l2_norm(x):
return squared_l2_norm(x).sqrt()
def trades_loss(mod... | [
"noreply@github.com"
] | noreply@github.com |
c9d171474d5cf49078c6677ff318b0a91a8fc219 | 7c726820cc87e6b75f07057dca5f3c63812e9c0d | /tests/api/test_base.py | e74fb56dd734eb0ae6c53fc92bcb8fc60cd495ce | [
"MIT"
] | permissive | BtbN/python-twitch-client | b5a71d178b1e7586af490eb90b586857eb92c995 | 4c2efe2fee33ed894551b394afeb21a2cb76f2b5 | refs/heads/master | 2021-06-27T02:40:39.134132 | 2017-09-15T12:19:22 | 2017-09-15T12:24:31 | 103,653,621 | 1 | 0 | null | 2017-09-15T12:24:32 | 2017-09-15T12:17:34 | Python | UTF-8 | Python | false | false | 7,053 | py | import json
import pytest
from requests import exceptions
import responses
from twitch.api.base import BASE_URL, TwitchAPI
dummy_data = {
'spongebob': 'squarepants'
}
def test_get_request_headers_include_version_and_client_id():
client_id = 'abcd'
api = TwitchAPI(client_id=client_id)
headers = ... | [
"tomazz.sifrer@gmail.com"
] | tomazz.sifrer@gmail.com |
8f1b7bd6f3bc3d81fe1536357410e5ea7c4feb1f | 400c205e70987072e2e7cad1421d2df7c8c5388b | /job_summary/hook.py | b6b56608c2ba8e7223ccb0252d2805e43604e61e | [] | no_license | ICHPC/pbs-hook | a61316c6e231a44cf460fda85b8ba0c0e95b65f7 | 14e7d567b9f70da94ab3da4d4a4ac5e0632ffcad | refs/heads/master | 2020-12-30T23:36:49.931679 | 2019-03-04T13:07:45 | 2019-03-04T13:07:45 | 86,605,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | import pbs
import datetime
import re
import math
try:
e=pbs.event()
j = e.job
ji=j.id
path=j._stdout_file
if(j.in_ms_mom()):
mem_rq = str(j.Resource_List.mem)
mem_used= str(j.resources_used.mem)
mem_rq = mem_rq.lower()
mem_rq = re.sub("mb", "000", mem_rq )
mem_rq = re.sub("gb", "000000", mem_rq )... | [
"m.j.harvey@imperial.ac.uk"
] | m.j.harvey@imperial.ac.uk |
99b67cbc47737d6d5d2e5f86a19adb074e236028 | 9a96e6f4326d4e8b6e8f24cde4b123e26463f564 | /Machine_Learning using Python/Machine_Learning_from_Scratch/Recommendation System/Simulated Annealing based Mine Planning/SimulatedAnnealing_LTMP.py | 0e9731336e3e75c9926e6f35fbae24ef7f5bab77 | [] | no_license | Shahfarooq/ds-portfolio | fef7a8587525b578cdb987cc8b15596aa39e0bf2 | dda58bc84009575a506c0ba3b4d277f0104e11c5 | refs/heads/master | 2023-06-03T13:00:01.897103 | 2021-06-15T12:35:50 | 2021-06-15T12:35:50 | 377,146,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,876 | py | import pandas as pd
import numpy as np
import copy
from InitialSchedule import InvertConeInitSchedule
class LTMP(InvertConeInitSchedule):
def __init__(self,initialTemp=10000,generations=500,iterations=500,tempReductionRate=0.90,
maxBlockSwap=3,reqMillCapacity=250000,penaltyLowerProd=2,penalty... | [
"s.m.farooq@student.tudelft.nl"
] | s.m.farooq@student.tudelft.nl |
7f555745ebade9b399133b207d770e261214a946 | 4b9a5aff22408bd5722bcdb45b79639a7a20c0d0 | /software/python/test/multi_socket/server/server.py | 67c2a8a2a5bb1ed369d3f08a6ff8c7ac791a33e1 | [
"MIT"
] | permissive | lucas137/trackedrobot | 941799e3bbae5b4076dc0369a5bb0284ba9a1636 | e315d2811e1f13d92aac079048e5931755335054 | refs/heads/master | 2022-04-02T12:30:35.828061 | 2020-02-17T01:50:41 | 2020-02-17T01:50:41 | 223,512,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | #------------------------------------------------------------------------------
# server.py
#------------------------------------------------------------------------------
import socket
import select
if __name__ == "__main__":
host = '' # symbolic name meaning
... | [
"noreply@github.com"
] | noreply@github.com |
f14700201931ee672c9f76d081fa409e8bfe1174 | bcfa80adfe5856ab09fb9adc8fe0ea1237e9604c | /Towers of Hanoi Game/console_controller.py | dffdef0019969337024c1b53730f24150bbc3ccd | [] | no_license | mcgarrye/portfolio | d3073e02a5e49c0ce7275785ab1be8996dd12c0e | 686cbf83995c2bca2230d7e6a1eddc23e6115741 | refs/heads/master | 2022-10-24T03:02:19.313349 | 2022-10-03T20:38:27 | 2022-10-03T20:38:27 | 166,888,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,984 | py | """
ConsoleController: User interface for manually solving
Anne Hoy's problems from the console.
"""
# Copyright 2014, 2017 Dustin Wehr, Danny Heap, Bogdan Simion,
# Jacqueline Smith, Dan Zingaro
# Distributed under the terms of the GNU General Public License.
#
# This file is part of Assignment 1, CSC148, Winter 201... | [
"noreply@github.com"
] | noreply@github.com |
c7866f2c24eae246e955bb8af8ad6de38f07183d | 3593202042402dfc58da5d0d5fdfef0a1f8c4631 | /RSA_d_calculator.py | 65b95ede54beb058f667563da2c384f61db8279f | [] | no_license | ActorExpose/RSA_private_key_calculator | d9d9f32d8383ddb37343cc0529f53473379b7e46 | 30a59e315a3acafa7e050d05a7e701b34a16187d | refs/heads/master | 2021-09-04T20:41:15.346086 | 2018-01-22T00:51:20 | 2018-01-22T00:51:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,522 | py | #A simple python tool to calculate RSA private key (d) knowing the public exponent e, and the prime factors of the modulus N; p and q. By mc111
#import the required modules. Cryptomath is included with the tool, keep it in the same folder.
import os, sys
#This is Cryptomath Module, so we don't have to import the m... | [
"noreply@github.com"
] | noreply@github.com |
95d5807bab0d3600dffa5a981a9c7d9b0f2b5339 | 8fb7e959cc88a42da666bd3fe0da72b5f8e53f8c | /logger.py | 628e733baf03ae5b5452c113bc304ced3cf2c147 | [] | no_license | aabbccgithub/EC-DFR | 02c51ed98df213c9b1c774554f6e810d199275fd | 28ac01867aec95f89bc52e2f27571508996c2adc | refs/heads/master | 2023-08-04T17:11:24.826384 | 2021-09-27T12:06:06 | 2021-09-27T12:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import logging
import sys
import time
def get_logger(name,n):
logger = logging.getLogger(name)
logger.handlers.clear()
logger.setLevel(level = logging.INFO)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(message)s')
#file_handler = logging.FileHandler("logs/{}.txt".format(n))
#file... | [
"1575113035@qq.com"
] | 1575113035@qq.com |
34a068060411bb76bd3ac3eb891fd7fc3d566677 | aaabecee90b5c193a9f26f908cf8722a06a2ee3e | /removedup.py | 3ec53fc0fef254472cb2bdb5a00ed6b88cd1e4a7 | [] | no_license | hw26/coding_exercise | abcb9f0e4d0b15bcf953787b4649e0ed94a690d5 | 14524832938f11e89dd7578c34e1b698a393758f | refs/heads/master | 2020-04-19T21:04:28.203928 | 2019-01-30T23:36:52 | 2019-01-30T23:36:52 | 168,431,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122,410 | py | def removeDuplicates( nums):
"""
:type nums: List[int]
:rtype: int
"""
i = 0
ct = 1
while i < len(nums)-1:
if nums[i] != nums[i+1]:
ct += 1
i += 1
return ct
# print(removeDuplicates([1,1,1,0,0,2]))
print(ran... | [
"hw26@rice.edu"
] | hw26@rice.edu |
8b822886de793fad5cc78d1bdeeab56f9dfb7197 | 85f1488f3d0996b83292f74b3672793f2778503f | /notebooks/Model Diagnostics.py | 96d24d2bbf464d6e372c397f7b713a044f8955dd | [] | no_license | ceshine/jigsaw-toxic-2019 | 33f66d6643aeeeb20599ab95368ce2c1f6500543 | 34d5df28e1b820725f964fbbdfe039daea31c0d7 | refs/heads/master | 2022-02-22T10:50:51.444794 | 2019-08-04T04:13:00 | 2019-08-04T04:13:00 | 198,053,856 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,796 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import sys
sys.path.append("..")
# In[2]:
from pathlib import Path
from functools import partial
import numpy as np
import pandas as pd
import torch
import joblib
from torch.utils.data import DataLoader
from toxic.inference_bert import get_token_ids
from toxic.da... | [
"shuanck@gmail.com"
] | shuanck@gmail.com |
7f3da45e043ef6602769afea0a533af86f8f6f8f | 48e1ac111f48bf27b03625f81887a8eaef4d505d | /old/google-cloud-sdk/platform/gsutil/gslib/commands/du.py | afc399c6c2a24fe25420a2093c4b0f2484b10adf | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | altock/dev | 74350528ea570925e8fbc584c64939cae86f6ea7 | 90d87b2adb1eab7f218b075886aa620d8d6eeedb | refs/heads/master | 2021-07-10T08:31:48.080736 | 2017-04-15T03:04:12 | 2017-04-15T03:04:12 | 23,088,790 | 0 | 1 | null | 2020-07-25T04:32:05 | 2014-08-18T22:33:25 | Python | UTF-8 | Python | false | false | 8,808 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"sjs382@cornell.edu"
] | sjs382@cornell.edu |
433eecba4cb3cb1455330d301e538aebb6bb10b6 | 2ec6e1aaec183df34661ef2e0e5798067fddb8e8 | /sampleapp/migrations/0001_initial.py | ccbc44f290e0edfbe3deaa6a5b5a49fa80ec186d | [] | no_license | Rahulvarma161/sampleproject | dbf50ec895f404c00c90939872bd148d468a20f0 | 1fc5a4531251bfe730b720a00932c6ef8851419a | refs/heads/main | 2023-02-11T02:08:01.146859 | 2021-01-05T17:01:12 | 2021-01-05T17:01:12 | 327,052,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | # Generated by Django 3.1.5 on 2021-01-04 20:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='category',
... | [
"noreply@github.com"
] | noreply@github.com |
cda279c13ca27f717177609fafb86a16936745cf | 5b27bebd2f414ab72f99405e421718b58fa62041 | /day03/zuoye2.py | dd99b7f1b94699f406328e215ea2089606ca3b54 | [] | no_license | nigang123/myedu | 55db70523f638f03fc0f3ab7f1f8b91c365e9a86 | a774dbb1b8e65617e4e18130dbb689fca7974c3f | refs/heads/master | 2020-05-15T10:02:32.328085 | 2019-05-07T06:30:11 | 2019-05-07T06:30:11 | 182,186,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | def list_del():
alist=[['admin', '123456', '成功', '登录成功'], ['admin1', '123456', '错误', '用户名错误'], ['admin', '123456a', '错误', '密码错误'], ['admin', '123456', '成功', '登录成功1'], ['admin1', '123456', '错误', '用户名错误1'], ['admin', '123456a', '错误', '密码错误1']]
print(alist)
# for i in range(1,7):
# alist.pop(-1)
... | [
"494578387@qq.com"
] | 494578387@qq.com |
d845dabdee79c52e22e86ac775b02869209ff808 | e2f1d822660588577c917a342ce72c88c855fc0a | /cfd/address.py | e7e6165d0fa5ae5d5fb407a1f68411b605ccb220 | [
"MIT"
] | permissive | p2pderivatives/cfd-python | 2860b692b915771e11b70a8cc696354550c9a647 | 0e270062adc2d05ca06da096083a607c89db7ef4 | refs/heads/master | 2023-08-13T02:57:21.539084 | 2021-09-27T00:14:39 | 2021-09-27T00:14:39 | 293,992,921 | 1 | 1 | MIT | 2021-09-27T00:14:40 | 2020-09-09T03:30:20 | Python | UTF-8 | Python | false | false | 17,052 | py | # -*- coding: utf-8 -*-
##
# @file address.py
# @brief address function implements file.
# @note Copyright 2020 CryptoGarage
from typing import Tuple, Union, Optional, List
from .util import get_util, CfdError, JobHandle, to_hex_string
from .key import Network, Pubkey, SchnorrPubkey
from .script import HashType, Script... | [
"noreply@github.com"
] | noreply@github.com |
05582503852107c9e10f45ae97192103f5be932b | e81710b9805ea7eb0989fcaf68080200f40e0373 | /venv/bin/python-config | 2fb6367f73b045a9186e1884e9982c83975fe6b8 | [] | no_license | Punmanat/djangoleave | fb1358577b03baf8a7dbd7959f9a4a53c000f7a0 | 586517719f2945309847ba239a4aa0b44296e1fc | refs/heads/master | 2020-05-18T16:08:04.115828 | 2019-05-02T03:49:04 | 2019-05-02T03:49:04 | 184,517,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,358 | #!/Users/punmanat/Desktop/djangoleave/venv/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_opts.append('abiflags')
if sys.v... | [
"60070053@kmitl.ac.th"
] | 60070053@kmitl.ac.th | |
39cf8e396b1f14bb72f024c691e8032d461dfa08 | 45e8a4404aabc3f09525a5fe9569b9b05848fa8c | /Week 7/prac_06.py | 0641db8e2b43de5f2802651f2dc84f48d1fb58d3 | [] | no_license | FinOCE/CP2410 | 794a4a0c612d97895bb662d205439d6126f69c77 | bb33a119cae8a7202e2634b2df72d4b4151e5f1d | refs/heads/main | 2023-05-25T08:59:20.407456 | 2021-06-13T02:19:59 | 2021-06-13T02:19:59 | 353,274,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # Question 1
# a
"""
/users/rt/courses/
"""
# b
"""
cs016/
homeworks/
programs/
cs252/
projects/
papers/
"""
# c
"""
9
"""
# d
"""
1
"""
# e
"""
grades
programs/
"""
# f
"""
papers/
buyhigh
sellow
demos/
market
"""
# g
"""
1
"""
# h
"""
4
"""
# Question 2
# a
"""
"""
# b
"""
1
2
4
5
3
6
8
9
7
10
"""
# c
"""
... | [
"me@itsf.in"
] | me@itsf.in |
c26747d4798c12a9061590246550915c3f49b876 | f7c7063e1a22b773a271a953c013a3c5303b70b3 | /src/litter_trap.py | f5802491a1ff00f278838b9b59f2b0dfe66141a0 | [] | no_license | Ewan82/ah_data | e0cce8fffafd91eb6fca8ce6af602d3230535f87 | d5961f284187acda8d1317bb4fd50f32c85bb591 | refs/heads/master | 2021-01-19T01:55:47.530127 | 2016-11-04T11:07:09 | 2016-11-04T11:07:09 | 40,532,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | import numpy as np
import matplotlib.mlab as mlab
def convert_csv2rec(file_no):
return mlab.csv2rec('../litter_traps/litterscans/file0'+str(file_no)+'.csv')
def remove_false_data(area_arr, tol=2.0):
idx = np.where(area_arr < tol)
return np.delete(area_arr, idx) | [
"ewan.pinnington@gmail.com"
] | ewan.pinnington@gmail.com |
8093f5a3ee8e691e590ac041f1b8d2cf1b04ae8e | 1497dcae6ed824a9c16b95869a9af4eb882243fd | /src/tensorflow_tools.py | cae8adce3c41318a58f1c80c320f1fda94d2441f | [] | no_license | ivallesp/cFavorita | ec82de5de560b7d6fc0d83e344369ae06b4a1f82 | 7aa685fe18817254a4dfda0dc37210e6363b2e32 | refs/heads/dev | 2023-08-19T05:19:23.029898 | 2021-12-26T18:18:20 | 2021-12-26T18:23:51 | 188,599,633 | 14 | 2 | null | 2023-07-22T06:47:19 | 2019-05-25T18:25:06 | Jupyter Notebook | UTF-8 | Python | false | false | 2,239 | py | import os
import shutil
import tensorflow as tf
def get_tensorflow_configuration(device="0", memory_fraction=1):
"""
Function for selecting the GPU to use and the amount of memory the process is allowed to use
:param device: which device should be used (str)
:param memory_fraction: which proportion o... | [
"ivanvallesperez@gmail.com"
] | ivanvallesperez@gmail.com |
4aaf1f942180f04ecbad1dfdb030717f97daf02f | ee590fe119e1abde4acefab99cd9e16800f607fe | /masterstation/humidity_sensor.py | a9a1edf7332ab48ba6913b0c031d79b689cdab00 | [] | no_license | danny-andersen/digi-thermostat | 4c89ee1cf7c39b656ebd66592bc6e4b5a53e7dfc | 2b6dfb2de72867f8a410abc2fe9da416d560305a | refs/heads/master | 2023-06-06T06:16:40.115229 | 2023-06-04T17:00:17 | 2023-06-04T17:00:17 | 79,599,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | from time import sleep
from os import stat, path, remove
import re
import adafruit_dht
from board import D18
THERM_FILE = "/sys/bus/w1/devices/28-051673fdeeff/w1_slave"
# THERM_FILE = "w1_slave"
def readDHTTemp():
dht_device = adafruit_dht.DHT22(pin=D18, use_pulseio=False)
retryCount = 0
gotValue = Fals... | [
"danny_andersen@yahoo.com"
] | danny_andersen@yahoo.com |
aba2f99bb85e81a08323e766e84cdbec95bc8a69 | eacbe2a55f3e5a1f9cbb396132d891791fe7055a | /ex37.py | 395f7735bf251fb5c920c9132ee27337983de04a | [
"MIT"
] | permissive | htethtethtunjewel/python-exercises | 7b80e776dce75ed3bfe68b8af391f6a96b79c811 | 867c071e2c130065dc39c5940559eb08755b2f6e | refs/heads/master | 2020-03-19T06:46:48.184984 | 2018-06-26T07:51:06 | 2018-06-26T07:51:06 | 136,054,108 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | print("Srymbol Review Keywords and data types")
| [
"htethtethtunhtet@gmail.com"
] | htethtethtunhtet@gmail.com |
5b9a478763ffb36a7170609d8c410d5dab0bfcfc | b49dafdd08ca17f35a66c4e8a865444a26b7939e | /rightmost_char/rightmost_char.py | 5ffa4eb9158e2b5db316162df5b8ec73728a3fa5 | [] | no_license | gwcahill/CodeEval | 8eae4eb9bc832d42a4388d2a721b38ab29201e87 | 49fd4d81b14488f2a21e31bb1cf2fda4ba6b7ca0 | refs/heads/master | 2021-01-10T21:05:21.852751 | 2015-03-28T00:03:07 | 2015-03-28T00:03:07 | 32,708,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | '''
Created on Mar 6, 2015
https://www.codeeval.com/open_challenges/31/
Challenge Description:
You are given a string 'S' and a character 't'. Print out the position of
the rightmost occurrence of 't' (case matters) in 'S' or -1 if there is none.
The position to be printed out is zero based.
Input sample... | [
"gwcahill@gmail.com"
] | gwcahill@gmail.com |
be6fdbfb6dd1a8ef3ee96be7f735a99e2d1808ad | ac5437a65a84aa2a14a23c8340159f039510989b | /gp/GPsimtest_basic.py | ce6384144e065062c3437499adb14e89f34e2b16 | [] | no_license | erichanslee/surrogate-GCP | 617c68a4aabbc7bb6b4ed9cd9a2c56eebca30dad | 0d04355bf17dc330b383353b51a62a28276de063 | refs/heads/master | 2023-03-16T01:30:52.920531 | 2016-12-08T00:40:06 | 2016-12-08T00:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | import GPsim
import numpy as np
def f(x):
return np.sin(x)
def main():
bounds = [-3., 3]
test = GPsim.GPsim(batchsize=100)
test.run(f, bounds)
if __name__ == '__main__':
main() | [
"ericlee0803@yahoo.com"
] | ericlee0803@yahoo.com |
a7a95c0683473e5e1ea573daae5f90e685eddb2b | 48ebd67943455502e8dc391e97e57d7ba48a1181 | /hangman/main.py | 4a91b26e67ca795fea7f721830e6080886c56422 | [] | no_license | Matthew-MT/AdvPy-mmontoni-till | 8320b71d66a9db7d10280a1a0ef8da3c13ed4f76 | 50d5efb00119bbefac60cd701299fc65ff05f5c8 | refs/heads/master | 2023-07-23T22:07:15.000956 | 2020-12-07T10:24:40 | 2020-12-07T10:24:40 | 289,051,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,306 | py | import re, random, math
art = [
" __________",
" |/ |",
" O |",
" /|\ |",
" | |",
" / \ |",
"__________/|",
"| | | | | \|"
]
words = open("./words.txt").read().split("\n")
score = 0
guessed = []
class scoreboard:
wins = 0
losses = 0
total... | [
"thumper540@gmail.com"
] | thumper540@gmail.com |
13c31e9d950cf3be9f2b388eecebe51ef72bd351 | b1c7a768f38e2e987a112da6170f49503b9db05f | /stockkeeping/migrations/0010_auto_20181101_1545.py | 34ef7c9e3a98255c3676811073ad0d7d44aad3d4 | [] | no_license | Niladrykar/bracketerp | 8b7491aa319f60ec3dcb5077258d75b0394db374 | ca4ee60c2254c6c132a38ce52410059cc6b19cae | refs/heads/master | 2022-12-11T04:23:07.504966 | 2019-03-18T06:58:13 | 2019-03-18T06:58:13 | 176,218,029 | 1 | 0 | null | 2022-12-08T03:01:46 | 2019-03-18T06:27:37 | JavaScript | UTF-8 | Python | false | false | 417 | py | # Generated by Django 2.0.6 on 2018-11-01 10:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stockkeeping', '0009_auto_20181101_1544'),
]
operations = [
migrations.AlterField(
model_name='purchase_total',
name... | [
"niladry.kar85@gmail.com"
] | niladry.kar85@gmail.com |
f34cabcaf45c0369fa86d666a1504343a680743b | 349fccceda84b673d0941885c2964113f7cb362b | /ref_lufyn/ref_lufyn/asgi.py | 34a9d5057c8364ad7fc361e77cf299aa3a877265 | [] | no_license | leojfrancis/ref_django_template | 0ad91afd2cad7bac267397dae54a687ca2a0b6f1 | 582e38f974d4f41afc7af20a07cb68378e32cc32 | refs/heads/master | 2022-11-11T08:19:57.538034 | 2020-06-29T13:49:52 | 2020-06-29T13:49:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | """
ASGI config for ref_lufyn project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"jesvyn14@gmail.com"
] | jesvyn14@gmail.com |
74bc71878809d253ae88d84435c7af0818740ee7 | cd85ea1a17cb0f3ec5b47e0c020c28c508c650ff | /030.sise_sample3.py | 3c4e491f348849350e011029f3b13427ff22d51c | [] | no_license | HappyPM/proj1 | 6181ee054e0c4a1bbfba669986e28f9127b9a293 | 08c0805f63f428ac381ccdbee602cd26a95e0932 | refs/heads/master | 2020-04-05T14:03:31.230156 | 2016-08-31T00:12:27 | 2016-08-31T00:12:27 | 34,797,301 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | #-*- coding: utf-8 -*-
import pandas.io.data as web;
import datetime;
gnStockCode = '014530';
gstStartDate = datetime.datetime(1900, 1, 1);
gastDataInfor = web.DataReader(gnStockCode + ".KS", "yahoo", gstStartDate);
gastStockInfor = [];
for nIndex in range(gastDataInfor.shape[0]):
nYear = gastDa... | [
"boydrum@naver.com"
] | boydrum@naver.com |
8cb78ff77c9fbf845afbc5b63f5cb829ce8da914 | 0ffb18f4d58961ca675d8294eb2154f69061989f | /auto_process_ngs/test/test_analysis.py | 6b0aeb3108c417fc199c12786a9c0484bc38a1cd | [] | no_license | nandr0id/auto_process_ngs | a794e904e6d24b0e0403941b44c884374f95850e | 9b09f20b344d0ee87227e8771a479aa7c04f1837 | refs/heads/master | 2020-06-26T03:23:53.225029 | 2019-06-12T12:11:32 | 2019-06-12T12:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,655 | py | #######################################################################
# Tests for analysis.py module
#######################################################################
import unittest
import tempfile
import shutil
import zipfile
import pickle
import cloudpickle
from bcftbx.JobRunner import SimpleJobRunner,GEJob... | [
"peter.briggs@manchester.ac.uk"
] | peter.briggs@manchester.ac.uk |
fc59fa9a8f16914204d8ea19eca52d607ae477da | 9f6ae05f6e5948ab704eeed9f6e23739b7e69ed8 | /homework05/config.py | 36e09747494fed64c785bb8cd84e525155e94d63 | [] | no_license | spiritofsofya/cs102 | 3c48ededb04281fb4e555a060276460bb66ccec2 | 0e889f4c45f6b7c254232eb8189e8fb7e5df4207 | refs/heads/master | 2021-06-22T01:58:39.450134 | 2019-06-21T21:54:04 | 2019-06-21T21:54:04 | 152,995,117 | 0 | 0 | null | 2018-12-14T19:19:13 | 2018-10-14T16:33:25 | Python | UTF-8 | Python | false | false | 100 | py | token = '727633887:AAE9dpxtJ82ybMFmHOKu7CRpNk7i83CZVtM'
domain = 'http://www.ifmo.ru/ru/schedule/0'
| [
"chanovas@outlook.com"
] | chanovas@outlook.com |
d430caa395c693413f77644697014544020b3ca5 | 16be2729dc5f07fb13b4b8a7f9450cda52002ef9 | /setup.py | 3c836d8bd59b00db807a7c8943c3965206240292 | [
"Apache-2.0"
] | permissive | clytwynec/dependency_tree | 335dc4a7e29841a6753607adbae9ec0a35f727c9 | 6d5855df24aca0b0bef543d9b6f0d87fdc7423e2 | refs/heads/master | 2020-05-20T08:30:50.503629 | 2015-07-24T18:43:12 | 2015-07-24T18:43:12 | 37,869,659 | 0 | 0 | null | 2015-07-24T13:12:21 | 2015-06-22T17:22:47 | Python | UTF-8 | Python | false | false | 618 | py | from setuptools import setup, find_packages
setup(
name='dependency_tree',
version = "0.1",
packages = find_packages(),
license='Apache 2.0',
install_requires = [
'nose',
'pygraphviz>=1.1',
'snakefood==1.4'
],
py_modules = ['plugin'],
entry_points = {
'no... | [
"clytwynec@edx.org"
] | clytwynec@edx.org |
fd737486045411cda7e0bb185b8c39e5bc960ab9 | f3ffe8e703fb6c4fb2b3ab023f73c69a1f4bec04 | /RemoteSystemsTempFiles/LOGIN.HPC.UANTWERPEN.BE/data/antwerpen/204/vsc20400/FirstAssociationRules/InterestingPatterns/DataSet.py | f17a6cf2ae528caefd366c0bc733105cca0e548a | [] | no_license | wsgan001/InterestingnessSurvey | ae8e275a7137c73eb85f00b5d2db1aacfa5e8175 | 0fd903333d1a2011bdd53659de1c32d36e662521 | refs/heads/master | 2020-03-27T12:28:58.222612 | 2017-02-15T15:24:30 | 2017-02-15T15:24:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | import csv
# Transaction databases, each transaction is a set of items
class DataSet:
def __init__(self):
self.current = 0
self.data = []
def __iter__(self):
return iter(self.data)
def size(self):
return len(self.data)
def getTransaction(self, ... | [
"tuanaivnn@gmail"
] | tuanaivnn@gmail |
16ff91b7ae602164650b06b748a30325764855a2 | c8dba68de8ea4145e95e9684b5a7731233c1feb8 | /portable_jukebox_project/routing.py | 679e1da8bb12bd29390991a463616ff2bf54fb48 | [
"MIT"
] | permissive | wonwooseo/portable_jukebox_project | 1dcd0fdf59166c5109380ac46a0834a509c2d4ee | 970de1d78d770fac6cae26be9fcc6d94a10fa47a | refs/heads/master | 2020-05-24T11:35:38.332984 | 2019-07-08T16:55:08 | 2019-07-08T16:55:08 | 187,251,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from channels.routing import ProtocolTypeRouter, URLRouter
import jukebox.routing
application = ProtocolTypeRouter({
'websocket': URLRouter(
jukebox.routing.websocket_urlpatterns
),
})
| [
"wonwooseo@hotmail.com"
] | wonwooseo@hotmail.com |
e6b8cf1ed34c95782fbc04f4582bc9f07d7f5f4b | 49813760337894f578bd6cf4f3ee76c32bd1d7ba | /guvip137.py | 09bad993fe97e3d711650c82615084b0ace982a6 | [] | no_license | devigajsrr/codekata | e1256cf7fd88a0c7cefd02dea11305391143253a | a9ae003a7d3c8865b1d4e9aae73723a5fedf79be | refs/heads/master | 2020-05-23T01:01:09.927231 | 2019-07-20T11:31:51 | 2019-07-20T11:31:51 | 186,580,561 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | n=int(input())
n=list(bin(n))
n=n[::-1]
print(n.index("1")+1)
| [
"noreply@github.com"
] | noreply@github.com |
4ee83ae92543f29cead51c4c852f6272bc8e1438 | 2008330a9b94c949c06c4ce7e9c9986e5f14bdda | /my_work/file_with.py | af41424a7f3fa1b39645282afaeaaab4992d2391 | [] | no_license | hermi99/python_study | d7c3c16549a4acaa32348ef2bcd9a4229acb5558 | bc09a076e0b33348f5f423abdeea42613b8d8572 | refs/heads/master | 2020-04-16T22:51:55.163889 | 2019-07-05T06:56:53 | 2019-07-05T06:56:53 | 165,987,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | with open('test.txt', 'r') as f:
print(f.read()) | [
"noreply@github.com"
] | noreply@github.com |
03422f303623c925db12a45b44f74a24f45983c9 | b542fcd23753817d9128a3b3baaf3a9f13de6b02 | /win32/tools/scripts/buildanimation.py | 8a8deacfba975d8f253a9fd57bcf25af59767a32 | [
"MIT"
] | permissive | ortorin/ds_mod_tools | 2e014cd4838c66c607e2156cc8e140bdcc67e272 | 91b49a497766571a7e9fbff8984ddbae8835acce | refs/heads/master | 2021-01-17T20:27:07.947944 | 2013-10-27T00:59:45 | 2013-10-27T00:59:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,413 | py | import argparse, shutil
import re
import struct
import traceback
import xml.dom.minidom
import zipfile
import math
import os
import sys
import Image
from clint.textui import progress
import ImageDraw
import optimizeimage
import tempfile
import re
import pysvn
from StringIO import StringIO
from collections import named... | [
"johann.seidenz@kleientertainment.com"
] | johann.seidenz@kleientertainment.com |
83354a437beb6548a12a3d93e692113990bae9ec | 65230b119b18138a75be6163eb943e0e787a746b | /src/algorithms/02/InsertSort.py | 3ddf9a08d3e29db9246c4a690551a9cb7970567a | [] | no_license | yutakahashi114/python_lesson | 97c814d9a919f91392d3cc549beb5d0cc28ae605 | 15af5631fba8506210ed79e19cba0926ecd8450f | refs/heads/master | 2020-03-31T08:23:53.348284 | 2019-09-09T01:13:34 | 2019-09-09T01:13:34 | 152,055,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | def insert_sort(array):
length = len(array)
for j in range(1, length):
key = array[j]
i = j - 1
while i >= 0 and array[i] > key:
array[i + 1] = array[i]
i -= 1
array[i + 1] = key
return array
array = [5, 2, 4, 6, 1, 3]
print(insert_sort(array))
| [
"yu_takahashi@innovation.co.jp"
] | yu_takahashi@innovation.co.jp |
9deb543e3c87d57783d0fbec3551d926275e94b4 | 1cbe5354da423041dc23621c67c206c9f1ae96b3 | /Source/os_sim/proc_sch/urls.py | 5f7c8289a67838ad30e58ad1fd4569b544ff8a9d | [] | no_license | ayush113/OS-Simulator | 4bf4b42f34f15976d926b43439695fc089426b76 | 3bba2891c8e5d84bb95ccaa72980da0326a77448 | refs/heads/master | 2021-03-19T15:31:38.355198 | 2018-04-11T12:09:54 | 2018-04-11T12:09:54 | 123,108,876 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from django.urls import path
from . import views
urlpatterns = [
path('scheduling/',views.fcfsi,name='scheduling'),
path('processing/',views.processing,name='process'),
path('processing/result',views.res,name='res')
]
| [
"ayush.kumar1999@gmail.com"
] | ayush.kumar1999@gmail.com |
a4ffc49df15347d8c0948d0b80f3b236187096a3 | ca51c80b7d99ddd9bcc69aec4e22fa79e007d1cb | /runserver.py | 672a2c45e07bbf8ad833327423ccbe631febbaed | [] | no_license | ussenko2017/hostimanLogin | f19ea35dc3075fd8cc168851cfef276725ef9cb4 | e1bddb8db7ba8825fb6b83fb8ece3fc799519403 | refs/heads/master | 2020-04-16T17:34:26.986722 | 2019-01-16T04:47:51 | 2019-01-16T04:47:51 | 165,780,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | # -*- coding: utf-8 -*-
"""
This script runs the Flask application using a development server.
"""
from flask import render_template, g
from Flask import app
import flask
import requests
is_user = True
name = 'Руслан Коломиец'
photo = 'https://pp.userapi.com/c849424/v849424371/4e998/j4wIK7nuN9Y.jpg?ava=1'
@app.be... | [
"ussenko2017@mail.ru"
] | ussenko2017@mail.ru |
68925b4564befdddd31394c273109dd42e88fa3a | 2027ddc0aa1abc7b16382eb907fffa8150c899f2 | /vphhf_rest/sms/migrations/0002_auto_20141230_1750.py | ffb28c3f57daa6b093b4ec7c9863ea836a714ea8 | [] | no_license | dtesti/vphhf_rest | ed812a41a62f30f9197a399a125a82690d63193d | 630c7e155a98cd481417e9ba4e4aa38af476b4fb | refs/heads/master | 2020-12-30T10:50:26.308261 | 2015-01-07T16:55:37 | 2015-01-07T16:55:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('sms', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"s.bna@scsitaly.com"
] | s.bna@scsitaly.com |
eadf86477e07dc6fcb83e07e480e090199897cee | e43e8bd052a613f158e29339aaa7e3bdec40b6fb | /models/faster_rcnn_inception_resnet_v2_keras_feature_extractor_test.py | a3c33c28e62db57565d0119cf742f97bb5d8df3d | [] | no_license | sakshijain032/Harmful-Object-Detection | 249f586ffbc7de99f6647689bae230f3b79694b3 | 8e1711fc1596b451f97b5ff2f7690453a888c848 | refs/heads/master | 2022-12-24T18:40:41.795010 | 2020-10-01T17:34:42 | 2020-10-01T17:34:42 | 293,727,797 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,612 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"sakshijain032@gmail.com"
] | sakshijain032@gmail.com |
65140a8ee5c355af403fc04efce30b8bbd016c5f | 809404d52d805dc8540729e67fec64d9b0327a38 | /eknowint/wsgi.py | 831e53f03d988d551278c3b6cd19e30528ce6e29 | [] | no_license | insadolll/what-the-fun | 1a7b9207b7966106785eb0e942ff3c95e5cdd317 | b8216334fd24de96815e5133a59c4f0b7ed8b3ef | refs/heads/master | 2023-06-10T06:22:06.142469 | 2023-06-01T04:42:55 | 2023-06-01T04:45:39 | 240,148,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for eknowint project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"insadolll@gmail.com"
] | insadolll@gmail.com |
78dc4511525e97dd533b1940967724911ec49d65 | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /xlsxwriter/test/table/test_table07.py | 121beef77b97ead58a919c1640b8c21d77b0c360 | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 2,017 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org
#
import unittest
from io import StringIO
from ..helperfunctions import _xml_to_list
from ...table import Tab... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
a50b95c0206314fb3ed778180f11abc4c8c622de | e058b6da46463eb84ff92e4e21557da152fc6b26 | /web_final/venv/Scripts/django-admin.py | 18de8b1e46fcab569dcc71a06fb1e023656f8566 | [] | no_license | SUJEONG999/project_helpr | 7e4b7e9d9e121f5f9fad7e86cda4b4fac10b6ba4 | 891c72fc1da95592553d547dc9d68eef6b0a6982 | refs/heads/master | 2023-05-13T07:30:56.863791 | 2021-06-07T09:24:20 | 2021-06-07T09:24:20 | 366,975,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | #!C:\Users\산하\cloud_msa\융합 프로젝트(애착인형)\venv\Scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py w... | [
"sanhajung3@gmail.com"
] | sanhajung3@gmail.com |
db35495205c2ef902436818e702faffbc7cfb536 | 58ed3103f1e62de1e68ed282804393c1abb51566 | /manage.py | 6f74b92a2d1942cdd6ff6d5e57ed803014f2b2cd | [] | no_license | nielslerches/autonomousdomain | c942908e53d0fd2c8e476253c28c7f6fba0310e5 | 215000f0415f44fe35803debd8d71bb3420ef123 | refs/heads/master | 2021-09-23T12:22:56.336115 | 2019-12-28T21:04:55 | 2019-12-28T21:04:55 | 229,136,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "autonomousdomain.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"nieslerches@gmail.com"
] | nieslerches@gmail.com |
d0a334ca6c19f583a7c9f4aa5a63c23ce53c9460 | 077a17b286bdd6c427c325f196eb6e16b30c257e | /00_BofVar-unit-tests/07_64/remenissions-work/exploit-BofVar-1.py | 3e5efa3d0d010a0028daecc2f04b08bca5fc6cab | [] | no_license | KurSh/remenissions_test | 626daf6e923459b44b82521aa4cb944aad0dbced | 9dec8085b62a446f7562adfeccf70f8bfcdbb738 | refs/heads/master | 2023-07-08T20:25:04.823318 | 2020-10-05T06:45:16 | 2020-10-05T06:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | from pwn import *
import time
import sys
import signal
import sf
target = process("./chall-test_BofVar-07-x64")
gdb.attach(target, execute="verify_exploit")
bof_payload = sf.BufferOverflow(arch=64)
bof_payload.set_input_start(0x48)
bof_payload.add_int32(0x14, 0xdead)
bof_payload.add_int32(0x10, 0xdeae)
bof_payload.a... | [
"ryancmeinke@gmail.com"
] | ryancmeinke@gmail.com |
8c4e64c21dc7e99674fd68426abf06987746110c | 35b4443ff1e66cc8ff58143eaa3e21e59461bc6e | /matrix.py | 4d07e0f6ceb7d0a96f42614a5902904cca1c7a15 | [
"Apache-2.0"
] | permissive | pqlx/matrix.py | 4b0662788d7636487252c970cbf59b3d88a2ebbc | 8f8f08d8f0191596eb0a3782665901e7978de989 | refs/heads/master | 2021-10-23T00:36:12.666754 | 2019-03-14T00:02:43 | 2019-03-14T00:02:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,174 | py | from typing import *
from numbers import Number
from collections import namedtuple
import copy
Dimensions = namedtuple('Dimensions', ['rows', 'cols'])
DimensionsType = Union[Dimensions, Tuple[int, int]]
class Matrix():
def clone_switch(default: bool):
def _clone_switch(in_place_function: Cal... | [
"pql@cock.li"
] | pql@cock.li |
e67b5fb7b87600d4ea88e9844189b19dc73ba4f2 | e0aa0f3608babba37efd2fa1e9e3c43a55d02aec | /manage.py | ebbdbf3ac310d4fcb5a2582a79719acc1c51e043 | [] | no_license | AadamBari/WorldHealthStatus | 602ff57ba8b90ffa93c63573f0d90995076fdc32 | 4227ebf0a7ed25be59ad8674f449f22a5dcf68ce | refs/heads/master | 2020-03-23T15:28:22.921990 | 2018-09-02T21:56:51 | 2018-09-02T21:56:51 | 141,750,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "world_health_status.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import ... | [
"aadambari@msn.com"
] | aadambari@msn.com |
608807c992a9013012f15cc155633e8b5c4914f0 | e84c1687b3467b7545d41de182eaf37cdcdafb02 | /Password_Problem.py | c25c1c61249d418ac4fd34ce44dfb90d206e7192 | [] | no_license | AmruthaRajendran/Python-Programs | 6a149dc4f5f3a1ee069e3f6391008049c501d5b2 | e96cb21f328bf5aefbc7b3161db8219c4c96069d | refs/heads/master | 2022-12-15T17:31:11.945153 | 2020-09-23T05:19:37 | 2020-09-23T05:19:37 | 275,586,403 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | # This was asked on the SAP Labs online preplacement test.
# Question: you are given two strings from which you have to create a new string which is considered as a password.
# The password should be made by combining the letters from each string in alternate fashion.
# eg: input: abc, def output: adbecf
#Program:
de... | [
"noreply@github.com"
] | noreply@github.com |
7dab67b1eb5922fbc537347904378fbe8a0986af | f84c3885fcff3e1ed5532a3af5f588122f2303dc | /main.py | c1637614d7a0f2e15c85010d6e05b8cbe6f101fe | [] | no_license | tommy-cheng/maqueen_ble | 523837cf7aa990164217de66b5561f641d54eba2 | 7a0debbe28253987d960d702b3358fc04e65b0cd | refs/heads/master | 2022-11-23T02:32:04.307894 | 2020-07-13T01:58:51 | 2020-07-13T01:58:51 | 279,184,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | bluetooth.start_uart_service()
basic.show_leds("""
. . . . .
. . # . .
. # # # .
. . # . .
. . . . .
""")
def on_forever():
pass
basic.forever(on_forever)
| [
"tommy.cfc.cheng@gmail.com"
] | tommy.cfc.cheng@gmail.com |
957a1815ad2ada3a29c9eb24eec13cc9620429df | 981762c42d0bd38410b3e9bc5ad61830492fa776 | /quiz_3/q7.py | 814e7a5d4d3d83e7a5b6e461ea74b69e78e396f9 | [] | no_license | Crispyfries345/COSC264 | 855ba66b33afe02e72235db28634d34cc97a1c96 | 6708be8fc858b9c69ef55763e112be74df2b6f20 | refs/heads/master | 2023-07-11T01:31:47.949297 | 2021-08-24T23:17:18 | 2021-08-24T23:17:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | def packet_transfer_time(
linkLength_km,
speedOfLight_kms,
processingDelay_s,
dataRate_bps,
maxUserDataBitsPerPacket_b,
overheadBitsPerPacket_b,
):
L = linkLength_km
C = speedOfLight_kms
P = processingDelay_s
R = dataRate_bps
S = maxUserDataBitsPerPacket_b
O = overheadBit... | [
"lissington4@gmail.com"
] | lissington4@gmail.com |
b31f2e087a126b2a9b582dd32e0bb4f40cfde091 | eb68003893970fd5cedb684e45e8a5357907efda | /CIFAR100/prune80.py | 1d110432338f048d54b53678863336d5df911d67 | [] | no_license | byh1321/machine-learning-hardware-simulation | 7ffc6dbb7483119ace39694055892378caf19da5 | 165ae42e01877b49d4ebc3656782dc6c70ee16d2 | refs/heads/master | 2021-09-03T20:03:48.770465 | 2018-01-11T15:46:02 | 2018-01-11T15:46:02 | 110,343,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,951 | py | """
some parts of code are extracted from "https://github.com/kuangliu/pytorch-cifar"
I modified some parts for our experiment
"""
from __future__ import print_function
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torchvision.datasets as dset
import torch.backends.cudnn as... | [
"byh1321@naver.com"
] | byh1321@naver.com |
3bea8cbc82e927f833943d15a64c44cf20fdf883 | 2922452546949b20bea34408e3bdc01ef808cbf4 | /recipebox-api-python/config.py | a29cf74bd543dc963cc79af4285b024e68a0ce46 | [] | no_license | andrewpickett/recipebox | 79da4cff5e4fa43a1de6d3e3ddc2cf62ce58c08c | 3a13067c3bafd9eedf6a7451494974349c4805c3 | refs/heads/master | 2021-07-09T08:20:12.173889 | 2019-11-29T15:18:09 | 2019-11-29T15:18:09 | 222,189,266 | 0 | 0 | null | 2021-01-05T17:06:19 | 2019-11-17T03:00:26 | JavaScript | UTF-8 | Python | false | false | 270 | py | config = {
'database': {
'username': 'root',
'password': 'abcd.1234',
'host': 'localhost',
'port': 3306,
'schema': 'recipebox',
'pool_name': 'recipebox_pool',
'pool_size': 3,
'autocommit': True
}
}
| [
"picketta@gmail.com"
] | picketta@gmail.com |
0b802a6bf15d37b29f65026979a35e857f65b674 | 3edb8e25f34b67361bc1010cedff3d79e34e5be0 | /wtorch/data/datapipes/iter/batch.py | 61109556bbd4b5eb11944ad661d3a25ce2547802 | [
"MIT"
] | permissive | vghost2008/wml | 9180a81ddfd1b5d5cc7dc616c7cbe058da168744 | b1c72a9387de44c05d0a1325c9033a0716d410f8 | refs/heads/main | 2023-09-01T18:10:45.407657 | 2023-08-23T06:49:02 | 2023-08-23T06:49:02 | 164,764,670 | 8 | 2 | MIT | 2023-03-24T23:12:34 | 2019-01-09T01:43:00 | Python | UTF-8 | Python | false | false | 4,946 | py | import warnings
from torch.utils.data import IterDataPipe
from typing import TypeVar, Optional, Iterator, List, Sized, Callable
T_co = TypeVar('T_co', covariant=True)
class BatchIterDataPipe(IterDataPipe[List[T_co]]):
r""" :class:`BatchIterDataPipe`.
Iterable DataPipe to create mini-batches of data. An oute... | [
"bluetornado@zju.edu.cn"
] | bluetornado@zju.edu.cn |
ac5afc52b02e6ce750a503d85063c5e8a77cfe4e | cdcf553815405208d620cad0adc45f408724c9b0 | /setup.py | 1f6725459c83ef2c6f9460dd1964c69dda0ee26a | [] | no_license | mlorantdourte/mateo_project | dffdec8be8de93e6ac8ea9a72962429eb9e576e9 | 5f1e9d5bb4e35d157c4cce93cd5696dda73bb476 | refs/heads/master | 2023-06-23T09:46:52.674600 | 2021-07-30T11:25:34 | 2021-07-30T11:25:34 | 391,038,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from setuptools import find_packages
from setuptools import setup
with open('requirements.txt') as f:
content = f.readlines()
requirements = [x.strip() for x in content if 'git+' not in x]
setup(name='mateo_project',
version="1.0",
description="Project Description",
packages=find_packages(),
... | [
"mateo.lorant@gmail.com"
] | mateo.lorant@gmail.com |
f04aad501a4c93eeee5ef50b4c8b0854377c628d | 50230af8070c3719606065c8826a29e5a01487d2 | /QuickSort_full.py | 908178bd9a07ec6c3751921e207c6f034ee7b859 | [] | no_license | shinequasar/QuickSort | 98fd533d3fd18b900fa955767b7dfaad5bbcdc92 | 913f9b2aa77ceb7e8c3ca51fdc77bbb127c38962 | refs/heads/master | 2022-12-04T13:36:51.664676 | 2020-08-14T19:48:41 | 2020-08-14T19:48:41 | 286,558,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,229 | py | import csv
import random
import time
import sys
def writeFile(file):
f = open(file, "w") # 파일쓰기
wr = csv.writer(f)
num_arr=[]
for i in range(0,1000000): # 백만개의 임의정수
num_arr.append(i)
mixArr(num_arr) #순서 무작위로 섞기
wr.writerow(num_arr)
#print(">> 생성된 임의의 정수 개수 : ",len(num_arr))
f.cl... | [
"shinequasar@gmail.com"
] | shinequasar@gmail.com |
e80fe98866b2f941c97f22856430a914e2d0f0da | 2ea75073b85398cb5b02ea450b389da370b07ef4 | /flymad_jaaba/utilities.py | 3f35b8ed81a35fc8d0bdd94dac22cd5dbc17f2d9 | [] | no_license | dbath/wahnsinn | 34538f95838c1b01bd29e4e6fc326e5a2dec34a2 | 6b4586a1bf8e73eb0a4daf8219c57aae9284b1af | refs/heads/master | 2020-04-12T01:34:25.661654 | 2018-03-28T19:50:53 | 2018-03-28T19:50:53 | 20,540,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,511 | py |
import os, fnmatch
import pandas as pd
import scipy.stats as ss
from pandas import DataFrame
import numpy as np
import glob
import rosbag
import matplotlib.pyplot as plt
from scipy.signal import argrelextrema
import math
import subprocess
import sh
import shutil
def find_files(directory, pattern):
for root, dirs... | [
"danbath@gmail.com"
] | danbath@gmail.com |
e47b4e484bbb7e90f0faf1cd09d2f563e879c1b0 | c7f4c9f51baa46185e39b6d899e3b055100a6e6e | /Machine Learning/ConnectX/submission40k.py | e4beeb0e6a7b78ad77a0de3d13a5bff1fdb209e0 | [] | no_license | JoeHoHo1/UO-Code-Examples | 8461bbb12ff8968a439aa8e9cfcc832a3c216ff7 | aa5270a8186b632c4f6a80fe391135404dc3e5c5 | refs/heads/main | 2023-08-19T22:46:56.697204 | 2021-10-27T13:29:50 | 2021-10-27T13:29:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201,575 | py | def my_agent(observation, configuration):
from random import choice
q_table = {'5':2,'1f4':1,'1086b9':3,'108776':3,'2a191f9':0,'1':1,'1ea':3,'3db7':6,'1b62566':3,'1ff2181':0,'e9ee911ce':0,'b':2,'5c0':2,'1727':0,'6440':1,'9274d3':0,'19e0ee4':5,'7f7':2,'1f58':5,'20ed':4,'e07b4e':4,'892':1,'92025d':3,'c2c3a4':1,'... | [
"joej@uoregon.edu"
] | joej@uoregon.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.