blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e0d5509edde2bc597a60a52985623e184213d1fb | 8925916f67b9b77290020c932d97314a284d0595 | /contrib/spendfrom/spendfrom.py | 6765e86936b351c633817fea871d6398e2e214b0 | [
"MIT"
] | permissive | btcnode/btcnode | 57c44726c6e289b893d07fde9146457c984324ab | c5005ee73e5e640e3a24a9c5648d20a30671652b | refs/heads/master | 2023-04-05T04:11:07.691316 | 2021-03-19T22:12:37 | 2021-03-19T22:12:37 | 349,072,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,032 | py | #!/usr/bin/env python
#
# Use the raw transactions API to spend BTNs received on particular addresses,
# and send any change back to that same address.
#
# Example usage:
# spendfrom.py # Lists available funds
# spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00
#
# Assumes it will talk to a btcnoded or btcnode... | [
"root@vmi546684.contaboserver.net"
] | root@vmi546684.contaboserver.net |
376e21623d3fc2c5d5c28e523d7aebd69a3d0cb9 | 54869fe38624f1c4338f8dc5dd5f0d89aa17c9e4 | /p02.py | 09a6e54ab7e48ccdcf3c8f292f157dc5bbaa7bcc | [] | no_license | qoqosz/Advent-of-Code-2020 | d3b3512eb3b59b7404189ad094a2cc3b8ddb07be | e27928482e8fc9f30aea3fed21e11f8d8743431d | refs/heads/master | 2023-02-05T22:17:45.767109 | 2020-12-24T21:20:57 | 2020-12-24T21:21:06 | 318,346,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from collections import Counter
p1_count, p2_count = 0, 0
with open('p02.txt') as f:
for line in f:
rng, char, text = line.split(' ')
min_, max_ = map(int, rng.split('-'))
char = char.strip(':')
counter = Counter(text)
if min_ <= counter[char] <= max_:
p1_count... | [
"lukasz@bednarski.me"
] | lukasz@bednarski.me |
0846c0ba23ee639e01b60dbedf18499542be341e | 0156fd64d89df94c1f7fdb6003a11272a24e987e | /divineai1/manage.py | c3d5d325963809a3971f1249582a433cdcf6c1dc | [] | no_license | Vengers-Ritam/divineplatform | 96b7f762188417ccf69586711abb1b6fbf3533b5 | b25fdb3fc4e96bbe328b9d3c7f5ef390202ed8c6 | refs/heads/master | 2023-04-24T05:00:08.594565 | 2021-05-03T11:23:43 | 2021-05-03T11:23:43 | 363,904,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | 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', 'divineai1.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"ritammoharana32@gmail.com"
] | ritammoharana32@gmail.com |
8ab3356264d79c13893cbd6fbacaabfc53946f25 | 55be4a49ed1cd1b8b7b0ac2e6fa55aa58c180e15 | /ICS 32/Project 4/test_project4.py | 490730e4bd9f5d19726a62c27289657fd2313e99 | [] | no_license | rvcervan/ICS-32-Projects-Python | bc64abda6ea20f63542bd121f1161d31d23a2d42 | ec01343708028fbe07fc95dc229bd111c12c3836 | refs/heads/main | 2023-07-01T16:41:48.506241 | 2021-08-09T05:13:24 | 2021-08-09T05:13:24 | 394,155,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,133 | py | import mechanics
import unittest
class GameTest(unittest.TestCase):
def setUp(self):
self._game = mechanics.Game([[' ', ' ',' '],
[' ', ' ',' '],
[' ', ' ',' '],
[' '... | [
"noreply@github.com"
] | rvcervan.noreply@github.com |
3890719b1de619a46527dd653f3b42ca89a5dcb1 | 430cfece27c54180baf29b3199a67f79fe7d155c | /pygmt/tests/test_grdimage.py | 5ad3913c5bef4b786a5d1de55c30b647ec31619e | [
"BSD-3-Clause"
] | permissive | JamieJQuinn/pygmt | 139f25a3f4280b2d2d43c3fa63179437a9227d31 | 9269fbcb2fc7fca2d5c412acdb794be375c260ab | refs/heads/main | 2023-08-24T16:19:27.673739 | 2021-10-29T09:51:44 | 2021-10-29T09:51:44 | 384,119,354 | 0 | 0 | BSD-3-Clause | 2021-07-08T12:37:21 | 2021-07-08T12:37:21 | null | UTF-8 | Python | false | false | 7,213 | py | """
Test Figure.grdimage.
"""
import numpy as np
import pytest
import xarray as xr
from pygmt import Figure
from pygmt.datasets import load_earth_relief
from pygmt.exceptions import GMTInvalidInput
from pygmt.helpers.testing import check_figures_equal
@pytest.fixture(scope="module", name="grid")
def fixture_grid():
... | [
"noreply@github.com"
] | JamieJQuinn.noreply@github.com |
fdbc95d9a4ad946af1d4b66ea9d2b9a58fc8e2e4 | 4dc91b14630d507d32ec75c7c099ba3576b07232 | /TopAnalysis/scripts/KinAlg4tree.py | 10f69e8216a75bc8d47b8372486a19bc4053939d | [] | no_license | beatrizlopes/TopLJets | 6b62ccfd5249f6d0d06c04a487e638958df229af | 198250ab1eae8a6a11b66dad626a827f46ec0092 | refs/heads/master | 2023-06-21T20:10:46.840262 | 2019-08-01T10:44:01 | 2019-08-01T10:44:01 | 198,248,791 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,138 | py | import ROOT
import optparse
import json
import sys
import os
import numpy as np
from array import array
from TopLJets2015.TopAnalysis.storeTools import getEOSlslist
from TopLJets2015.TopAnalysis.nuSolutions import *
""" ... | [
"bribeiro@cern.ch"
] | bribeiro@cern.ch |
b2c89f08137187610f4e4c87d7926691feebaf94 | e10513e1ef7d195a051befb6c829b27a0cf685c2 | /core/utils/resume.py | 39fc888d1e92b31d15ad1e50ee51e359c3d01d89 | [] | no_license | kirenng/image-caption | 5293409a4dca0ed225f3ec342a244ea5c0a49a60 | 78b521f306aac3fc02bb051be0e906108f98f7dd | refs/heads/master | 2023-07-06T11:34:23.420494 | 2021-08-13T09:55:19 | 2021-08-13T09:55:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | import os
import torch
def resume_from_checkpoint(args, model, optimizer, best_acc1):
if os.path.isfile(args.resume):
print("=> loading checkpoint '{}'".format(args.resume))
if args.gpu is None:
checkpoint = torch.load(args.resume)
else:
# Map models to be loaded t... | [
"3280867946@qq.com"
] | 3280867946@qq.com |
243b30d8a04317b70aab7c0bbadabf27a895a4a2 | 480a175ab2b3c012af2d1cddb79674fad1490fe5 | /0x08-python-more_classes/tests/main.2.py | 2cb60d1c599573c08cc695829729fe51c64ab27d | [] | no_license | ianliu-johnston/holbertonschool-higher_level_programming | a8a6476fc6a7ac0bd8ae300f2196f17c13e1b36f | f6a7c9cddb2482991c2aadacb99aa66e64eb50eb | refs/heads/master | 2021-04-29T11:12:56.820851 | 2017-05-10T00:48:17 | 2017-05-10T00:48:17 | 77,854,226 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | #!/usr/bin/python3
Rectangle = __import__('2-rectangle').Rectangle
new_rect = Rectangle(3, 4)
print("Dimensions of your new rectangle: {} x {}".format(new_rect.width, new_rect.height))
print("Area: {}".format(new_rect.area()))
print("Perimeter: {}".format(new_rect.perimeter()))
new_rect.width = 5
print("Width just c... | [
"ian.liu-johnson@holbertonschool.com"
] | ian.liu-johnson@holbertonschool.com |
702e93ec385bbb5567fec0ac4ca70cf08f9f04db | 7dbcf66e47684c652f9d90a47b2381cf846e003d | /pkg/Conf.py | d8e12155528eb0090ab0006f88fcc253282e3ede | [] | no_license | hlanSmart/simple | 531b9a8be524d29c43016c865f64132aa4bf3069 | c8536edd4cec1f39e23a5ff35ae16f0efa15f323 | refs/heads/master | 2020-12-27T08:24:04.383170 | 2016-09-22T04:29:44 | 2016-09-22T04:29:44 | 68,556,669 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | #!/usr/bin/python
#coding:utf-8
import os,yaml
BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
def readServer(sg,sl=False): #sg ServerGroup 服务器组 sl ServerList 组列表
with open(os.path.join(BASE_PATH,'etc/server.yml'),'r') as f:
server=yaml.load(f)
if sl: ... | [
"root@localhost"
] | root@localhost |
9d9f3f8f6419b9565b74b794fce0b1e7d24d7632 | f08f7e4da3cb83257bbeb6cf198e23ac65d91fd0 | /안준혁/[21.07.19]1065.py | fed3c18cdb8c06b5c269118c09f0dc7e99e0b152 | [] | no_license | 4RG0S/2021-Summer-Jookgorithm | cabcd2071b88510ac22a971ed600e7b4645eb5f2 | bf23a3a0f2679bcd47c825247d57998eb23c1df8 | refs/heads/main | 2023-07-17T06:49:17.165893 | 2021-09-06T09:49:36 | 2021-09-06T09:49:36 | 384,205,067 | 1 | 1 | null | 2021-07-14T05:46:52 | 2021-07-08T17:44:15 | Java | UTF-8 | Python | false | false | 324 | py | n = int(input())
count = 0
for i in range(1, n+1):
if i < 100:
count += 1
elif 100 < i < 1000:
first = i % 10
second = int(i / 10) % 10
third = int(i / 100)
comp1 = first - second
comp2 = second - third
if comp1 == comp2:
count += 1
print(co... | [
"ajh99345@gmail.com"
] | ajh99345@gmail.com |
adc821f5df6ddc1460050390a5807ed3f8662942 | d165d718b2a5e4b18f9b52054e1f5d382d72be03 | /0x04-python-more_data_structures/5-number_keys.py | ca851394809637d9e4344d5ff96907b884f2f1f7 | [] | no_license | Fabian-Andres/holbertonschool-higher_level_programming | f1b67fd28fb135c84ed9b3240d66ef125a043e00 | 0b08e2f3c4a798dd0cce1a9776304c74ad0b6ba3 | refs/heads/master | 2022-12-16T04:56:11.222686 | 2020-09-25T04:47:02 | 2020-09-25T04:47:34 | 259,423,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | #!/usr/bin/python3
def number_keys(a_dictionary):
no_keys = 0
for i in range(len(a_dictionary)):
no_keys += 1
return no_keys
| [
"f4bian.andres@gmail.com"
] | f4bian.andres@gmail.com |
36c88c84948b0dd704090817ec765ae54204629c | 0c5ce271c857d067c77d268c8cd6a0b1c0f70e11 | /app.py | 569b218bc98727dac4ed4a5cac32baa944672cea | [] | no_license | Eduardo-JReis/translate-script | 0b1723a58204885734d6d235fdafc7abe0e71c83 | 5ad6e0d2311e7dad938af300feb55b82f6f0622d | refs/heads/master | 2023-01-12T20:06:20.265520 | 2020-11-22T11:17:08 | 2020-11-22T11:17:08 | 315,018,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # import googletrans as gt
from googletrans import Translator
# print(gt.LANGUAGES)
trans = Translator()
test = True
while test:
word = str(input('Digite a palavra: '))
print()
res = trans.translate(word, dest='pt')
print(res.text)
if word == 'esc':
test = False
| [
"edu.publicidade81@gmail.com"
] | edu.publicidade81@gmail.com |
c2bb14d7ae24c97ce9e538b563179a0fb27d3f71 | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/77d922e63877a9db19d31d69878e680aa58a54c85eee51673bc8bfa5abec9462/cython_runtime.py | f0626603901297c264822be8e70b80c27bee933e | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | # encoding: utf-8
# module cython_runtime
# from C:\Users\Doly\Anaconda3\lib\site-packages\scipy\stats\statlib.cp37-win_amd64.pyd
# by generator 1.147
# no doc
# no imports
# Variables with simple values
__loader__ = None
__spec__ = None
# no functions
# no classes
| [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
9f03d7bd8bcc479327be64dc54ad22ec87c35ae7 | a0990640cb7d2b93262af982185f98ff0b0addbc | /2021-05-13_vibe+/frame2video.py | 69e25c19525fd94f91b15ce947fdf445fb7de784 | [] | no_license | chgex/Others | c320bff96aa85fa3127092f7e2a433801fbb62ea | 2a8970474bd7c78aa40a7e6f4135192c2972a334 | refs/heads/main | 2023-04-24T09:48:56.475389 | 2021-05-18T10:11:13 | 2021-05-18T10:11:13 | 366,975,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,401 | py | '''
Author: liubai
Date: 2021-04-22
LastEditTime: 2021-04-22
'''
import cv2
import os
# 图片重命名
def imageRename(image_path):
image_list=os.listdir(image_path)
total=len(image_list)
# 第一张图片
cnt=1
for i in range(1,total+1):
old_image_name=image_path + '/' + str(i) + '.jpg'
... | [
"noreply@github.com"
] | chgex.noreply@github.com |
7688e234fa65ebe9a7d4ff0798517fcd1f8b8b52 | 6b7f81afdb9983664d12a9fc54452dd48ed5779a | /env/bin/python-config | 3f755f3f8c33a751286ee92004eaaa4bc470a0c0 | [] | no_license | Wilians001/axf | 502fcf91d737f2901572c6dd59ff3e9c81615412 | fb4c41c01a23c5dd0f64e4c2f61c0a042cb72935 | refs/heads/master | 2020-03-31T07:43:32.643230 | 2018-10-08T12:02:25 | 2018-10-08T12:02:25 | 152,032,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | #!/home/wilians/axf/env/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.version_info >= (3, ... | [
"1518209084@qq.com"
] | 1518209084@qq.com | |
e4d3b1c290b0ee2787f51f3bb625a45c1c113234 | 6daa3815511b1eb1f4ff3a40b7e9332fab38b8ef | /tastesavant/taste/apps/profiles/migrations/0010_auto__add_field_profile_preferred_site__chg_field_profile_user.py | f631b68b525621e7885479041e53e8ea8b703f7e | [] | no_license | kaizensoze/archived-projects | 76db01309453606e6b7dd9d2ff926cfee42bcb05 | d39ac099cb40131bac5de66bde7d0e2db5f74189 | refs/heads/master | 2021-05-31T12:16:17.800730 | 2016-02-23T00:27:56 | 2016-02-23T00:27:56 | 14,407,212 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,513 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Profile.preferred_site'
# The default value, 3, should refer to the NYC site.
db.add... | [
"gallo.j@gmail.com"
] | gallo.j@gmail.com |
e917e03d7e2392418e4b1f02d89aec290dda311a | 9ef2c82ae61064c4f78798f04ab3310e7f5e4629 | /tests/test_prepare_data.py | 3a97f2cc09d08dbc04605095acef5c508ca0f788 | [
"BSD-3-Clause"
] | permissive | chenxofhit/cirrocumulus | b999d49afc024c30e61fbc6905c968f71714291e | 18ee1264303138cbba8ff34318f90f0e2619dc13 | refs/heads/master | 2023-03-17T15:23:02.935136 | 2021-03-16T20:01:02 | 2021-03-16T20:01:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | import fsspec
import pandas as pd
import scipy
from cirrocumulus.embedding_aggregator import get_basis
from cirrocumulus.parquet_dataset import ParquetDataset
from cirrocumulus.prepare_data import PrepareData
def test_prepare(test_data, measures, dimensions, continuous_obs, basis, tmp_path):
output_dir = str(tmp... | [
"jgould@broadinstitute.org"
] | jgould@broadinstitute.org |
ad784210df07d410b4d9d0b3795e111aa61b9193 | b7453e5a2700f2017a6f783eaf3990ee2486cd65 | /test/utils/test_clean_identity.py | 54c6c0a2df4ef8f53c92989877f93ce940c57635 | [
"Apache-2.0"
] | permissive | LaRiffle/cleaning-scripts | 8525164cca8336b67a2362d6907414e27ca088fa | 08f360721056d30befe8d58ded583a4a5d126184 | refs/heads/master | 2020-07-28T06:52:47.673033 | 2019-11-19T15:26:19 | 2019-11-19T15:26:19 | 209,343,798 | 0 | 0 | Apache-2.0 | 2019-09-20T13:13:25 | 2019-09-18T15:33:16 | Python | UTF-8 | Python | false | false | 233 | py | from scripts import utils
def test_clean_identity():
assert utils.clean_identity(None) == ""
assert utils.clean_identity("NaN") == ""
row_input = "Holà chicanos"
assert utils.clean_identity(row_input) == row_input
| [
"theo.leffyr@gmail.com"
] | theo.leffyr@gmail.com |
1b5cd48ff39ee1da8dbaf2f526d75d0746e5c1e6 | f1d9df04036fc43c9e5cc7998b83261f4daa94b8 | /management_commands/insert_base_data.py | cf87a7c11fd7db6f4e396e72c0e9d41bce402ce1 | [] | no_license | Eaterator/web | 019eb6547995be30b3468e5c44ecc52f05858fb4 | 9c598607f76ad770c66d85c47ffcec05f92f4d66 | refs/heads/master | 2021-01-09T20:30:13.417308 | 2017-04-25T02:44:35 | 2017-04-25T02:44:35 | 81,286,177 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | from application.auth.models import Role
from application.recipe.models import Source
from application.base_models import db
def insert_role_data():
roles = [
{
'name': 'regular',
'type_': 'consumer',
'is_admin': False
},
{
'name': 'corporate... | [
"currahl@yahoo.ca"
] | currahl@yahoo.ca |
d85cf1dc2e0922928193d390f42218e83afbb210 | 35665123a96d6e97deb9f2e8761e0415ea9eb620 | /Mean_Stddev_Calculator.py | fbfae1a14808b211dad6b083ae78c28d4bcb83d7 | [] | no_license | ArvindSinghRawat/TransportModeDetection | 8f7eee3608a1bca612477c3b746cd893ad404986 | 5cfb7a9c735b07f4d0f5b7103f3f6a429c2369a5 | refs/heads/master | 2020-05-20T14:51:18.116449 | 2019-05-08T17:04:54 | 2019-05-08T17:04:54 | 185,630,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | import pandas as pd
import numpy as np
import csv
def desc(path="data/Arvind 2000.csv",cname = "speed (m/s)",export=False):
data = pd.read_csv(path)[cname]
d = dict()
data = data.fillna(0)
d['Mean'] = data.mean()
dq = np.percentile(data,(0,25,50,75,100))
d['Min'] = dq[0]
d['1Q'] = ... | [
"noreply@github.com"
] | ArvindSinghRawat.noreply@github.com |
5eec040553e54df0d88d4c9465f5455d57ba102b | c215d282844bad35d026d4bb65be37d6a46100d0 | /recommender.py | 77268f472da0b964fd00a03208dd585aaca85777 | [] | no_license | informal-economy/backend | d0823310c5997647bada0de374d6132b8d23e724 | 8657e831473e03450cc38a242d8aa75951a73ee5 | refs/heads/master | 2021-05-17T16:22:35.107644 | 2020-03-29T15:05:29 | 2020-03-29T15:05:29 | 250,869,504 | 0 | 0 | null | 2021-03-20T03:14:24 | 2020-03-28T18:47:47 | Python | UTF-8 | Python | false | false | 8,886 | py | import lenskit.datasets as ds
import pandas as pd
import csv
from lenskit.algorithms import Recommender
from lenskit.algorithms.user_knn import UserUser
#The function input x is the user specific input .csv file that has the columns:
#item,title,genres,ratings
#which is equivalent to
#jobId,jobtitle,jobcategory,rat... | [
"egetenmeyer@Nikolas-MacBook-Pro.local"
] | egetenmeyer@Nikolas-MacBook-Pro.local |
74c451e67b80b2f8cba3e0eac1b09d2eedf46702 | 2eff698abfad7693e61bc942de619c5abe7dd270 | /PyPoll.py | 1683debe67677fc4bc61c39ab1d0e1a47ff942a3 | [] | no_license | zanelouis/Election_Analysis | ff894d228777a465e5cd0b328538267722cc0624 | 4353f566826eabea5176d83051ca3dcbba6524ca | refs/heads/main | 2023-01-07T20:59:15.794899 | 2020-11-04T00:01:20 | 2020-11-04T00:01:20 | 300,511,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,043 | py | # Add our dependencies.
import csv
import os
# Assign a variable to load a file from a path.
file_to_load = os.path.join("Resources", "election_results.csv")
# Assign a variable to save the file to a path.
file_to_save = os.path.join("Analysis", "election_analysis.txt")
# Initialize a total vote counter.
tota... | [
"noreply@github.com"
] | zanelouis.noreply@github.com |
740f614b0665f2538f1e0cc1c16f2877b2961e47 | e3393d4d4bdf6684bfba47817e60f96c69ec9475 | /utils.py | e5e14bd563560eb049fb0d71e1e6075e2ae90dba | [] | no_license | INFO3401/problem-set-three-brru7260 | 402f9f38e15c8e0ca115c9be338ee48597ae89d8 | e80c26e2ee33de14439c664717674a91c686e40a | refs/heads/master | 2021-01-09T04:01:48.068480 | 2020-02-24T04:09:39 | 2020-02-24T04:09:39 | 242,239,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # from utils import *
# import pandas as pd
import pandas as pd
def loadAndCleanData():
item = pd.read_csv("creditData.csv")
data = item.fillna(0)
print(data)
loadAndCleanData()
# def computerProbability(feature,bin,data):
# count = 0.0
# # count the number of datapoints in the bin
# for datapoint in da... | [
"noreply@github.com"
] | INFO3401.noreply@github.com |
d74da5f980c51f8a87e1f3491b38cb906651ba91 | 995c52ad5a0a3039ad37a4d2f07b06dcbbcf3961 | /tantalus/migrations/0059_auto_20180810_1837.py | f4ba3f19bfd13e80fa47e558107374b522b8b533 | [] | no_license | nafabrar/tantalus | d02cce3923205191f00b30e80152a0be7c091d6a | d8552d40472c29bc617b45a1edaf87c6624b824d | refs/heads/master | 2022-12-24T15:53:52.034999 | 2020-10-07T22:26:35 | 2020-10-07T22:26:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-10 18:37
from __future__ import unicode_literals
from django.db import migrations
def populate_sequence_file_info(apps, schema_editor):
FileResource = apps.get_model('tantalus', 'FileResource')
SequenceFileInfo = apps.get_model('tantalus', 'Seq... | [
"andrew.mcpherson@gmail.com"
] | andrew.mcpherson@gmail.com |
fe469f3699ada32088a48d4a15051399450c03c8 | e211657b291dbcb21ed6c587275ff7168e8413f3 | /models/sys_trans_sp_multi.py | 7031132db7a25e66d621263bc6d8f743484a1c9a | [] | no_license | jehovahxu/chan | b64b84a96983dc956e746217fb51451d55ea6d1d | 572060b45f4a79e09e796ba671851de693817fc2 | refs/heads/master | 2020-12-02T05:31:20.537309 | 2020-03-14T15:34:57 | 2020-03-14T15:34:57 | 230,905,070 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,192 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 18-12-26 下午3:13
# @Author : Jehovah
# @File : systhesis.py
# @Software: PyCharm
import torch
import torch.nn as nn
class Sys_Generator(nn.Module):
def __init__(self, input_nc, output_nc, ngf=64):
super(Sys_Generator, self).__init__()
... | [
"361857031@qq.com"
] | 361857031@qq.com |
4148112130c6689e5dadc5cb5afc4ff302c3485c | e4d9141385ace7f178752469aa3f299cc3ffc6a6 | /docs/source/conf.py | 52d04fd1d5650935005a8bf7ac4e548a117dc1ed | [
"CC-BY-4.0",
"MIT"
] | permissive | AJAlabs/kb | 44924806fd2d7059fa89377cd650859fd934166d | 9d4f13a53ae08616dae6d5560113b0a27881387b | refs/heads/master | 2020-04-18T18:51:24.751102 | 2019-01-26T22:14:56 | 2019-01-26T22:14:56 | 167,696,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,440 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"aj@ajalabs.com"
] | aj@ajalabs.com |
1b345f16fe41c4e6c2b77186c46547b36c175f00 | 72d344286f15d794f08c6964bf3a310fe86c2f67 | /TP05/TP01.py | 2907b88d09c272e37dd6f11d4993647eaade0128 | [] | no_license | boua615/Tps01 | c240330967cf4aa79491d75bbb4c82742cd88cae | 8c9c06312c1b2b949fb86518758a0c0940d3bcc6 | refs/heads/master | 2021-02-12T07:03:56.862122 | 2020-03-05T03:05:12 | 2020-03-05T03:05:12 | 244,570,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | #!/usr/bin/env python
#- * -coding: utf - 8 - * -##TP01.py##
DATA_FILE = 'annuaire-v0.2.xml'
import xml.dom.minidom as minidom
import sys
def main():
try:
xmldoc=minidom.parse(DATA_FILE)
except:
print("Can't Open the file")
sys.exit()
print(xmldoc.toxml())
treat_doc(x... | [
"noreply@github.com"
] | boua615.noreply@github.com |
9b9a14f2985d9dd1d7bc6ef666b5d40a2a9a5256 | a7e0784b697b6c57920e16e2f54ea0ed2225c0e0 | /data/clingen_raw_to_training.py | 47d0357cb8921e5915cdc80d02e9879fcf3e88c3 | [] | no_license | rumeysa77/ClinGenML | 17e1a3786b8711387a61707252307aab13e682c5 | c3bf6fbf7d0fe6c1311ce0fcfb4e26d8331bbc7d | refs/heads/master | 2023-03-22T04:41:40.669592 | 2021-02-24T09:04:29 | 2021-02-24T09:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,815 | py | """
This file processes the raw excel sheet and extract data
"""
import time
import csv
from collections import defaultdict
from Bio import Entrez
from pathlib import Path
import unicodedata
def _is_whitespace(char):
"""Checks whether `chars` is a whitespace character."""
# \t, \n, and \r are technically contorl... | [
"leo.niecn@gmail.com"
] | leo.niecn@gmail.com |
d834840becfb2b4385634a3d1ae576a2f68a0bac | aa57a888c83252f3e57b5d8f7e61f7c1fe807156 | /lfd_hw7/HW7_testing_q8.py | e85c15091ca0dd5d455d06290b3c39eab03cf8f0 | [
"MIT"
] | permissive | mosmar99/machine-learning-mooc-caltech | 178a88a237078347eba2c76bbd05c2b7b9b6726c | deca978e13f6d6950f06417c4d520e71904962d7 | refs/heads/main | 2023-07-13T20:36:43.217778 | 2021-09-04T08:28:07 | 2021-09-04T08:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | # -*- coding: utf-8 -*-
"""
Created on: Wed Jul 7 15:30:17 2021
@author: Mahmut Osmanovic
"""
import matplotlib.pyplot as plt
S = 1
P = 6
S_B_P = 0
its = 5
while its:
print(S, P)
S_B_P += (S > P)
S += 1
P -= 1
its -= 1
print("ANS =", S_B_P)
plt.plot([-1, 1], [-1,1]) | [
"47375043+MahmutOsmanovic@users.noreply.github.com"
] | 47375043+MahmutOsmanovic@users.noreply.github.com |
5c903175d4a7365e542f92cbcead2a25f9846e4c | 128420970c272be8d3b374dbfc9687ab0824bc2b | /blog/migrations/0002_comment.py | 57087759a8a568a2f6018d073aa5fc2e52b43604 | [] | no_license | ZsZJ/django-blog | 2330a8aeb97d005cea592ab3e8d37b0b47575db8 | 8862936dbc744e19166b8f7d26ccf725f6d70a60 | refs/heads/master | 2020-05-14T20:00:07.958381 | 2019-04-17T23:05:42 | 2019-04-17T23:05:42 | 181,938,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | # Generated by Django 2.0.13 on 2019-04-17 22:39
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"ktj.lim@gmail.com"
] | ktj.lim@gmail.com |
cdb47a6903ec47437a630d38f1c3ff0a42120182 | 29061a9fe7701581facbd7eb5066a05c6e3e8878 | /fptl_types/__init__.py | db20bc1028a22b8848897fb7bc16f46e01733ea9 | [] | no_license | ivan-bocharov/fptl-inferer | 4f629da3b4276c2cc20beb4b656a575fcd8887bc | 3de88dc2945db6cb3e49eb08bf1c57f1a9a838c4 | refs/heads/master | 2021-05-26T21:14:40.926757 | 2013-08-13T20:01:29 | 2013-08-13T20:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | __author__ = 'ivan-bocharov'
| [
"bocharovia@gmail.com"
] | bocharovia@gmail.com |
5424dc7cc6bf622625e5e0f9736e273cc18d0a4a | 323c59f60860a2dddbecf4c45974bcc80210ae78 | /blog/migrations/0002_post_published_date.py | 300367b7885f65d66c47ebdbc57833f143e1e821 | [] | no_license | rymlassoued/my-first-blog | 5f6157fd422fb09339fe4cb7ac0f23d37d711118 | 1f6022df5c7961b88f8640d2b6359510cb77a2d8 | refs/heads/master | 2021-01-19T00:30:02.990413 | 2017-04-04T17:32:46 | 2017-04-04T17:32:46 | 87,175,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-04 10:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"rlaswed@softcatalyst.com"
] | rlaswed@softcatalyst.com |
f34593fe377603414090a24989aab7c88d64fa51 | f9a579efe76ac5436e767489be6d8143da3c3404 | /src/apps/helper/middleware.py | 5ce48db802e3d4bacbf60bbfc817bebe7a76d41f | [] | no_license | 15879246396/youpai-service | 2c4db15f8a50de4b6b2ff4204898c3e5217c0258 | fd91b68f35664e7e853c1fd2cd55919a97a87fa2 | refs/heads/master | 2023-01-10T11:30:50.918568 | 2019-10-25T07:52:50 | 2019-10-25T07:52:50 | 205,700,793 | 0 | 0 | null | 2022-12-27T15:35:27 | 2019-09-01T16:08:44 | Python | UTF-8 | Python | false | false | 7,401 | py | import uuid
import sys
import datetime
import json
from django.core.cache import cache
from django.utils import timezone
from django.conf import settings
import requests
from helper.conf import helper_settings
from helper.log import get_logger
from common.mixin import MiddlewareMixin
logger = get_logger(__name__)
... | [
"15797731292@163.com"
] | 15797731292@163.com |
7792395a268d08840768655085318b6c7c6e3cac | 0a523ea34500d6c4324fc4b8b5fdf602f08a8a01 | /РК1/social/mysocial/views.py | 3b8f44af6b4f6cda41e8000be9edd8b68eb2942b | [] | no_license | killkamad/ServerSoftDev | 9b733c9f11c3a0db876e86dc5bb81dfaa476aab8 | 91248da20143c95cf4304d36e06ae9e9bb3bcb76 | refs/heads/master | 2020-04-17T16:26:11.477846 | 2019-04-15T20:33:18 | 2019-04-15T20:33:18 | 166,739,947 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | from .models import Post
from django.utils import timezone
from django.shortcuts import render, get_object_or_404
from .forms import PostForm, UserRegisterForm
from django.shortcuts import redirect
from django.contrib import messages
# Создание постов, изменение, просмотр
def com_list(request):
posts = Post.obje... | [
"killka_m@mail.ru"
] | killka_m@mail.ru |
0fca165af2a23670c0fdd4db934637cc1abf3c10 | 77531ad16a3ddf7aa92b7b4de809cce2a96c88a5 | /sitetables/toolbox/sources.py | 53a8ff4e69c31bffc800f47c48937200b5f4ad69 | [] | no_license | idlesign/django-sitetables | 6d3ed6b534e51c67704528d6fa1be0bc6f9f64f4 | 008b748919ee330da168d4766cd6b3c3c27e45b8 | refs/heads/master | 2022-02-17T21:25:26.430653 | 2022-02-04T12:46:19 | 2022-02-04T12:46:19 | 164,444,235 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,028 | py | import re
from collections import namedtuple
from itertools import chain
from typing import Optional, List, Union, Dict, Type, Tuple
from django.db.models import QuerySet, Model
from django.http import HttpRequest, JsonResponse
from django.urls import reverse
from .columns import TableColumn
if False: # pragma: noc... | [
"idlesign@yandex.ru"
] | idlesign@yandex.ru |
ab0d95439f8363b720d81aa80ae3aa74a0432e28 | 104005986bccea0a4213cbd55d833c95baf2f4fa | /drivers/phot_drivers/LCOGT_template_single_request.py | c6603728c1e635419c96b9c4a2e6edda588ecfe7 | [] | no_license | lgbouma/cdips_followup | 8a92ec9a31b405d316c668a6d42ce10ad47f0501 | 99ac6c6c709f96a58083a5ff7c4cf2d4f0b554a8 | refs/heads/master | 2023-08-14T02:33:17.841926 | 2023-08-01T00:46:19 | 2023-08-01T00:46:19 | 206,371,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,229 | py | """
Given a source_id, make LCOGT photometry followup requests, and optionally
submit them to the LCOGT API.
"""
import numpy as np
from astropy.time import Time
from cdips_followup.manage_ephemerides import (
query_ephemeris, get_ephemeris_uncertainty
)
from cdips_followup.LCOGT_dedicated_requests import (
get... | [
"bouma.luke@gmail.com"
] | bouma.luke@gmail.com |
f62e8e139b6ce07d635393ef4c7fe94bede87e36 | 7f747228fd52c835bbbad1d51674f2991b4e0ccb | /Veriflow_Automation/Veriflow_BDD_Framework/features/steps/login.py | 81014629a6cf06c7ce848bf1de42651e05d64f42 | [] | no_license | adachenski/Python-Automation | fec234f9983cee4dcbd2e8d158a944e555167f22 | 2a4bb4c2b33b4ce8a9c66b06f251f6c834973c50 | refs/heads/master | 2020-03-19T07:39:03.879326 | 2018-06-16T22:04:02 | 2018-06-16T22:04:02 | 136,135,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | from selenium_logic import login_logic
from behave import step, given, when, then
loginPage = login_logic.Login()
@given(u'Open Chrome Browser')
def open_browser(context):
loginPage.open_chrome()
@when(u'Navigate to Veriflow Login page at "{url}"')
def navigate_to_url(context, url):
loginPage.go_to_login(ur... | [
"adachenski@aol.com"
] | adachenski@aol.com |
98c818859f8e9449f37db57cf03d9b8bf6bcab06 | c0a090c54ee58f26f9f3973a50ffc9423a620fa4 | /bloomberg/sound.py | d85772502ebfd0f3a8f17e0b2ae0665c819bea86 | [] | no_license | guts2014/going-65-in-a-60-zone | 1b4e41ac9d190e706d267466f892b053e6c42576 | 9958b754ca796c94a6b2dbe09f03549532e93240 | refs/heads/master | 2020-04-13T01:05:17.389084 | 2014-10-12T12:12:06 | 2014-10-12T12:12:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.template import RequestContext
from sound_mixer import SoundMixer
from API import *
def sounds_page(request):
session = get_new_session()
# BP
historical_data = getCompaniesHistory(session, ['BP/ LN'], 20120101, 20140101, 'MONTH... | [
"velizar.shulev@gmail.com"
] | velizar.shulev@gmail.com |
10c75430230872f750e9ed2c0a241436c9120a7f | b509ef07d752e987f4cb84d1abd4c3a98488a6c7 | /resources/lib/streamlink/plugins/nownews.py | 02bd76def1234a8b05929f26bb670853a147f7ba | [
"BSD-2-Clause"
] | permissive | Twilight0/script.module.streamlink.base | d91245d1a43d6b3191b62a6eb4b1cf70598ed23e | c1e4628715a81806586b10323b8cb01424bbb6fc | refs/heads/master | 2021-01-21T04:32:41.658823 | 2020-09-07T20:56:29 | 2020-09-07T20:56:29 | 101,915,967 | 6 | 4 | BSD-2-Clause | 2018-01-14T15:20:47 | 2017-08-30T18:31:47 | Python | UTF-8 | Python | false | false | 2,149 | py | import logging
import re
import json
from streamlink.plugin import Plugin
from streamlink.stream import HLSStream
log = logging.getLogger(__name__)
class NowNews(Plugin):
_url_re = re.compile(r"https?://news.now.com/home/live")
epg_re = re.compile(r'''epg.getEPG\("(\d+)"\);''')
api_url = "https://hkt-mo... | [
"twilight@freemail.gr"
] | twilight@freemail.gr |
a5a17178600de20cbfc8a242569037482fae9caf | fccb5a43179906ddc3dd37849ac2a89cacf44981 | /sphinx/source/exercises/solution/03_os_sub_req/ex5.py | 653a604a993839e3b042cfc9ccaf6cd8eba8ff1f | [] | no_license | YasmineOweda/spring2021 | a48c1c4eaa525053a0e2188cf088124b004a35d8 | 072aadba20bfbc659427265fa228518fe4b09ff3 | refs/heads/master | 2023-04-29T10:20:14.132211 | 2021-05-11T09:07:40 | 2021-05-11T09:07:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import os
#1
os.mkdir('os_exercises.')
#2
os.chdir('os_exercises')
open('exercise.py', 'w')
#3
x = input('Please write something to the file: ')
with open('exercise.py', 'w') as f:
f.write(x)
#4
x = input('Please write something More to anoter file: ')
with open('exercise2.py', 'w') as f:
f.write(x)
#5
wit... | [
"clbo@kea.dk"
] | clbo@kea.dk |
0695682f12128d61213cc646b2a539b7cd47827c | 3f65ba0f9c3217acd418648a04f9dffdb4c35d2d | /AutoSubmission.py | 5969b364cce4baf6a4f8b0a87322130e8db505f0 | [] | no_license | jorqueraian/AutomaticCanvasUpload | a348e79e0a0c0d8fb3c7c329eef10745507ab498 | e3f05a8fdf28eceacd99f4932c5e0eefb506858d | refs/heads/master | 2020-09-27T17:11:05.822355 | 2019-12-09T20:50:03 | 2019-12-09T20:50:03 | 226,566,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | # Import the Canvas class
from Student import Student
from StringSimilarity import cost_of_alignment
import os
import sys
import re
USER_PATH = 'C:\\Users\\jorqu\\'
def clean_str(input_str):
# Remove .pdf or what ever
# Make lowercase and remove whitespace
# remove _ or -
return str(input_str).split(... | [
"jorqueraian@gmail.com"
] | jorqueraian@gmail.com |
aedcc1298924c6a2be19fcb6dd5c47bb3680c3c3 | 394c88bbe556c98ace0301eea9e41410040cfb63 | /double_dqn/model.py | 143d562371876c6f8fe4ecc4a9a52cc5ddf4d286 | [
"MIT"
] | permissive | 1980744819/playing-mario-with-DQN | 8b3dda28e107ff27b3c307cf979179729d352f9f | f263e3615bf4439ad17d95a9f449c6145792402b | refs/heads/master | 2020-04-29T14:52:44.215593 | 2019-05-21T13:08:00 | 2019-05-21T13:08:00 | 176,210,471 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : model.py
# @Author: zixiao
# @Date : 2019-04-02
# @Desc :
from torch import nn
import torch.nn.functional as F
import torch
class CNN(nn.Module):
def __init__(self, in_channels, num_action):
super(CNN, self).__init__()
self.conv1 = nn.Sequ... | [
"1980744819@qq.com"
] | 1980744819@qq.com |
db3b4d13adbd04eba6106f6e0d8559771deadcd5 | 61699048dc567cd3a814e5b987599dae175bed19 | /Python/month01/day15/exercise02.py | ba4af22e18080c30f44bdc184166efdfe0b8e96a | [] | no_license | Courage-GL/FileCode | 1d4769556a0fe0b9ed0bd02485bb4b5a89c9830b | 2d0caf3a422472604f073325c5c716ddd5945845 | refs/heads/main | 2022-12-31T17:20:59.245753 | 2020-10-27T01:42:50 | 2020-10-27T01:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | """
练习2:定义函数,根据生日(年月日),计算活了多天.
输入:2010 1 1
输出:从2010年1月1日到现在总共活了3910天
"""
import time
def life_days(year, month, day):
# 当前 - 出生时间
# time_tuple = time.strptime("%d-%d-%d" % (year, month, day), "%Y-%m-%d")
time_tuple = (year, month, day, 0, 0, 0, 0, 0, 0)
life_second = time.time() - \
... | [
"1450030827@qq.com"
] | 1450030827@qq.com |
acf4d5704a2b5145e70f57bf4bd46fcc5c62fa9d | a40ea9fa24e25e7dd047c20593762ec39749207a | /etc/week3pytyon.py | 43e3553d0c6bd756ea586fceb6793d18147089bd | [] | no_license | mjstella/Sparta_MJ | 16fbacf7ae08405dad68df3d1fc1d41d2c9d5d5e | 0f90c058c601cd35572e48d3c593594356526655 | refs/heads/master | 2022-10-12T22:33:18.962042 | 2020-06-08T09:12:39 | 2020-06-08T09:12:39 | 265,854,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | from pymongo import MongoClient # pymongo를 임포트 하기(패키지 인스톨 먼저 해야겠죠?)
client = MongoClient('localhost', 27017) # mongoDB는 27017 포트로 돌아갑니다.
db = client.dbsparta # 'dbsparta'라는 이름의 db를 만듭니다.
# db.users.insert_one({'name':'bobby','age':21})
# db.users.insert_one({'name':'kay','age':27})
# db... | [
"mjstella918@gmail.com"
] | mjstella918@gmail.com |
64d618b9411d6abdd7dd197355558092f58401ff | c0b34870921e11882dfacc5cc67e347c3160ed1a | /train.py | aa9223224e8334d31cedd2412d290c9c3365a3e5 | [] | no_license | chris-thomas/idn-superresolution-tf2 | ad2f59c6da43e670a4255335d0edfc86a0dce6b1 | 0b97c859daa80797958f0ea68a6ef385c4fa4335 | refs/heads/main | 2023-04-01T15:14:43.809934 | 2021-04-08T14:47:04 | 2021-04-08T14:47:04 | 332,895,607 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,413 | py | import os
os.environ["CUDA_VISIBLE_DEVICES"] = '0'
from numba import cuda
device = cuda.get_current_device()
device.reset()
import time
import tensorflow as tf
from model import evaluate, evaluate_ssim
from tensorflow.keras.applications.vgg19 import preprocess_input
from tensorflow.keras.losses import BinaryCrosse... | [
"cdt@christhomas.co.uk"
] | cdt@christhomas.co.uk |
3d59d39806860870c249b7daa8a0f68c3b343f39 | 15c70a52bb2a4b5b3bdd4a62d97bbe27e3989a24 | /src_old/manual_colony_picking.py | 5fb61b2e322da571f18b6cbdaeddc1d0a3c7526e | [
"MIT"
] | permissive | nadimest/opentrons-colony-picker | 91cbcc7a80fe9cefa0c8f45bab7ac51a715b87e6 | 8097f12cab91398377463a3a76367b73fa0a2318 | refs/heads/master | 2021-01-01T13:29:13.253905 | 2020-07-29T14:27:49 | 2020-07-29T14:27:49 | 239,299,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | #!/usr/bin/env python3
import subprocess
from lib.coordinatesManagement import CoordinatesManager
from lib.imageHandling import ImageHandler
coordinates=CoordinatesManager(calibration_filename="calib/calibration.json")
def main():
# takeImage=subprocess.run("./server_scripts/moveAndTakePicture.sh")
fetchIm... | [
"nadim@enginzyme.com"
] | nadim@enginzyme.com |
1abcb520636d6bdcf87fda919e2807ba2c94bbaf | f9b14f7c366dc16c5dfc24a2478332a8ad14aea3 | /tests/test_user_func.py | e62c3a3eaf07a429e7b28b1e28386eecde4fd4e0 | [
"MIT"
] | permissive | aleobb/dataframe_expressions | fbd2a95de883c87fb4e93195ce719e7ead967231 | cf135415f739377e9c2accb82606957417c7e0e6 | refs/heads/master | 2022-12-29T15:25:54.771541 | 2020-10-21T01:27:15 | 2020-10-21T01:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | import ast
import inspect
import pytest
from dataframe_expressions import (
DataFrame, ast_FunctionPlaceholder, ast_DataFrame, render, user_func)
def test_DF_user_func():
@user_func
def func1(x: float) -> float:
assert False
d = DataFrame()
d1 = func1(d)
assert isinstance(d1, DataF... | [
"gwatts@uw.edu"
] | gwatts@uw.edu |
3f252f1404c6461dd77efe3c577a6021a96fd1fc | 57f4110f8252496142f043dce929c15df43f0e99 | /niwo/spiders/niwobbs.py | 36c18ff00dcd5fd500d26781a373ec5f38b113da | [] | no_license | lanluyu/niwo_bbs | 0c69a6fcfcf1bcf52096124721ed051a9b677b59 | bfb28d8050a6a1a74b2c199dbbbeee2baf4d40f2 | refs/heads/master | 2020-03-21T18:44:37.519262 | 2018-06-28T05:21:44 | 2018-06-28T05:21:44 | 138,910,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | # -*- coding: utf-8 -*-
from scrapy import Spider,Request
from niwo.items import NiwoItem
class NiwobbsSpider(Spider):
name = 'niwobbs'
allowed_domains = ['http://bbs.niiwoo.com']
def start_requests(self):
for i in range(3,449):
basic_url = 'http://bbs.niiwoo.com/forum.php?gid=1&page=... | [
"noreply@github.com"
] | lanluyu.noreply@github.com |
ebce17fb0dd02ef5af320607dbcfad78bb6aec8c | dcd0fb6bdcb488dd2046778eb02edce8f4623b58 | /object_follow_edgetpu/detect_standalone.py | 7e196dbb4d1727616b1a5ec9f56384351df24223 | [] | no_license | openbsod/Adeept_AWR | 12f2df24bfcf85d7965a425bb0078b2c858e807a | 92ca5e7147a9cb44ad55f55a467371648dc76b3c | refs/heads/master | 2023-04-09T07:06:35.772918 | 2021-04-15T21:20:40 | 2021-04-15T21:20:40 | 284,012,618 | 1 | 0 | null | 2020-07-31T10:46:50 | 2020-07-31T10:46:49 | null | UTF-8 | Python | false | false | 4,801 | 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, ... | [
"you@example.com"
] | you@example.com |
124368ed9467c6666327662c5ff9d8beeeb3a9f4 | cb82e798d1ea875e87d973d87602baa07166fb7b | /net/ssl/tls_ecdhe_rsa_with_aes_128_gcm_sha256/prf-frame139.py | 618a7f98604c83ebcb46dd238066e8646a60e1c1 | [] | no_license | rowanpang/noteGit | e9470be20bfdb04ac6b80c93f0f1cd3fd97ef565 | 120ca5329addf3a780b2299a0ab74de997b77785 | refs/heads/master | 2023-05-31T05:04:58.731953 | 2023-05-31T02:34:14 | 2023-05-31T02:34:14 | 52,506,290 | 1 | 0 | null | 2021-06-04T01:08:05 | 2016-02-25T07:41:49 | C | UTF-8 | Python | false | false | 7,989 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import hashlib
import hmac
import unittest
import os
import binascii
import sys
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.ciphers import (
Cipher, algorithms, modes
)
def encrypt(key, plaintext, associated_data,iv):
... | [
"pangweizhen.2008@hotmail.com"
] | pangweizhen.2008@hotmail.com |
3f0caf57cc2e796c4b731bb6d978430bedfcd7f9 | 0a473b06d45b4697b124859c21f11ca833da70b4 | /chemprop_fda/features/morgan_fingerprint.py | 908906f82f12c072955083133788ac0841179257 | [
"MIT"
] | permissive | AayushGrover/ViscaNet | e0085f3549a35447d0ef497fb9ee25fe8a625b73 | 41786e10b84f2264b638567bdce1c189c1b66b00 | refs/heads/main | 2023-08-28T21:45:14.598705 | 2021-10-31T21:53:42 | 2021-10-31T21:53:42 | 286,003,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | import numpy as np
from rdkit import Chem, DataStructs
from rdkit.Chem import AllChem
def morgan_fingerprint(smiles: str, radius: int = 2, num_bits: int = 2048, use_counts: bool = False) -> np.ndarray:
"""
Generates a morgan fingerprint for a smiles string.
:param smiles: A smiles string for a molecule.
... | [
"AAYUSH@staff-net-etx-1580.intern.ethz.ch"
] | AAYUSH@staff-net-etx-1580.intern.ethz.ch |
32b6e1ea78845b7ff7ac88c40a72e2096200219f | eaaa1bbceb9a867e08769aae07c37c5e1107e430 | /mitx_6.00.2x_ict_ds/week3/lstNone.py | fc381eea3af3ec7be312d603b0b86e04fe2eeb3d | [] | no_license | nwinds/jugar | c8f9ce11dd95c6e0dda22e22a69dd598b34d9d3c | db4d362d9d1dd04f2c6c013d4462de0c892b8314 | refs/heads/master | 2020-12-24T16:35:03.951580 | 2016-03-10T09:25:06 | 2016-03-10T09:25:06 | 41,397,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | lst1 = [1,2,3]
lst2 = []
lst3 = lst1+lst2
print('lst1'),
print(lst1)
print('lst2'),
if len(lst2) > 0:
print(lst2)
else:
print('len(lst2) == 0')
print('lst3'),
print(lst3) | [
"namingwinds@gmail.com"
] | namingwinds@gmail.com |
12d5ee953deb6d64391cd697be86d87d92cfae26 | aef8fe58f3c272e87dd166e3b9eb3ee4bc7e2d21 | /To_do/toDoList/myList/forms.py | c81e8cef0fec422c82a8c7dad0648d564e02ef20 | [] | no_license | Olga20011/Django-ToDoList | 6c43bf83c4f79e38f63a5854d4f6653bf71c6e10 | 758797763135d5e6567ecdc83a30244934778682 | refs/heads/master | 2023-08-13T23:13:33.931349 | 2021-09-16T14:21:41 | 2021-09-16T14:21:41 | 392,290,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | from django import forms
from django.db.models import fields
from django.forms import ModelForm
from .models import *
class TaskForm(forms.ModelForm):
# title=forms.CharField(widget=forms.TextInput(attrs={'placeholder':'Add new task...'}))
class Meta:
model=MyTask
fields ="__all__" | [
"olgaestherakello@gmail.com"
] | olgaestherakello@gmail.com |
a76bbe862fc2f943b5866b00388228264612f33d | 6d4af63e07a137d382ef61afe8276f7470b7af59 | /wsgistate/__init__.py | 742cd2a8b2a8e916a3427188ed7f1c260ff1b2b1 | [] | no_license | Cromlech/wsgistate | 142c7016c74fc28e6c56368f018bf113c379118c | d730ee47a4a43efbd20bcb9623e76bedeeb8c62b | refs/heads/master | 2023-04-11T14:10:20.522520 | 2023-04-11T10:06:10 | 2023-04-11T10:06:10 | 15,806,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,085 | py | # Copyright (c) 2005 Allan Saddi <allan@saddi.com>
# Copyright (c) 2005, the Lawrence Journal-World
# Copyright (c) 2006 L. C. Rees
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistr... | [
"trollfot@gmail.com"
] | trollfot@gmail.com |
f153b13f654cbb1a501907cba37eddc072dc7fb0 | edb69ef057593343c86bfc08024422cd8292207f | /users/views.py | cb18f70307655a0b4d01550adccdde99c04a2aec | [] | no_license | MVNDAY/LearningLog | 27005b3a411bdabaa56c23258d893e06f09caa0d | 1d4436fdea5610b0e63cdb55ebbd2d112115d74a | refs/heads/master | 2023-04-13T10:22:05.160792 | 2021-04-26T17:46:26 | 2021-04-26T17:46:26 | 361,832,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.forms import UserCreationForm
# Create your views here.
def logout_view(request):
logout(request)
return HttpResponseRed... | [
"83238300+MVNDAY@users.noreply.github.com"
] | 83238300+MVNDAY@users.noreply.github.com |
c27f4477eaa529faa393007fcdb5b9fda759771e | b5865b795c4e743cca80a6e0ea480ecc0d0a35fd | /My_Second_Project/Login_app/admin.py | fc666635eae6f732ecd40552bd516ac51555026b | [] | no_license | kazi-akib-abdullah/django-deployment | 384ee355efacf58a66c66b4d768b86750c70d98e | c2ef330018b71fbb42c3ee9a5a0fba78d1d33473 | refs/heads/master | 2023-02-26T03:01:39.140332 | 2021-01-30T16:42:06 | 2021-01-30T16:42:06 | 334,459,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from My_Second_Project.settings import USE_I18N
from django.contrib import admin
from Login_app.models import UserInfo
# Register your models here.
admin.site.register(UserInfo) | [
"45953236+kazi-akib-abdullah@users.noreply.github.com"
] | 45953236+kazi-akib-abdullah@users.noreply.github.com |
f837708b75c33e3c2f20e04b15c464ef277c72b6 | 6c919bb579dd639d53f097d4b8b1b6f2bb830efb | /testfiles/interface_test.py | 67d10a6aac8edb7aa6be430cf991c4d6067d7f37 | [] | no_license | aj132608/SpicyGlass | b258f0282e713d555489c4ab106c9008f6965f31 | 8b1d4f5ccf6f8ed4c0b9a65f042af505ab852c31 | refs/heads/master | 2021-01-14T01:45:18.047779 | 2020-03-09T18:48:46 | 2020-03-09T18:48:46 | 242,560,382 | 0 | 0 | null | 2020-03-07T00:43:38 | 2020-02-23T17:29:42 | Python | UTF-8 | Python | false | false | 1,149 | py | from firebaseinterface.firebase_interface import FirebaseInterface
import json
if __name__ == "__main__":
with open('creds.json') as file:
creds_dict = json.load(file)
interface_obj = FirebaseInterface(creds_dict=creds_dict)
# Fetch the current database held locally as a dictionary
current_d... | [
"32584157+aj132608@users.noreply.github.com"
] | 32584157+aj132608@users.noreply.github.com |
3c86e7fd1292b6f7b57fbcee485151b7beb95814 | 7310067f47b4626d7afe71ccac591febe3441b1f | /knn.py | 5803d62dd80406b76d0ed7834ee6004fd47ba612 | [] | no_license | anisrini/KNN | 1b0f13e5cacae6834dead55d84b2000590d69814 | 596f2ba78b66b4e902f11c512d760ace65422775 | refs/heads/master | 2016-08-12T04:38:55.625423 | 2016-04-01T09:08:13 | 2016-04-01T09:08:13 | 55,217,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | import pandas as pd
import helpers
import cdist
from sklearn.metrics import accuracy_score
from sklearn.metrics import confusion_matrix
from sklearn.cross_validation import StratifiedKFold
from sklearn.cross_validation import LeaveOneOut
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA
def ... | [
"anisrini93@gmail.com"
] | anisrini93@gmail.com |
cecf868f2be1629e1555d5d8b1f75d9ff586a4ce | 0f33457b2fead035730e86176092fe5abe532f51 | /XOR EQUALITY Code Shef/xor_bitwise.py | 4bcffdcbf523f72a4bd1af3310e94be558160e7e | [] | no_license | tb123-coder/May-Long-Challenge-Codechef- | dbb0cd30e0862cebeef6b79de9a20e7f5cb98e0a | bf710b287bd12638d0dc7308367259b57af9f7ef | refs/heads/master | 2023-04-28T05:28:19.517262 | 2021-05-13T12:32:18 | 2021-05-13T12:32:18 | 367,038,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | def power(x, y, p):
res = 1
x = x % p
if (x == 0):
return 0
while (y > 0):
# If y is odd, multiply
# x with result
#if((y%2==1)
if((y & 1)==1):
res=(res*x)%p
#y=y/2
y=y>>1
#y must be even
x=(x*x)%p
return res
T =... | [
"batra.tushar12dec1999@gmail.com"
] | batra.tushar12dec1999@gmail.com |
17bc87c11112d5f9e4a92ca75a101c66480bc5b1 | 34284fd6cd6c97bad8d1fa422e9279600d1218a7 | /labs/lab6.py | 14d6e6bfc0fe5bfe06087b9ea12d415c2f280f08 | [] | no_license | Yui-Ezic/Numerical-Methods | 1c2ac92fdf9bb75924e9ac14bac7c5033e634436 | da2ba5a3f2a17a947d1240a2a3154b70d9d8c916 | refs/heads/master | 2020-04-14T13:40:06.138283 | 2019-01-02T18:27:14 | 2019-01-02T18:27:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,400 | py | import numpy as np
import math
import matplotlib.pyplot as plt
def my_function(x):
return x * x + math.sin(x)
# Границы функции
a1 = 1
b1 = 3
# Шаг
H = (b1 - a1) / 10
# Количество точек
m = 11
arrSize = m
# Таблица значений функций
Xt = np.zeros(arrSize)
Yt = np.zeros(arrSize)
# Создание таблицы
for i in ra... | [
"mishan221199@gmail.com"
] | mishan221199@gmail.com |
a658a0212b71fb6327314f0662b6143017559bc1 | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/snailmail/models/mail_notification.py | a368c0a778338b68f037181c93c3d78bffc3f691 | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 719 | py | # -*- coding: utf-8 -*-
from odoo import fields, models
class Notification(models.Model):
_inherit = 'mail.notification'
notification_type = fields.Selection(selection_add=[('snail', 'Snailmail')], ondelete={'snail': 'cascade'})
letter_id = fields.Many2one('snailmail.letter', string="Snailmail Letter", ... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
d830aecde642375024c94874c404b42184b66447 | 3f382f9edd21be130dafe26e79ee1081b9626673 | /movieClasses/Inheritance.py | 3b6b6971025ac1a642042079dca57f25c35739ed | [] | no_license | ceewick/introClasses | 090d41a5ba9e151ca136ee8d23f9fbc4d9a5f7d7 | 3acc7bac15bc3bcaebfa39b438e8033ec900d5ec | refs/heads/master | 2020-03-15T15:36:33.511733 | 2018-05-06T19:51:36 | 2018-05-06T19:51:36 | 132,216,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | class Parent():
def __init__(self, last_name, eye_color):
print('Parent Constructor Called')
self.last_name = last_name
self.eye_color = eye_color
class Child(Parent):
def __init__(self,last_name, eye_color, number_of_toys):
print('Child Constructor Called')
Par... | [
"noreply@github.com"
] | ceewick.noreply@github.com |
e509256c393ec76ad4d8aa28753b3613e2457c80 | 84fcfed46e03d4936f1a5d82624fd43a4f415d72 | /Client.py | 719ea7f6319f406dac03306172f4f54dc2038d55 | [] | no_license | Shruti-Pattajoshi/Computer-Networks-Socket-Programming- | 9a60fa750adf7bee98d64cbe95de22a67e93ccb6 | 8daf2051fb412e555952cdde0dd0e3554c2231be | refs/heads/master | 2022-06-20T04:06:32.277348 | 2020-05-14T07:03:52 | 2020-05-14T07:03:52 | 263,840,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | # client.py
import socket
sp = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = socket.gethostname()
port = 13
sp.connect((host, port))
msg = sp.recv(1024)
sp.close()
print("The time recieved from the server is: %s" % msg.decode('ascii')) | [
"noreply@github.com"
] | Shruti-Pattajoshi.noreply@github.com |
de8b449316abbe86696e3641635d94af6d290c5d | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/caffe2/python/operator_test/stats_put_ops_test.py | 2ce56248c5dd0116931f91de9b4b556dd881e73b | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:86a74bb87f96bd8ebf2fa9ae72729c5cbe121a32edc1fb034496e084703631b3
size 6596
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
a35e6a756f615aca80c4b91a8b264a5aa0cd6d0e | 9cd00edd008ce38ea3127f090b6867a91fe7193d | /src/plot_Qle_at_all_events_above_Tthreh.py | 382993ac07bd63823ff8cd12124f714a8056199b | [] | no_license | shaoxiuma/heatwave_coupling | c5a2a2bba53351597f4cb60ecb446bfb9629812f | 459f6bc72402b5dd3edf49bc3b9be380b5f54705 | refs/heads/master | 2021-09-13T06:50:48.733659 | 2018-04-26T06:09:54 | 2018-04-26T06:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | #!/usr/bin/env python
"""
For each of the OzFlux/FLUXNET2015 sites, plot the TXx and T-4 days
Qle and bowen ratio
That's all folks.
"""
__author__ = "Martin De Kauwe"
__version__ = "1.0 (20.04.2018)"
__email__ = "mdekauwe@gmail.com"
import os
import sys
import glob
import netCDF4 as nc
import numpy as np
import xar... | [
"mdekauwe@gmail.com"
] | mdekauwe@gmail.com |
69aee45e204f7d1a92722373c63d4388faf5d6c9 | d3542f9f10ecc1c8c2eefe954a386dbbb584cf3b | /pykl/kit/models.py | b87fd808ea27f116e2c5feb7e8de0737d3b99f86 | [
"MIT"
] | permissive | wowngasb/pykl | 7322fa36c0529526273486ea7ffc52108b78cd6f | 872f97dfaab92cce309078940d1273cf26daed37 | refs/heads/master | 2023-06-01T08:19:55.962876 | 2023-05-19T07:36:52 | 2023-05-19T07:36:52 | 101,482,272 | 0 | 0 | MIT | 2023-01-11T23:45:19 | 2017-08-26T11:43:49 | Python | UTF-8 | Python | false | false | 14,637 | py | # coding: utf-8
import random
import time
import hashlib
from inspect import isclass
from git import Repo as GitRepo
from sqlalchemy.inspection import inspect as sqlalchemyinspect
from sqlalchemy.ext.declarative import declarative_base
from pykl.tiny.grapheneinfo import (
_is_graphql,
_is_graphql_cls,
_i... | [
"wuyou7410@gmail.com"
] | wuyou7410@gmail.com |
74b32b4c2a6853ebc774d3f547b249081b9289cd | 4ee9de394b2650d7cca19b2848100e8db9edc596 | /solution-python/001_two_sum.py | 0fab498f08572f102087ec4c7aa040b784330840 | [] | no_license | gongfuPanada/notes-leetcode | b99d5fd18a14558c1cbeb1538fd8bddbfdeb3fdd | 0bc611efcee8286c07fd5af1257a27a2575363b0 | refs/heads/master | 2020-12-29T00:59:00.512133 | 2016-04-24T12:54:22 | 2016-04-24T12:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | """
001. Two Sum
@name: li jin
@date: Feb 19, 2016
@link: https://leetcode.com/problems/two-sum/
@time: 56 ms
"""
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
d = {}
... | [
"lijinwithyou@gmail.com"
] | lijinwithyou@gmail.com |
65ea64bcdab906276d4068b3999cba770c961f77 | 14f078c2f88ac656b56ee8a9a39eaf0135de4704 | /VideoxD/__main__.py | c4fa566bb02076067104650f3c8fd3e7a30230d2 | [
"MIT"
] | permissive | Saksham07529/VideoChatStreamBot | dd39a7d1e16f21995893184a9e394659054073b2 | 72dd8f24d38494a683606118f34154177a643fb7 | refs/heads/main | 2023-08-17T17:05:56.326866 | 2021-09-14T06:02:06 | 2021-09-14T06:02:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import asyncio
from misc import Calls, app, bot
from pyrogram import idle
async def init():
await app.start()
print("𝙐𝙨𝙚𝙧 𝙖𝙘𝙘𝙤𝙪𝙣𝙩 𝙄𝙣𝙞𝙩𝙞𝙖𝙡𝙞𝙯𝙚𝙙.")
await bot.start()
print("𝘽𝙤𝙩 𝙄𝙣𝙞𝙩𝙞𝙖𝙡𝙞𝙯𝙚𝙙.")
print(
"𝙔𝙤𝙪 𝙈𝙞𝙜𝙝𝙩 𝙨𝙚𝙚 𝙉𝙤 𝙋𝙡𝙪𝙜𝙞𝙣𝙨 𝙇𝙤𝙖𝙙𝙚�... | [
"noreply@github.com"
] | Saksham07529.noreply@github.com |
394ff5431df2a4e88c516043b26846577d06ec92 | 91e389e4fc6a91874f4d4665bc0986e00f66074c | /downloadXkcd.py | b7a47af06c98d6e79909227078a06e4a10a26b7d | [] | no_license | Sajmon25/Automate-the-Boring-Stuff-with-Python | 5cb36496d5a64988f50656b2f6d3172ab05c9c5b | 8fb51eb0e9e558f939d5a7a4038257d7c02a9165 | refs/heads/master | 2020-04-20T12:18:54.236263 | 2019-05-09T21:31:33 | 2019-05-09T21:31:33 | 168,838,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | #! python3
# downloadXkcd.py - Download every single XKCD comic.
import requests
import os
import bs4
url = 'http://xkcd.com'
os.makedirs('xkcd', exist_ok=True)
while not url.endswitch('#'):
# TODO: Download the page
print('Download page %s...' % url)
res = requests.get(url)
res.raise_for_status()
... | [
"szymon.grzedi@gmail.com"
] | szymon.grzedi@gmail.com |
8710f437a1fb5651739771f1ae3cb10e87729160 | 1385d5c2bff76949f139951d5422ee4c9df13129 | /135_webRead.py | c7a5360cbb079c5e77989ac3f6859a9d3cf602b9 | [] | no_license | luongs/pyPractice | b28a11b6b8909ac7b873184fd9be4c292c8559b5 | 775b8e608c7bfb4f43bdc91f1f6f20d82c9f43fc | refs/heads/master | 2021-05-26T13:24:48.500697 | 2013-04-09T02:21:28 | 2013-04-09T02:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | # Reads txt from the web and displays result in python
# Author: Sebastien Luong
import urllib2 #library handles url stuff
f=urllib2.urlopen("http://cs.leanderisd.org/mitchellis.txt")
print f.readline(),
print f.readline(),
f.close() | [
"sebastienluong@gmail.com"
] | sebastienluong@gmail.com |
90f553a76ab38014ddd6d73cdf2088433003db3d | ade74e6b497703ef01fe267b665261e90e335a18 | /studyvisapp/views.py | c5ca19a415afad73451833bc2c565ededea24865 | [] | no_license | TMdiesel/study-vis-app | 0492ff8bdda5f1c2596cca0ac3642b6c81691f9a | a0440a8ffd21d5848faf8eeabfed4c7be38be90f | refs/heads/main | 2023-07-08T04:32:48.564623 | 2021-08-15T12:08:53 | 2021-08-15T12:08:53 | 395,558,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,290 | py | import datetime
from datetime import timedelta
from django.shortcuts import render, redirect
from django.views import View
from django.views.generic import (
ListView,
CreateView,
DeleteView,
UpdateView,
TemplateView,
)
from django.urls import reverse_lazy
from django.utils.timezone import make_awa... | [
"cerezzodora2262@icloud.com"
] | cerezzodora2262@icloud.com |
fbcd98a2b32c59fa1729e7b1bce3bb8639dc8ab9 | 51412575c66152170bfcbf91ee09954d162a4643 | /arg.py | ca5cd4c062f6dfff6dbedd4034ba3e1274de78d0 | [] | no_license | tladydrl/ch1.2 | 918f064efab84c771f17ea17503ac897d16f83ba | 1acbc0d9c8195cb9bee7b3d40feff940ef764431 | refs/heads/master | 2020-05-20T13:03:30.806733 | 2019-05-09T12:55:01 | 2019-05-09T12:55:01 | 185,587,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import sys
#print(sys.argv) # 뭐가들어오는지 실행 # 파이썬파일?
args = sys.argv[1:] # 첫번째부터,, 0번째는 자기 파일이름.
print(args) # args는 내가 만든 변수이다.
| [
"tladydrl12@naver.com"
] | tladydrl12@naver.com |
298bdb7986c7ce282903098e71efc3e61ebde167 | 4b0c57dddf8bd98c021e0967b5d94563d15372e1 | /run_MatrixElement/test/emptyPSets/emptyPSet_qqH125_cfg.py | 1925d9eb5134f84222300788d85f42237860a66f | [] | no_license | aperloff/TAMUWW | fea6ed0066f3f2cef4d44c525ee843c6234460ba | c18e4b7822076bf74ee919509a6bd1f3cf780e11 | refs/heads/master | 2021-01-21T14:12:34.813887 | 2018-07-23T04:59:40 | 2018-07-23T04:59:40 | 10,922,954 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | import FWCore.ParameterSet.Config as cms
import os
#!
#! PROCESS
#!
process = cms.Process("MatrixElementProcess")
#!
#! SERVICES
#!
#process.load('Configuration.StandardSequences.Services_cff')
process.load('FWCore.MessageLogger.MessageLogger_cfi')
process.MessageLogger.cerr.FwkReport.reportEvery = 5000
process.load... | [
"aperloff@physics.tamu.edu"
] | aperloff@physics.tamu.edu |
afbde151e2e1473b1d6aa573579299dc0eb3ce8d | 18c03a43ce50ee0129f9f45ada1bdaa2ff4f5774 | /epistasis/__init__.py | 4f9536d756aca5c653b3e69bbff59937aa2ff678 | [
"Unlicense"
] | permissive | harmsm/epistasis | acf7b5678b328527b2c0063f81d512fcbcd78ce1 | f098700c15dbd93977d797a1a1708b4cfb6037b3 | refs/heads/master | 2022-04-30T13:09:49.106984 | 2022-03-19T05:29:37 | 2022-03-19T05:29:37 | 150,969,948 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | """\
A Python API for modeling statistical, high-order epistasis in genotype-phenotype maps.
This library provides methods for:
1. Decomposing genotype-phenotype maps into high-order epistatic interactions
2. Finding nonlinear scales in the genotype-phenotype map
3. Calculating the contributions of differe... | [
"zachsailer@gmail.com"
] | zachsailer@gmail.com |
d8e42f2ce2432b336adb63018b3a51e93aacef6d | 1c0542cef2ac6a5fb691602887236bf70f9bf71f | /speed_test_sar/sfsi_speed/mmcls/models/backbones/utils/gumbel_sigmoid.py | 6610270f02c80a91e8e61cd013f8b7dff68c6ba3 | [
"Apache-2.0"
] | permissive | yizenghan/sarNet | 683f45620013f906cb8a550713e786787074a8ae | d47a6e243677811b259a753233fbbaf86d2c9c97 | refs/heads/master | 2023-07-16T02:09:11.913765 | 2021-08-30T02:04:02 | 2021-08-30T02:04:02 | 299,276,627 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | import torch
from torch import nn
class GumbelSigmoid(nn.Module):
def __init__(self, max_T, decay_alpha, decay_method='exp', start_iter=0):
super(GumbelSigmoid, self).__init__()
self.max_T = max_T
self.cur_T = max_T
self.step = 0
self.decay_alpha = decay_alpha
self... | [
"yizeng38@gmail.com"
] | yizeng38@gmail.com |
d8e6d6bc745881e200737675ec2cd28b084d364d | 68c003a526414fef3c23ad591982f1113ca8a72c | /api/urls.py | 6287d8ae58d870352565ce7f626f9a3aa7037130 | [] | no_license | pawanpaudel93/NepAmbulance | 9d99ef3a3592b3a17091889d9db32aa952974400 | b07dba43926c3f5a350b0acd75ac90b4842e3e32 | refs/heads/master | 2020-06-14T08:59:03.523102 | 2020-01-07T09:05:03 | 2020-01-07T09:05:03 | 194,965,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | from django.contrib import admin
from django.urls import path
from .views import ListCreateAmbulance, RetrieveUpdateDeleteAmbulance, ListDistrict, ListProvince
urlpatterns = [
path('ambulance/<int:province>/<slug:district>/<slug:city>/<int:ward>/', ListCreateAmbulance.as_view(), name="list-create-api"),
path('... | [
"pawanpaudel93@gmail.com"
] | pawanpaudel93@gmail.com |
b684e9ee901a0010e93ec30efff577b9d58c68ef | d3ae9c6377109a4edea819c3d574e6ac529c98ba | /read_csv_pandas.py | 25cdfa66408f6a0fb0f59558db628c2803ad4c55 | [] | no_license | vmburbinamx/textParsing | 9d8696f798217f7124501ac1756019a95166d79f | 46d6f872de79879cd6129c2ace2684409f02851c | refs/heads/master | 2023-01-02T20:50:45.745922 | 2020-10-26T02:40:29 | 2020-10-26T02:40:29 | 307,169,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | import pandas as pd
import os
#Set path to 'data' folder'
path_to_data_in_current_directory = os.getcwd() + '\\data\\'
#Set full path name
fullFileName = path_to_data_in_current_directory+'titanic_sub_just_numbers.csv'
#read file
data = pd.read_csv(fullFileName) | [
"victormanueluj@gmail.com"
] | victormanueluj@gmail.com |
49617de351135a141ec72527b03b3dde22f0125d | 422dd5d3c48a608b093cbfa92085e95a105a5752 | /students/nDruP/lesson06/calculator/calculator.py | d29df83130fa0fb445a7b6fea8d286044b6917c7 | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_Course2_2018 | a2052fdecd187d7dd6dbe6f1387b4f7341623e93 | b1fea0309b3495b3e1dc167d7029bc9e4b6f00f1 | refs/heads/master | 2021-06-07T09:06:21.100330 | 2019-11-08T23:42:42 | 2019-11-08T23:42:42 | 130,731,872 | 4 | 70 | null | 2021-06-01T22:29:19 | 2018-04-23T17:24:22 | Python | UTF-8 | Python | false | false | 1,658 | py | """
InsufficientOperands Exception and the Calculator class
"""
class InsufficientOperands(Exception):
"""
Create the InsufficientOperands exception for use in Calculator.
"""
pass
class Calculator(object):
"""
Create the calculator object.
"""
def __init__(self, adder, subtracter, ... | [
"apark46.work@gmail.com"
] | apark46.work@gmail.com |
a25e040005de4ab4ceb6b75d24ad6378699d31d5 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/xt.py | 2cabdcd454cba0a0dfcd2847512439922cc7dc0c | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
b97c469f8a12dbf8a8265a2bb6073036cda1fc81 | 25fd32f0c46b5883a820fd62aeceff6e1f38af1a | /02_python_excercise/swampy/World.py | ed16b2e8ebaf4295cde888b8cb65aa2753356e28 | [] | no_license | snowcool1/python_starter_basic | fb6572b1c3f378813a99ac23c3ef130143c9f340 | 73b7919f4c20f3de953d8ea50dd7a8a883b04657 | refs/heads/master | 2023-03-23T13:40:18.881335 | 2020-12-12T00:46:59 | 2020-12-12T00:46:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,936 | py | #!/usr/bin/python
"""
This module is part of Swampy, a suite of programs available from
allendowney.com/swampy.
Copyright 2005 Allen B. Downey
Distributed under the GNU General Public License at gnu.org/licenses/gpl.html.
"""
import math
import random
import time
import threading
import sys
import tkinter
from swa... | [
"doan.nguyen@datalogic.com"
] | doan.nguyen@datalogic.com |
8f8251d41d03992c97c4284cab8980b06dce2ee6 | c36e8ac0ccfd34a7d4245068b3d4ed6199927f9b | /main.py | 0359c0eb11ccf5be256bc113ac8c06421867203b | [] | no_license | avec140/project | 332d9a87c09400ef52e90ca5b2f60c9643531591 | d3e60766b81c8fcfff61dabdd5849ec10ce4fba0 | refs/heads/master | 2023-04-20T12:27:36.575993 | 2021-04-30T09:24:39 | 2021-04-30T09:24:39 | 363,083,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | from tkinter import *
from tkinter.colorchooser import askcolor
DEFAULT_PEN_SIZE = 1.0
DEFAULT_COLOR = "black"
mode = "pen"
old_x = None
old_y = None
mycolor = DEFAULT_COLOR
erase_on = False
def use_pen():
global mode
mode = "pen"
def use_brush():
global mode
mode = "brush"
def choose_color():
... | [
"avec140@naver.com"
] | avec140@naver.com |
d9378d480308166701e5c54976dd75940bd624ed | 4f01aff7aaaa979e80ee6bd02d01b24dfbfc0e9d | /scripts/easy_update.py | e883650bdfb287e1ae42d467098920d8a2ad51ff | [] | no_license | jakevc/easybuild-life-sciences | 8d49a923a5448690d890205e4a85308bebd718c0 | fef9de66a7a08ac3492eb38fe881fc74745aec61 | refs/heads/master | 2020-05-05T04:38:36.415766 | 2019-04-04T18:21:35 | 2019-04-04T18:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,541 | py | #!/usr/bin/env python
import re
import os
import sys
import argparse
import imp
import requests
# from pprint import pprint
# from pprint import pformat
"""EasyUpdate performs package version updating for EasyBuild
easyconfig files. Automates the the updating of version information for R,
Python and bundels that exte... | [
"john@fuzzdog.com"
] | john@fuzzdog.com |
f7af79f56a51603282e3089490b050ca604d2712 | 1410d7722dd22c1ecd2aee0f4c59cf482846f445 | /models/rbm.py | 05e4c797eace5d0b7ec5a60c952e55268a115ae6 | [] | no_license | funzi-son/DRBM | 95a1cb3d504746836d5d8dc2d9fb7b7eeae3fc8c | 1a7c40d46b86ed4d4a8610f3979e94e5e297429b | refs/heads/master | 2021-07-19T16:17:56.423241 | 2017-10-24T03:23:58 | 2017-10-24T03:23:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,384 | py | """The restricted Boltzmann machine"""
# Author: Srikanth Cherla
# City University London (2014)
# Contact: abfb145@city.ac.uk
from models import np
from models import theano
from models import T
theano.config.exception_verbosity = 'high'
def build_model(n_input, n_class, hypers, init_params):
"""Function to... | [
"Son.Tran@csiro.au"
] | Son.Tran@csiro.au |
6810448a2a2f895bb4d8c9a6ddda997f4967d5d2 | 99b8b8f06f2248a8ef940c0b5ba90d05f0362ba0 | /src/python/strelka/scanners/scan_pe.py | 626e9df031e01b48ea3c146b00d52c99f1d0d331 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | thezedwards/strelka | b5d794198791f04a9473ae4b7b2f8a75b7ccac9b | 9791ec50354459b4c80df6e95887e0d6bd58729a | refs/heads/master | 2020-05-24T12:34:15.926932 | 2019-05-16T20:51:40 | 2019-05-16T20:51:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,150 | py | import binascii
from datetime import datetime
import hashlib
import struct
import pefile
from strelka import strelka
IMAGE_MAGIC_LOOKUP = {
0x10b: '32_BIT',
0x20b: '64_BIT',
0x107: 'ROM_IMAGE',
}
class ScanPe(strelka.Scanner):
"""Collects metadata from PE files."""
def scan(self, data, file, o... | [
"liburdi.joshua@gmail.com"
] | liburdi.joshua@gmail.com |
b2dc7e238687297569b877965faf69acc67f19ed | 37413580d8f2402068fc9658fbe3df7b897fb728 | /admm1.py | d442db9484c2325200152a67832e3ab97555e760 | [] | no_license | johnston-jeremy/mmv_cvx | b104b3afafe7a3a3ae2e4ebcf814c2b78c751ac1 | 8938a42e69f98da6b6b208114422770eddeaca47 | refs/heads/main | 2023-08-21T19:10:33.897425 | 2021-10-20T04:12:35 | 2021-10-20T04:12:35 | 411,396,714 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | import numpy as np
import numpy.linalg as la
from proximal_operators import prox_l2_norm_batch
def admm_problem1(Y, p):
N, L, M, mu, beta, taux, gamma = p.N, p.L, p.M, p.mu, p.beta, p.taux, p.gamma
X = np.zeros((N,M),dtype=complex)
E = np.zeros_like(Y)
T = np.zeros_like(Y)
A = p.A
AtA = np.matmul(A.T.conj... | [
"jjohnston1994@gmail.com"
] | jjohnston1994@gmail.com |
d6f9c06998c30989b694c28b3da3ce04272f062f | 61939b14aefb49057ac6aa93ea2b33c2a967988b | /actvision/config/urls.py | 70223914199c62ea7aa80dce37b2bb1ee64987bd | [] | no_license | ninanonansilo/actvision826 | 7e237608703e58e7bb3ea21e34044c790f07bc12 | fdd7852ce2a92199919f58836a81675122842e7a | refs/heads/master | 2023-07-05T01:06:57.149773 | 2021-08-26T11:51:14 | 2021-08-26T11:51:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,067 | py | """Actvision URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"ckdgl@DESKTOP-6NQFU1P"
] | ckdgl@DESKTOP-6NQFU1P |
e9a1e970d4704ef0445f93aed0cd5162806488f7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03273/s702731643.py | a626a36c61e3c295dfc6c90d75e2a4adb265c98f | [] | 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 | 745 | py | from collections import defaultdict
import itertools
import copy
def readInt():
return int(input())
def readInts():
return list(map(int, input().split()))
def readChar():
return input()
def readChars():
return input().split()
def p(arr,b="\n",e="\n"):
print(b,end="")
for i in arr:
for j in i:
pr... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a11679509d39df99aea016f09d46980e5ad22918 | d02e279c61c111d250812946f299828330947ed6 | /easy/remove element.py | e5afce3b88516929d4662fde1ee3670b0a0f3576 | [] | no_license | wlawt/leetcode | b1599528e027bd8bfd2581f3bc56bb3680118c4b | c00fdce2f5f1ed1acc15f74f98c99b7139fedb50 | refs/heads/master | 2023-02-20T05:42:34.307169 | 2021-01-22T01:48:30 | 2021-01-22T01:48:30 | 326,090,331 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | class Solution:
def removeElement(self, nums: List[int], val: int) -> int:
i=0
nums.sort()
for j in range(len(nums)):
if nums[j] != val:
nums[i] = nums[j]
i+=1
return i
| [
"williamlaw.wtl@gmail.com"
] | williamlaw.wtl@gmail.com |
296215af5720028bb4c81737ec6fe46db989de0c | 4648437f4004530142e8aaf7bc65ffc9df121058 | /asgi.py | b3e33727dc5c089f91996f06e4e404eb7442c29d | [] | no_license | YashDilipShah/KC_random_forest | ebca680198b6db27888f1b315153e85149050b06 | 5cfea708450f09569e7f93cc74ec9e4d38bfc312 | refs/heads/master | 2020-12-27T18:30:22.352301 | 2020-02-27T21:08:19 | 2020-02-27T21:08:19 | 238,005,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
ASGI config for houseprice 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.setdefau... | [
"noreply@github.com"
] | YashDilipShah.noreply@github.com |
f7cf518c9adba372fba54eac9d1c3ca7dbadeeac | 44aa5314f0291f6a5579214ba2d57b894ddcd1ec | /backend/dashboard/models.py | 82b3d803f623cfda4b862f4232d35504c23846ec | [] | no_license | dimnl/modum | f81fef16a599d79f2083ac72484857aadc52a87d | b31f80ac4c1e77ddbcd11d4eb2b1937f1c9215d7 | refs/heads/master | 2022-06-28T02:30:19.190845 | 2020-05-03T04:55:39 | 2020-05-03T04:55:39 | 260,448,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | from django.db import models
# Country information.
class Country(models.Model):
name = models.CharField(max_length=120)
description = models.TextField()
focus = models.CharField(max_length=120, default="")
def _str_(self):
return self.name
# Sectors information.
class Sector(models.Model):
... | [
"alexandru.neculai96@gmail.com"
] | alexandru.neculai96@gmail.com |
d090e08a3de3c1ee882e0a3704be94198a57b77b | 70134d55728500641c6edc422bb34159c0816fb4 | /fi/migrations/0002_blog.py | 4ebecd9c47fff0dcc69bebaed2d594afd74790f5 | [] | no_license | leenamkyoung/forfor | 9f3df218b67f16eb68f0c928ec5566e9f94bc183 | bbc725941bb5543871f27cf4783b6f986d83c6a9 | refs/heads/master | 2022-12-11T19:31:23.561523 | 2019-10-19T11:44:44 | 2019-10-19T11:44:44 | 205,156,784 | 0 | 0 | null | 2022-11-22T04:13:04 | 2019-08-29T12:16:33 | HTML | UTF-8 | Python | false | false | 626 | py | # Generated by Django 2.2.3 on 2019-08-16 05:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fi', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
('id', models.A... | [
"729497@likelion.org"
] | 729497@likelion.org |
6e94570e6231536349f4848a253e2446a7657101 | e1e4bf7539269bf5f34b9ea02b2841f287e047e0 | /test/test_graph.py | daeb7856a893c70921723f3d5964754dc0e57945 | [] | no_license | melifluos/twitter_age_detection | 2b39d0477eef193e71dbd07b81a553ca7010d4cd | 280165c597849e59089b461f2f51c3604f16bb94 | refs/heads/master | 2020-04-11T05:57:16.942127 | 2017-05-18T09:44:54 | 2017-05-18T09:44:54 | 68,198,226 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,291 | py | __author__ = 'benchamberlain'
from ..graph import Graph
from scipy.sparse import csr_matrix
import numpy as np
data = csr_matrix(np.array([[0, 1, 0, 1], [1, 0, 1, 1], [0, 1, 0, 1], [1, 1, 1, 0]]))
data1 = csr_matrix(np.array([[0, 1], [1, 0]]))
edges = np.array([[1, 3, 0], [0, 2, 3], [1, 3, 0], [0, 1, 2]])
degs = np... | [
"ben@starcount.com"
] | ben@starcount.com |
78a12d8bff14792b00e4507e76858d1a178bc660 | c60ef27fe285c73fad4076122bb3d6f2fe05f111 | /fragscapy/modifications/ipv4_frag.py | 02fb8dd3eaf1d8ea14cfed0938fc1dfb0fb6c079 | [
"MIT"
] | permissive | daeon/Fragscapy | be88d8b3c6fc309515ecf5f06939f43ddf8022a5 | 3ee7f5c73fc6c7eb64858e197c0b8d2b313734e0 | refs/heads/master | 2023-08-31T09:27:31.931466 | 2021-05-27T20:01:11 | 2021-05-27T20:01:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | """Fragments the IPv4 packets at the L3-layer."""
import scapy.layers.inet
import scapy.packet
from fragscapy.modifications.mod import Mod
from fragscapy.packetlist import PacketList
class Ipv4Frag(Mod):
"""Fragments the IPv4 packets at the L3-layer.
Fragment each IPv4 packet. the fragmentation size must b... | [
"frederic.guihery@amossys.fr"
] | frederic.guihery@amossys.fr |
57f3fd827be2d763a94518ae48d40d7b18419a79 | 6a275ce8642562f93c659b58f5c47bc5cf84f85c | /luffy_django/x.py | ca687f2cd7b3383d3e77b26de20b5d659e1fde9f | [] | no_license | LXianB/school_city | ec2d5080ae13bc3e0279fe9f0cee55a60269efa1 | 7c06deb063d3ed1c20c6b26275f51111e280bb79 | refs/heads/master | 2020-07-28T19:38:50.257633 | 2019-09-19T09:28:28 | 2019-09-19T09:28:28 | 209,513,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | import json
v = {
1:'db',
2:'sb',
}
s = json.dumps(v)
print(json.loads(s))
| [
"1135487517A392C3588D2B7E9075EE33@i-search.com.cn"
] | 1135487517A392C3588D2B7E9075EE33@i-search.com.cn |
c82bef90561c2f2fe7c38bf3d5bde226a9fd1930 | 33f448e2d3315f758675c852e5853a16813a211b | /melon/crawler/forms.py | 34a1d217bbc00cff1c396a272af7ed993f140571 | [] | no_license | CuCTeMeH/image_scrapper | f400c4b67934fa17dc48eeaf2355f91bd379b540 | 567e301840d648a4ca912dfa1eb3228cc973838e | refs/heads/master | 2020-06-08T14:25:15.572146 | 2013-08-15T20:25:36 | 2013-08-15T20:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django import forms
from crawler.models import site_url, site_image
from django.http import HttpResponse
class UrlForm(forms.Form):
url = forms.URLField() | [
"kutinchev87@gmail.com"
] | kutinchev87@gmail.com |
a341ad35c0cc89c48ba55282eb9191fa23f561e4 | af2b4fbb514468846b2d96f5010292d9b973b819 | /tests/test_cli.py | 2f1eeee3b88c87c7ac853abcc6124c52ef2a6a1d | [
"MIT"
] | permissive | rdimaio/parsa | 350f4f2b8bb07d11ce2f3edf359b758208c8f79e | 9ce45235efb702cea0aa4254ed2f2c91d56d34a8 | refs/heads/master | 2021-07-25T17:46:29.169755 | 2020-04-13T11:38:44 | 2020-04-13T11:38:44 | 146,991,563 | 1 | 0 | MIT | 2018-10-11T21:11:34 | 2018-09-01T11:08:47 | Python | UTF-8 | Python | false | false | 1,690 | py | """Tests for utils/cli.py.
Tests:
parse_arguments:
empty_args
no_output_arg_passed
output_arg_passed
_set_arguments:
tested implicitly in the parse_arguments test
"""
import unittest
import os
import sys
try:
from unittest import mock
except ImportError:
import mock
s... | [
"riccardodimaio11@gmail.com"
] | riccardodimaio11@gmail.com |
e8ba2a98ff92412f2246fd72b4c6ec99a9424125 | 4c0a2efb54a87e8419c530e49173484660021c16 | /src/demo_hic_et_nunc/types/hen_minter/storage.py | f5033f16e1f986ad59cd0840b788ee2872f06481 | [
"MIT"
] | permissive | jellybazil/dipdup-py | 7cc6641b7a25379034be401626d91d17d2493f43 | 950b086effbfce78080461ecc2f959ba7a8ba998 | refs/heads/master | 2023-08-12T06:50:01.445161 | 2021-10-16T20:52:29 | 2021-10-16T20:52:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # generated by datamodel-codegen:
# filename: storage.json
from __future__ import annotations
from typing import Dict
from pydantic import BaseModel, Extra
class Royalties(BaseModel):
class Config:
extra = Extra.forbid
issuer: str
royalties: str
class Swaps(BaseModel):
class Config:
... | [
"noreply@github.com"
] | jellybazil.noreply@github.com |
558d7cf4a36cfe878990521818b11026bcc8b7b2 | bba60e8fdde48cdcd07b0fef80e85f931b9377af | /labs/week5/perspective_lab.py | 8dd0c967dd763a09d6bcf4c90c1ea411892f1af2 | [] | no_license | atomminder/Coursera_Brown_Coding_the_matrix | dc233e2ecfc7025a15f7c5b72c2c2b3501e13249 | 5e5e26cff4db4b39e63acf003c00350c1d83a5d7 | refs/heads/master | 2016-09-06T02:59:04.266312 | 2013-08-26T04:52:42 | 2013-08-26T04:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,462 | py | from image_mat_util import *
from mat import Mat
from matutil import *
from vec import Vec
from solver import solve
## Task 1
def move2board(v):
'''
Input:
- v: a vector with domain {'y1','y2','y3'}, the coordinate representation of a point q.
Output:
- A {'y1','y2','y3'}-vector z, the c... | [
"ice.sagittarius@gmail.com"
] | ice.sagittarius@gmail.com |
526bfabd8d4add6feced315ac34c366676ccfe3d | 69864d3134f224fb00c46327f7cd4f34c8749f3f | /bongo/apps/frontend/tests/view_tests.py | 1fbb400ab0d3d6551e735cfffb3308c990d2cd84 | [
"MIT"
] | permissive | BowdoinOrient/bongo | 4298e2f1a353be94640ceb2b24da1178abaf92ec | 3a78dd8a8f9d853661ba9f0b7df900ec497940a1 | refs/heads/develop | 2021-01-17T17:07:18.582716 | 2015-10-25T15:33:47 | 2015-10-25T15:33:47 | 18,506,776 | 3 | 1 | null | 2015-10-25T15:33:48 | 2014-04-07T04:57:02 | Python | UTF-8 | Python | false | false | 3,185 | py | from django.test import TestCase
from bongo.apps.bongo.tests import factories
class ArticleViewTestCase(TestCase):
def test_by_slug(self):
"""Test that you can route to an article by using its slug"""
post = factories.PostFactory.create()
response = self.client.get("/article/{}/".format(... | [
"bjacobel@localytics.com"
] | bjacobel@localytics.com |
0f06f71767bd30c22c6e18ec01e9a0c89ee695ce | 3dfaf9d28b59c23ee3432c26dbf499589645a0b7 | /timed_io.py | 7326af92a0c9a56229bd514e916cbf0b46495fc0 | [] | no_license | wielgusm/timed_new | c9b82575c2cc77a83fd94b1ee7a085748f8b726f | d0017af0985bad0fd5cb98f675382f05824650d8 | refs/heads/master | 2020-03-29T01:46:21.353351 | 2018-11-05T17:14:15 | 2018-11-05T17:14:15 | 149,405,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,272 | py | import sys, os, itertools
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#import qmetric
from timed_new import qmetric
from astropy.time import Time
import datetime as datetime
try:
import ehtim as eh
except ModuleNotFoundError:
sys.path.append('/Volumes/DATAPEN/Shared/EHT/EHTIM/eht-imag... | [
"maciek.wielgus@gmail.com"
] | maciek.wielgus@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.