hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
1b9fd248d758b4c4b31b1659c20ee96fecb86b8d
8,195
py
Python
media_browser/asset_lib.py
arjun-namdeo/my_python
43ce84d04d773faa0d3c8f2281393767855a8465
[ "MIT" ]
null
null
null
media_browser/asset_lib.py
arjun-namdeo/my_python
43ce84d04d773faa0d3c8f2281393767855a8465
[ "MIT" ]
null
null
null
media_browser/asset_lib.py
arjun-namdeo/my_python
43ce84d04d773faa0d3c8f2281393767855a8465
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Data Model Assets for the package """ import re import os import json import requests CACHE_FILE = "mediaInfo.db" DB_Schema = "1.0" def scan_movies(root_path): """ for each_dir in all_directory/subdirectory: if CACHE_FILE in each_dir: pri...
28.161512
120
0.612447
2064f20d3779cac344ceb08b8fe81a467a42fb34
3,730
py
Python
srt/srt_time_axis.py
Leonardo-YXH/tools
626c1636c251cbdc7c525c2da9976895e086c82f
[ "Apache-2.0" ]
null
null
null
srt/srt_time_axis.py
Leonardo-YXH/tools
626c1636c251cbdc7c525c2da9976895e086c82f
[ "Apache-2.0" ]
null
null
null
srt/srt_time_axis.py
Leonardo-YXH/tools
626c1636c251cbdc7c525c2da9976895e086c82f
[ "Apache-2.0" ]
null
null
null
import sys, getopt, os def modify_time_axis(src=None, dest=None, millisecond=0): if src is None: print("please select your srt file") return else: with open(src, 'r+') as f: new_content = [] line_number = 0 for line in f.readlines(): ...
33.303571
115
0.512869
0d18f18d3db32fe41f7b55120833599eeda31ae1
8,381
py
Python
paramgmt/__main__.py
Albinlk/ParallelRemoteManagement
d49ed39858e35a5a29a95f4a72fdc4b5f51f1638
[ "Apache-2.0" ]
66
2015-01-07T09:46:59.000Z
2021-12-17T23:34:53.000Z
paramgmt/__main__.py
Albinlk/ParallelRemoteManagement
d49ed39858e35a5a29a95f4a72fdc4b5f51f1638
[ "Apache-2.0" ]
null
null
null
paramgmt/__main__.py
Albinlk/ParallelRemoteManagement
d49ed39858e35a5a29a95f4a72fdc4b5f51f1638
[ "Apache-2.0" ]
32
2015-01-24T09:58:33.000Z
2022-01-05T11:27:06.000Z
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.069106
77
0.607565
8d51cb3326355024d0e9745380a503d130d8371f
4,715
py
Python
Loan-Defaulters/code.py
Abhishekauti21/ga-learner-dsmp-repo
4b7db65cf0d3876f36f0f8efd760110f98a5d307
[ "MIT" ]
2
2020-05-17T10:45:03.000Z
2020-08-14T07:23:51.000Z
Loan-Defaulters/code.py
Abhishekauti21/ga-learner-dsmp-repo
4b7db65cf0d3876f36f0f8efd760110f98a5d307
[ "MIT" ]
null
null
null
Loan-Defaulters/code.py
Abhishekauti21/ga-learner-dsmp-repo
4b7db65cf0d3876f36f0f8efd760110f98a5d307
[ "MIT" ]
null
null
null
# -------------- #Importing header files import pandas as pd from sklearn.model_selection import train_test_split # Code starts here data=pd.read_csv(path) X=data.drop(['customer.id','paid.back.loan'],1) y=data['paid.back.loan'].copy() X_train,X_test,y_train,y_test=train_test_split(X,y,test_size=0.3,random_state=0) ...
22.13615
95
0.702651
1f36d1c218294d8dcbfd39a4c104bada36ecbc2e
1,745
py
Python
defoe/papers/queries/unique_words.py
kallewesterling/defoe
d72af2f748fd4363a4718c93bb0b0284b8cb1f3e
[ "MIT" ]
2
2022-02-14T12:10:54.000Z
2022-02-14T12:35:44.000Z
defoe/papers/queries/unique_words.py
kallewesterling/defoe
d72af2f748fd4363a4718c93bb0b0284b8cb1f3e
[ "MIT" ]
17
2022-02-09T21:46:14.000Z
2022-02-25T14:55:09.000Z
defoe/papers/queries/unique_words.py
kallewesterling/defoe
d72af2f748fd4363a4718c93bb0b0284b8cb1f3e
[ "MIT" ]
1
2022-02-14T13:19:08.000Z
2022-02-14T13:19:08.000Z
""" Finds every unique word and its frequency. """ from defoe import query_utils from operator import add def do_query(issues, config_file=None, logger=None, context=None): """ Finds every unique word and its frequency. config_file can be the path to a configuration file with a threshold, the minim...
26.044776
84
0.636676
d78d5780194c6130326c182a0af03f9b9e70a0a0
2,958
py
Python
ch03/ch03_09-strategy/tabulator2.py
AngelLiang/pipeg
d22830c2797501162a1e0f508d054a3b8ec63913
[ "MIT" ]
null
null
null
ch03/ch03_09-strategy/tabulator2.py
AngelLiang/pipeg
d22830c2797501162a1e0f508d054a3b8ec63913
[ "MIT" ]
null
null
null
ch03/ch03_09-strategy/tabulator2.py
AngelLiang/pipeg
d22830c2797501162a1e0f508d054a3b8ec63913
[ "MIT" ]
2
2020-01-31T15:17:27.000Z
2020-05-28T13:49:53.000Z
#!/usr/bin/env python3 # Copyright © 2012-13 Qtrac Ltd. All rights reserved. # This program or module 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 3 of the # License, or (at your option) any ...
30.8125
75
0.584855
59ad38d33ad024b5debdb009841b611ab5b00e30
44
py
Python
__init__.py
murilobd/Deep-Convolution-Stock-Technical-Analysis
972ddb70370636e0e297642645f2f18989072d00
[ "Apache-2.0" ]
312
2018-11-17T08:48:11.000Z
2022-03-24T17:29:55.000Z
__init__.py
knn940506/Convolutional-Neural-Stock-Market-Technical-Analyser
fcb81b15c28cb22e4c49aa08fdfd67b8ef787194
[ "Apache-2.0" ]
4
2018-02-27T01:27:25.000Z
2018-07-09T16:23:00.000Z
__init__.py
knn940506/Convolutional-Neural-Stock-Market-Technical-Analyser
fcb81b15c28cb22e4c49aa08fdfd67b8ef787194
[ "Apache-2.0" ]
101
2018-11-19T18:44:37.000Z
2022-03-24T16:25:45.000Z
import rnn import candlestick import reader
11
18
0.863636
c0a4eb2a90a4ed33d1365d2c407669453239dcfd
12,952
py
Python
astrobase/services/identifiers.py
pierfra-ro/astrobase
b9f62c59a3ab9cdc1388d409fa281c26f1e6db6c
[ "MIT" ]
45
2017-03-09T19:08:44.000Z
2022-03-24T00:36:28.000Z
astrobase/services/identifiers.py
pierfra-ro/astrobase
b9f62c59a3ab9cdc1388d409fa281c26f1e6db6c
[ "MIT" ]
92
2016-12-21T19:01:20.000Z
2022-01-03T15:28:45.000Z
astrobase/services/identifiers.py
pierfra-ro/astrobase
b9f62c59a3ab9cdc1388d409fa281c26f1e6db6c
[ "MIT" ]
20
2016-12-20T23:01:29.000Z
2021-03-07T16:24:15.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # convert_identifiers.py - Luke Bouma (bouma.luke@gmail.com) - Oct 2019 # License: MIT - see the LICENSE file for the full text. ''' Easy conversion between survey identifiers. Works best on bright and/or famous objects, particularly when SIMBAD is involved. ``simbad_to_...
30.261682
80
0.621834
6c1fcaf4d1464f967d36df3c890c21ca34ff9e1a
25,437
py
Python
playlista.py
TomaszHorak/Proszkowska10
ed163721006aeaac2b5508838fab264add248c72
[ "MIT" ]
null
null
null
playlista.py
TomaszHorak/Proszkowska10
ed163721006aeaac2b5508838fab264add248c72
[ "MIT" ]
null
null
null
playlista.py
TomaszHorak/Proszkowska10
ed163721006aeaac2b5508838fab264add248c72
[ "MIT" ]
null
null
null
import pafy import urlparse import os import json from random import randint import logging import datetime from threading import Lock import sys from random import getrandbits import spotify_klasa import constants import time from copy import deepcopy TYP_RADIO = 1 TYP_MP3 = 2 TYP_YOUTUBE = 3 TYP_SP...
42.895447
123
0.559932
cf8c800dd37627df18e31f072993bf8a1a9bcab8
8,959
py
Python
testsocket.py
Aastha1399/Medisure
b9fe807b9e5d8f57bcb1ad70f7a5fab7707bafe2
[ "BSD-3-Clause" ]
1
2021-02-01T10:05:38.000Z
2021-02-01T10:05:38.000Z
testsocket.py
Aastha1399/Medisure
b9fe807b9e5d8f57bcb1ad70f7a5fab7707bafe2
[ "BSD-3-Clause" ]
null
null
null
testsocket.py
Aastha1399/Medisure
b9fe807b9e5d8f57bcb1ad70f7a5fab7707bafe2
[ "BSD-3-Clause" ]
1
2020-07-08T05:43:26.000Z
2020-07-08T05:43:26.000Z
import socket import sqlite3 import re import cv2 import pytesseract import re import tensorflow as tf import numpy as np import pandas as pd from random import randint s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_address = ('', 1231) print("Starting Server") s.bind(server_address) print("Waiting fo...
32.578182
114
0.549727
42c6eceec4d52be28f0ae1f53f3fe6dad478479f
1,625
py
Python
src/arcfutil/aff/__init__.py
inuEbisu/arcfutil
4ef575322113db4bb09d5ac2870516fb2b265216
[ "MIT" ]
16
2020-09-26T09:00:49.000Z
2022-03-15T10:45:16.000Z
src/arcfutil/aff/__init__.py
inuEbisu/arcfutil
4ef575322113db4bb09d5ac2870516fb2b265216
[ "MIT" ]
4
2020-08-14T09:14:27.000Z
2022-02-28T02:17:45.000Z
src/arcfutil/aff/__init__.py
feightwywx/arc.py
55caa1c0dee856cf7c18dad2254d22b5e4d7994d
[ "MIT" ]
3
2021-11-25T10:22:14.000Z
2022-02-17T08:19:24.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # Author: .direwolf <kururinmiracle@outlook.com> # Licensed under the MIT License. from .note import * from . import parser from . import sorter from . import generator # parser def dump(notelist: NoteGroup) -> str: """ Encode note objects to Arcaea format stri...
23.897059
95
0.680615
58d55a2264edb3f988c3a13cddb8502b4db72de9
9,564
py
Python
harness/determined/horovod.py
justin-determined-ai/determined
2f03446ea1b871d2fa45bdef24b5eb521424b466
[ "Apache-2.0" ]
null
null
null
harness/determined/horovod.py
justin-determined-ai/determined
2f03446ea1b871d2fa45bdef24b5eb521424b466
[ "Apache-2.0" ]
null
null
null
harness/determined/horovod.py
justin-determined-ai/determined
2f03446ea1b871d2fa45bdef24b5eb521424b466
[ "Apache-2.0" ]
null
null
null
import importlib import logging import pathlib from typing import Any, Dict, List, Optional, cast import determined as det from determined import constants from determined._experiment_config import ExperimentConfig from determined._rendezvous_info import RendezvousInfo from determined.common import check class _Poly...
37.505882
100
0.665621
48eb404c02d9902d69a2c630eae043f57b3aa926
853
py
Python
vector_final.py
deveshbajaj/Parallel_distributed
5bda397bc5651880f94b50e35f7e786d90ffaf1e
[ "Apache-2.0" ]
1
2018-06-21T06:31:34.000Z
2018-06-21T06:31:34.000Z
vector_final.py
deveshbajaj/Vectorisation-of-Unstructured-Text-Using-Hadoop-
5bda397bc5651880f94b50e35f7e786d90ffaf1e
[ "Apache-2.0" ]
null
null
null
vector_final.py
deveshbajaj/Vectorisation-of-Unstructured-Text-Using-Hadoop-
5bda397bc5651880f94b50e35f7e786d90ffaf1e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from operator import itemgetter from collections import Counter import sys import pandas import re f = open("wordds.txt",'r') g= f.readline().split(" ") unique_words = set(list(f)) #print(type(d),len(d)) matrix =[] # input comes from STDIN for line in sys.stdin: ...
19.837209
51
0.624853
bfdd429e0c4be9b36362c00a76d7c349b30d4c51
9,237
py
Python
neutronclient/tests/unit/vpn/test_cli20_ikepolicy.py
ruansteve/bgp-evpn-client
d17210301ec2a0796335dc3e6cd61e63ff8fdfeb
[ "Apache-2.0" ]
null
null
null
neutronclient/tests/unit/vpn/test_cli20_ikepolicy.py
ruansteve/bgp-evpn-client
d17210301ec2a0796335dc3e6cd61e63ff8fdfeb
[ "Apache-2.0" ]
null
null
null
neutronclient/tests/unit/vpn/test_cli20_ikepolicy.py
ruansteve/bgp-evpn-client
d17210301ec2a0796335dc3e6cd61e63ff8fdfeb
[ "Apache-2.0" ]
null
null
null
# (c) Copyright 2013 Hewlett-Packard Development Company, L.P. # 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...
39.814655
78
0.571073
76ab93304b98c15da01d340d9921928ff45f4417
331
py
Python
examples/minimal_example_no_render.py
frknayk/gym_connect
8d32efedd83c14ff41c893cb609fb407cf1ff356
[ "MIT" ]
3
2020-09-30T11:24:48.000Z
2020-11-10T18:52:30.000Z
examples/minimal_example_no_render.py
frknayk/gym_connect
8d32efedd83c14ff41c893cb609fb407cf1ff356
[ "MIT" ]
null
null
null
examples/minimal_example_no_render.py
frknayk/gym_connect
8d32efedd83c14ff41c893cb609fb407cf1ff356
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np import gym import gym_connect env = gym.make('connect-v0') state = env.reset() is_done = False while not is_done: action = env.get_random_action() next_state, reward, is_done = env.step(action) print("Winning player : ",next_state['player'].name) print(next_stat...
22.066667
52
0.712991
169e763f0e2dbf35965eec04d53b8f18836d6433
12,918
py
Python
tests/test_crawler.py
matsievskiysv/scrapy
9ab45325ff6746f5c5325940fbbff1e020dd999a
[ "BSD-3-Clause" ]
1
2020-03-29T07:06:55.000Z
2020-03-29T07:06:55.000Z
tests/test_crawler.py
matsievskiysv/scrapy
9ab45325ff6746f5c5325940fbbff1e020dd999a
[ "BSD-3-Clause" ]
null
null
null
tests/test_crawler.py
matsievskiysv/scrapy
9ab45325ff6746f5c5325940fbbff1e020dd999a
[ "BSD-3-Clause" ]
1
2020-04-13T17:23:09.000Z
2020-04-13T17:23:09.000Z
import logging import os import subprocess import sys import warnings from pytest import raises, mark from testfixtures import LogCapture from twisted.internet import defer from twisted.trial import unittest import scrapy from scrapy.crawler import Crawler, CrawlerRunner, CrawlerProcess from scrapy.settings import Se...
38.561194
124
0.680988
56e2c2fca996237a86cee74b86cf53808f6b7c6a
431
py
Python
runtime/Python2/setup.py
jgoppert/antlr4
98dc2c0f0249a67b797b151da3adf4ffbc1fd6a1
[ "BSD-3-Clause" ]
2
2019-06-25T23:36:55.000Z
2022-03-07T04:15:50.000Z
runtime/Python2/setup.py
jgoppert/antlr4
98dc2c0f0249a67b797b151da3adf4ffbc1fd6a1
[ "BSD-3-Clause" ]
1
2021-06-23T21:21:28.000Z
2021-06-23T21:21:28.000Z
runtime/Python2/setup.py
jgoppert/antlr4
98dc2c0f0249a67b797b151da3adf4ffbc1fd6a1
[ "BSD-3-Clause" ]
4
2015-04-20T04:58:56.000Z
2016-11-07T15:36:53.000Z
from setuptools import setup setup( name='antlr4-python2-runtime', version='4.7.1', url='http://www.antlr.org', license='BSD', packages=['antlr4', 'antlr4.atn', 'antlr4.dfa', 'antlr4.tree', 'antlr4.error', 'antlr4.xpath'], package_dir={'': 'src'}, author='Eric Vergnaud, Terence Parr, Sam Ha...
30.785714
99
0.651972
fe37bb3b9ca61bd01c8b0d1f304ead6fa09ff165
13,271
py
Python
files/cull_idle_servers.py
ocaisa/puppet-jupyterhub
3ef1340dd234d52071c617c0d4075f95f291c034
[ "MIT" ]
8
2019-11-15T17:31:35.000Z
2022-03-29T23:04:34.000Z
files/cull_idle_servers.py
ocaisa/puppet-jupyterhub
3ef1340dd234d52071c617c0d4075f95f291c034
[ "MIT" ]
18
2019-11-22T17:11:14.000Z
2022-02-25T14:30:52.000Z
files/cull_idle_servers.py
ocaisa/puppet-jupyterhub
3ef1340dd234d52071c617c0d4075f95f291c034
[ "MIT" ]
6
2019-12-17T19:41:51.000Z
2022-03-14T18:15:42.000Z
#!/usr/bin/env python3 """script to monitor and cull idle single-user servers Caveats: last_activity is not updated with high frequency, so cull timeout should be greater than the sum of: - single-user websocket ping interval (default: 30s) - JupyterHub.last_activity_interval (default: 5 minutes) You can run this a...
33.012438
101
0.582172
cef4dca41e4ecb1e016a41a184cfc6ddd062e344
10,111
py
Python
eval.py
rdjdejong/attention-learn-to-route
3b6bbdad677a36df53eabad98b48f436be298ac8
[ "MIT" ]
null
null
null
eval.py
rdjdejong/attention-learn-to-route
3b6bbdad677a36df53eabad98b48f436be298ac8
[ "MIT" ]
null
null
null
eval.py
rdjdejong/attention-learn-to-route
3b6bbdad677a36df53eabad98b48f436be298ac8
[ "MIT" ]
null
null
null
import math import torch import os import argparse import numpy as np import itertools from tqdm import tqdm from utils import load_model, move_to from utils.data_utils import save_dataset from torch.utils.data import DataLoader import time from datetime import timedelta from utils.functions import parse_softmax_temper...
46.16895
172
0.637128
7c6bdebc147f77dba4645bb31539bd2212491ef7
1,777
py
Python
patter/data/features.py
ryanleary/patter
92e8fb0d5d98571bd76a0ff90fae1fc1853ba0da
[ "MIT" ]
74
2018-01-23T12:25:34.000Z
2021-11-05T07:36:41.000Z
patter/data/features.py
ryanleary/patter
92e8fb0d5d98571bd76a0ff90fae1fc1853ba0da
[ "MIT" ]
15
2018-02-02T16:33:55.000Z
2021-06-07T10:24:11.000Z
patter/data/features.py
ryanleary/patter
92e8fb0d5d98571bd76a0ff90fae1fc1853ba0da
[ "MIT" ]
18
2018-03-19T14:21:33.000Z
2020-12-16T10:14:43.000Z
import scipy import torch import librosa from .perturb import AudioAugmentor from .segment import AudioSegment windows = { 'hann': scipy.signal.hann, 'hamming': scipy.signal.hamming, 'blackman': scipy.signal.blackman, 'bartlett': scipy.signal.bartlett } class PerturbedSpectrogramFeaturizer(object): ...
34.843137
124
0.677546
3d3b5d510e8b1015b768547c96c6d17dd510e6c6
16,085
py
Python
pymatgen/analysis/diffusion_analyzer.py
miaoliu/pymatgen
fe3c48ce3334924e6693f857aebc64b9714d1af2
[ "MIT" ]
null
null
null
pymatgen/analysis/diffusion_analyzer.py
miaoliu/pymatgen
fe3c48ce3334924e6693f857aebc64b9714d1af2
[ "MIT" ]
null
null
null
pymatgen/analysis/diffusion_analyzer.py
miaoliu/pymatgen
fe3c48ce3334924e6693f857aebc64b9714d1af2
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ A module to perform diffusion analyses (e.g. calculating diffusivity from mean square displacements etc.). If you use this module, please consider citing the following papers:: Ong, S. P., Mo, Y., Richards, W. D., Miara, L., Lee, H. S., & Ceder, G. (2013). Phase stability, electroche...
39.618227
79
0.585266
c2ad55bd61ab4f991f09860b898383ffdddafcaf
1,022
py
Python
common/data_refinery_common/migrations/0012_experiment_platform_accession_codes.py
cgreene/refinebio
fe75e42f2963d60c4307806cba11520754547190
[ "BSD-3-Clause" ]
null
null
null
common/data_refinery_common/migrations/0012_experiment_platform_accession_codes.py
cgreene/refinebio
fe75e42f2963d60c4307806cba11520754547190
[ "BSD-3-Clause" ]
null
null
null
common/data_refinery_common/migrations/0012_experiment_platform_accession_codes.py
cgreene/refinebio
fe75e42f2963d60c4307806cba11520754547190
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-30 21:39 import django.contrib.postgres.fields from django.db import migrations, models def update_cached_values(apps, schema_editor): """ """ Experiment = apps.get_model('data_refinery_common', 'Experiment') for experiment in Experiment.objects.all(): # Mod...
34.066667
128
0.692759
9b1c307e8aa4b2ead4bd56a5fcf053e558ab1cea
1,755
py
Python
cookbook/modular_hierarchical_network_reaction_diffusion/sw_layout_reaction_diffusion_simple_vis.py
PaPeK/epipack
52fb26ba35672fbce1f2f598eac2ed71e6fcb90f
[ "MIT" ]
25
2020-10-22T10:59:10.000Z
2022-01-05T02:24:21.000Z
cookbook/modular_hierarchical_network_reaction_diffusion/sw_layout_reaction_diffusion_simple_vis.py
PaPeK/epipack
52fb26ba35672fbce1f2f598eac2ed71e6fcb90f
[ "MIT" ]
11
2021-03-06T10:18:14.000Z
2021-09-06T21:34:46.000Z
cookbook/modular_hierarchical_network_reaction_diffusion/sw_layout_reaction_diffusion_simple_vis.py
PaPeK/epipack
52fb26ba35672fbce1f2f598eac2ed71e6fcb90f
[ "MIT" ]
2
2021-06-17T14:26:03.000Z
2021-08-13T02:11:00.000Z
from epipack import MatrixEpiModel, get_2D_lattice_links from epipack.vis import visualize_reaction_diffusion, get_grid_layout import numpy as np import networkx as nx import cMHRN from time import time from epipack.networks import get_small_world_layout # load edges from txt file and construct Graph object N, edges =...
24.041096
89
0.680912
44683838d910f07fb48d2985b9f549decf8d9bbb
1,036
py
Python
os-command-injection/bad.py
levelrin/secure-coding-lectures
9a327e0d52e7bd2b761c4b48df3648abb47ad72d
[ "MIT" ]
null
null
null
os-command-injection/bad.py
levelrin/secure-coding-lectures
9a327e0d52e7bd2b761c4b48df3648abb47ad72d
[ "MIT" ]
8
2021-11-04T12:57:45.000Z
2022-03-28T19:36:25.000Z
os-command-injection/bad.py
levelrin/secure-coding-lectures
9a327e0d52e7bd2b761c4b48df3648abb47ad72d
[ "MIT" ]
null
null
null
from flask import Flask, url_for, redirect, request, render_template, session import subprocess app = Flask(__name__) # we must set the secret key to use session. app.secret_key = "Yoi Yoi" @app.route("/") def index(): return render_template("index.html") @app.route("/read", methods=["POST"]) def read(): #...
30.470588
107
0.694981
22eefa61ff8746e69f3ceffb41c1c17eec655171
800
py
Python
login_example/urls.py
sssunda/djagno-login-example
6e39a793e370ee8d25c3df388248abde55df2eaf
[ "MIT" ]
2
2019-06-06T07:56:32.000Z
2021-01-31T04:49:49.000Z
login_example/urls.py
sssunda/django-login-example
6e39a793e370ee8d25c3df388248abde55df2eaf
[ "MIT" ]
null
null
null
login_example/urls.py
sssunda/django-login-example
6e39a793e370ee8d25c3df388248abde55df2eaf
[ "MIT" ]
null
null
null
"""login_example URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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...
34.782609
77
0.70375
e2b1c0b4ccdbe47e7b259c1f064a3e529a633743
1,575
py
Python
mme/misc/instrument.py
seungyulhan/mme
f9f8bd9d6a3346c3b71faf9c6f78e3402c2924a0
[ "MIT" ]
null
null
null
mme/misc/instrument.py
seungyulhan/mme
f9f8bd9d6a3346c3b71faf9c6f78e3402c2924a0
[ "MIT" ]
null
null
null
mme/misc/instrument.py
seungyulhan/mme
f9f8bd9d6a3346c3b71faf9c6f78e3402c2924a0
[ "MIT" ]
1
2022-01-13T03:53:31.000Z
2022-01-13T03:53:31.000Z
import os import uuid from rllab.misc.instrument import run_experiment_lite from mme.misc.utils import timestamp from mme.misc.utils import PROJECT_PATH DEFAULT_LOG_DIR = PROJECT_PATH + "/data" def _create_symlink(folder): # Create a symbolic link that points to the mme folder and include it # in the tarbal...
26.25
73
0.634921
e217bf912911c203039dc39c361748c9ed505460
274
py
Python
examples/00simple/legacy_person.py
dotness/swagger-marshmallow-codegen
62938d780672d754431d50bde3eae04abefb64f1
[ "MIT" ]
null
null
null
examples/00simple/legacy_person.py
dotness/swagger-marshmallow-codegen
62938d780672d754431d50bde3eae04abefb64f1
[ "MIT" ]
null
null
null
examples/00simple/legacy_person.py
dotness/swagger-marshmallow-codegen
62938d780672d754431d50bde3eae04abefb64f1
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # this is auto-generated by swagger-marshmallow-codegen from swagger_marshmallow_codegen.schema.legacy import LegacySchema from marshmallow import fields class Person(LegacySchema): name = fields.String(required=True) age = fields.Integer()
27.4
66
0.770073
2c71702e6459fcae5cd2fa0a7c8c7dce942ae40b
2,262
py
Python
exp1/foldmerge.py
kdjlyy/hw-for-AI
93433fd4029a32839c312974991a6cef229e0f69
[ "MIT" ]
2
2020-11-05T09:28:04.000Z
2020-11-05T09:28:24.000Z
exp1/foldmerge.py
kdjlyy/hw-for-AI
93433fd4029a32839c312974991a6cef229e0f69
[ "MIT" ]
1
2020-11-03T06:24:43.000Z
2020-11-05T08:41:43.000Z
exp1/foldmerge.py
kdjlyy/hw-for-AI
93433fd4029a32839c312974991a6cef229e0f69
[ "MIT" ]
null
null
null
# -- kdjlyy 11/5/2020-- # # -------- Usage -------- # # - Step1: 建立一个dataset文件夹, 绝对路径替换第12行的datasetPath,合并后的训练集、验证集的图片、标签都在该目录下。 # - Step2: 将训练集目录的绝对路径替换第11行的filePath,运行第一次,生成了训练集的标签,并将训练集的图片和标签copy到创建的dataset文件夹。 # - Step3: 将验证集目录的绝对路径替换第11行的filePath,运行第二次,同上。 import os import shutil # filePath = r'C:\Users\kdjlyy\D...
30.16
99
0.601238
8e5df98a00ba072fb14aafa9641b527fa88c1103
4,510
py
Python
pint/testsuite/parameterized.py
clarkgwillison/pint
03be0544b749ee55fbd1253d18e2a84151dce716
[ "BSD-3-Clause" ]
2
2020-07-08T20:09:35.000Z
2021-03-05T12:51:30.000Z
pint/testsuite/parameterized.py
clarkgwillison/pint
03be0544b749ee55fbd1253d18e2a84151dce716
[ "BSD-3-Clause" ]
1
2020-08-06T00:48:34.000Z
2020-08-11T19:36:38.000Z
pint/testsuite/parameterized.py
clarkgwillison/pint
03be0544b749ee55fbd1253d18e2a84151dce716
[ "BSD-3-Clause" ]
1
2020-09-02T07:24:59.000Z
2020-09-02T07:24:59.000Z
# Adds Parameterized tests for Python's unittest module # # Code from: parameterizedtestcase, version: 0.1.0 # Homepage: https://github.com/msabramo/python_unittest_parameterized_test_case # Author: Marc Abramowitz, email: marc@marc-abramowitz.com # License: MIT # # Use like this: # # from parameterizedtestcase impo...
30.472973
88
0.600443
d06c47dfd2b5bbe52867ccd6aab2289f7d10a56f
40,654
py
Python
angr/engines/vex/claripy/irop.py
zhu8655/angr
c565292a2dd75a0eb77fad74a6b6dd2656216b1f
[ "BSD-2-Clause" ]
null
null
null
angr/engines/vex/claripy/irop.py
zhu8655/angr
c565292a2dd75a0eb77fad74a6b6dd2656216b1f
[ "BSD-2-Clause" ]
null
null
null
angr/engines/vex/claripy/irop.py
zhu8655/angr
c565292a2dd75a0eb77fad74a6b6dd2656216b1f
[ "BSD-2-Clause" ]
null
null
null
""" This module contains symbolic implementations of VEX operations. """ from functools import partial import collections import itertools import operator import math import re import logging l = logging.getLogger(name=__name__) import pyvex import claripy # # The more sane approach # def op_attrs(p): m = re.m...
38.280603
156
0.590348
d15c1fc08a2101ea13703a7cbca5a163ddc6a917
533
py
Python
setup.py
jonathanmeier5/do-cli
51b8d7637e96a69cc66c2e2a2d2dc0e42b8883cd
[ "MIT" ]
null
null
null
setup.py
jonathanmeier5/do-cli
51b8d7637e96a69cc66c2e2a2d2dc0e42b8883cd
[ "MIT" ]
1
2021-06-01T23:16:44.000Z
2021-06-01T23:16:44.000Z
setup.py
jonathanmeier5/do-cli
51b8d7637e96a69cc66c2e2a2d2dc0e42b8883cd
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='do-cli', license='MIT', description='CLI for working with digital ocean', install_requires=[ 'python-digitalocean', ], author='Jonathan Meier', author_email='jonathan.w.meier@gmail.com', url='https://github.com/jonath...
23.173913
53
0.600375
7bf0e21e7240b933cef75d7623c88cf1dc0535dc
245
py
Python
src/direpack/sprm/__init__.py
NanArtist/direpack
e00600a7e6266f8a5152f8ba2350092c923b9a0b
[ "MIT" ]
null
null
null
src/direpack/sprm/__init__.py
NanArtist/direpack
e00600a7e6266f8a5152f8ba2350092c923b9a0b
[ "MIT" ]
null
null
null
src/direpack/sprm/__init__.py
NanArtist/direpack
e00600a7e6266f8a5152f8ba2350092c923b9a0b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Jul 22 12:17:17 2018 @author: Sven Serneels, Ponalytics """ __name__ = "sprm" __author__ = "Sven Serneels" __license__ = "MIT" __version__ = "0.7.4" __date__ = "2020-12-24"
13.611111
35
0.64898
06116c83fbcee9549ffe86b5768e27c4c251e5d8
555
py
Python
pygmlparser/graphics/EdgeGraphics.py
hasii2011/GmlParser
df2998278b71979d362ee1d2096ea877d1633beb
[ "MIT" ]
7
2020-12-03T01:52:46.000Z
2021-12-24T08:37:16.000Z
pygmlparser/graphics/EdgeGraphics.py
hasii2011/GmlParser
df2998278b71979d362ee1d2096ea877d1633beb
[ "MIT" ]
6
2020-03-21T14:55:33.000Z
2022-02-26T04:02:37.000Z
pygmlparser/graphics/EdgeGraphics.py
hasii2011/PyGMLParser
df2998278b71979d362ee1d2096ea877d1633beb
[ "MIT" ]
null
null
null
from typing import Tuple from dataclasses import dataclass from pygmlparser.graphics.Point import Point from pygmlparser.graphics.BaseGraphics import BaseGraphics @dataclass class EdgeGraphics(BaseGraphics): arrow: str = '' """ The type of arrow at the end of the line """ line: Tuple[Point] =...
23.125
113
0.681081
5ba1f1ae99d179389beb05e0581c582dff2a687e
3,589
py
Python
config/_base_/datasets/sroi_comprehensive_coco_detection.py
automlresearch/autodetector
e959baf589fb329509cd25edcab11c7d22ea5e7e
[ "Apache-2.0" ]
null
null
null
config/_base_/datasets/sroi_comprehensive_coco_detection.py
automlresearch/autodetector
e959baf589fb329509cd25edcab11c7d22ea5e7e
[ "Apache-2.0" ]
null
null
null
config/_base_/datasets/sroi_comprehensive_coco_detection.py
automlresearch/autodetector
e959baf589fb329509cd25edcab11c7d22ea5e7e
[ "Apache-2.0" ]
1
2021-12-08T08:28:16.000Z
2021-12-08T08:28:16.000Z
dataset_type = 'SROICocoDataset' data_root = '/home/p/Documents/data/SonarROI/comprehensive/' img_norm_cfg = dict( mean=[0.581,0.44,0.136], std=[0.116,0.113,0.074], to_rgb=True) train_pipeline = [ dict(type='LoadImageFromFile'), dict(type='LoadAnnotations', with_bbox=True), dict(type='Resize', img_scale...
34.84466
105
0.603232
2cf719a0e1bf825a164b848e9c6362e7e4b87a64
9,287
py
Python
appdaemon/plugins/hass/hassapi.py
tseho/appdaemon
be4c8703c2923161100dee33209188268051074a
[ "Apache-2.0" ]
null
null
null
appdaemon/plugins/hass/hassapi.py
tseho/appdaemon
be4c8703c2923161100dee33209188268051074a
[ "Apache-2.0" ]
null
null
null
appdaemon/plugins/hass/hassapi.py
tseho/appdaemon
be4c8703c2923161100dee33209188268051074a
[ "Apache-2.0" ]
null
null
null
import requests import appdaemon.adbase as adbase import appdaemon.adapi as adapi import appdaemon.utils as utils from appdaemon.appdaemon import AppDaemon from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) def hass_check(func):...
32.024138
105
0.585442
888d9b905f00019802b849e72a17ae483276ab80
2,205
py
Python
tvo/variational/RandomSampledVarStates.py
tvlearn/tvo
5a94f78781abc56446b87e74d8447ee73b74dd5b
[ "AFL-3.0" ]
1
2022-03-24T13:44:18.000Z
2022-03-24T13:44:18.000Z
tvo/variational/RandomSampledVarStates.py
tvlearn/tvo
5a94f78781abc56446b87e74d8447ee73b74dd5b
[ "AFL-3.0" ]
7
2022-01-22T15:40:12.000Z
2022-02-17T14:21:05.000Z
tvo/variational/RandomSampledVarStates.py
tvlearn/tvo
5a94f78781abc56446b87e74d8447ee73b74dd5b
[ "AFL-3.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2019 Machine Learning Group of the University of Oldenburg. # Licensed under the Academic Free License version 3.0 import torch as to from torch import Tensor from tvo.utils.model_protocols import Trainable, Optimized from ._utils import update_states_for_batch from .TVOVariati...
33.923077
99
0.611338
e1aaea7a62cb4add0a3e199cef94d567a82f8150
267
py
Python
app/status_codes.py
keosariel/health-report-api-project
3a7aa530be863776fe9b4520be8748498d916c1a
[ "MIT" ]
null
null
null
app/status_codes.py
keosariel/health-report-api-project
3a7aa530be863776fe9b4520be8748498d916c1a
[ "MIT" ]
null
null
null
app/status_codes.py
keosariel/health-report-api-project
3a7aa530be863776fe9b4520be8748498d916c1a
[ "MIT" ]
null
null
null
SUCCESS = 200 SUCCESS_CREATED = 201 SUCCESS_NO_CONTENT = 204 NOT_MODIFIED = 304 BAD_REQUEST = 400 INVALID_PARAMETERS = BAD_REQUEST UNAUTHORIZED = 401 NO_PERMISSION = 401 FORBIDDEN = 403 NOT_FOUND = 404 CONFLICT = 409 INTERNAL_SERVER_ERROR = 500 FILE_TOO_LARGE = 400
17.8
32
0.801498
0920ea4cb45be29c7358ff39538a96834aeb67b6
3,852
py
Python
Modular_gSCAN/Modularity/evaluate.py
ModularCogSci2022/msa
303f00a6d0040cc92dabc589f32d34baef45772b
[ "MIT" ]
null
null
null
Modular_gSCAN/Modularity/evaluate.py
ModularCogSci2022/msa
303f00a6d0040cc92dabc589f32d34baef45772b
[ "MIT" ]
null
null
null
Modular_gSCAN/Modularity/evaluate.py
ModularCogSci2022/msa
303f00a6d0040cc92dabc589f32d34baef45772b
[ "MIT" ]
null
null
null
from Modularity.predict import predict from seq2seq.helpers import sequence_accuracy import torch import torch.nn as nn from typing import Iterator from typing import Dict device = torch.device("cuda" if torch.cuda.is_available() else "cpu") def evaluate(data_iterator: Iterator, model: nn.Module, max_decoding_step...
67.578947
130
0.646158
f81e64cff1006b8b2faf2bc450e7a57d2b3a477c
809
py
Python
hplip-3.20.3/ui/__init__.py
Deril-Pana/wikiBlackcoinNL
9633307f0b485c27feae5da242944adf450e8963
[ "MIT" ]
null
null
null
hplip-3.20.3/ui/__init__.py
Deril-Pana/wikiBlackcoinNL
9633307f0b485c27feae5da242944adf450e8963
[ "MIT" ]
1
2021-11-20T16:33:39.000Z
2021-11-20T16:33:39.000Z
hplip-3.20.3/ui/__init__.py
Deril-Pana/wikiBlackcoinNL
9633307f0b485c27feae5da242944adf450e8963
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # (c) Copyright 2003-2015 HP Development Company, L.P. # # 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 late...
35.173913
74
0.744129
eb46b5e20155804dd215ee2590c9a51dcdc52271
19,874
py
Python
src/famfaceangles/optimridge/ridge.py
mvdoc/identity-decoding
4aa4a15e8d99e76eed6ac793a94dca5e106f8bff
[ "MIT" ]
null
null
null
src/famfaceangles/optimridge/ridge.py
mvdoc/identity-decoding
4aa4a15e8d99e76eed6ac793a94dca5e106f8bff
[ "MIT" ]
null
null
null
src/famfaceangles/optimridge/ridge.py
mvdoc/identity-decoding
4aa4a15e8d99e76eed6ac793a94dca5e106f8bff
[ "MIT" ]
1
2021-12-12T04:54:24.000Z
2021-12-12T04:54:24.000Z
"""Module containing optimized ridge regression. Original implementation by Alex Huth, available here: https://github.com/alexhuth/ridge Refactoring and modifications by Matteo Visconti di Oleggio Castello""" import numpy as np import itertools as itools import logging import random import sys from numpy.linalg imp...
44.963801
120
0.644108
7228f45d4bf59e58bfab1151fdf0b1e833053668
13,022
py
Python
examples/tensorflow-2.0/imagenet/train/code/vgg_preprocessing.py
soar-zhengjian/uai-sdk
e195bd3fb2b97aca7dac6722d332c25b7070481f
[ "Apache-2.0" ]
38
2017-04-26T04:00:09.000Z
2022-02-10T02:51:05.000Z
examples/tensorflow-2.0/imagenet/train/code/vgg_preprocessing.py
soar-zhengjian/uai-sdk
e195bd3fb2b97aca7dac6722d332c25b7070481f
[ "Apache-2.0" ]
17
2017-11-20T20:47:09.000Z
2022-02-09T23:48:46.000Z
examples/tensorflow-2.0/imagenet/train/code/vgg_preprocessing.py
soar-zhengjian/uai-sdk
e195bd3fb2b97aca7dac6722d332c25b7070481f
[ "Apache-2.0" ]
28
2017-07-08T05:23:13.000Z
2020-08-18T03:12:27.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.873278
84
0.71049
0f47b1c07bcd3ed883626eb88f2e69ae83d7090e
43,175
py
Python
sdks/python/apache_beam/runners/direct/transform_evaluator.py
davidtime/beam
f2d19fdf7118a08d222f0028753a58347e6352fd
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/runners/direct/transform_evaluator.py
davidtime/beam
f2d19fdf7118a08d222f0028753a58347e6352fd
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/runners/direct/transform_evaluator.py
davidtime/beam
f2d19fdf7118a08d222f0028753a58347e6352fd
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
39.321494
106
0.73348
c1198198c61d01d1ed30c613f61f94b3f9f177c5
378
py
Python
tests/operator/function_test.py
AntoineDao/queenbee
800d5b26a69cffbce85864ea9430304b7fb8d11a
[ "MIT" ]
10
2020-12-17T06:08:46.000Z
2022-02-12T12:06:08.000Z
tests/operator/function_test.py
AntoineDao/queenbee
800d5b26a69cffbce85864ea9430304b7fb8d11a
[ "MIT" ]
213
2020-12-06T03:34:01.000Z
2022-03-28T01:07:41.000Z
tests/operator/function_test.py
AntoineDao/queenbee
800d5b26a69cffbce85864ea9430304b7fb8d11a
[ "MIT" ]
4
2019-08-14T22:10:29.000Z
2020-09-21T22:46:11.000Z
import yaml from tests.base.io_test import BaseIOTest from tests.base.value_error import BaseValueErrorTest from queenbee.plugin.function import Function ASSET_FOLDER = 'tests/assets/functions' class TestIO(BaseIOTest): klass = Function asset_folder = ASSET_FOLDER class TestValueError(BaseValueErrorTest...
17.181818
53
0.78836
e403f7f197cb1f3c8ffcbaf95cd1fe565ec320e9
1,065
py
Python
ivy/funcoes_ivy/ivy_calculadora.py
Projeto-Integrador-BD/ivy-projeto-bd
6796c6601c5b1465b0f7d49593f0575f01bc068f
[ "MIT" ]
1
2020-05-14T03:41:01.000Z
2020-05-14T03:41:01.000Z
ivy/funcoes_ivy/ivy_calculadora.py
Projeto-Integrador-BD/ivy-projeto-bd
6796c6601c5b1465b0f7d49593f0575f01bc068f
[ "MIT" ]
null
null
null
ivy/funcoes_ivy/ivy_calculadora.py
Projeto-Integrador-BD/ivy-projeto-bd
6796c6601c5b1465b0f7d49593f0575f01bc068f
[ "MIT" ]
2
2020-05-16T21:31:31.000Z
2020-06-25T01:05:55.000Z
from util import audio def calcular(ivy): ivy.falar('Informe o primeiro numero') num1 = float(ivy.ouvir(False)) ivy.falar('Informe o segundo numero') num2 = float(ivy.ouvir(False)) ivy.falar('Ok, agora me diga qual operação deseja realizar?') ope...
38.035714
110
0.513615
a7cac77542a69e5af290c4432c97b427daea8db1
1,057
py
Python
src/classes/vector.py
JackMcKew/boids_in_blender
b252a30277430556d50ff290791109d366114149
[ "MIT" ]
null
null
null
src/classes/vector.py
JackMcKew/boids_in_blender
b252a30277430556d50ff290791109d366114149
[ "MIT" ]
null
null
null
src/classes/vector.py
JackMcKew/boids_in_blender
b252a30277430556d50ff290791109d366114149
[ "MIT" ]
null
null
null
import math class Vector(object): def __init__(self, *args): """ Create a vector class for vector operations Parameters: *args (tuple): values for vector """ if len(args)==0: self.values = (0,0) else: self.values = args # sup...
28.567568
75
0.55913
df4574f590c43c1c31075fdf5871e5b0a8aaa2fe
1,239
py
Python
test/test_sensor_param.py
eirerocks/samsara-python-eu
e0f1bd8f42d083fc713f910b74123d3bc7408538
[ "Apache-2.0" ]
1
2019-09-17T14:11:52.000Z
2019-09-17T14:11:52.000Z
test/test_sensor_param.py
eirerocks/samsara-python-eu
e0f1bd8f42d083fc713f910b74123d3bc7408538
[ "Apache-2.0" ]
null
null
null
test/test_sensor_param.py
eirerocks/samsara-python-eu
e0f1bd8f42d083fc713f910b74123d3bc7408538
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Samsara API OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git 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 Lice...
23.377358
76
0.702179
6586506df60bc43542dca811bde99ac8c6a07e98
616
py
Python
backend/unpp_api/apps/project/migrations/0074_auto_20180823_0824.py
unicef/un-partner-portal
73afa193a5f6d626928cae0025c72a17f0ef8f61
[ "Apache-2.0" ]
6
2017-11-21T10:00:44.000Z
2022-02-12T16:51:48.000Z
backend/unpp_api/apps/project/migrations/0074_auto_20180823_0824.py
unicef/un-partner-portal
73afa193a5f6d626928cae0025c72a17f0ef8f61
[ "Apache-2.0" ]
995
2017-07-31T02:08:36.000Z
2022-03-08T22:44:03.000Z
backend/unpp_api/apps/project/migrations/0074_auto_20180823_0824.py
unicef/un-partner-portal
73afa193a5f6d626928cae0025c72a17f0ef8f61
[ "Apache-2.0" ]
1
2021-07-21T10:45:15.000Z
2021-07-21T10:45:15.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2018-08-23 08:24 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('project', '0073_clarificationrequestanswerfile_clarificationrequestquestion'), ] operation...
25.666667
88
0.633117
76cdee23be8e8a9d126edde932c771e0fab9ddb0
74,518
py
Python
tests/integration/test_apigateway.py
TheRakeshPurohit/localstack
063e07827934a7c7ff00e6d7cf6e243bcce0eb99
[ "Apache-2.0" ]
null
null
null
tests/integration/test_apigateway.py
TheRakeshPurohit/localstack
063e07827934a7c7ff00e6d7cf6e243bcce0eb99
[ "Apache-2.0" ]
null
null
null
tests/integration/test_apigateway.py
TheRakeshPurohit/localstack
063e07827934a7c7ff00e6d7cf6e243bcce0eb99
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import base64 import json import os import re from collections import namedtuple from typing import Callable, Optional import pytest import xmltodict from botocore.exceptions import ClientError from jsonpatch import apply_patch from moto.apigateway.models import APIGatewayBackend from requests....
39.679446
106
0.620159
a779dc2e008c50d4b3cf057627d0a37060124b1a
16,779
py
Python
tests/test_observable/test_publish.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
4,342
2015-01-06T09:00:23.000Z
2022-03-28T15:05:50.000Z
tests/test_observable/test_publish.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
613
2015-01-07T20:44:56.000Z
2022-03-20T06:14:20.000Z
tests/test_observable/test_publish.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
420
2015-01-07T14:30:30.000Z
2022-03-11T22:47:46.000Z
import unittest import rx from rx import operators as ops from rx.core import ConnectableObservable, Observable from rx.core.typing import Observer from rx.testing import TestScheduler, ReactiveTest on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = Re...
30.069892
98
0.532749
2be5e6ea54cccb412ade58c433018ff896be692f
3,147
py
Python
mars/tensor/tests/test_utils.py
haijohn/mars
672b3a33a70565f01b1a3f508908445491d85acf
[ "Apache-2.0" ]
1
2021-06-10T02:43:01.000Z
2021-06-10T02:43:01.000Z
mars/tensor/tests/test_utils.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
mars/tensor/tests/test_utils.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding 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 a...
32.443299
86
0.685415
c00f51470359435a7581827d2e5618fbd17128c5
120
py
Python
longclaw/checkout/gateways/__init__.py
al-bezd/longclaw
0508231a90360670ed52d40475d8886a91c6920f
[ "MIT" ]
351
2017-02-03T10:47:06.000Z
2022-03-23T08:08:31.000Z
longclaw/checkout/gateways/__init__.py
al-bezd/longclaw
0508231a90360670ed52d40475d8886a91c6920f
[ "MIT" ]
392
2017-02-03T10:16:26.000Z
2022-03-28T00:30:02.000Z
longclaw/checkout/gateways/__init__.py
al-bezd/longclaw
0508231a90360670ed52d40475d8886a91c6920f
[ "MIT" ]
108
2017-02-06T01:03:21.000Z
2022-03-14T13:51:20.000Z
""" Gateways module to hold payment processor backend logic """ from longclaw.checkout.gateways.base import BasePayment
24
55
0.808333
5a3a44bc279f1cc44b1800be13b6179b77c5b888
3,903
py
Python
server.py
mostepunk/tesseract-ocr-fastapi
2066a153dfc710558d1c95900f337682a1086d42
[ "Apache-2.0" ]
null
null
null
server.py
mostepunk/tesseract-ocr-fastapi
2066a153dfc710558d1c95900f337682a1086d42
[ "Apache-2.0" ]
null
null
null
server.py
mostepunk/tesseract-ocr-fastapi
2066a153dfc710558d1c95900f337682a1086d42
[ "Apache-2.0" ]
null
null
null
""" IDE: PyCharm Project: ocr-api Author: Robin Filename: server.py Date: 15.01.2020 """ import os from typing import List import pytesseract import uvicorn import xmltodict from fastapi import FastAPI, File, UploadFile from pydantic import BaseModel from starlette.responses import PlainTextResponse app = FastAPI()...
26.917241
118
0.594415
ab64d48cdd34c93c58ae263fef28e076870f5209
75
py
Python
Python/take_two_stones.py
mimseyedi/Kattis
a99ea2112544e89cc466feb7d81ffe6eb017f7e2
[ "MIT" ]
null
null
null
Python/take_two_stones.py
mimseyedi/Kattis
a99ea2112544e89cc466feb7d81ffe6eb017f7e2
[ "MIT" ]
null
null
null
Python/take_two_stones.py
mimseyedi/Kattis
a99ea2112544e89cc466feb7d81ffe6eb017f7e2
[ "MIT" ]
null
null
null
n = int(input()) if n % 2 == 0: print("Bob") else: print("Alice")
10.714286
18
0.48
18cd349e6ffaf27e1029fc0aee123a5005af57f4
176
py
Python
src/server/api/DBHelper/__init__.py
TaibiaoGuo/bblog
d174b81b2b753bde6f0fd999425452d02d4a20d6
[ "MIT" ]
null
null
null
src/server/api/DBHelper/__init__.py
TaibiaoGuo/bblog
d174b81b2b753bde6f0fd999425452d02d4a20d6
[ "MIT" ]
null
null
null
src/server/api/DBHelper/__init__.py
TaibiaoGuo/bblog
d174b81b2b753bde6f0fd999425452d02d4a20d6
[ "MIT" ]
null
null
null
# !/usr/bin python3 # encoding:utf-8 ''' @Time :2020/2/24 5:32 AM @Author :TaibiaoGuo @FileName :__init__.py @Github :https://github.com/TaibiaoGuo @Describe : '''
19.555556
41
0.642045
699741d83c933631b321275d822cc734d880d90a
1,175
py
Python
commtrack/distgit/constants.py
bregman-arie/commtrack
5359958dd07d1b9e868ec5276da6dde22f982d07
[ "Apache-2.0" ]
3
2020-01-14T10:15:40.000Z
2020-12-01T14:32:01.000Z
commtrack/distgit/constants.py
bregman-arie/commit-tracker
5359958dd07d1b9e868ec5276da6dde22f982d07
[ "Apache-2.0" ]
2
2018-12-24T12:16:58.000Z
2019-02-18T07:16:42.000Z
commtrack/distgit/constants.py
bregman-arie/commit-tracker
5359958dd07d1b9e868ec5276da6dde22f982d07
[ "Apache-2.0" ]
1
2019-07-15T08:27:36.000Z
2019-07-15T08:27:36.000Z
# Copyright 2019 Arie Bregman # # 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 agree...
31.756757
78
0.700426
abe86c9a18aa9c39019209d4064d462379f366a5
23,793
py
Python
memolon/src/utils.py
JULIELab/MEmoLon
7f8eb102597ad5df3f6cf65c26c56f3888e885aa
[ "MIT" ]
21
2020-05-14T20:19:25.000Z
2022-03-22T09:24:56.000Z
memolon/src/utils.py
JULIELab/MEmoLon
7f8eb102597ad5df3f6cf65c26c56f3888e885aa
[ "MIT" ]
null
null
null
memolon/src/utils.py
JULIELab/MEmoLon
7f8eb102597ad5df3f6cf65c26c56f3888e885aa
[ "MIT" ]
2
2021-04-12T10:14:40.000Z
2021-06-09T01:41:49.000Z
import numpy as np import pandas as pd import re from io import StringIO import json import gzip import memolon.src.constants as cs def list_intersection(list1, list2): return sorted(list(set(list1).intersection(set(list2)))) def list_union(list1, list2): return sorted(set(list1).union(set(list2))) def ...
30.194162
120
0.561804
2951ccf368dde654fbf44e3c49346112355c4813
1,454
py
Python
tests/test_create_sample_tracking_letter.py
EdinburghGenomics/clarity_scripts
472299fc4edd4e0a08895ecc7c5630b253322e28
[ "MIT" ]
2
2018-06-18T16:31:09.000Z
2021-03-31T20:13:39.000Z
tests/test_create_sample_tracking_letter.py
EdinburghGenomics/clarity_scripts
472299fc4edd4e0a08895ecc7c5630b253322e28
[ "MIT" ]
99
2016-02-15T16:21:51.000Z
2022-03-11T23:43:26.000Z
tests/test_create_sample_tracking_letter.py
EdinburghGenomics/clarity_scripts
472299fc4edd4e0a08895ecc7c5630b253322e28
[ "MIT" ]
null
null
null
from os.path import join, dirname, abspath from unittest.mock import PropertyMock, Mock from EPPs.common import StepEPP from scripts.create_sample_tracking_letter import GenerateTrackingLetter from tests.test_common import TestEPP, NamedMock, patch class TestCreateTrackingLetter(TestEPP): sample1 = Mock(project=...
40.388889
152
0.697387
47bdc49cdb8d1dcbf277b6ac6e9868dffa542fa2
10,332
py
Python
stackviz/parser/tempest_subunit.py
openstack/stackviz
f6b905b792121de0cd83e73d0737ce2b12e69f77
[ "Apache-2.0" ]
24
2015-09-23T22:55:14.000Z
2019-08-17T05:13:20.000Z
stackviz/parser/tempest_subunit.py
openstack/stackviz
f6b905b792121de0cd83e73d0737ce2b12e69f77
[ "Apache-2.0" ]
5
2019-11-01T13:05:34.000Z
2020-06-18T14:39:48.000Z
stackviz/parser/tempest_subunit.py
openstack/stackviz
f6b905b792121de0cd83e73d0737ce2b12e69f77
[ "Apache-2.0" ]
7
2016-12-07T19:54:50.000Z
2021-04-15T08:36:35.000Z
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # 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...
28
79
0.653504
b2ccdf0e04484d9494b9cad6b67eb65c172d5b7a
1,501
py
Python
comments/migrations/0001_initial.py
davesque/thought.place-new
869776f10d621b6be5c674344238221f68a43c1b
[ "Unlicense" ]
null
null
null
comments/migrations/0001_initial.py
davesque/thought.place-new
869776f10d621b6be5c674344238221f68a43c1b
[ "Unlicense" ]
null
null
null
comments/migrations/0001_initial.py
davesque/thought.place-new
869776f10d621b6be5c674344238221f68a43c1b
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-20 00:46 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Commen...
41.694444
188
0.589607
c3876d5efa312978d042adad3271ccb5fb5c08df
12,527
py
Python
saleor/checkout/forms.py
Iahack/saleor
4e1a0a81812c5914c38c7382506479f8d8522b55
[ "BSD-3-Clause" ]
1
2021-07-16T13:25:34.000Z
2021-07-16T13:25:34.000Z
saleor/checkout/forms.py
Iahack/saleor
4e1a0a81812c5914c38c7382506479f8d8522b55
[ "BSD-3-Clause" ]
7
2020-03-24T16:50:06.000Z
2021-11-16T16:06:34.000Z
saleor/checkout/forms.py
Iahack/saleor
4e1a0a81812c5914c38c7382506479f8d8522b55
[ "BSD-3-Clause" ]
1
2021-02-09T08:41:29.000Z
2021-02-09T08:41:29.000Z
"""Cart-related forms and fields.""" from datetime import date from django import forms from django.conf import settings from django.core.exceptions import NON_FIELD_ERRORS, ObjectDoesNotExist from django.utils.encoding import smart_text from django.utils.safestring import mark_safe from django.utils.translation impor...
35.487252
79
0.646843
9a14311a8bea233f587137448458b96c21306304
9,448
py
Python
MFIRAP/d01_data/augment.py
igor-morawski/MFIR-AP
d01bc2fd7cdb43231e3fd0dc0b6b2e5e429ba4ff
[ "MIT" ]
1
2020-08-13T05:15:06.000Z
2020-08-13T05:15:06.000Z
MFIRAP/d01_data/augment.py
igor-morawski/MFIR-AP
d01bc2fd7cdb43231e3fd0dc0b6b2e5e429ba4ff
[ "MIT" ]
10
2020-11-13T17:50:26.000Z
2022-03-12T00:46:05.000Z
MFIRAP/d01_data/augment.py
igor-morawski/MFIR-AP
d01bc2fd7cdb43231e3fd0dc0b6b2e5e429ba4ff
[ "MIT" ]
2
2020-08-13T05:15:37.000Z
2020-08-19T04:55:26.000Z
""" Augment negative samples by extracting non-overlapping segments. """ import argparse import os import sys import glob import numpy as np import tqdm import HTPA32x32d import copy DTYPE = "float32" VIEW_IDS = ["121", "122", "123"] def splitall(path): allparts = [] while 1: parts = os.path.split(pa...
33.985612
100
0.561071
75abf680f91eb721667e9af2152904f2db65717f
1,178
py
Python
cifrec.py
Come1LLF00/cifostoolbox
8dc351f2d8059621c2929dda816012abca1f2044
[ "MIT" ]
null
null
null
cifrec.py
Come1LLF00/cifostoolbox
8dc351f2d8059621c2929dda816012abca1f2044
[ "MIT" ]
null
null
null
cifrec.py
Come1LLF00/cifostoolbox
8dc351f2d8059621c2929dda816012abca1f2044
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import time import sys from pipe import select # 0: file script path # 1: utility name # 2: pid: id of the observed process # 3: interval: amount of time in milliseconds between reports # 4: count: number of generated reports def main( argc, argv ): if ( argc < 5 ): print( "not enough pa...
31.837838
88
0.588285
e6911998042259107179937ecfa9531b093e8c48
10,057
py
Python
tests/test_api.py
tencent-connect/botpy
275f96f0859b63110b095711838c738ad6a9cc1e
[ "MIT" ]
63
2021-12-27T05:55:07.000Z
2022-03-28T12:28:53.000Z
tests/test_api.py
tencent-connect/botpy
275f96f0859b63110b095711838c738ad6a9cc1e
[ "MIT" ]
9
2022-01-06T03:33:30.000Z
2022-03-27T10:49:36.000Z
tests/test_api.py
tencent-connect/botpy
275f96f0859b63110b095711838c738ad6a9cc1e
[ "MIT" ]
12
2021-12-31T07:46:12.000Z
2022-03-28T13:34:09.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import time import unittest from typing import List import qqbot from qqbot.core.exception.error import ( AuthenticationFailedError, SequenceNumberError, ServerError, ) from qqbot.core.util import logging from qqbot.model.announce import RecommendChannel, Reco...
33.748322
91
0.7017
5d1907581b3308eeba3d27d8c7626f2904ab5e19
8,757
py
Python
autouri/cli.py
ENCODE-DCC/autouri
178f6098360de919a3603cff58335abf513eb6c4
[ "MIT" ]
null
null
null
autouri/cli.py
ENCODE-DCC/autouri
178f6098360de919a3603cff58335abf513eb6c4
[ "MIT" ]
2
2020-03-14T03:24:00.000Z
2021-04-02T21:00:14.000Z
autouri/cli.py
ENCODE-DCC/autouri
178f6098360de919a3603cff58335abf513eb6c4
[ "MIT" ]
1
2022-03-11T21:43:10.000Z
2022-03-11T21:43:10.000Z
#!/usr/bin/env python3 import argparse import logging import os import sys from . import __version__ as version from .autouri import AutoURI, URIBase from .gcsuri import GCSURI from .s3uri import S3URI logger = logging.getLogger(__name__) DEFAULT_RMDIR_NTH = 6 def parse_args(): parser = argparse.ArgumentParse...
30.943463
95
0.597236
8d13aef380f20b361f25b8c91ab9072f1536e547
34,696
py
Python
lib/gensim/test/test_word2vec.py
duyetdev/api.duyetdev.com
4c33cc2cfb43ad6c4089873230e7b657659bff15
[ "MIT" ]
2
2017-06-12T11:08:01.000Z
2017-06-13T00:50:16.000Z
lib/gensim/test/test_word2vec.py
duyetdev/api.duyetdev.com
4c33cc2cfb43ad6c4089873230e7b657659bff15
[ "MIT" ]
12
2020-07-11T01:42:51.000Z
2020-08-12T17:17:35.000Z
lib/gensim/test/test_word2vec.py
duyetdev/api.duyetdev.com
4c33cc2cfb43ad6c4089873230e7b657659bff15
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Automated tests for checking transformation algorithms (the models package). """ import logging import unittest import os import t...
46.385027
174
0.65875
e5f256762cf227435ec931f43d5284f59c38442d
1,299
py
Python
tests/exp_outputs/added_space.py
saltudelft/libsa4py
4f701dbc2427be9585d6092a93d80a5c10bcdf2d
[ "Apache-2.0" ]
5
2021-03-23T04:56:55.000Z
2021-09-10T14:28:11.000Z
tests/exp_outputs/added_space.py
saltudelft/libsa4py
4f701dbc2427be9585d6092a93d80a5c10bcdf2d
[ "Apache-2.0" ]
14
2021-03-01T15:15:16.000Z
2021-06-17T15:55:33.000Z
tests/exp_outputs/added_space.py
saltudelft/libsa4py
4f701dbc2427be9585d6092a93d80a5c10bcdf2d
[ "Apache-2.0" ]
null
null
null
""" This module's purpose is to test SpaceAdder, which helps tokenization of source code """ from typing import List import math as m CONSTANT : int = 10 STRING = "Hello, World!" "Hello, " "World" == STRING d = { k : v for k , v in [ ( 1 , 2 ) , ( 2 , 3 ) ] } d_e = { ** d , ** d } f_str = f"Blah blah{ STRING + STRI...
18.295775
84
0.405697
73a9e70299f5b77c03b220fb88d8d04da36e19b6
2,134
py
Python
tests/test_retrieve.py
chatnoir-eu/chatnoir-pyterrier
e8be17b677ffaea6f41459a070cb53082d922977
[ "MIT" ]
1
2022-01-25T10:31:07.000Z
2022-01-25T10:31:07.000Z
tests/test_retrieve.py
chatnoir-eu/chatnoir-pyterrier
e8be17b677ffaea6f41459a070cb53082d922977
[ "MIT" ]
null
null
null
tests/test_retrieve.py
chatnoir-eu/chatnoir-pyterrier
e8be17b677ffaea6f41459a070cb53082d922977
[ "MIT" ]
null
null
null
from chatnoir_api import Index from pandas import DataFrame from chatnoir_pyterrier.retrieve import ChatNoirRetrieve, Feature def test_retrieve_hash(api_key: str): retrieve = ChatNoirRetrieve(api_key) retrieve_hash = hash(retrieve) assert isinstance(retrieve_hash, int) def test_retrieve_query(api_key: ...
31.850746
65
0.700094
9ad50861cdc2f6178cdcb535cf51718fdd498751
5,704
py
Python
test/functional/wallet_txn_doublespend.py
faetos/QTCoin
89df4cd42fc0afb5adee142e045d2e2e08311402
[ "MIT" ]
null
null
null
test/functional/wallet_txn_doublespend.py
faetos/QTCoin
89df4cd42fc0afb5adee142e045d2e2e08311402
[ "MIT" ]
null
null
null
test/functional/wallet_txn_doublespend.py
faetos/QTCoin
89df4cd42fc0afb5adee142e045d2e2e08311402
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet accounts properly when there is a double-spend conflict.""" from test_framework.test_f...
43.541985
114
0.650421
850fb12fc1b8e9ba9bbab0196404773b6f46343f
427
py
Python
tests/test_data.py
artslob/cyberbox
edb58851cefc7bcadbabd1f599fc06c0a0a3bd3b
[ "MIT" ]
1
2021-01-20T13:00:56.000Z
2021-01-20T13:00:56.000Z
tests/test_data.py
artslob/cyberbox
edb58851cefc7bcadbabd1f599fc06c0a0a3bd3b
[ "MIT" ]
null
null
null
tests/test_data.py
artslob/cyberbox
edb58851cefc7bcadbabd1f599fc06c0a0a3bd3b
[ "MIT" ]
null
null
null
import pytest from databases import Database from sqlalchemy import func, select from cyberbox import orm @pytest.mark.asyncio async def test_user_created(db: Database, create_users): assert await db.execute(select([func.count()]).select_from(orm.User)) == 4 @pytest.mark.asyncio async def test_files_created(db...
26.6875
79
0.76815
8c56a923ebdd6e174355a40d2f8fb46fe36cd9d7
1,418
py
Python
src/waldur_mastermind/invoices/migrations/0061_total_cost.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
2
2017-01-20T15:26:25.000Z
2017-08-03T04:38:08.000Z
src/waldur_mastermind/invoices/migrations/0061_total_cost.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
src/waldur_mastermind/invoices/migrations/0061_total_cost.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
import decimal from django.db import migrations, models def quantize_price(value): return value.quantize(decimal.Decimal('0.01'), rounding=decimal.ROUND_UP) def fill_total_cost(apps, schema_editor): Invoice = apps.get_model('invoices', 'Invoice') for invoice in Invoice.objects.all(): price = qu...
28.36
86
0.575458
a3e3bc71c86e1a752dcd709e5e3f251d90a1a05f
8,624
py
Python
toolchains/iar.py
hardtail0112/matsubed-sdk
da3ac90f1f6e52ca72a9bb18ae80f69e45da3d71
[ "Apache-2.0" ]
22
2019-05-03T03:39:09.000Z
2022-02-26T17:14:15.000Z
toolchains/iar.py
hardtail0112/matsubed-sdk
da3ac90f1f6e52ca72a9bb18ae80f69e45da3d71
[ "Apache-2.0" ]
3
2019-07-29T19:48:49.000Z
2022-01-10T07:24:43.000Z
toolchains/iar.py
hardtail0112/matsubed-sdk
da3ac90f1f6e52ca72a9bb18ae80f69e45da3d71
[ "Apache-2.0" ]
8
2019-05-16T08:02:33.000Z
2021-08-03T03:41:37.000Z
""" mbed SDK Copyright (c) 2011-2013 ARM Limited 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 wr...
35.344262
129
0.576183
a1037dbc1567dc004047d228bdb394d661960622
2,182
py
Python
example_pipelines/healthcare/healthcare.py
shubhaguha/mlinspect-demo
1e9b201d9138a1c99282fe17f6a7ded8a8a67b6b
[ "Apache-2.0" ]
1
2021-06-06T20:07:09.000Z
2021-06-06T20:07:09.000Z
example_pipelines/healthcare/healthcare.py
shubhaguha/mlinspect-demo
1e9b201d9138a1c99282fe17f6a7ded8a8a67b6b
[ "Apache-2.0" ]
null
null
null
example_pipelines/healthcare/healthcare.py
shubhaguha/mlinspect-demo
1e9b201d9138a1c99282fe17f6a7ded8a8a67b6b
[ "Apache-2.0" ]
null
null
null
"""Predicting which patients are at a higher risk of complications.""" import pandas as pd from sklearn.compose import ColumnTransformer from sklearn.impute import SimpleImputer from sklearn.model_selection import train_test_split from sklearn.pipeline import Pipeline from sklearn.preprocessing import OneHotEncoder, St...
50.744186
100
0.737855
10d0105cbef31dfe9e7ec177c123eff12097e10c
3,459
py
Python
project/settings.py
wowace/multimeter
24eed9cd59819a27c110b10c637e14735b29710f
[ "MIT" ]
null
null
null
project/settings.py
wowace/multimeter
24eed9cd59819a27c110b10c637e14735b29710f
[ "MIT" ]
48
2018-03-02T14:57:01.000Z
2020-02-13T10:08:12.000Z
project/settings.py
kafitimi/multimeter
24eed9cd59819a27c110b10c637e14735b29710f
[ "MIT" ]
null
null
null
""" Django settings for project project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
24.884892
91
0.694131
8053999ee1679c1ba20a56d4fb1fc15f9622ca6c
11,801
py
Python
dio/obj.py
qenops/dGraph
b67c835bf60f1627a79d3e22183301f34431c5b3
[ "Apache-2.0" ]
1
2019-03-20T18:17:49.000Z
2019-03-20T18:17:49.000Z
dio/obj.py
qenops/dGraph
b67c835bf60f1627a79d3e22183301f34431c5b3
[ "Apache-2.0" ]
null
null
null
dio/obj.py
qenops/dGraph
b67c835bf60f1627a79d3e22183301f34431c5b3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python '''An OBJ reader and writer Builds a mesh with multiple lists: verts and faces at a minimum verts is a list of arrays each defining the position of each vert uvs is a list of arrays each defining the position of a uv coordinate normals is a list of arrays each defining a vector of a normal faces...
42.44964
231
0.552411
bcd71fbe44cb880bd68770a9530592f9d7cf0fc9
838
py
Python
NetworkApp/create_threads.py
Kr4v3N/Arista-Automation
0049f9a392249049effb1b92c8247af07837eaa1
[ "MIT" ]
null
null
null
NetworkApp/create_threads.py
Kr4v3N/Arista-Automation
0049f9a392249049effb1b92c8247af07837eaa1
[ "MIT" ]
null
null
null
NetworkApp/create_threads.py
Kr4v3N/Arista-Automation
0049f9a392249049effb1b92c8247af07837eaa1
[ "MIT" ]
null
null
null
import threading # Création des threads def create_threads(list, function): threads = [] for ip in list: # On itère sur la listes des adresses IP fournies en paramètres # args est un tuple avec un seul élément th = threading.Thread(target=function, args=(ip,)) # Pour chaque IP...
39.904762
113
0.683771
e2eed8b270546987cdde5fd3b0f55549359ec855
1,322
py
Python
Mac/scripts/cachersrc.py
cemeyer/tauthon
2c3328c5272cffa2a544542217181c5828afa7ed
[ "PSF-2.0" ]
2,293
2015-01-02T12:46:10.000Z
2022-03-29T09:45:43.000Z
python/src/Mac/scripts/cachersrc.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
315
2015-05-31T11:55:46.000Z
2022-01-12T08:36:37.000Z
python/src/Mac/scripts/cachersrc.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
1,033
2015-01-04T07:48:40.000Z
2022-03-24T09:34:37.000Z
# Scan the tree passed as argv[0] for .rsrc files, skipping .rsrc.df.rsrc # files, and open these. The effect of this is to create the .rsrc.df.rsrc # cache files if needed. # These are needed on OSX: the .rsrc files are in reality AppleSingle-encoded # files. We decode the resources into a datafork-based resource file...
29.377778
81
0.583207
7d4bf0837cc832202c734b10169cd23a5c3e6464
838
py
Python
pkg/ampcor/cli/__init__.py
isce-framework/ampcor
eafadcbe4380a85320d8c7e884ebe4d6d279770e
[ "BSD-2-Clause" ]
3
2019-05-08T05:48:21.000Z
2021-09-26T23:19:45.000Z
pkg/ampcor/cli/__init__.py
isce-framework/ampcor
eafadcbe4380a85320d8c7e884ebe4d6d279770e
[ "BSD-2-Clause" ]
null
null
null
pkg/ampcor/cli/__init__.py
isce-framework/ampcor
eafadcbe4380a85320d8c7e884ebe4d6d279770e
[ "BSD-2-Clause" ]
3
2019-10-28T12:26:23.000Z
2021-09-26T23:19:55.000Z
# -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # parasim # (c) 1998-2019 all rights reserved # # pull the action protocol from .Action import Action as action # and the base panel from .Command import Command as command # pull in the command decorator from .. import foundry # comman...
20.95
89
0.704057
b6fa4dce293a7902bfddd60f0030e3deb9b8626f
10,185
py
Python
elasticsearch/elasticsearch.py
shobana-loser/plugins
66a73438ba80626756795f8ff796fbd35d39889e
[ "BSD-2-Clause" ]
1
2019-12-10T06:44:19.000Z
2019-12-10T06:44:19.000Z
elasticsearch/elasticsearch.py
shobana-loser/plugins
66a73438ba80626756795f8ff796fbd35d39889e
[ "BSD-2-Clause" ]
null
null
null
elasticsearch/elasticsearch.py
shobana-loser/plugins
66a73438ba80626756795f8ff796fbd35d39889e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python ### For monitoring the performance metrics of your Elasticsearch cluster using Site24x7 Server Monitoring Plugins. ### 1. Have the site24x7 server monitoring agent up and running. ### 2. Download the plugin from github https://raw.githubusercontent.com/site24x7/plugins/master/elasticsearch/ ### 3. C...
46.295455
198
0.623073
5273641ac38249d5fbb56855220840f42542c9d2
699
py
Python
awsf/aws_update_run_json.py
nhartwic/tibanna
889490e5895c6c3e081b65c54573903e8c0daa53
[ "MIT" ]
62
2017-02-16T02:16:22.000Z
2022-02-07T08:26:12.000Z
awsf/aws_update_run_json.py
nhartwic/tibanna
889490e5895c6c3e081b65c54573903e8c0daa53
[ "MIT" ]
77
2017-10-26T20:17:35.000Z
2022-03-25T22:56:32.000Z
awsf/aws_update_run_json.py
nhartwic/tibanna
889490e5895c6c3e081b65c54573903e8c0daa53
[ "MIT" ]
19
2017-01-27T16:37:37.000Z
2021-12-12T13:52:01.000Z
#!/usr/bin/python import json import sys import os import time json_old = sys.argv[1] json_new = sys.argv[2] # read old json file with open(json_old, 'r') as json_old_f: Dict = json.load(json_old_f) # add end time, status, instance_id Dict['Job']['end_time'] = time.strftime("%Y%m%d-%H:%M:%S-%Z") Dict['Job']['stat...
29.125
61
0.692418
e6e09debe3ff1b398f5d6d6721a2d51e3a0e4344
474
py
Python
examples/head.py
ktdreyer/treq-kerberos
5432eb42d12b549f13670ccc8dc91faf4349fa40
[ "MIT" ]
1
2019-04-19T10:28:14.000Z
2019-04-19T10:28:14.000Z
examples/head.py
ktdreyer/treq-kerberos
5432eb42d12b549f13670ccc8dc91faf4349fa40
[ "MIT" ]
1
2019-11-21T22:46:01.000Z
2019-11-21T22:46:01.000Z
examples/head.py
ktdreyer/treq-kerberos
5432eb42d12b549f13670ccc8dc91faf4349fa40
[ "MIT" ]
null
null
null
from treq_kerberos import TreqKerberosAuth import treq_kerberos from twisted.internet import defer from twisted.internet.task import react # HEAD a URL that requires Kerberos authentication. @defer.inlineCallbacks def example(reactor): url = 'https://errata.devel.redhat.com/' auth = TreqKerberosAuth() re...
23.7
55
0.757384
260c944038d32674f577c650c67339af97062d8d
204
py
Python
icon.py
ShawnVoid/readComm
38495d206a85fe04594ce3148bfe15abca5d518e
[ "MIT" ]
null
null
null
icon.py
ShawnVoid/readComm
38495d206a85fe04594ce3148bfe15abca5d518e
[ "MIT" ]
null
null
null
icon.py
ShawnVoid/readComm
38495d206a85fe04594ce3148bfe15abca5d518e
[ "MIT" ]
null
null
null
import base64 open_icon = open("readComm.ico","rb") b64str = base64.b64encode(open_icon.read()) open_icon.close() write_data = "img = '%s'" % b64str f = open("icon.py","w+") f.write(write_data) f.close()
22.666667
43
0.686275
01ddb0257415a1eebaf08f611d4dd9312387af29
208
py
Python
tests/web_platform/css_grid_1/abspos/test_absolute_positioning_changing_containing_block.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
71
2015-04-13T09:44:14.000Z
2019-03-24T01:03:02.000Z
tests/web_platform/css_grid_1/abspos/test_absolute_positioning_changing_containing_block.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
35
2019-05-06T15:26:09.000Z
2022-03-28T06:30:33.000Z
tests/web_platform/css_grid_1/abspos/test_absolute_positioning_changing_containing_block.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
139
2015-05-30T18:37:43.000Z
2019-03-27T17:14:05.000Z
from tests.utils import W3CTestCase class TestAbsolutePositioningChangingContainingBlock(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'absolute-positioning-changing-containing-block-'))
34.666667
102
0.836538
35f2ed62cbdd81a705edd49b7bd808ee735b6dec
15,299
py
Python
network_controllers/apicem/troubleshoot_step4.py
tobaidullah/2
3fa67855ef461ccaee283dcbbdd9bf00e7a52378
[ "MIT" ]
629
2017-12-15T20:26:13.000Z
2022-03-30T04:02:02.000Z
network_controllers/apicem/troubleshoot_step4.py
tobaidullah/2
3fa67855ef461ccaee283dcbbdd9bf00e7a52378
[ "MIT" ]
40
2018-01-18T09:07:50.000Z
2021-09-23T23:21:47.000Z
network_controllers/apicem/troubleshoot_step4.py
tobaidullah/2
3fa67855ef461ccaee283dcbbdd9bf00e7a52378
[ "MIT" ]
394
2017-12-18T22:35:36.000Z
2022-03-29T19:41:25.000Z
#! /usr/bin/env python """ Learning Series: Network Programmability Basics Module: Network Controllers Lesson: Program your own DNA with APIC-EM APIs Author: Hank Preston <hapresto@cisco.com> troubleshoot_full.py Illustrate the following concepts: - Automating common information gathering used in troubleshooting - Rep...
37.043584
119
0.639323
615b7c65d234c312b5905fe790652d1cea3e9a3e
15,300
py
Python
raspberry-pult/main_pult.py
Yarik9008/SoftAcademic
118c9dc4620ca444c1557edd141a838820577202
[ "MIT" ]
null
null
null
raspberry-pult/main_pult.py
Yarik9008/SoftAcademic
118c9dc4620ca444c1557edd141a838820577202
[ "MIT" ]
null
null
null
raspberry-pult/main_pult.py
Yarik9008/SoftAcademic
118c9dc4620ca444c1557edd141a838820577202
[ "MIT" ]
null
null
null
import os import pygame import logging import threading import configparser from pprint import pprint from time import sleep from ast import literal_eval from datetime import datetime from signal import signal, SIGTERM, SIGHUP, pause from rpi_lcd import LCD import serial DEBUG = False PATH_CONFIG = '/home/pi/SoftAcade...
40.369393
210
0.546078
79049ac874bf28ecbdb30f9685138e91dcc1a528
561
py
Python
gevent/gevent-group_pool.py
all3g/pieces
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
34
2016-10-31T02:05:24.000Z
2018-11-08T14:33:13.000Z
gevent/gevent-group_pool.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
2
2017-05-11T03:00:31.000Z
2017-11-01T23:37:37.000Z
gevent/gevent-group_pool.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
21
2016-08-19T09:05:45.000Z
2018-11-08T14:33:16.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- import gevent from gevent import getcurrent from gevent.pool import Group group = Group() def hello_from(n): print('Size of group %s' % len(group)) print('Hello from Greenlet %s' % id(getcurrent())) group.map(hello_from, xrange(3)) def intensive(n): gev...
14.025
54
0.655971
863552d36271672da280f2ca07b79b4573142cbb
1,692
py
Python
keepercommander/plugins/adpasswd/adpasswd.py
zachgarwood/Commander
108d26766eb33e654e0b1b9caa27fc2b170c0b37
[ "MIT" ]
1
2021-02-21T22:24:52.000Z
2021-02-21T22:24:52.000Z
keepercommander/plugins/adpasswd/adpasswd.py
zachgarwood/Commander
108d26766eb33e654e0b1b9caa27fc2b170c0b37
[ "MIT" ]
null
null
null
keepercommander/plugins/adpasswd/adpasswd.py
zachgarwood/Commander
108d26766eb33e654e0b1b9caa27fc2b170c0b37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # _ __ # | |/ /___ ___ _ __ ___ _ _ ® # | ' </ -_) -_) '_ \/ -_) '_| # |_|\_\___\___| .__/\___|_| # |_| # # Keeper Commander # Copyright 2018 Keeper Security Inc. # Contact: ops@keepersecurity.com # from ldap3 import Server, Connection, ALL """Commander Plugin fo...
26.4375
78
0.56383
42d0356577aaf8e90bfda6a1a770990e5ac04e6b
504
py
Python
code/D2_tipCalc.py
dhruvsharma1999/100DaysOfPython
8c7d8543d823540b62ea17d1974172f2c728ea6d
[ "MIT" ]
null
null
null
code/D2_tipCalc.py
dhruvsharma1999/100DaysOfPython
8c7d8543d823540b62ea17d1974172f2c728ea6d
[ "MIT" ]
null
null
null
code/D2_tipCalc.py
dhruvsharma1999/100DaysOfPython
8c7d8543d823540b62ea17d1974172f2c728ea6d
[ "MIT" ]
1
2021-01-07T11:56:06.000Z
2021-01-07T11:56:06.000Z
#Tip calculator program print("Welcome to the tip calculator.") #input the amount of the bill bill = float(input("What is the total bill amount? $")) tip = int(input("How much tip would you like to give? 10, 12, 15? ")) people = int(input("How many people to split the bill? ")) bill_with_tip = bill * (1 + tip/100) a...
36
69
0.722222
750dd390d7d57e3be69c99f007ff8d9bd6ad0e35
4,142
py
Python
backend/api/python_http_client/test/test_api_run_detail.py
kamalmemon/pipelines
7e68991a2a7bfa767f893facfe58190690ca89ed
[ "Apache-2.0" ]
3
2020-10-16T14:30:24.000Z
2021-11-12T13:28:40.000Z
backend/api/python_http_client/test/test_api_run_detail.py
kamalmemon/pipelines
7e68991a2a7bfa767f893facfe58190690ca89ed
[ "Apache-2.0" ]
21
2021-03-02T01:44:01.000Z
2022-03-21T14:34:03.000Z
backend/api/python_http_client/test/test_api_run_detail.py
kamalmemon/pipelines
7e68991a2a7bfa767f893facfe58190690ca89ed
[ "Apache-2.0" ]
2
2019-10-15T03:06:15.000Z
2019-10-15T03:10:39.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.447619
124
0.549252
f7eeb654daa44fda2f7fc97146bc1f4feb5f13cb
2,233
py
Python
connexionFrame.py
alexisdlf/PSC
7dbd9b40eb09c815894d1a005d18349ae09a701a
[ "MIT" ]
null
null
null
connexionFrame.py
alexisdlf/PSC
7dbd9b40eb09c815894d1a005d18349ae09a701a
[ "MIT" ]
null
null
null
connexionFrame.py
alexisdlf/PSC
7dbd9b40eb09c815894d1a005d18349ae09a701a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Mar 9 11:26:00 2019 @author: Alexis A ui element to handle the creation of the stream to retrieve information """ import tkinter as tk import tkinter.messagebox as msgBox import streamRecorder as sr class ConnexionFrame(tk.Frame): def __init__(self, master, streamN...
37.847458
115
0.565607
41badbc6b0e3008fd81a7edfecba021110b7232c
4,652
py
Python
vertex_clustering/representative_functions.py
salceson/modelowanie
5b970c2fcd4d55ce19f0ecf3b6344a4e06ac7f03
[ "MIT" ]
null
null
null
vertex_clustering/representative_functions.py
salceson/modelowanie
5b970c2fcd4d55ce19f0ecf3b6344a4e06ac7f03
[ "MIT" ]
null
null
null
vertex_clustering/representative_functions.py
salceson/modelowanie
5b970c2fcd4d55ce19f0ecf3b6344a4e06ac7f03
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import print_function, generators from functools import reduce from math import fsum import numpy as np from CGAL.CGAL_Polyhedron_3 import Polyhedron_3_Halfedge_around_facet_circulator from CGAL.CGAL_Polyhedron_3 import Polyhedron_3_Halfedge_around_vertex_circulator from CGAL.CGAL_Poly...
34.205882
102
0.635641
a6fbe495977c47dc28288cc993ffca8b1143ad2e
8,513
py
Python
test/functional/proxy_test.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
10
2018-05-01T19:24:54.000Z
2019-11-18T09:24:19.000Z
test/functional/proxy_test.py
Chihuataneo/bitcoin-sv
d9b12a23dbf0d2afc5f488fa077d762b302ba873
[ "MIT" ]
2
2017-08-02T15:48:07.000Z
2017-08-04T16:54:18.000Z
test/functional/proxy_test.py
Chihuataneo/bitcoin-sv
d9b12a23dbf0d2afc5f488fa077d762b302ba873
[ "MIT" ]
18
2017-07-28T20:12:05.000Z
2019-05-21T16:31:14.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Test plan: - Start bitcoind's with different proxy configurations - Use addnode to initiate connectio...
39.050459
95
0.607541
d31c03557c6f748b7e9be2809624b072e5b6070b
1,765
py
Python
socialsent/historical/make_freq_lexicons.py
olgasilyutina/socialsent
8e7895db769aa4386d28301431de1819bee443bd
[ "Apache-2.0" ]
null
null
null
socialsent/historical/make_freq_lexicons.py
olgasilyutina/socialsent
8e7895db769aa4386d28301431de1819bee443bd
[ "Apache-2.0" ]
null
null
null
socialsent/historical/make_freq_lexicons.py
olgasilyutina/socialsent
8e7895db769aa4386d28301431de1819bee443bd
[ "Apache-2.0" ]
null
null
null
import time import random import constants import seeds import util import polarity_induction_methods from historical import vocab from multiprocessing import Queue, Process from queue import Empty from representations.representation_factory import create_representation """ Makes historical sentiment lexicons for non...
31.517857
90
0.653824
4c62b7fba84e216c1433af97939f33585235cbe7
1,892
py
Python
lib/geovista/cache.py
jamesp/geovista
4850c519c7a37c4765befa06fbab933350637c93
[ "BSD-3-Clause" ]
11
2021-05-12T08:45:51.000Z
2022-03-15T11:45:22.000Z
lib/geovista/cache.py
jamesp/geovista
4850c519c7a37c4765befa06fbab933350637c93
[ "BSD-3-Clause" ]
13
2021-11-22T17:10:20.000Z
2022-03-29T08:10:51.000Z
lib/geovista/cache.py
jamesp/geovista
4850c519c7a37c4765befa06fbab933350637c93
[ "BSD-3-Clause" ]
5
2021-05-14T13:36:00.000Z
2022-03-08T11:49:20.000Z
from importlib.resources import open_text from typing import Optional import pooch import pyvista as pv from . import config __all__ = [ "BASE_URL", "CACHE", "RETRY_ATTEMPTS", "fetch_coastlines", "reload_registry", ] #: Base URL for GeoVista resources. BASE_URL: str = "https://github.com/bjlittl...
23.65
85
0.658034
d44355f308558bc896570f0bb4ad08e56c13c5d1
1,461
py
Python
tbx/core/migrations/0028_auto_20160531_1640.py
arush15june/wagtail-torchbox
c4d06e096c72bd8007975dc016133024f9d27fab
[ "MIT" ]
null
null
null
tbx/core/migrations/0028_auto_20160531_1640.py
arush15june/wagtail-torchbox
c4d06e096c72bd8007975dc016133024f9d27fab
[ "MIT" ]
null
null
null
tbx/core/migrations/0028_auto_20160531_1640.py
arush15june/wagtail-torchbox
c4d06e096c72bd8007975dc016133024f9d27fab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-05-31 15:40 from django.db import migrations, models import django.db.models.deletion import modelcluster.fields class Migration(migrations.Migration): dependencies = [ ('wagtailcore', '0023_alter_page_revision_on_delete_behaviour'), (...
39.486486
170
0.639288
d379776db76cb51db26ecb27fcdee405882fa365
3,023
py
Python
tests/integrationTests/tests/choice_of_language/__init__.py
muarachmann/Submitty
86cea3d3441419089b1a3058d01c663e6807294c
[ "BSD-3-Clause" ]
3
2020-07-27T16:23:09.000Z
2022-01-07T16:07:31.000Z
tests/integrationTests/tests/choice_of_language/__init__.py
muarachmann/Submitty
86cea3d3441419089b1a3058d01c663e6807294c
[ "BSD-3-Clause" ]
null
null
null
tests/integrationTests/tests/choice_of_language/__init__.py
muarachmann/Submitty
86cea3d3441419089b1a3058d01c663e6807294c
[ "BSD-3-Clause" ]
null
null
null
# Necessary imports. Provides library functions to ease writing tests. from lib import prebuild, testcase, SUBMITTY_INSTALL_DIR import subprocess import os import glob import shutil ############################################################################ # COPY THE ASSIGNMENT FROM THE SAMPLE ASSIGNMENTS DIRECTORI...
31.489583
109
0.629838
558e358dde0e97ffc40cc428a561850456230d22
138
py
Python
Scripts/django-admin.py
nicolaschen1/e-commerce_website_django_python
7c644369e984952803fef8785ac7c54d1bc9b048
[ "MIT" ]
null
null
null
Scripts/django-admin.py
nicolaschen1/e-commerce_website_django_python
7c644369e984952803fef8785ac7c54d1bc9b048
[ "MIT" ]
null
null
null
Scripts/django-admin.py
nicolaschen1/e-commerce_website_django_python
7c644369e984952803fef8785ac7c54d1bc9b048
[ "MIT" ]
null
null
null
#!c:\virenv\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
23
42
0.768116
400c3db4ff81b45481a23745db620d96b65e140e
2,512
py
Python
meta_mb/meta_envs/point/point_env_2d_v2.py
iclavera/meta-mb
a1204e573c1415161129403cfb287bf120488fd0
[ "MIT" ]
4
2021-01-07T08:22:51.000Z
2021-12-27T10:53:14.000Z
meta_mb/meta_envs/point/point_env_2d_v2.py
iclavera/meta-mb
a1204e573c1415161129403cfb287bf120488fd0
[ "MIT" ]
null
null
null
meta_mb/meta_envs/point/point_env_2d_v2.py
iclavera/meta-mb
a1204e573c1415161129403cfb287bf120488fd0
[ "MIT" ]
null
null
null
from meta_mb.meta_envs.base import MetaEnv import numpy as np from gym.spaces import Box class MetaPointEnv(MetaEnv): def __init__(self): self.goal = np.random.uniform(-2, 2, size=(2,)) def step(self, action): """ Run one timestep of the environment's dynamics. When end of episode ...
33.493333
96
0.595541
69d6eafaac852e48b34e12650d9602985a7994e2
1,821
py
Python
tex/paper/perm_dl.py
smsolivier/rh
a12da9464328b0fd1af0878a1f55aaf961f47e05
[ "MIT" ]
1
2020-09-30T15:24:42.000Z
2020-09-30T15:24:42.000Z
tex/paper/perm_dl.py
smsolivier/rh
a12da9464328b0fd1af0878a1f55aaf961f47e05
[ "MIT" ]
null
null
null
tex/paper/perm_dl.py
smsolivier/rh
a12da9464328b0fd1af0878a1f55aaf961f47e05
[ "MIT" ]
2
2017-10-22T00:02:02.000Z
2022-01-02T08:58:46.000Z
#!/usr/bin/env python3 import numpy as np import matplotlib.pyplot as plt import sys sys.path.append('../../code') import ld as LD from exactDiff import exactDiff from hidespines import * ''' compare the permuations of linear representation in diffusion limit ''' if (len(sys.argv) > 1): outfile = sys.argv[...
20.693182
76
0.646348
6e702a533a26a518183fbde0e72970521425c2e6
1,574
py
Python
pyvoltha/adapters/extensions/events/onu/onu_dying_gasp_alarm.py
willkurk/pyvoltha
5be22260ea8d5a1c68bb20222e000f74c0727ef0
[ "Apache-2.0" ]
null
null
null
pyvoltha/adapters/extensions/events/onu/onu_dying_gasp_alarm.py
willkurk/pyvoltha
5be22260ea8d5a1c68bb20222e000f74c0727ef0
[ "Apache-2.0" ]
null
null
null
pyvoltha/adapters/extensions/events/onu/onu_dying_gasp_alarm.py
willkurk/pyvoltha
5be22260ea8d5a1c68bb20222e000f74c0727ef0
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-present Adtran, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
43.722222
91
0.65756
058fce1526166c324c82cf34e1be38d386d2757d
9,413
py
Python
doughnuts/webshell_plugins/db_mdump.py
WAY29/Doughnuts
a5fe941e69c0903c8ff418e0a6f0a30b09f3d9b1
[ "MIT" ]
61
2020-03-17T11:19:55.000Z
2022-03-17T21:30:11.000Z
doughnuts/webshell_plugins/db_mdump.py
WAY29/Doughnuts
a5fe941e69c0903c8ff418e0a6f0a30b09f3d9b1
[ "MIT" ]
1
2021-07-05T02:55:10.000Z
2021-07-05T03:01:45.000Z
doughnuts/webshell_plugins/db_mdump.py
WAY29/Doughnuts
a5fe941e69c0903c8ff418e0a6f0a30b09f3d9b1
[ "MIT" ]
19
2020-05-05T13:29:52.000Z
2022-03-17T21:30:04.000Z
from os import path, makedirs from concurrent.futures import ThreadPoolExecutor, wait, as_completed, ALL_COMPLETED from threading import Lock from base64 import b64decode from libs.config import alias, color, gget from libs.myapp import send, get_db_connect_code, gzinflate PRINT_LOCK = Lock() REQUEST_LOCK ...
37.652
211
0.592691