hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
37d8fd4dcc1b9ac312c19fb8081a8d317129c72a
2,490
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/63c1/making_change/making_change.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/63c1/making_change/making_change.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/63c1/making_change/making_change.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys def calculate_change(amount, denominations, cache): # THIRD: if amount is 0, only one way to make change if amount == 0: return 1 # FOURTH: if only one denomination, only one way to make change elif len(denominations) == 1: return 1 # FIFTH: if amount > 0 and denoms ...
44.464286
123
0.655823
37e3d9356689fc0b7f11b87db1c397d9acc57387
208
py
Python
pacman-termux/test/pacman/tests/provision001.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/provision001.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/provision001.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "-S provision" sp = pmpkg("pkg1") sp.provides = ["provision=1.0-1"] self.addpkg2db("sync", sp) self.args = "-S provision" self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_EXIST=pkg1")
18.909091
33
0.697115
f439221a31fe2fb8471cf421fdaa5f74c9c3dabf
3,475
py
Python
raw_code/pulson440/backprojectionr.py
stevenruidigao/bwsiuassar2019
25e267d2c9d96c767f7f9ea168a27bcad56690b7
[ "MIT" ]
null
null
null
raw_code/pulson440/backprojectionr.py
stevenruidigao/bwsiuassar2019
25e267d2c9d96c767f7f9ea168a27bcad56690b7
[ "MIT" ]
null
null
null
raw_code/pulson440/backprojectionr.py
stevenruidigao/bwsiuassar2019
25e267d2c9d96c767f7f9ea168a27bcad56690b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """A script to run backprojection.""" __author__ = "Steven Gao" __version__ = "1.0" __maintainer__ = "Steven Gao" __email__ = "stevenruidigao@gmail.com" import pickle import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import argparse...
46.959459
161
0.686331
f45e4b75436ec5eed727467b4b91257e3769ebe5
153
py
Python
polls/admin.py
Murphy-KS/MyTimeMashine
a1cd5b17b239a556b1d234aace9b333f71ec2045
[ "MIT" ]
null
null
null
polls/admin.py
Murphy-KS/MyTimeMashine
a1cd5b17b239a556b1d234aace9b333f71ec2045
[ "MIT" ]
null
null
null
polls/admin.py
Murphy-KS/MyTimeMashine
a1cd5b17b239a556b1d234aace9b333f71ec2045
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Poll, Choice admin.site.register(Choice) admin.site.register(Poll) # Register your models here.
15.3
32
0.784314
beb05e3117ffe7fe6cc59112b793777e77a6e250
2,083
py
Python
Aero/2021/crypto/boggart/boggart.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Aero/2021/crypto/boggart/boggart.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Aero/2021/crypto/boggart/boggart.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3.8 from gmpy import next_prime from random import getrandbits def bytes_to_long(data): return int.from_bytes(data, 'big') class Wardrobe: @staticmethod def create_boggarts(fear, danger): # for each level of danger we're increasing fear while danger > 0: ...
28.534247
106
0.667787
22a941fc118804904aaf2507451f0d76856691d6
18,171
py
Python
RDS/circle3_central_services/token_storage/tests/lib/test_5_storage_service.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle3_central_services/token_storage/tests/lib/test_5_storage_service.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle3_central_services/token_storage/tests/lib/test_5_storage_service.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
import unittest from RDS import LoginService, OAuth2Service, Token, OAuth2Token, User from RDS.ServiceException import * from lib.Storage import Storage from pactman import Consumer, Provider from datetime import datetime from time import time import logging import sys logger = logging.getLogger() logger.level = log...
36.709091
103
0.625117
fe0fa5c88c7835ccd25b4a929e033e73e65826fa
701
py
Python
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/factor_mismatch_regexp.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/factor_mismatch_regexp.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/factor_mismatch_regexp.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import datetime from logging import getLogger from typing import Any, List, Tuple from watchmen_data_kernel.storage import TopicDataService from watchmen_model.admin import Factor from watchmen_model.dqc import MonitorRule from .factor_use_regexp import factor_use_regexp from .types import RuleResult lo...
31.863636
78
0.821683
7192a1975b1e156b28f8fcc937831e387c3ee30e
13,323
py
Python
lale/lib/autoai_ts_libs/flatten_auto_ensembler.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
265
2019-08-06T14:45:43.000Z
2022-03-30T23:57:48.000Z
lale/lib/autoai_ts_libs/flatten_auto_ensembler.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
467
2019-08-08T02:01:21.000Z
2022-03-25T16:12:00.000Z
lale/lib/autoai_ts_libs/flatten_auto_ensembler.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
81
2019-08-07T19:59:31.000Z
2022-03-31T09:11:58.000Z
# Copyright 2020 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.50578
152
0.495834
1c5c0a789d8cc4fa96f504d2984ef03d389fedd8
13,944
py
Python
FTP_photogrammetry_Server.py
pd3d/RLS
920693cd96a2ec0d8093ad5953b8eef910c7ab33
[ "Apache-2.0" ]
null
null
null
FTP_photogrammetry_Server.py
pd3d/RLS
920693cd96a2ec0d8093ad5953b8eef910c7ab33
[ "Apache-2.0" ]
null
null
null
FTP_photogrammetry_Server.py
pd3d/RLS
920693cd96a2ec0d8093ad5953b8eef910c7ab33
[ "Apache-2.0" ]
null
null
null
''' * * FTP server for capturing and storing images that are * to be pulled by client for 3D image reconstruction. * * AUTHOR : Mohammad Odeh * DATE WRITTEN : Aug. 10th, 2018 Year of Our Lord * LAST CONTRIBUTION DATE : Aug. 14th, 2018 Year of Our Lord * ''' # Import ...
56.682927
138
0.39759
98d4558e66de0cb69e5c77fd4f80741d337cc0b3
43
py
Python
data-pipeline/src/data_pipeline/helpers/__init__.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
38
2018-02-24T02:33:52.000Z
2020-03-03T23:17:04.000Z
data-pipeline/src/data_pipeline/helpers/__init__.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
385
2018-02-21T16:53:13.000Z
2020-03-04T00:52:40.000Z
data-pipeline/src/data_pipeline/helpers/__init__.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
13
2020-05-01T13:03:54.000Z
2022-02-28T13:12:57.000Z
from .annotate_table import annotate_table
21.5
42
0.883721
c72ec496abcc925d5b2e994e9e7e95542061d007
30,570
py
Python
Vorlesungsbeispiele/UA_TrafficLight/tools/pyUANamespace/ua_namespace.py
zmanjiyani/PLT_MRT_ARM-RPi2
da77ab8ddf652a12ae6a6647c993daa2f94b39fb
[ "MIT" ]
4
2015-11-11T14:02:17.000Z
2021-11-29T16:07:38.000Z
Vorlesungsbeispiele/UA_TrafficLight/tools/pyUANamespace/ua_namespace.py
zmanjiyani/PLT_MRT_ARM-RPi2
da77ab8ddf652a12ae6a6647c993daa2f94b39fb
[ "MIT" ]
6
2019-04-20T14:48:58.000Z
2020-08-26T15:13:02.000Z
Vorlesungsbeispiele/UA_TrafficLight/tools/pyUANamespace/ua_namespace.py
zmanjiyani/PLT_MRT_ARM-RPi2
da77ab8ddf652a12ae6a6647c993daa2f94b39fb
[ "MIT" ]
9
2016-01-10T15:14:28.000Z
2021-10-13T22:45:19.000Z
#!/usr/bin/env/python # -*- coding: utf-8 -*- ### ### Author: Chris Iatrou (ichrispa@core-vector.net) ### Version: rev 13 ### ### This program was created for educational purposes and has been ### contributed to the open62541 project by the author. All licensing ### terms for this source is inherited by the terms and...
38.308271
185
0.648381
c755f4192129900c3269da19023da612114188a8
2,977
py
Python
Externals/twitter/Measure.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
15
2019-12-20T08:24:31.000Z
2022-03-18T09:24:25.000Z
Externals/twitter/Measure.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
124
2020-04-20T04:36:49.000Z
2022-01-29T11:08:09.000Z
Externals/twitter/Measure.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
12
2020-07-08T22:19:39.000Z
2022-03-19T09:13:11.000Z
# pylint: disable=C0114 import json import re import unicodedata class Measure: def __init__(self): self.weight_config = {} with open('config/api_weights.json') as js: self.weight_config = json.load(js) self.next_separator = { '\u200b': '\n', '\n': '\t',...
41.347222
91
0.563655
c769ea119caac3ac856c120cc1e3037fc9c50e1f
1,029
py
Python
google_places_popularity/scraper.py
tho-wa/virushack
2bb057b4557969d4bf8899b78fe9fc2d5ef5ae13
[ "Apache-2.0" ]
null
null
null
google_places_popularity/scraper.py
tho-wa/virushack
2bb057b4557969d4bf8899b78fe9fc2d5ef5ae13
[ "Apache-2.0" ]
null
null
null
google_places_popularity/scraper.py
tho-wa/virushack
2bb057b4557969d4bf8899b78fe9fc2d5ef5ae13
[ "Apache-2.0" ]
null
null
null
import boto3 import json import populartimes from datetime import datetime import time import os if "googleapis_keys" in os.environ: api_key = os.environ["googleapis_keys"] else: with open("api_keys.txt") as f: api_key = f.readline() date = datetime.now() with open("place_ids/staedte_koordinaten_ueber...
29.4
157
0.655977
c7b02f456880336c7f9cb5656bc6a2281e00a975
107
py
Python
ai-api-docker/init.py
Zeno-Paukner/cellarius
904b88c6dc33cf4ec2f6d70d3e1acf175b11967a
[ "Unlicense" ]
1
2021-12-06T20:29:28.000Z
2021-12-06T20:29:28.000Z
ai-api-docker/init.py
Zeno-Paukner/cellarius
904b88c6dc33cf4ec2f6d70d3e1acf175b11967a
[ "Unlicense" ]
null
null
null
ai-api-docker/init.py
Zeno-Paukner/cellarius
904b88c6dc33cf4ec2f6d70d3e1acf175b11967a
[ "Unlicense" ]
null
null
null
from transformers import pipeline generator = pipeline('text-generation', model='EleutherAI/gpt-neo-1.3B')
35.666667
72
0.794393
c7c761f60dced3a57215fc6bb25a6d2e00b7e71d
1,307
py
Python
src/test_pi/test_z_integration_pi.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
null
null
null
src/test_pi/test_z_integration_pi.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
null
null
null
src/test_pi/test_z_integration_pi.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
2
2020-02-05T05:19:18.000Z
2020-02-05T15:04:32.000Z
import unittest import listener from argparse import Namespace from multiprocessing import Process import time class TestZIntegrationPi(unittest.TestCase): def testZIntegration(self): """ Integration test for Pi (Listener-classifier and recorder) Will not run fully during covera...
32.675
67
0.498852
40248b955bc7bc8c9acfa516a03a26ae18e14063
682
py
Python
7-assets/past-student-repos/LambdaSchool-master/m7/71a1/applications/lookup_table/lookup_table.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/71a1/applications/lookup_table/lookup_table.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/71a1/applications/lookup_table/lookup_table.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import math import random current_cache = {} def slowfun_too_slow(x, y): v = math.pow(x, y) v = math.factorial(v) v //= (x + y) v %= 982451653 return v def slowfun(x, y): """ Rewrite slowfun_too_slow() in here so that the program produces the same output, but completes quickly inste...
20.058824
76
0.612903
9eebc831f9aa4cacddf8b8555eae24a779b59d02
490
py
Python
nz_crawl_demo/day4/demo4.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day4/demo4.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day4/demo4.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
import time import threading def driving(): for x in range(3): print('%s正在开车' % threading.current_thread()) #当前线程 time.sleep(2) def loling(): for x in range(3): print('%s正在撸' % threading.current_thread()) #当前线程 time.sleep(2) def main(): t1 = threading.Thread(target=drivin...
21.304348
58
0.62449
730976e9b3c951bdffd4529cdf4660431e8121b8
3,342
py
Python
chord_rec/models/seq2seq/Decoder.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/models/seq2seq/Decoder.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/models/seq2seq/Decoder.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
import random import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F class BaseDecoder(nn.Module): """ The Decoder module of the Seq2Seq model """ def __init__(self, emb_size, decoder_hidden_size, output_size, n_layers, dropout = 0.5): super().__init__() ...
40.756098
125
0.601735
b4458407b93a3a8a447444bcc17595605ac86a28
3,234
py
Python
nz_django/day3/db_relation_demo/cms/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day3/db_relation_demo/cms/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day3/db_relation_demo/cms/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.shortcuts import render from django.http import HttpResponse from .models import Article,Category,Tag from front.models import FrontUser,UserExtension # Create your views here. def index(request): # category = Category(name='伦理') # category.save() # article = Article(title='今天已经第15天数字连续下降',conte...
30.8
107
0.671923
c343d53ab2f63f7b8639c78418c14efe7fd0f49b
7,921
py
Python
verteilung_daten/sig_coocurrence.py
ovanov/Kollokationsprofile-von-DFCP
4d45410a4f0b1e692f18da965d51d9a8e5eb7a08
[ "MIT" ]
null
null
null
verteilung_daten/sig_coocurrence.py
ovanov/Kollokationsprofile-von-DFCP
4d45410a4f0b1e692f18da965d51d9a8e5eb7a08
[ "MIT" ]
null
null
null
verteilung_daten/sig_coocurrence.py
ovanov/Kollokationsprofile-von-DFCP
4d45410a4f0b1e692f18da965d51d9a8e5eb7a08
[ "MIT" ]
null
null
null
""" This programm computes the HEATMAPS and STATISTICAL TESTS for the collocators that occur AFTER a dfcp or 'dass' """ import re import pandas as pd import scipy.stats as stats # import stat calculator import matplotlib.pyplot as plt # plot graphs import seaborn as sns # create heatmaps import pos_plots.dass.plot_10w...
49.81761
171
0.617599
d2865684fe5a8ab711c2d765465bd01c974ea6be
3,405
py
Python
Packs/FireMonSecurityManager/Integrations/FireMonSecurityManager/FireMonSecurityManager_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FireMonSecurityManager/Integrations/FireMonSecurityManager/FireMonSecurityManager_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FireMonSecurityManager/Integrations/FireMonSecurityManager/FireMonSecurityManager_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import io def util_load_json(path): with io.open(path, mode='r', encoding='utf-8') as f: return json.loads(f.read()) def test_authenticate_user(requests_mock): from FireMonSecurityManager import Client, authenticate_command mock_response = util_load_json('test_data/get_a...
37.833333
118
0.651101
7d7d9c9610349691de5cb801db794b19f49dbdb2
95
py
Python
WD/Cwiczenia/zamianaNazwisko.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
1
2020-02-29T14:38:33.000Z
2020-02-29T14:38:33.000Z
WD/Cwiczenia/zamianaNazwisko.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
WD/Cwiczenia/zamianaNazwisko.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
imie="URSZULA".capitalize() nazwisko=u"GAŁĄZKA" print(imie) print(nazwisko.capitalize())
15.833333
29
0.726316
81a5c1bd88c6a304bf324b41a7af89ec182f534f
580
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/fadbm.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/fadbm.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/fadbm.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
#!/usr/bin/env python # Copyright (c) 2008-2010, Michigan State University import sys from __init__ import read_fasta_sequences import DBConstants # A shell interface to the screed FADBM database writing function if __name__ == "__main__": # Make sure the user entered the command line arguments correctly if ...
27.619048
77
0.703448
b5145007c048c6799093aaae1841cb35c39bf3cf
1,243
py
Python
app/resource.py
openbikebox/websocket-client
50b61a70ffcff1acdc13ba69c017e671bd3f983f
[ "MIT" ]
null
null
null
app/resource.py
openbikebox/websocket-client
50b61a70ffcff1acdc13ba69c017e671bd3f983f
[ "MIT" ]
null
null
null
app/resource.py
openbikebox/websocket-client
50b61a70ffcff1acdc13ba69c017e671bd3f983f
[ "MIT" ]
null
null
null
# encoding: utf-8 """ openbikebox websocket-client Copyright (c) 2021, binary butterfly GmbH Use of this source code is governed by an MIT-style license that can be found in the LICENSE file. """ from .gpio import gpio from .websocket_queue import websocket_queue class Resource: status = 'closed' owner_type...
27.622222
103
0.651649
83cb0607fda9f40da4876a584f9656e6115cb493
5,890
py
Python
packages/watchmen-meta/src/watchmen_meta/admin/enumeration_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/admin/enumeration_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/admin/enumeration_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import List, Optional from watchmen_meta.common import TupleService, TupleShaper from watchmen_model.admin import Enum, EnumItem from watchmen_model.common import DataPage, EnumId, EnumItemId, Pageable, TenantId from watchmen_storage import ColumnNameLiteral, EntityCriteria, EntityCriteriaExpression, Entit...
34.647059
112
0.767912
83ebc4a9e97fe201538cf1434bafba18f064f7cc
2,903
py
Python
python/coursera_python/WESLEYAN/week3/COURSERA/First_Prog.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/First_Prog.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/First_Prog.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ # -StartPython.py *- coding: utf-8 -*- """ Spyder Editor #%% starts a new cell. Use second green triangle to run just the cell that your mouse has last clicked in (or Ctrl-Enter on a PC or Command-Return on a Macintosh or Menu>Run>Run Cel...
24.811966
83
0.690665
f7b52ddd16a21a5f5b3fffe7b72421b8f592956d
5,406
py
Python
compare_covid.py
schneebonus/Covid19Compare
7a9259376250ffa8200b5230c39ca1b7b12a70aa
[ "MIT" ]
null
null
null
compare_covid.py
schneebonus/Covid19Compare
7a9259376250ffa8200b5230c39ca1b7b12a70aa
[ "MIT" ]
null
null
null
compare_covid.py
schneebonus/Covid19Compare
7a9259376250ffa8200b5230c39ca1b7b12a70aa
[ "MIT" ]
null
null
null
import time import requests from datetime import datetime # Base url of morgenpost api base_url = "https://interaktiv.morgenpost.de/corona-virus-karte-infektionen-deutschland-weltweit/data/" # endpoints of the api path_current = "Coronavirus.current.v2.csv" # this is used to request the latest date path_history =...
53
213
0.760636
f75153a56539e5cd43f7d35d9a7b173414aa58e2
198
py
Python
tests/__init__.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
tests/__init__.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
tests/__init__.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
import os def read_test_file(filename: str) -> str: file = open(os.path.join(os.path.dirname(__file__), 'test_data/' + filename)) content = file.read() file.close() return content
22
81
0.666667
f76f436dfddb9573f2af37992436367cfb591146
2,433
py
Python
adventure/models.py
scottrenz/mud_build
42640a47ab4c5ecdfd1cdc55168d9d394850c68a
[ "MIT" ]
2
2021-02-22T02:55:33.000Z
2021-02-24T09:12:34.000Z
adventure/models.py
scottrenz/mud_build
42640a47ab4c5ecdfd1cdc55168d9d394850c68a
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/04_cs_build_week_1/adventure/models.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
1
2021-02-22T02:55:34.000Z
2021-02-22T02:55:34.000Z
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from rest_framework.authtoken.models import Token import uuid class Room(models.Model): title = models.CharField(max_length=50, default="DEFAULT TITLE") d...
35.26087
116
0.657213
f7804526430647625615cdf4ef1721d98fe75123
789
py
Python
04.DFS_BFS/HG/B2178.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
04.DFS_BFS/HG/B2178.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
04.DFS_BFS/HG/B2178.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
import sys from collections import deque N, M = map(int, sys.stdin.readline().split()) def pprint(arr): for line in arr: print(line) def bfs(): mx = [1, 0, -1, 0] my = [0, 1, 0, -1] q = deque([(0,0,1)]) visited = [(0,0)] cnt = 0 while q: x, y, c = q.popleft() cnt = ...
25.451613
68
0.451204
e394b9815afb9e73236da86dfb6675fa2675858b
2,419
py
Python
mcsf/services/crypto.py
beremaran/mcsf
7651e849b860cf4f0517fa8e4fc4b7a417bbc3a4
[ "MIT" ]
null
null
null
mcsf/services/crypto.py
beremaran/mcsf
7651e849b860cf4f0517fa8e4fc4b7a417bbc3a4
[ "MIT" ]
null
null
null
mcsf/services/crypto.py
beremaran/mcsf
7651e849b860cf4f0517fa8e4fc4b7a417bbc3a4
[ "MIT" ]
null
null
null
import os from cryptography.hazmat.primitives import serialization as crypto_serialization from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.hazmat.backends import default_backend as crypto_default_backend class CryptoService: def get_public_key(self): if not self._has_ssh_keys(...
27.179775
82
0.610169
5428c734d42699c5169be0d531aa182539f9d4f2
142
py
Python
DigitarNome.py
fpsantosx/DesenWeb
a226b742612731a274cb98319bac87079c57eb2f
[ "Apache-2.0" ]
null
null
null
DigitarNome.py
fpsantosx/DesenWeb
a226b742612731a274cb98319bac87079c57eb2f
[ "Apache-2.0" ]
null
null
null
DigitarNome.py
fpsantosx/DesenWeb
a226b742612731a274cb98319bac87079c57eb2f
[ "Apache-2.0" ]
null
null
null
'''Faça um programa que solicita o nome do usuário e imprima na Vertical''' nome=input("Digite seu nome: ") for x in nome: print(x)
23.666667
76
0.669014
589792a04a4c62e90c224c3ac29336aba34719fc
192
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v5_0/remove_birthday_events.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/remove_birthday_events.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/remove_birthday_events.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): for e in frappe.db.sql_list("""select name from tabEvent where repeat_on='Every Year' and ref_type='Employee'"""): frappe.delete_doc("Event", e, force=True)
27.428571
63
0.723958
3f9dbcbfa6bc12f8795ed54a6a4d923943b7f8f7
3,386
py
Python
solutions/MFA/webserver/src/deep_speaker/utils.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-01-11T18:40:22.000Z
2021-01-11T18:40:22.000Z
solutions/MFA/webserver/src/deep_speaker/utils.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/MFA/webserver/src/deep_speaker/utils.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import logging import os import random import shutil from glob import glob import click import dill import numpy as np import pandas as pd from natsort import natsorted from deep_speaker.constants import TRAIN_TEST_RATIO logger = logging.getLogger(__name__) def find_files(directory, ext='wav'): return sorted(g...
27.983471
115
0.691672
12c3052413e06f48360710afcdd609c0eeb4bdc3
3,790
py
Python
research/cv/StackedHourglass/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/StackedHourglass/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/StackedHourglass/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 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...
37.156863
112
0.719261
6705edd1ff9c4511ce17ad47222632e2bd441de0
1,464
py
Python
Utils/py/naoth/naoth/matlab_tools.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/naoth/naoth/matlab_tools.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/naoth/naoth/matlab_tools.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import scipy.io as spio import numpy as np # https://pyhogs.github.io/reading-mat-files.html def loadmat(filename): ''' this function should be called instead of direct spio.loadmat as it cures the problem of not properly recovering python dictionaries from mat files. It calls the function check keys to cure ...
29.877551
121
0.724727
67900756cfb8a6babab7a61d1e331ac938d61b6c
26,459
py
Python
rbac/common/base/base_message.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
rbac/common/base/base_message.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2019-07-08T22:32:43.000Z
2019-07-08T22:32:43.000Z
rbac/common/base/base_message.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
40.333841
105
0.631505
7a13a0bf8de3a103a6f1684319129e463a30bc89
2,011
py
Python
AdvancePython-master/chapter13/loop_test.py
xuyifeiCoco/python
83af27b3baf1caf157b330c580f356a94095e44d
[ "MIT" ]
26
2019-09-17T12:48:36.000Z
2022-02-24T12:27:01.000Z
AdvancePython-master/chapter13/loop_test.py
xuyifeiCoco/python
83af27b3baf1caf157b330c580f356a94095e44d
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
coding-200/chapter13/loop_test.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
20
2019-05-31T14:21:00.000Z
2021-07-27T15:58:25.000Z
#事件循环+回调(驱动生成器)+epoll(IO多路复用) #asyncio是python用于解决异步io编程的一整套解决方案 #tornado、gevent、twisted(scrapy, django channels) #torando(实现web服务器), django+flask(uwsgi, gunicorn+nginx) #tornado可以直接部署, nginx+tornado #使用asyncio # import asyncio # import time # async def get_html(url): # print("start get url") # await asyncio.sl...
30.469697
76
0.674789
55d9cdde20f4183f7758995fdbd82fc81fb649b6
268
py
Python
mobile/tools/python/modeltools/tools/loader.py
jameswu2014/Paddle-Lite
827e349ac8eb769a873fe9b3aa961af8b8b20a96
[ "Apache-2.0" ]
3
2018-08-01T09:45:48.000Z
2021-01-06T14:55:10.000Z
mobile/tools/python/modeltools/tools/loader.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
null
null
null
mobile/tools/python/modeltools/tools/loader.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
5
2020-10-13T09:30:16.000Z
2021-06-08T02:46:17.000Z
import json def loadmdl(json_path): print('mdl json path : ' + json_path) with open(json_path, 'r') as f: json_dick = json.load(f) # print(json_dick) layers = (json_dick['layer']) for layer in layers: print(layer)
22.333333
41
0.570896
361a009ef0ea53fec2ec30d40516d2e5f2d4c4b2
1,293
py
Python
loesungsvorschlaege/ml_1_lineare_regression/praxis/diabetes/lin_reg_mit_matrizen_von_hand.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
loesungsvorschlaege/ml_1_lineare_regression/praxis/diabetes/lin_reg_mit_matrizen_von_hand.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
loesungsvorschlaege/ml_1_lineare_regression/praxis/diabetes/lin_reg_mit_matrizen_von_hand.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd # Die ersten 10 Spalten beinhalten die Features. Die letzte Spalte beinhaltet das Label (Target). diabetes_data_set = pd.read_csv("diabetes_daten.csv", header=None) # Matrix X: alle 442 Zeilen und die ersten 10 Spalten => X hat die Dimension 442 x 10 matrix_X = diabetes_data_set...
34.026316
97
0.737046
186afcfa8e231f398d29f2fb657d60c01b43c8a0
1,863
py
Python
solutions/pedestrian_search/webserver/src/utils/statistics.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-04-06T06:13:20.000Z
2021-04-06T06:13:20.000Z
solutions/pedestrian_search/webserver/src/utils/statistics.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/pedestrian_search/webserver/src/utils/statistics.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import os import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import json import pickle def count_ids(root, flag=0): ids_dict = {} captions = 0 with open(root,'r') as f: info = json.load(f) for data in info: label = data['id'] - flag ids_dict[la...
29.109375
129
0.621041
a1a993a02877abdc005d3f23b3947f6267ade163
2,534
py
Python
research/cv/AttentionCluster/src/datasets/mnist_feature.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/AttentionCluster/src/datasets/mnist_feature.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/AttentionCluster/src/datasets/mnist_feature.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 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...
35.690141
102
0.649171
b819672450082e9f4a192b8ac670ae71c6735c76
1,005
py
Python
Packs/NCSCCyberAsssessmentFramework/Scripts/EntryWidgetNCSCResultsB/EntryWidgetNCSCResultsB.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/NCSCCyberAsssessmentFramework/Scripts/EntryWidgetNCSCResultsB/EntryWidgetNCSCResultsB.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/NCSCCyberAsssessmentFramework/Scripts/EntryWidgetNCSCResultsB/EntryWidgetNCSCResultsB.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 incident = demisto.incidents() cafbresult = incident[0].get("CustomFields", {}).get("cafbresultraw", {}) if type(cafbresult) != dict: cafbresult = json.loads(cafbresult) total = len(cafbresult) non_compliant_count = ( le...
27.916667
85
0.514428
3ddec3e311c97935ac9bf700e0e353406cbadbf1
111
py
Python
hello/hello_xmind.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
hello/hello_xmind.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
hello/hello_xmind.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
from xmindparser import xmind_to_dict d = xmind_to_dict('your.xmind') print(d) for target_list in d: pass
15.857143
37
0.756757
49293e5f58aa2e5c7df3cad2145f8fe8e8de5bee
98
py
Python
Weboffice/woa_contacts/models/__init__.py
whoedl61/webinaroctubre
a22048838062999753860995d21328cb9d53d652
[ "MIT" ]
null
null
null
Weboffice/woa_contacts/models/__init__.py
whoedl61/webinaroctubre
a22048838062999753860995d21328cb9d53d652
[ "MIT" ]
null
null
null
Weboffice/woa_contacts/models/__init__.py
whoedl61/webinaroctubre
a22048838062999753860995d21328cb9d53d652
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from . import res_partner from . import sale from . import crm_phonecall
16.333333
27
0.693878
65e46fc39aa86f5b0e0af3f714e4727d5d131a44
2,431
py
Python
scripts/figA6.py
gavstrik/BC
2085872f1ff4241dcf4a5ef64eaa0601fb8ac454
[ "MIT" ]
null
null
null
scripts/figA6.py
gavstrik/BC
2085872f1ff4241dcf4a5ef64eaa0601fb8ac454
[ "MIT" ]
null
null
null
scripts/figA6.py
gavstrik/BC
2085872f1ff4241dcf4a5ef64eaa0601fb8ac454
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import matplotlib.pyplot as plt plt.rcParams["font.family"] = "sans-serif" PLOTS_DIR = '../plots' """ Guess dynamics of player guesses from randomly selected groups. """ datafile_AMT = pd.read_csv('../data/amt.csv') np.random.seed(0) def plot_trajectories(df_AMT): ...
37.4
91
0.647882
b8387c066f6a0a6d0cc532a0fe8c5de5365d2cd3
180
py
Python
src/autograph/apps.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
src/autograph/apps.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
src/autograph/apps.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AutographConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'autograph' verbose_name = 'автограф'
22.5
56
0.75
a7d86ebce87dfd8d3f0446f02136b456d1512cce
13,843
py
Python
src/onegov/org/models/extensions.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/extensions.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/extensions.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from collections import OrderedDict from onegov.core.orm.mixins import meta_property, content_property from onegov.core.utils import normalize_for_url, to_html_ul from onegov.form import FieldDependency, WTFormsClassBuilder from onegov.gis import CoordinatesMixin from onegov.org import _ from onegov.org.forms.extension...
33.437198
79
0.590118
3beff584d7b2ae22f1e87b21f4973c2af5c9397d
204
py
Python
1_BasicFeatures/MemoryManagment/inplace_operations.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
1_BasicFeatures/MemoryManagment/inplace_operations.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
1_BasicFeatures/MemoryManagment/inplace_operations.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
# in-place operations: nur bei mutable types a = 10 b = 20 a = a + 1 # addition: __add__ magic method der Klasse Integer b += 1 # in-place addition: __iadd__ magic method der Klasse Integer print(a, b)
22.666667
68
0.710784
ce7fbd578d0afd3ed4de620065ad2028188627f9
1,734
py
Python
web2/bahn/migrations/0001_initial.py
git-learner-20/wp-bahn
757f9cf91ca645783ffd929a872d1e7bd4faec96
[ "MIT" ]
1
2020-01-09T22:27:29.000Z
2020-01-09T22:27:29.000Z
web2/bahn/migrations/0001_initial.py
PatriciaKaluza/wp-bahn
a98a297928a9454fa24f033e70ab7ebcdf53a5d5
[ "MIT" ]
null
null
null
web2/bahn/migrations/0001_initial.py
PatriciaKaluza/wp-bahn
a98a297928a9454fa24f033e70ab7ebcdf53a5d5
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-12-18 11:21 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Verbindung', fields=[ ...
36.125
117
0.538639
cebe03c31195f657d499266041152129a1186d8d
796
py
Python
backend/migrations/versions/a7722a4fa864_.py
davidoesch/platform
1eb6f98568cab82e28bd5350beab2042b22d99ed
[ "MIT" ]
null
null
null
backend/migrations/versions/a7722a4fa864_.py
davidoesch/platform
1eb6f98568cab82e28bd5350beab2042b22d99ed
[ "MIT" ]
null
null
null
backend/migrations/versions/a7722a4fa864_.py
davidoesch/platform
1eb6f98568cab82e28bd5350beab2042b22d99ed
[ "MIT" ]
null
null
null
"""empty message Revision ID: a7722a4fa864 Revises: a4d289b9abd3 Create Date: 2019-04-21 13:41:37.477670 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a7722a4fa864' down_revision = 'a4d289b9abd3' branch_labels = None depends_on = None def upgrade(): # ...
25.677419
81
0.689698
cec8980b30f6d4b8c074ec80bf11362c2a3b2123
1,216
py
Python
restful02/app.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
restful02/app.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
restful02/app.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from flask import Flask from flask_script import Manager from flask_restful import Api,Resource,reqparse #接口继承于 flask_restful.Resource类 app = Flask(__name__) manager = Manager(app) api = Api(app) @app.route('/') def hello_world(): return 'Hello World!' class LoginView(Resource): def get(self): retur...
25.333333
81
0.67023
0b87c5a08b7952d19f74f4fd5e072d56242f03c8
365
py
Python
exercises/zh/test_01_07.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/test_01_07.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/test_01_07.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert "spacy.load" in __solution__, "你有调用spacy.load吗?" assert nlp.meta["lang"] == "zh", "你有调用正确的模型吗?" assert nlp.meta["name"] == "core_web_sm", "你有调用正确的模型吗?" assert "nlp(text)" in __solution__, "你有正确处理文本吗?" assert "print(doc.text)" in __solution__, "你有打印Doc的文本吗?" __msg__.good( ...
33.181818
60
0.646575
0ba93c61ef8ab0f9a2ced2291c13cef14963a03a
852
py
Python
clean_data.py
michhottinger/MedCab2bw
ba47b5cdfbde459393cf3708c018d60f8d021851
[ "MIT" ]
null
null
null
clean_data.py
michhottinger/MedCab2bw
ba47b5cdfbde459393cf3708c018d60f8d021851
[ "MIT" ]
null
null
null
clean_data.py
michhottinger/MedCab2bw
ba47b5cdfbde459393cf3708c018d60f8d021851
[ "MIT" ]
null
null
null
import pandas as pd #import the data from github where it is saved url = 'https://github.com/michhottinger/MedCab2bw/blob/master/cannabis.csv?raw=true' df = pd.read_csv(url) df.head(5) url2 = 'https://raw.githubusercontent.com/DNason1999/simple_repository/master/df.csv' df2 = pd.read_csv(url2) #clean the first sour...
34.08
154
0.710094
f06216c1f0827e03cd6ed10bbad5406e97794f54
897
py
Python
exercises/zh/test_02_13.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/test_02_13.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/test_02_13.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( len(pattern1) == 2 ), "pattern1中的词符数量和字符串中的实际词符数量不符。" assert ( len(pattern2) == 3 ), "pattern2中的词符数量和字符串中的实际词符数量不符。" # Pattern 1 validation assert ( len(pattern1[0]) == 1 ), "pattern1中的第一个词符应该有一个属性。" assert any( pattern1[0].get(attr) =...
27.181818
67
0.583055
b2b2ded8d8e2c0d77620aa5fd0dcb30855a3a263
328
py
Python
Algorithms/Greedy/max_min.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Greedy/max_min.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Greedy/max_min.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys n = int(input().strip()) k = int(input().strip()) arr = sorted([int(input().strip()) for _ in range(n)]) result = sys.maxsize for i in range(0, n - k + 1): # result = min((max(arr[i:k]) - min(arr[i:k])), result) # slow result = min((arr[i + k - 1] - arr[i]), result) print(r...
21.866667
67
0.57622
043f41f1760bd61ac7ee96b2e3be23d7599ceeb1
214
py
Python
python_lessons/freecodecamp_python/006_for_loop_smallest.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/freecodecamp_python/006_for_loop_smallest.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/freecodecamp_python/006_for_loop_smallest.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
smallest = None print("Before:", smallest) for itervar in [3,41,12,9,74,15]: if smallest is None or itervar < smallest: smallest = itervar break print("Loop:", itervar, smallest) print("Smallest:", smallest)
23.777778
43
0.705607
a8b74ddcfc45ab2071f7d384beebc4e9c5b43638
9,475
py
Python
Packs/KELARaDark/Integrations/RaDark/RaDark_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/KELARaDark/Integrations/RaDark/RaDark_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/KELARaDark/Integrations/RaDark/RaDark_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import os import RaDark as integration API_KEY = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' MONITOR_ID = '0000' CLIENT = integration.Client( base_url=integration.BASE_URL, verify=True, headers={}, proxy=False, api_key=API_KEY, monitor_id=MONITOR_ID) def load_mock_response(file_name: s...
48.096447
120
0.755567
4f86f12fbd816af15816c80fc61ff39ac7780f34
41
py
Python
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_7.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_7.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_7.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def problem3_7(csv_pricefile, flower):
13.666667
38
0.780488
4f8e7e12e09bc1765d23aa578bc203ddd79ec401
5,256
py
Python
oneflow/python/test/xrt/test_reduce_op.py
wanghongsheng01/framework_enflame
debf613e05e3f5ea8084c3e79b60d0dd9e349526
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/test/xrt/test_reduce_op.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-06-16T08:37:50.000Z
2021-06-16T08:37:50.000Z
oneflow/python/test/xrt/test_reduce_op.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-11-10T07:57:01.000Z
2021-11-10T07:57:01.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
35.755102
82
0.664764
8c37c808bc692f1e953f52b3485cd224e9ea80a1
35,395
py
Python
Packs/Kafka/Integrations/KafkaV3/KafkaV3.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Kafka/Integrations/KafkaV3/KafkaV3.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Kafka/Integrations/KafkaV3/KafkaV3.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from confluent_kafka import Consumer, TopicPartition, Producer, KafkaException, TIMESTAMP_NOT_AVAILABLE, Message from typing import Tuple, Union, Dict, Callable from io import StringIO ''' IMPORTS ''' import tempfile import requests import traceback import...
42.644578
123
0.637774
4fc14e163ebd88f914945898b7b27cd2eb946187
327
py
Python
Python/pyBitwiseAutomation/__init__.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/pyBitwiseAutomation/__init__.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/pyBitwiseAutomation/__init__.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
1
2020-08-16T00:11:55.000Z
2020-08-16T00:11:55.000Z
from .autogenAccessory import * from .autogenCommon import * from .autogenPega import * from .autogenPela import * from .AutomationExtender import * from .AutomationInterface import * from .SocketDevice import * from .BitwiseDevice import * from .PegaDevice import * from .PelaDevice import * from .StepscopeDevice impo...
21.8
34
0.788991
8c7dcc66332d7bb0dee1896fb3adb31b819f7a09
3,413
py
Python
projects/controllers/utils.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/controllers/utils.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/controllers/utils.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Shared functions.""" import random import uuid from werkzeug.exceptions import NotFound from ..database import db_session from ..models import Component, Experiment, Operator, Project def raise_if_component_does_not_exist(component_id): """Raises an exception if the specified componen...
28.206612
72
0.608849
8c96964ade2a80f8980f0704eb9da8be136f085d
2,259
py
Python
Algorithms/Sorting/big_sorting.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Sorting/big_sorting.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Sorting/big_sorting.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from collections import defaultdict from operator import itemgetter d = defaultdict(list) for n in range(int(input().strip())): str_num = input() d[len(str_num)].append(str_num) sorted_d = sorted(d.items(), key=itemgetter(0)) for nums in sorted_d: print('\n'.join(sorted(nums[1]))) ...
22.366337
93
0.526339
0fb856b183a6818fbc996323093c48e65d747989
1,507
py
Python
gradcam.py
jayChung0302/SideProject-sudalchongbo
fb0a3d0aee53ba24d3b8ec2dd8c52d0e8f6c33d7
[ "MIT" ]
1
2021-03-22T12:14:30.000Z
2021-03-22T12:14:30.000Z
gradcam.py
jayChung0302/SideProject-sudalchongbo
fb0a3d0aee53ba24d3b8ec2dd8c52d0e8f6c33d7
[ "MIT" ]
null
null
null
gradcam.py
jayChung0302/SideProject-sudalchongbo
fb0a3d0aee53ba24d3b8ec2dd8c52d0e8f6c33d7
[ "MIT" ]
null
null
null
from pytorch_grad_cam import GradCAM, ScoreCAM, GradCAMPlusPlus, AblationCAM, XGradCAM, EigenCAM from pytorch_grad_cam.utils.image import show_cam_on_image from torchvision.models import resnet50 import torchvision.transforms as transforms import PIL.Image as Image import matplotlib.pyplot as plt import numpy as np m...
35.046512
96
0.786994
ba1a7c2297bec2e4e454be19b372b09dc3b84bbe
394
gyp
Python
external-ab-neuter/binding.gyp
silklabs/silk
08c273949086350aeddd8e23e92f0f79243f446f
[ "MIT" ]
172
2016-06-07T09:02:34.000Z
2022-03-18T07:43:55.000Z
external-ab-neuter/binding.gyp
silklabs/silk
08c273949086350aeddd8e23e92f0f79243f446f
[ "MIT" ]
24
2016-06-08T08:09:39.000Z
2017-09-08T04:15:51.000Z
external-ab-neuter/binding.gyp
silklabs/silk
08c273949086350aeddd8e23e92f0f79243f446f
[ "MIT" ]
37
2016-06-08T16:56:14.000Z
2021-10-05T09:49:08.000Z
{ "variables": { "library_type%": "loadable_module", }, "targets": [{ "target_name": "ab_neuter", "type": "<(library_type)", "sources": [ "src/ab_neuter.cc" ], "conditions": [ [ "OS=='android'", { "libraries" : [ "<!(echo $Android_mk__LIBRARIES)", ...
17.909091
46
0.449239
fa3f8164dfacca2cdfd9733f206648ea17f6a63e
11,876
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/MetaSV-0.5-py2.7.egg/metasv/run_spades.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/MetaSV-0.5-py2.7.egg/metasv.bak/run_spades.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/MetaSV-0.5-py2.7.egg/metasv.bak/run_spades.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import os import argparse import logging import multiprocessing import fileinput import traceback from functools import partial, update_wrapper import json import base64 from external_cmd import TimedExternalCmd import pysam import pybedtools import extract_pairs from defaults import * FORMAT = '%(levelname)s %(asct...
46.031008
153
0.646767
0f610090686c6e7f3a1f0795f985cc464151a7f5
614
py
Python
apps/quiver/migrations/0003_auto_20190408_1347.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2017-12-17T21:28:22.000Z
2018-02-02T14:44:58.000Z
apps/quiver/migrations/0003_auto_20190408_1347.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/quiver/migrations/0003_auto_20190408_1347.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2019-04-08 13:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('quiver', '0002_auto_20190401_1353'), ] operations = [ migrations.AlterModelOptions( name='analyticsservice', options={...
26.695652
103
0.627036
aa6532069adad87d74c8b7b9f21ad9deb7600323
422
py
Python
src/third_party_module/deal_with_excel/b.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/third_party_module/deal_with_excel/b.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/third_party_module/deal_with_excel/b.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import xlrd from xlutils.copy import copy # 定义目录名 DIR_NAME = u"E:\\" # 定义文件名 FILE_NAME = u"数据集成每日作业运行情况登记表_20170327.xls" if __name__ == '__main__': rb = xlrd.open_workbook(DIR_NAME + FILE_NAME) wb = copy(rb) ws = wb.get_sheet(0) for col_num in range(10, 12): for...
21.1
49
0.623223
aaa4f5341d45abbffd50137fdc78a83d942675dc
5,437
py
Python
real_time_tracking.py
ahangchen/Rasp-Person-Sensor
77d0e41b1a80cf9012f66c7bd44f062edbc6825d
[ "MIT" ]
2
2018-02-26T10:00:29.000Z
2018-03-16T11:39:34.000Z
real_time_tracking.py
ahangchen/Rasp-Person-Sensor
77d0e41b1a80cf9012f66c7bd44f062edbc6825d
[ "MIT" ]
null
null
null
real_time_tracking.py
ahangchen/Rasp-Person-Sensor
77d0e41b1a80cf9012f66c7bd44f062edbc6825d
[ "MIT" ]
null
null
null
# USAGE # python real_time_object_detection.py --prototxt MobileNetSSD_deploy.prototxt.txt --model MobileNetSSD_deploy.caffemodel # import the necessary packages from imutils.video import VideoStream from imutils.video import FPS import numpy as np import argparse import warnings import json import datetime import imu...
32.363095
121
0.606217
aacdf154ea7cac58e16bb885e8645070f1c62b62
99
py
Python
diceClass.py
TarikMetinKaya/FarkleGame
4d9cf429734c6c0b7b2f866d3e2c3ec0a1c8271c
[ "MIT" ]
null
null
null
diceClass.py
TarikMetinKaya/FarkleGame
4d9cf429734c6c0b7b2f866d3e2c3ec0a1c8271c
[ "MIT" ]
null
null
null
diceClass.py
TarikMetinKaya/FarkleGame
4d9cf429734c6c0b7b2f866d3e2c3ec0a1c8271c
[ "MIT" ]
null
null
null
import random class Dice: num=0 def rollDice(self): self.num=random.randint(1,6)
12.375
36
0.626263
57cc679e8fa5483cbb288a4c99c91fc75e192c22
3,309
py
Python
bigbench/benchmark_tasks/talkdown/task.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
1
2021-10-07T20:52:41.000Z
2021-10-07T20:52:41.000Z
bigbench/benchmark_tasks/talkdown/task.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
null
null
null
bigbench/benchmark_tasks/talkdown/task.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
1
2021-09-24T17:27:41.000Z
2021-09-24T17:27:41.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
31.216981
88
0.579631
52f11df3f5c95f6b528bbb7a3e39e5c9ea2bf3b4
632
py
Python
code/decisionrecorder/main.py
BogyMitutoyoCTL/AI-Preparation
ef535741816b02e5e63d426a3232a688c9abd726
[ "MIT" ]
1
2020-03-30T09:25:53.000Z
2020-03-30T09:25:53.000Z
code/decisionrecorder/main.py
BogyMitutoyoCTL/AI-Preparation
ef535741816b02e5e63d426a3232a688c9abd726
[ "MIT" ]
2
2020-02-05T14:00:23.000Z
2020-03-30T19:57:19.000Z
code/decisionrecorder/main.py
BogyMitutoyoCTL/AI-Preparation
ef535741816b02e5e63d426a3232a688c9abd726
[ "MIT" ]
null
null
null
from CombinationBuilder import CombinationBuilder from Configuration import Configuration from SaveCombinations import SaveCombinations from TrainingDataGui import TrainingDataGui configuration_file = "configuration.json" output_file = "outputNina.json" if __name__ == "__main__": configuration = Configuration(con...
31.6
74
0.756329
0d8d7fd15616fcdad389b4aac76141987c6f0006
376
py
Python
test.py
liyufan/Sport
758e71d405a515a9c2ffbc93c814b3f8bbe0a775
[ "Apache-2.0" ]
null
null
null
test.py
liyufan/Sport
758e71d405a515a9c2ffbc93c814b3f8bbe0a775
[ "Apache-2.0" ]
null
null
null
test.py
liyufan/Sport
758e71d405a515a9c2ffbc93c814b3f8bbe0a775
[ "Apache-2.0" ]
null
null
null
import wx import sport class MainWin(sport.MyFrame): def __init__(self, parent): super().__init__(parent) self.m_statusBar.SetStatusWidths([-1, -4]) self.m_statusBar.SetStatusText("就绪", 0) self.m_statusBar.SetStatusText("已成功插入1条数据", 1) if __name__ == '__main__': # 下面是使用wxPython的固定用法 app = wx.App() mai...
17.090909
48
0.718085
10dc1b4ead46ec86d05de7bb5349e1f73692cd8c
3,949
py
Python
src/test/tests/databases/pixie.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/pixie.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/pixie.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: pixie.py # # Programmer: Mark C. Miller # Date: April 4, 2005 # # Modifications: # Jeremy Meredith, Wed Sep 7 12:06:04 PDT 2005 # Allowed spaces in variable names. # # -----------------...
24.52795
78
0.697898
3399347aa34da06255d79008eaa17790350514f8
1,566
py
Python
Problems/Depth-First Search/easy/RangeSumBST/range_sum_of_bst.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/easy/RangeSumBST/range_sum_of_bst.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/easy/RangeSumBST/range_sum_of_bst.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import Optional class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right # def rangeSumBST(root: Optional[TreeNode], low: int, high: int) -> int: # if not root: # return 0 # # if low <= root.val <= high...
32.625
122
0.556194
33b3529c2428c27d3111d9f95ae5c987e29ab413
7,190
py
Python
eigenvalues.py
patcher1/numerik
ad24c8522d61970a3a881e034a7940d43ba486be
[ "BSD-3-Clause" ]
null
null
null
eigenvalues.py
patcher1/numerik
ad24c8522d61970a3a881e034a7940d43ba486be
[ "BSD-3-Clause" ]
null
null
null
eigenvalues.py
patcher1/numerik
ad24c8522d61970a3a881e034a7940d43ba486be
[ "BSD-3-Clause" ]
1
2019-10-01T14:36:03.000Z
2019-10-01T14:36:03.000Z
# -*- encoding: utf-8 -*- import numpy as np import numpy.linalg import scipy import scipy.linalg ################################# # Methods to get one Eigenvalue # ################################# def power_method(A, maxit=100, tol=1e-05): """ @param {ndarray} A - the matrix (nxn) @param {int} ma...
33.287037
101
0.521975
33cab80d71d2e276654ab847e6ea55d2f37db012
7,781
py
Python
taren/tarenconfig.py
ThirtySomething/TaRen
ef09e8616c45bcb97afcea3ad4844ae6fade7525
[ "MIT" ]
null
null
null
taren/tarenconfig.py
ThirtySomething/TaRen
ef09e8616c45bcb97afcea3ad4844ae6fade7525
[ "MIT" ]
null
null
null
taren/tarenconfig.py
ThirtySomething/TaRen
ef09e8616c45bcb97afcea3ad4844ae6fade7525
[ "MIT" ]
null
null
null
''' ****************************************************************************** Copyright 2020 ThirtySomething ****************************************************************************** This file is part of TaRen. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
31.759184
113
0.603136
1d545c103b151eb49a2a652f5bb63f8abc634016
1,686
py
Python
src/onegov/town6/views/usermanagement.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/usermanagement.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/usermanagement.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Secret from onegov.org.views.usermanagement import view_usermanagement, \ handle_create_signup_link, view_user, handle_manage_user, \ get_manage_user_form, handle_new_user from onegov.town6 import TownApp from onegov.org.forms import NewUserForm from onegov.town6.layout import ...
35.125
72
0.76038
1d73a739de2c1fb99575d3c3a9c84612d1886b41
8,550
py
Python
trainers/hetero_value_based_trainer.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
2
2022-02-24T08:21:49.000Z
2022-03-10T08:57:35.000Z
trainers/hetero_value_based_trainer.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
1
2022-02-24T08:40:21.000Z
2022-02-24T12:01:58.000Z
trainers/hetero_value_based_trainer.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
null
null
null
import os import torch import numpy as np from trainers.value_based_trainer import ValueBasedTrainer from utils.scheduler import epsilon_scheduler from utils.hparams import hparams from utils.replay_buffer import ReplayBuffer from utils.tb_logger import TensorBoardLogger from utils.torch_utils import * from utils.clas...
51.506024
118
0.63345
89bd5366a0d43683bae80be9f44ceed421ac0fd3
834
py
Python
python/advanced_sw/res_code/test4.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/advanced_sw/res_code/test4.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/res_code/test4.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
## https://www.pexels.com/photo/68147 ##url_s = " https://www.pexels.com/photo/753626" # url_s = "https://www.pexels.com/photo/33109" ## https://www.pexels.com/photo/87452/ import urllib.request, urllib.parse, urllib.error from bs4 import BeautifulSoup import ssl import re import sqlite3 import requests # Ignore SSL ...
28.758621
79
0.726619
c3d59b111e341970a72a99baadf7ccbe9822a18a
20,802
py
Python
bizpy-202012/app.py
mazarimono/presentations
b947eb5c8266032fb0ce44562fcb8c81a2780edc
[ "MIT" ]
1
2020-12-09T11:41:03.000Z
2020-12-09T11:41:03.000Z
bizpy-202012/app.py
mazarimono/presentations
b947eb5c8266032fb0ce44562fcb8c81a2780edc
[ "MIT" ]
null
null
null
bizpy-202012/app.py
mazarimono/presentations
b947eb5c8266032fb0ce44562fcb8c81a2780edc
[ "MIT" ]
null
null
null
from datetime import date import random import os import dash import dash_core_components as dcc import dash_html_components as html import dash_table from dash.dependencies import Input, Output, State, ALL, MATCH, ALLSMALLER import plotly.express as px import pandas as pd # CSS external_stylesheets = ["https://co...
32.452418
104
0.440342
7f090a9f0048c39b916cffc80c0a1a6c53a0c8eb
1,731
py
Python
Bibliothek/views.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Bibliothek/views.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Bibliothek/views.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-03-07T12:38:23.000Z
2017-03-07T12:38:23.000Z
from django.shortcuts import render from django.http import HttpResponseRedirect import re, os from . import models from django.db import transaction import sqlite3 as lite from seite.settings import BASE_DIR from Grundgeruest.views import ListeMitMenue def liste_buecher(request): return ListeMitMenue.as_view( ...
30.910714
70
0.630272
14278209c75ac932e86456240226749174810614
487
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v9_0/copy_old_fees_field_data.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v9_0/copy_old_fees_field_data.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v9_0/copy_old_fees_field_data.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): # 'Schools' module changed to the 'Education' # frappe.reload_doc("schools", "doctype", "fees") frappe.reload_doc("education", "doctype", "fee...
32.466667
89
0.747433
145e2c1e68d4aaf56d17d2eb673478dc297324c6
3,842
py
Python
quant/brokers/_kkex.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/brokers/_kkex.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/brokers/_kkex.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
# Copyright (C) 2017, Philsong <songbohr@gmail.com> from quant import config from quant.common import constant from .broker import Broker import logging from quant.api.kkex import PrivateClient class Kkex(Broker): def __init__(self, pair_code, api_key=None, api_secret=None): base_currency, market_currenc...
33.408696
97
0.606715
b4a7fbb734b5bdd83911fb2c6dbc2eb0cc814633
154
py
Python
Contests/CCC/CCC '10 J1 - What is n, Daddy.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Contests/CCC/CCC '10 J1 - What is n, Daddy.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Contests/CCC/CCC '10 J1 - What is n, Daddy.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
n = int(input()) if n == 1 or n == 9 or n == 10: ways = 1 elif n == 2 or n == 3 or n == 8 or n == 7: ways = 2 else: ways = 3 print(ways)
15.4
42
0.441558
b4db0ea4747b476260f069cb8c2d0f7349b2ae44
8,933
py
Python
official/cv/inceptionv3/modelarts/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/inceptionv3/modelarts/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/inceptionv3/modelarts/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 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...
45.810256
119
0.719467
372f23dc676a3b8f8bda89f11cdbcf9efafb927c
3,396
py
Python
external/argh/completion.py
richardseifert/Hydra_pipeline
a31d782219359bae7fa82fa9b081fb72bef69fce
[ "MIT" ]
1
2017-11-04T15:08:42.000Z
2017-11-04T15:08:42.000Z
pythonlib/argh/completion.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
1
2018-11-05T17:28:58.000Z
2018-11-05T18:20:00.000Z
external/argh/completion.py
richardseifert/Hydra_pipeline
a31d782219359bae7fa82fa9b081fb72bef69fce
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright © 2010—2014 Andrey Mikhaylenko and contributors # # This file is part of Argh. # # Argh is free software under terms of the GNU Lesser # General Public License version 3 (LGPLv3) as published by the Free # Software Foundation. See the file README.rst for copying conditions. # """ Shel...
32.653846
79
0.737633
4cf8c4cfb1b0cf5928a5c63f540a8a0a292801aa
8,181
py
Python
Keith/Geodatenhandling 1.py
FabianV1984/TheMostDangerousSwissRoad
e5ffdb6fae39c60d8b5d6247e9d2839f8103df98
[ "MIT" ]
null
null
null
Keith/Geodatenhandling 1.py
FabianV1984/TheMostDangerousSwissRoad
e5ffdb6fae39c60d8b5d6247e9d2839f8103df98
[ "MIT" ]
null
null
null
Keith/Geodatenhandling 1.py
FabianV1984/TheMostDangerousSwissRoad
e5ffdb6fae39c60d8b5d6247e9d2839f8103df98
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Geodatenhandling 1 # # **Inhalt:** Etwas mehr als nur erste Schritte mit Geopandas # # **Nötige Skills** # - Basic pandas skills # - Funktionen und pandas # - Erste Schritte mit Geopandas # # **Lernziele** # - Koordinatensysteme kennenlernen # - Koordinaten transformieren #...
19.953659
187
0.698203
3758f149d0efc28e5f2a9b9fe382ed58a81ba3db
15,190
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/rackmanager/redfish/post_handler.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/rackmanager/redfish/post_handler.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/rackmanager/redfish/post_handler.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. import vie...
39.048843
103
0.7316
809fdd97cbe01717c5f2c0dfc7260537f9e58a96
9,775
py
Python
Tools/shellupload.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Tools/shellupload.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Tools/shellupload.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# uncompyle6 version 2.11.5 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.18 (default, Apr 20 2020, 20:30:41) # [GCC 9.3.0] # Embedded file name: Tools\shellupload.py import requests import re import base64 import time from random import sample from Tools import wsoShellUploaderModule agent = {'User-Agen...
52.272727
482
0.558772
80bbc306faec28a0775432104d6d108f51b6b569
2,136
py
Python
build.py
docfetcher/DocFetcher
42f2accd840edc5059060447ed3536aa4d54b5d3
[ "Apache-2.0" ]
24
2018-07-22T13:02:53.000Z
2022-02-02T16:45:29.000Z
build.py
docfetcher/DocFetcher
42f2accd840edc5059060447ed3536aa4d54b5d3
[ "Apache-2.0" ]
null
null
null
build.py
docfetcher/DocFetcher
42f2accd840edc5059060447ed3536aa4d54b5d3
[ "Apache-2.0" ]
5
2018-12-29T10:38:03.000Z
2021-02-06T15:29:03.000Z
#!/usr/bin/python ''' This is not the actual build script. The real "build script" is a small Java program in the package 'net.sourceforge.docfetcher.build'. This script merely compiles and launches the Java builder. ''' import os, shutil, platform from os.path import exists, join, isfile, isdir is_windows = 'window...
24.272727
77
0.697097
80e9e68c247ed474e0d95099137af48005a19ece
334
py
Python
django-rest-framework/api_example/language/urls.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
django-rest-framework/api_example/language/urls.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
django-rest-framework/api_example/language/urls.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
from django.urls import path, include from . import views from rest_framework import routers router = routers.DefaultRouter() router.register('paradigm', views.ParadigmView) router.register('language', views.LauguageView) router.register('programmer', views.ProgrammerView) urlpatterns = [ path('api/', include(ro...
25.692308
51
0.775449
2062e98e1c9d295e7d6cb512b50f789096308891
3,235
py
Python
packages/watchmen-data-kernel/src/watchmen_data_kernel/topic_schema/date_time_factor.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/topic_schema/date_time_factor.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/topic_schema/date_time_factor.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from __future__ import annotations from datetime import date, time from typing import Any, Dict, List, Optional, Union from watchmen_data_kernel.common import ask_all_date_formats, ask_time_formats from watchmen_data_kernel.common.settings import ask_abandon_date_time_on_parse_fail from watchmen_model.admin import Fa...
35.944444
108
0.748068
b350f20a75ca0b083a338f7a62d5ef99c06d7c49
6,060
py
Python
src/onegov/activity/models/activity.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/models/activity.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/models/activity.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.activity.models.occasion import Occasion from onegov.activity.models.period import Period from onegov.activity.utils import extract_thumbnail, extract_municipality from onegov.core.orm import Base from onegov.core.orm.mixins import ( content_property, ContentMixin, meta_property, TimestampMi...
30.149254
78
0.675083
9284af7c5f81d11fefd88b405a4c8d67b2dd34d2
1,345
py
Python
Algorithms/Implementation/AlmostSorted.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/AlmostSorted.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/AlmostSorted.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 #较好的思路: #先排序,找出不相等的索引, #如果没有则不用操作, #如果只有两个则swap, #如果多个,就找最小和最大的索引,将之间的反转,判断反转后是否是增序 #都不行,print no n = int(raw_input()) d_list = map(int, raw_input().split()) dl = None dr = None operation = None pre = d_list[0] size = len(d_list) for i in xrange(size): if dl == None: if d_list[i] < pr...
20.074627
55
0.494424
a6780fb133a5095b0e1380060e980c9da31bba34
3,578
py
Python
Modell/StreamAuswerten.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Modell/StreamAuswerten.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Modell/StreamAuswerten.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
import sounddevice as sd import time import numpy as np import tensorflow.keras.models """ Funktions- und Klassendefinitionen """ #Queue-Artige Liste, kann vollständigen inhalt als numpyarray ausgeben class schlange: def __init__(self,max_groesse): self.__max_groesse = max_groesse self.__voll = Fals...
33.12963
108
0.631079
a6b32c23ac32c244c2bace57dd37d65d8db93e69
9,271
py
Python
CLI Tools/getTimeExtent.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
null
null
null
CLI Tools/getTimeExtent.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
38
2018-10-24T08:51:58.000Z
2021-12-13T19:54:39.000Z
CLI Tools/getTimeExtent.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
12
2018-10-24T08:20:13.000Z
2019-08-12T08:10:14.000Z
import csv import os import json import functools import sqlite3 import tempfile # add local modules folder # file_path = os.path.join('..', 'Python_Modules') # sys.path.append(file_path) import click import pandas as pd import xarray as xr import ogr2ogr from DateTime import DateTime # asking for parameters in com...
34.984906
117
0.516018
5b93972f7eade06e4aa3377cd23d5cb42732e24a
1,458
py
Python
devices/ds18b20.py
MiaranaDIY/Salamigal
44ac98fa6463d46694e1f9343a0ebc788e7a88f8
[ "MIT" ]
3
2017-08-02T12:26:34.000Z
2021-01-13T01:06:26.000Z
devices/ds18b20.py
MiaranaDIY/Salamigal
44ac98fa6463d46694e1f9343a0ebc788e7a88f8
[ "MIT" ]
null
null
null
devices/ds18b20.py
MiaranaDIY/Salamigal
44ac98fa6463d46694e1f9343a0ebc788e7a88f8
[ "MIT" ]
3
2017-02-14T22:10:00.000Z
2021-01-02T14:26:43.000Z
#Setup logging import logging import logging.config logging.config.fileConfig('logging.conf') # create logger logger = logging.getLogger('root') import time import devices.device as device from w1thermsensor import W1ThermSensor as TS class DS18B20(device.Device): #Global variable instant_count = 0 def __i...
31.695652
90
0.603567
f3478c00315ead5f6f6ca6db3bf8f6da41dcb1e9
519
py
Python
autojail/utils/deploy.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/utils/deploy.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/utils/deploy.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
import logging from pathlib import Path def deploy_target(connection, bundle_path: Path) -> None: logging.info("Deploying to target") if not bundle_path.exists(): raise Exception("Deploy {bundle_path} target does not exist") connection.put(str(bundle_path), remote="/tmp") with connection.cd("/...
32.4375
69
0.65896