hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
2917f447ee2f70e3835bc5750b44b618fe249b3e
623
py
Python
log.py
GregMorford/testlogging
446a61f363ad6c1470b6257f6c651021cd904468
[ "MIT" ]
null
null
null
log.py
GregMorford/testlogging
446a61f363ad6c1470b6257f6c651021cd904468
[ "MIT" ]
null
null
null
log.py
GregMorford/testlogging
446a61f363ad6c1470b6257f6c651021cd904468
[ "MIT" ]
null
null
null
import logging ## Logging Configuration ## logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) ch = logging.StreamHandler() # console handler ch.setLevel(logging.INFO) fh = logging.FileHandler('logfile.txt') fh.setLevel(logging.INFO) fmtr = logging.Formatter('%(asctime)s | [%(levelname)s] | (%(name)s...
32.789474
176
0.764045
29187b96b69d014696758f82a98a43412d184d30
552
py
Python
hackerrank/BetweenTwoSets.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
3
2019-12-04T01:22:34.000Z
2020-12-10T15:31:00.000Z
hackerrank/BetweenTwoSets.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
null
null
null
hackerrank/BetweenTwoSets.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
1
2019-12-04T01:24:01.000Z
2019-12-04T01:24:01.000Z
#!/bin/python3 import os if __name__ == "__main__": f = open(os.environ["OUTPUT_PATH"], "w") nm = input().split() n = int(nm[0]) m = int(nm[1]) a = list(map(int, input().rstrip().split())) b = list(map(int, input().rstrip().split())) total = getTotalX(a, b) f....
17.25
74
0.461957
29192cb1930eb4fc8b54b5806896af754bbbc8d5
17,628
py
Python
utils.py
LlamaSi/Adaptive-PSGAIL
737cbc68c04d706da6a0bde1cb2a2c3159189f5e
[ "MIT" ]
10
2019-01-27T21:03:31.000Z
2020-09-03T16:26:23.000Z
utils.py
LlamaSi/Adaptive-PSGAIL
737cbc68c04d706da6a0bde1cb2a2c3159189f5e
[ "MIT" ]
1
2019-07-30T14:29:52.000Z
2019-08-12T12:58:37.000Z
utils.py
LlamaSi/Adaptive-PSGAIL
737cbc68c04d706da6a0bde1cb2a2c3159189f5e
[ "MIT" ]
5
2019-03-28T18:54:33.000Z
2022-03-14T06:32:53.000Z
import h5py import numpy as np import os, pdb import tensorflow as tf from rllab.envs.base import EnvSpec from rllab.envs.normalized_env import normalize as normalize_env import rllab.misc.logger as logger from sandbox.rocky.tf.algos.trpo import TRPO from sandbox.rocky.tf.policies.gaussian_mlp_policy import Gaussian...
33.705545
97
0.652144
291b3aad4ce914a07f4302fc64bb71bcd2cc87d1
8,429
py
Python
setup_py_upgrade.py
asottile/setup-py-upgrade
873c54ec4f112ed0150a8cffcc9990291568d634
[ "MIT" ]
87
2019-02-03T04:53:54.000Z
2022-03-25T07:36:46.000Z
setup_py_upgrade.py
asottile/setup-py-upgrade
873c54ec4f112ed0150a8cffcc9990291568d634
[ "MIT" ]
15
2019-03-12T04:14:35.000Z
2022-02-22T17:35:09.000Z
setup_py_upgrade.py
asottile/setup-py-upgrade
873c54ec4f112ed0150a8cffcc9990291568d634
[ "MIT" ]
8
2019-03-12T13:54:25.000Z
2022-02-22T17:40:17.000Z
import argparse import ast import configparser import io import os.path from typing import Any from typing import Dict from typing import Optional from typing import Sequence METADATA_KEYS = frozenset(( 'name', 'version', 'url', 'download_url', 'project_urls', 'author', 'author_email', 'maintainer', 'maintaine...
36.489177
79
0.553684
291c77c6ee2c7b622d64d133d7665a508bb40300
106
py
Python
main/models/__init__.py
prajnamort/LambdaOJ2
5afc7ceb6022caa244f66032a19ebac14c4448da
[ "MIT" ]
2
2017-09-26T07:25:11.000Z
2021-11-24T04:19:40.000Z
main/models/__init__.py
prajnamort/LambdaOJ2
5afc7ceb6022caa244f66032a19ebac14c4448da
[ "MIT" ]
50
2017-03-31T19:54:21.000Z
2022-03-11T23:14:22.000Z
main/models/__init__.py
prajnamort/LambdaOJ2
5afc7ceb6022caa244f66032a19ebac14c4448da
[ "MIT" ]
7
2017-03-26T07:07:17.000Z
2019-12-05T01:05:41.000Z
from .user import User, MultiUserUpload from .problem import Problem, TestData from .submit import Submit
26.5
39
0.820755
291d1bd54ce729e58181e2031ec946c7078f3c67
726
py
Python
2019/tests/test_Advent2019_10.py
davidxbuck/advent2018
eed5424a8008b9c0829f5872ad6cd469ce9f70b9
[ "MIT" ]
1
2021-12-11T02:19:28.000Z
2021-12-11T02:19:28.000Z
2019/tests/test_Advent2019_10.py
davidxbuck/advent2018
eed5424a8008b9c0829f5872ad6cd469ce9f70b9
[ "MIT" ]
null
null
null
2019/tests/test_Advent2019_10.py
davidxbuck/advent2018
eed5424a8008b9c0829f5872ad6cd469ce9f70b9
[ "MIT" ]
1
2020-12-08T04:31:46.000Z
2020-12-08T04:31:46.000Z
# pytest tests import numpy as np from Advent2019_10 import Day10
30.25
71
0.488981
291d8e921326cbecc63bc712d0993323051bed1f
691
py
Python
tests/test_demo.py
aaronestrada/flask-restplus-swagger-relative
e951bad6a2c72522ac74f5353a7b0cbe5436f20f
[ "BSD-3-Clause" ]
3
2019-09-27T18:33:54.000Z
2020-03-31T15:32:32.000Z
tests/test_demo.py
aaronestrada/flask-restplus-swagger-relative
e951bad6a2c72522ac74f5353a7b0cbe5436f20f
[ "BSD-3-Clause" ]
1
2019-10-29T20:31:33.000Z
2019-11-04T14:25:08.000Z
tests/test_demo.py
aaronestrada/flask-restplus-swagger-relative
e951bad6a2c72522ac74f5353a7b0cbe5436f20f
[ "BSD-3-Clause" ]
1
2019-09-27T18:33:55.000Z
2019-09-27T18:33:55.000Z
import pytest from tests.test_application import app def test_hello_resource(client): """ Test if it is possible to access to /hello resource :param client: Test client object :return: """ response = client.get('/hello').get_json() assert response['hello'] == 'world' def test_asset_foun...
23.827586
114
0.700434
291e921dde8646cb27f33c258f33f46413f66a28
1,614
py
Python
01_Introduction to Python/3-functions-and-packages/03_multiple-arguments.py
mohd-faizy/DataScience-With-Python
13ebb10cf9083343056d5b782957241de1d595f9
[ "MIT" ]
5
2021-02-03T14:36:58.000Z
2022-01-01T10:29:26.000Z
01_Introduction to Python/3-functions-and-packages/03_multiple-arguments.py
mohd-faizy/DataScience-With-Python
13ebb10cf9083343056d5b782957241de1d595f9
[ "MIT" ]
null
null
null
01_Introduction to Python/3-functions-and-packages/03_multiple-arguments.py
mohd-faizy/DataScience-With-Python
13ebb10cf9083343056d5b782957241de1d595f9
[ "MIT" ]
3
2021-02-08T00:31:16.000Z
2022-03-17T13:52:32.000Z
''' 03 - Multiple arguments In the previous exercise, the square brackets around imag in the documentation showed us that the imag argument is optional. But Python also uses a different way to tell users about arguments being optional. Have a look at the documentation of sorted() by typing help(sorted) in the IPython...
35.086957
99
0.761462
291f1330f75cfc0ca15457846d8102779d88cf8f
790
py
Python
Taller_Algoritmos_02/Ejercicio_10.py
Angelio01/algoritmos_programacion-
63cb4cd4cfa01f504bf9ed927dcebf2466d6f60d
[ "MIT" ]
null
null
null
Taller_Algoritmos_02/Ejercicio_10.py
Angelio01/algoritmos_programacion-
63cb4cd4cfa01f504bf9ed927dcebf2466d6f60d
[ "MIT" ]
null
null
null
Taller_Algoritmos_02/Ejercicio_10.py
Angelio01/algoritmos_programacion-
63cb4cd4cfa01f504bf9ed927dcebf2466d6f60d
[ "MIT" ]
1
2021-10-29T19:40:32.000Z
2021-10-29T19:40:32.000Z
""" Entradas: 3 Valores flotantes que son el valor de diferentes monedas Chelines autriacos --> float --> x Dramas griegos --> float --> z Pesetas --> float --> w Salidas 4 valores flotantes que es la conversin de las anteriores monedas Pesetas --> float --> x Francos franceses --> float --> z Dolares --> float ...
28.214286
180
0.679747
292038ace9f7b5e532a8a7cf41828bfb945d013c
2,844
py
Python
stardist/stardist_impl/predict_stardist_3d.py
constantinpape/deep-cell
d69cc9710af07428c79e5642febe3a39e33d11a4
[ "MIT" ]
null
null
null
stardist/stardist_impl/predict_stardist_3d.py
constantinpape/deep-cell
d69cc9710af07428c79e5642febe3a39e33d11a4
[ "MIT" ]
1
2020-07-08T13:16:32.000Z
2020-07-08T13:18:24.000Z
stardist/stardist_impl/predict_stardist_3d.py
constantinpape/deep-cell
d69cc9710af07428c79e5642febe3a39e33d11a4
[ "MIT" ]
null
null
null
import argparse import os from glob import glob import imageio from tqdm import tqdm from csbdeep.utils import normalize from stardist.models import StarDist3D # could be done more efficiently, see # https://github.com/hci-unihd/batchlib/blob/master/batchlib/segmentation/stardist_prediction.py if __name__ == '...
36.935065
112
0.710267
29204de0e1568db751699c8bf504b18e9d16ff4b
4,049
py
Python
estacionamientos/forms.py
ShadowManu/SAGE
999626669c9a15755ed409e57864851eb27dc2c2
[ "MIT" ]
null
null
null
estacionamientos/forms.py
ShadowManu/SAGE
999626669c9a15755ed409e57864851eb27dc2c2
[ "MIT" ]
null
null
null
estacionamientos/forms.py
ShadowManu/SAGE
999626669c9a15755ed409e57864851eb27dc2c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from django import forms from estacionamientos.models import Estacionamiento, Reserva, Pago
49.987654
107
0.646826
29206dba9d120e61ae35f770db7e748c8ab7a64c
6,095
py
Python
src/krylov/gmres.py
nschloe/krylov
58813233ff732111aa56f7b1d71908fda78080be
[ "MIT" ]
36
2020-06-17T15:51:16.000Z
2021-12-30T04:33:11.000Z
src/krylov/gmres.py
nschloe/krylov
58813233ff732111aa56f7b1d71908fda78080be
[ "MIT" ]
26
2020-08-27T17:38:15.000Z
2021-11-11T20:00:07.000Z
src/krylov/gmres.py
nschloe/krylov
58813233ff732111aa56f7b1d71908fda78080be
[ "MIT" ]
5
2021-05-20T19:47:44.000Z
2022-01-03T00:20:33.000Z
""" Y. Saad, M. Schultz, GMRES: a generalized minimal residual algorithm for solving nonsymmetric linear systems, SIAM J. Sci. and Stat. Comput., 7(3), 856869, 1986, <https://doi.org/10.1137/0907058>. Other implementations: <https://petsc.org/release/docs/manualpages/KSP/KSPGMRES.html> """ from __future__ import annot...
27.331839
88
0.55767
2920920b3d2a50539ee42e0e75f03efbd2cffd7f
7,321
py
Python
backend-tests/tests/test_account_suspension.py
drewmoseley/integration
37f6374eb5faa710d14861cf5ed82e8f9cf0b149
[ "Apache-2.0" ]
null
null
null
backend-tests/tests/test_account_suspension.py
drewmoseley/integration
37f6374eb5faa710d14861cf5ed82e8f9cf0b149
[ "Apache-2.0" ]
98
2020-09-21T06:00:11.000Z
2022-03-28T01:17:19.000Z
backend-tests/tests/test_account_suspension.py
drewmoseley/integration
37f6374eb5faa710d14861cf5ed82e8f9cf0b149
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Northern.tech AS # # 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 a...
31.021186
84
0.615353
292246bd8b4a4adc3e588a4c80c7a0ed3da6e0ed
8,985
py
Python
src/RepairManager/rules/ecc_reboot_node_rule.py
RichardZhaoW/DLWorkspace
27d3a3a82e59305bdc67dbfd69098d493f8b3cd5
[ "MIT" ]
2
2019-10-16T23:54:34.000Z
2019-11-07T00:08:32.000Z
src/RepairManager/rules/ecc_reboot_node_rule.py
RichardZhaoW/DLWorkspace
27d3a3a82e59305bdc67dbfd69098d493f8b3cd5
[ "MIT" ]
null
null
null
src/RepairManager/rules/ecc_reboot_node_rule.py
RichardZhaoW/DLWorkspace
27d3a3a82e59305bdc67dbfd69098d493f8b3cd5
[ "MIT" ]
null
null
null
import os, sys sys.path.append(os.path.dirname(os.path.abspath(__file__))) import json import logging import yaml import requests import time from actions.migrate_job_action import MigrateJobAction from actions.send_alert_action import SendAlertAction from actions.reboot_node_action import RebootNodeAction from action...
45.609137
114
0.650863
292271c92e27cc20ceca6c25b6dec338877c3ea5
2,735
py
Python
work/dib-ipa-element/virtmedia-netconf/ironic-bmc-hardware-manager/src/ironic_bmc_hardware_manager/bmc.py
alexandruavadanii/ipa-deployer
a15c349823c65b15ac6a72a73805c2cc342cb80c
[ "Apache-2.0" ]
null
null
null
work/dib-ipa-element/virtmedia-netconf/ironic-bmc-hardware-manager/src/ironic_bmc_hardware_manager/bmc.py
alexandruavadanii/ipa-deployer
a15c349823c65b15ac6a72a73805c2cc342cb80c
[ "Apache-2.0" ]
null
null
null
work/dib-ipa-element/virtmedia-netconf/ironic-bmc-hardware-manager/src/ironic_bmc_hardware_manager/bmc.py
alexandruavadanii/ipa-deployer
a15c349823c65b15ac6a72a73805c2cc342cb80c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Nokia # # 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, softwa...
32.951807
95
0.638026
2922d150cdfae741ee2f9afa07a050efc52cf07f
2,344
py
Python
museum_site/context_processors.py
DrDos0016/z2
b63e77129fefcb4f990ee1cb9952f4f708ee3a2b
[ "MIT" ]
3
2017-05-01T19:53:57.000Z
2018-08-27T20:14:43.000Z
museum_site/context_processors.py
DrDos0016/z2
b63e77129fefcb4f990ee1cb9952f4f708ee3a2b
[ "MIT" ]
null
null
null
museum_site/context_processors.py
DrDos0016/z2
b63e77129fefcb4f990ee1cb9952f4f708ee3a2b
[ "MIT" ]
1
2018-08-27T20:14:46.000Z
2018-08-27T20:14:46.000Z
from django.core.cache import cache from datetime import datetime from museum_site.models.detail import Detail from museum_site.models.file import File from museum_site.constants import TERMS_DATE from museum_site.common import ( DEBUG, EMAIL_ADDRESS, BOOT_TS, CSS_INCLUDES, UPLOAD_CAP, env_from_host, qs_sans ...
30.441558
78
0.615614
29240155883a13930b0a3ee6e6cac004ba5b943f
671
py
Python
misago/users/views/avatarserver.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
1
2017-07-25T03:04:36.000Z
2017-07-25T03:04:36.000Z
misago/users/views/avatarserver.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
misago/users/views/avatarserver.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.staticfiles.templatetags.staticfiles import static from django.shortcuts import redirect from misago.conf import settings UserModel = get_user_model()
23.964286
70
0.724292
2924b038d09501817eb856ed997e3ffe8a6813db
14,501
py
Python
csbdeep/internals/nets.py
papkov/CSBDeep
5624919fa71007bb2258592927e267967c62e25e
[ "BSD-3-Clause" ]
2
2019-07-20T08:55:29.000Z
2019-07-20T09:00:45.000Z
csbdeep/internals/nets.py
papkov/CSBDeep
5624919fa71007bb2258592927e267967c62e25e
[ "BSD-3-Clause" ]
null
null
null
csbdeep/internals/nets.py
papkov/CSBDeep
5624919fa71007bb2258592927e267967c62e25e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, unicode_literals, absolute_import, division from six.moves import range, zip, map, reduce, filter from keras.layers import Input, Conv2D, Conv3D, Activation, Lambda from keras.models import Model from keras.layers.merge import Add, Concatenate import tensorflow as tf from keras i...
42.65
194
0.626371
2926efa5e44ae3f3f146e72b77c97765b7854b95
1,602
py
Python
src/inf/runtime_data.py
feagi/feagi-core
d83c51480fcbe153fa14b2360b4d61f6ae4e2811
[ "Apache-2.0" ]
11
2020-02-18T16:03:10.000Z
2021-12-06T19:53:06.000Z
src/inf/runtime_data.py
feagi/feagi-core
d83c51480fcbe153fa14b2360b4d61f6ae4e2811
[ "Apache-2.0" ]
34
2019-12-17T04:59:42.000Z
2022-01-18T20:58:46.000Z
src/inf/runtime_data.py
feagi/feagi-core
d83c51480fcbe153fa14b2360b4d61f6ae4e2811
[ "Apache-2.0" ]
3
2019-12-16T06:09:56.000Z
2020-10-18T12:01:31.000Z
parameters = {} genome = {} genome_stats = {} genome_test_stats = [] brain = {} cortical_list = [] cortical_map = {} intercortical_mapping = [] block_dic = {} upstream_neurons = {} memory_list = {} activity_stats = {} temp_neuron_list = [] original_genome_id = [] fire_list = [] termination_flag = False variation_counte...
20.025
65
0.737828
2928594f2134be43b667f4c09f4d5b6dedb23ea3
494
py
Python
scripts/topo_countries.py
taufikhe/Censof-Mini-Project
44ced8c3176a58705de4d247c3ec79c664a4951f
[ "MIT" ]
null
null
null
scripts/topo_countries.py
taufikhe/Censof-Mini-Project
44ced8c3176a58705de4d247c3ec79c664a4951f
[ "MIT" ]
null
null
null
scripts/topo_countries.py
taufikhe/Censof-Mini-Project
44ced8c3176a58705de4d247c3ec79c664a4951f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import subprocess from geonamescache import GeonamesCache gc = GeonamesCache() toposrc = '../data/states-provinces.json' for iso2, country in gc.get_countries().items(): iso3 = country['iso3'] topojson = 'mapshaper -i {0} -filter \'"{1}" == adm0_a3\' -filter-fiel...
32.933333
115
0.694332
29288c1ce5e2846258708e5fc3231b1fb34cbf4a
10,768
py
Python
nordb/database/nordic2sql.py
MrCubanfrog/NorDB
8348733d10799e9ae40744fbd7b200fcc09a9a3a
[ "MIT" ]
1
2021-06-08T20:46:10.000Z
2021-06-08T20:46:10.000Z
nordb/database/nordic2sql.py
MrCubanfrog/NorDB
8348733d10799e9ae40744fbd7b200fcc09a9a3a
[ "MIT" ]
null
null
null
nordb/database/nordic2sql.py
MrCubanfrog/NorDB
8348733d10799e9ae40744fbd7b200fcc09a9a3a
[ "MIT" ]
null
null
null
""" This module contains all information for pushing a NordicEvent object into the database. Functions and Classes --------------------- """ import psycopg2 import os import re import datetime from nordb.core import usernameUtilities from nordb.database import creationInfo INSERT_COMMANDS = { 1:...
42.393701
157
0.474554
29289d486b584b87f177ccbe912f80c30f1f15ef
973
py
Python
movie_trailer_website/media.py
mradenovic/movie-trailer-website
08f53af08f9aeaa1deb5a10fa391e02aa7274ca3
[ "MIT" ]
null
null
null
movie_trailer_website/media.py
mradenovic/movie-trailer-website
08f53af08f9aeaa1deb5a10fa391e02aa7274ca3
[ "MIT" ]
null
null
null
movie_trailer_website/media.py
mradenovic/movie-trailer-website
08f53af08f9aeaa1deb5a10fa391e02aa7274ca3
[ "MIT" ]
null
null
null
"""This module contains class definitions for storing media files""" import webbrowser
33.551724
84
0.651593
292a0a9f6e7bb7e898c14f4da99751f0b33adf70
1,700
py
Python
201-vmss-bottle-autoscale/workserver.py
kollexy/azure-quickstart-templates
02dd10e4004db1f52e772a474d460620ff975270
[ "MIT" ]
10
2020-03-17T14:22:57.000Z
2022-02-12T02:42:30.000Z
201-vmss-bottle-autoscale/workserver.py
kollexy/azure-quickstart-templates
02dd10e4004db1f52e772a474d460620ff975270
[ "MIT" ]
17
2020-08-12T09:28:42.000Z
2021-10-11T05:16:45.000Z
201-vmss-bottle-autoscale/workserver.py
gjlumsden/azure-quickstart-templates
70935bff823b8650386f6d3223dc199a66c4efd2
[ "MIT" ]
16
2019-06-28T09:49:29.000Z
2022-02-05T16:35:36.000Z
# workserver.py - simple HTTP server with a do_work / stop_work API # GET /do_work activates a worker thread which uses CPU # GET /stop_work signals worker thread to stop import math import socket import threading import time from bottle import route, run hostname = socket.gethostname() hostport = 9000 keepworking = ...
25
106
0.657059
292abc115693fa0811cb421e9f5c9743d0e6e3a6
7,521
py
Python
year_3/databases_sem1/lab1/cli.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/databases_sem1/lab1/cli.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/databases_sem1/lab1/cli.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
from maxdb import DB def _open(self): """Create DB instance and preload default models.""" self._db = DB(self._path) products = self._db.table( 'Products', columns={'name': 'str', 'price': 'int'} ) orders = self._db.table( 'Orders', ...
37.049261
108
0.505252
292adf5e7c8f6222d531917fc0a7844f832f27cb
1,348
py
Python
Ar_Script/past/eg_用户信息用户界面.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
null
null
null
Ar_Script/past/eg_用户信息用户界面.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
1
2020-01-19T01:19:57.000Z
2020-01-19T01:19:57.000Z
Ar_Script/past/eg_用户信息用户界面.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
null
null
null
import easygui as g # judge=1 # def judge_null(tmp): # if tmp.isspace()or len(tmp)==0: # return judge==0 # # while 1: # user_info=g.multenterbox(title='', # msg='*\t*\t*\t*E-mail', # fields=['*','*','','*','QQ','*E-mail'] # ) # # if jud...
29.304348
85
0.568249
292ba35b429971f678a3c9a45a66bf36fb9ad5d7
962
py
Python
examples/pspm_pupil/model_defs.py
fmelinscak/cognibench
372513b8756a342c0df222dcea5ff6d1d69fbcec
[ "MIT" ]
3
2020-07-31T00:42:40.000Z
2021-03-19T03:08:19.000Z
examples/pspm_pupil/model_defs.py
fmelinscak/cognibench
372513b8756a342c0df222dcea5ff6d1d69fbcec
[ "MIT" ]
null
null
null
examples/pspm_pupil/model_defs.py
fmelinscak/cognibench
372513b8756a342c0df222dcea5ff6d1d69fbcec
[ "MIT" ]
1
2020-11-13T23:13:34.000Z
2020-11-13T23:13:34.000Z
from cognibench.models import CNBModel from cognibench.capabilities import ContinuousAction, ContinuousObservation from cognibench.continuous import ContinuousSpace from cognibench.models.wrappers import MatlabWrapperMixin
34.357143
87
0.705821
292c8b618a05d121aa88ca4e594589616cd5c14c
254
py
Python
core/layouts/pixel_list.py
TheGentlemanOctopus/oracle
2857b9c1886548d9aefcb480ce6e77169ee9e7ef
[ "MIT" ]
null
null
null
core/layouts/pixel_list.py
TheGentlemanOctopus/oracle
2857b9c1886548d9aefcb480ce6e77169ee9e7ef
[ "MIT" ]
6
2018-05-13T14:44:20.000Z
2018-07-10T10:12:08.000Z
core/layouts/pixel_list.py
TheGentlemanOctopus/oracle
2857b9c1886548d9aefcb480ce6e77169ee9e7ef
[ "MIT" ]
null
null
null
from layout import Layout
21.166667
54
0.562992
292db3dd254935b6485aa3e5a0431e5e9297d7e2
2,328
py
Python
test/programytest/clients/restful/test_config.py
minhdc/documented-programy
fe947d68c0749201fbe93ee5644d304235d0c626
[ "MIT" ]
null
null
null
test/programytest/clients/restful/test_config.py
minhdc/documented-programy
fe947d68c0749201fbe93ee5644d304235d0c626
[ "MIT" ]
null
null
null
test/programytest/clients/restful/test_config.py
minhdc/documented-programy
fe947d68c0749201fbe93ee5644d304235d0c626
[ "MIT" ]
null
null
null
import unittest from programy.config.file.yaml_file import YamlConfigurationFile from programy.clients.restful.config import RestConfiguration from programy.clients.events.console.config import ConsoleConfiguration
36.375
93
0.660653
29313d16ae55bd60b3205923aa0959f4632a0038
1,211
py
Python
Assignments/06.py
zexhan17/Data-Structures-and-Algorithms-using-Python
b5fd3d47c2eb7bf93eb88b276799d6663cd602e4
[ "MIT" ]
null
null
null
Assignments/06.py
zexhan17/Data-Structures-and-Algorithms-using-Python
b5fd3d47c2eb7bf93eb88b276799d6663cd602e4
[ "MIT" ]
null
null
null
Assignments/06.py
zexhan17/Data-Structures-and-Algorithms-using-Python
b5fd3d47c2eb7bf93eb88b276799d6663cd602e4
[ "MIT" ]
null
null
null
# Write a recursive function to count the number of nodes in a Tree. (first do your self then see code) Q # 2: '''The height of a tree is the maximum number of levels in the tree. So, a tree with just one node has a height of 1. If the root has children which are leaves, the height of the tree is 2. The height of...
31.868421
201
0.734104
29320044fb1e6ea2d550bb85edcedd897afb61eb
28,020
py
Python
flask_app.py
mdaeron/clumpycrunch
463d9241477acc557c4635b4d4f1f5338bf37617
[ "BSD-3-Clause" ]
null
null
null
flask_app.py
mdaeron/clumpycrunch
463d9241477acc557c4635b4d4f1f5338bf37617
[ "BSD-3-Clause" ]
1
2020-05-27T21:09:16.000Z
2020-05-27T21:09:16.000Z
flask_app.py
mdaeron/clumpycrunch
463d9241477acc557c4635b4d4f1f5338bf37617
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python3 # from datetime import datetime # from random import choices # from string import ascii_lowercase from flask import Flask, request, render_template, Response, send_file from flaskext.markdown import Markdown from D47crunch import D47data, pretty_table, make_csv, smart_type from D47crunch import...
44.975923
300
0.715667
29333564f5a91482a951f19d8cd3aa5ce9a5bfe9
6,505
py
Python
rubric_sampling/experiments/train_rnn.py
YangAzure/rubric-sampling-public
24e8c6bc154633566f93a20661c67484029c3591
[ "MIT" ]
20
2019-01-29T03:21:40.000Z
2022-03-04T08:52:24.000Z
rubric_sampling/experiments/train_rnn.py
YangAzure/rubric-sampling-public
24e8c6bc154633566f93a20661c67484029c3591
[ "MIT" ]
null
null
null
rubric_sampling/experiments/train_rnn.py
YangAzure/rubric-sampling-public
24e8c6bc154633566f93a20661c67484029c3591
[ "MIT" ]
5
2019-08-31T11:49:23.000Z
2021-03-18T13:22:58.000Z
r"""Train a neural network to predict feedback for a program string.""" from __future__ import division from __future__ import print_function from __future__ import absolute_import import os import sys import random import numpy as np from tqdm import tqdm import torch import torch.optim as optim import torch.utils....
39.907975
107
0.632283
2933954edd28122f5eaf709201de52733e9a677c
1,232
py
Python
python/code.py
Warabhi/ga-learner-dsmp-repo
610a7e6cc161a1fec26911f4e054f2a325b5f5fc
[ "MIT" ]
null
null
null
python/code.py
Warabhi/ga-learner-dsmp-repo
610a7e6cc161a1fec26911f4e054f2a325b5f5fc
[ "MIT" ]
null
null
null
python/code.py
Warabhi/ga-learner-dsmp-repo
610a7e6cc161a1fec26911f4e054f2a325b5f5fc
[ "MIT" ]
null
null
null
# -------------- # Code starts here class_1 = ['Geoffrey Hinton' , 'Andrew Ng' , 'Sebastian Raschka' , 'Yoshua Bengio'] class_2 = ['Hilary Mason' , 'Carla Gentry' , 'Corinna Cortes'] new_class = class_1 + class_2 print(new_class) new_class.append('Peter Warden') print(new_class) del new_class[5] print(new_class) # Code...
23.245283
90
0.668019
2934aab8985e093039352c584291d05e82d940ca
1,629
py
Python
checklog.py
mtibbett67/pymodules
9a7dcd16fb2107029edaabde766c1dbdb769713c
[ "MIT" ]
null
null
null
checklog.py
mtibbett67/pymodules
9a7dcd16fb2107029edaabde766c1dbdb769713c
[ "MIT" ]
null
null
null
checklog.py
mtibbett67/pymodules
9a7dcd16fb2107029edaabde766c1dbdb769713c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' NAME: checklog.py DESCRIPTION: This script checks the tail of the log file and lists the disk space CREATED: Sun Mar 15 22:53:54 2015 VERSION: 1.0 AUTHOR: Mark Tibbett AUTHOR_EMAIL: mtibbett67@gmail.com URL: N/A DOWNLOAD_URL: N/A INSTALL_REQUIRES: [] PACKAGES:...
16.793814
73
0.581952
29351a72a75c3ab6afce56723dbd2096b63f981a
726
py
Python
algorithms/implementation/minimum_distances.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
algorithms/implementation/minimum_distances.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
algorithms/implementation/minimum_distances.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
n = int(input().strip()) items = [ int(A_temp) for A_temp in input().strip().split(' ') ] items_map = {} result = None for i, item in enumerate(items): if item not in items_map: items_map[item] = [i] else: items_map[item].append(i) for _, item_indexes in items_map.items(): it...
22.6875
56
0.566116
29378cd6da10a2986ee1d848cbb7564bb46bcde6
15,518
py
Python
spore/spore.py
pavankkota/SPoRe
3062368a84130ec64bdbd7ca66de7f2b7287330e
[ "MIT" ]
1
2021-06-23T15:51:57.000Z
2021-06-23T15:51:57.000Z
spore/spore.py
pavankkota/SPoRe
3062368a84130ec64bdbd7ca66de7f2b7287330e
[ "MIT" ]
null
null
null
spore/spore.py
pavankkota/SPoRe
3062368a84130ec64bdbd7ca66de7f2b7287330e
[ "MIT" ]
null
null
null
""" Sparse Poisson Recovery (SPoRe) module for solving Multiple Measurement Vector problem with Poisson signals (MMVP) by batch stochastic gradient ascent and Monte Carlo integration Authors: Pavan Kota, Daniel LeJeune Reference: [1] P. K. Kota, D. LeJeune, R. A. Drezek, and R. G. Baraniuk, "Extreme Compressed Se...
41.491979
169
0.543756
2938d769b525d23fcc668a6eb476387c4aae2966
734
py
Python
306/translate_cds.py
jsh/pybites
73c79ed962c15247cead173b17f69f248ea51b96
[ "MIT" ]
null
null
null
306/translate_cds.py
jsh/pybites
73c79ed962c15247cead173b17f69f248ea51b96
[ "MIT" ]
null
null
null
306/translate_cds.py
jsh/pybites
73c79ed962c15247cead173b17f69f248ea51b96
[ "MIT" ]
null
null
null
"""Use translation table to translate coding sequence to protein.""" from Bio.Data import CodonTable # type: ignore from Bio.Seq import Seq # type: ignore def translate_cds(cds: str, translation_table: str) -> str: """Translate coding sequence to protein. :param cds: str: DNA coding sequence (CDS...
36.7
71
0.700272
29392d7c293c0b529284bdff29493ae4994d22ba
206
py
Python
example.py
n0emis/pycodimd
cec7135babe63f0c40fdb9eac7ede50e145cd512
[ "MIT" ]
1
2020-04-20T22:06:49.000Z
2020-04-20T22:06:49.000Z
example.py
n0emis/pycodimd
cec7135babe63f0c40fdb9eac7ede50e145cd512
[ "MIT" ]
null
null
null
example.py
n0emis/pycodimd
cec7135babe63f0c40fdb9eac7ede50e145cd512
[ "MIT" ]
null
null
null
from pycodimd import CodiMD cmd = CodiMD('https://md.noemis.me') #cmd.login('user@example.com','CorrectHorseBatteryStaple') cmd.load_cookies() print(cmd.history()[-1]['text']) # Print Name of latest Note
29.428571
61
0.73301
293ac2ae42d575f893f18bae2751d93e4e138ae8
75
py
Python
PP4E-Examples-1.4/Examples/PP4E/System/Environment/echoenv.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/System/Environment/echoenv.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/System/Environment/echoenv.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
import os print('echoenv...', end=' ') print('Hello,', os.environ['USER'])
18.75
35
0.613333
293afc12acd3adc92103d2c686f2476332649203
4,137
py
Python
plix/displays.py
freelan-developers/plix
69114b3e522330af802800e09a432c1a84220f88
[ "MIT" ]
1
2017-05-22T11:52:01.000Z
2017-05-22T11:52:01.000Z
plix/displays.py
freelan-developers/plix
69114b3e522330af802800e09a432c1a84220f88
[ "MIT" ]
4
2015-03-12T16:59:36.000Z
2015-03-12T17:34:15.000Z
plix/displays.py
freelan-developers/plix
69114b3e522330af802800e09a432c1a84220f88
[ "MIT" ]
1
2018-03-04T21:43:33.000Z
2018-03-04T21:43:33.000Z
""" Display command results. """ from __future__ import unicode_literals from contextlib import contextmanager from argparse import Namespace from io import BytesIO from colorama import AnsiToWin32 from chromalog.stream import stream_has_color_support from chromalog.colorizer import Colorizer from chromalog.mark.he...
27.397351
79
0.583273
293dd5d900ef2c6130d4549dd1b873aa939a8cba
6,167
py
Python
plugins/Autocomplete/plugin.py
mogad0n/Limnoria
f31e5c4b9a77e30918d6b93f69d69f3b8f910e3c
[ "BSD-3-Clause" ]
476
2015-01-04T17:42:59.000Z
2021-08-13T07:40:54.000Z
plugins/Autocomplete/plugin.py
mogad0n/Limnoria
f31e5c4b9a77e30918d6b93f69d69f3b8f910e3c
[ "BSD-3-Clause" ]
491
2015-01-01T04:12:23.000Z
2021-08-12T19:24:47.000Z
plugins/Autocomplete/plugin.py
mogad0n/Limnoria
f31e5c4b9a77e30918d6b93f69d69f3b8f910e3c
[ "BSD-3-Clause" ]
203
2015-01-02T18:29:43.000Z
2021-08-15T12:52:22.000Z
### # Copyright (c) 2020-2021, The Limnoria Contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this l...
34.071823
79
0.66564
293e981880ad85e96c9f610aaeaa19c42550d236
2,237
py
Python
utils/preprocess_twitter.py
arnavk/tumblr-emotions
0ed03201ab833b8b400cb0cff6c5b064fac5edfb
[ "Apache-2.0" ]
null
null
null
utils/preprocess_twitter.py
arnavk/tumblr-emotions
0ed03201ab833b8b400cb0cff6c5b064fac5edfb
[ "Apache-2.0" ]
null
null
null
utils/preprocess_twitter.py
arnavk/tumblr-emotions
0ed03201ab833b8b400cb0cff6c5b064fac5edfb
[ "Apache-2.0" ]
null
null
null
""" preprocess-twitter.py python preprocess-twitter.py "Some random text with #hashtags, @mentions and http://t.co/kdjfkdjf (links). :)" Script for preprocessing tweets by Romain Paulus with small modifications by Jeffrey Pennington with translation to Python by Motoki Wu Translation of Ruby script to create features f...
34.415385
125
0.591417
2940e9042fa0fc027376618fe6d76d1057e9e9bd
37,124
py
Python
pyPLANES/pw/pw_classes.py
matael/pyPLANES
7f591090446303884c9a3d049e42233efae0b7f4
[ "MIT" ]
null
null
null
pyPLANES/pw/pw_classes.py
matael/pyPLANES
7f591090446303884c9a3d049e42233efae0b7f4
[ "MIT" ]
null
null
null
pyPLANES/pw/pw_classes.py
matael/pyPLANES
7f591090446303884c9a3d049e42233efae0b7f4
[ "MIT" ]
1
2020-12-15T16:24:08.000Z
2020-12-15T16:24:08.000Z
#! /usr/bin/env python # -*- coding:utf8 -*- # # pw_classes.py # # This file is part of pyplanes, a software distributed under the MIT license. # For any question, please contact one of the authors cited below. # # Copyright (c) 2020 # Olivier Dazel <olivier.dazel@univ-lemans.fr> # Mathieu Gaborit <gaborit@kth.se> # ...
48.911726
132
0.502721
29419686dd2aebba28a504da3cc741b420dcf049
9,001
py
Python
mmtbx/conformation_dependent_library/mcl.py
pcxod/cctbx_project
d43dfb157cd7432292b30c0329b7491d5a356657
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/conformation_dependent_library/mcl.py
pcxod/cctbx_project
d43dfb157cd7432292b30c0329b7491d5a356657
[ "BSD-3-Clause-LBNL" ]
1
2020-05-26T17:46:17.000Z
2020-05-26T17:55:19.000Z
mmtbx/conformation_dependent_library/mcl.py
pcxod/cctbx_project
d43dfb157cd7432292b30c0329b7491d5a356657
[ "BSD-3-Clause-LBNL" ]
1
2022-02-08T10:11:07.000Z
2022-02-08T10:11:07.000Z
from __future__ import absolute_import, division, print_function import sys import time from cctbx.array_family import flex from scitbx.math import superpose from mmtbx.conformation_dependent_library import mcl_sf4_coordination from six.moves import range from mmtbx.conformation_dependent_library import metal_coordina...
37.504167
103
0.63093
294225b79ce42a07375fda887c5ff1ca0b02cbd1
15,778
py
Python
tests/test_install.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_install.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_install.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
from contextlib import contextmanager import random import shutil import stat import tempfile import unittest from os.path import join from conda import install from conda.install import (PaddingError, binary_replace, update_prefix, warn_failed_remove, duplicates_to_remove) from .decorator...
38.20339
97
0.609266
29422d091e83652a21c0e3588c5f7b69d97c82a9
728
py
Python
django_elastic_appsearch/slicer.py
CorrosiveKid/django_elastic_appsearch
85da7642aac566164b8bc06894e97a048fd3116e
[ "MIT" ]
11
2019-08-07T01:31:42.000Z
2021-02-02T08:12:24.000Z
django_elastic_appsearch/slicer.py
CorrosiveKid/django_elastic_appsearch
85da7642aac566164b8bc06894e97a048fd3116e
[ "MIT" ]
148
2019-08-01T04:22:28.000Z
2021-05-10T19:06:31.000Z
django_elastic_appsearch/slicer.py
infoxchange/django_elastic_appsearch
65229586f0392d8d8cb143ab625081c89fa4cb64
[ "MIT" ]
6
2019-08-26T10:00:42.000Z
2021-02-01T03:54:02.000Z
"""A Queryset slicer for Django."""
28
69
0.60989
29424d0f4478d5925df5fb2792f4b3b4b39494a0
402
py
Python
newsite/news/urls.py
JasperStfun/Django_C
1307f2e9c827f751e8640f50179f1b744c222d63
[ "Unlicense" ]
null
null
null
newsite/news/urls.py
JasperStfun/Django_C
1307f2e9c827f751e8640f50179f1b744c222d63
[ "Unlicense" ]
null
null
null
newsite/news/urls.py
JasperStfun/Django_C
1307f2e9c827f751e8640f50179f1b744c222d63
[ "Unlicense" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.news_home, name='news_home'), path('create', views.create, name='create'), path('<int:pk>', views.NewsDetailView.as_view(), name='news-detail'), path('<int:pk>/update', views.NewsUpdateView.as_view(), name='news-update'), ...
36.545455
80
0.674129
29428a3c880266295d54c48af9bca30d4cdda98d
412
py
Python
module/phase_one/headers.py
cqr-cryeye-forks/Florid
21ea7abbe5448dca0c485232bdcf870ba2648d68
[ "Apache-2.0" ]
7
2020-03-22T02:44:26.000Z
2022-02-23T01:57:29.000Z
module/phase_one/headers.py
h4zze1/Florid-Scanner
0a8600ce2bdd24f16e45504b00c714ecbb8930af
[ "Apache-2.0" ]
1
2019-02-07T13:41:47.000Z
2019-02-07T13:41:47.000Z
module/phase_one/headers.py
h4zze1/Florid-Scanner
0a8600ce2bdd24f16e45504b00c714ecbb8930af
[ "Apache-2.0" ]
3
2020-03-22T02:44:27.000Z
2021-08-03T00:52:38.000Z
import requests import lib.common MODULE_NAME = 'headers'
20.6
78
0.652913
2942faf9418139b387fac9d36b23ead11b7dcd5e
1,234
py
Python
ekorpkit/io/fetch/edgar/edgar.py
entelecheia/ekorpkit
400cb15005fdbcaa2ab0c311e338799283f28fe0
[ "CC-BY-4.0" ]
4
2022-02-26T10:54:16.000Z
2022-02-26T11:01:56.000Z
ekorpkit/io/fetch/edgar/edgar.py
entelecheia/ekorpkit
400cb15005fdbcaa2ab0c311e338799283f28fe0
[ "CC-BY-4.0" ]
1
2022-03-25T06:37:12.000Z
2022-03-25T06:45:53.000Z
ekorpkit/io/fetch/edgar/edgar.py
entelecheia/ekorpkit
400cb15005fdbcaa2ab0c311e338799283f28fe0
[ "CC-BY-4.0" ]
null
null
null
import os import requests from bs4 import BeautifulSoup from ekorpkit import eKonf from ekorpkit.io.download.web import web_download, web_download_unzip
31.641026
73
0.644246
2944646b37b0ab25dfa73f854ed036b7d6e77c63
3,470
py
Python
HARK/ConsumptionSaving/tests/test_PerfForesightConsumerType.py
michiboo/HARK
de2aab467de19da2ce76de1b58fb420f421bc85b
[ "Apache-2.0" ]
null
null
null
HARK/ConsumptionSaving/tests/test_PerfForesightConsumerType.py
michiboo/HARK
de2aab467de19da2ce76de1b58fb420f421bc85b
[ "Apache-2.0" ]
null
null
null
HARK/ConsumptionSaving/tests/test_PerfForesightConsumerType.py
michiboo/HARK
de2aab467de19da2ce76de1b58fb420f421bc85b
[ "Apache-2.0" ]
null
null
null
from HARK.ConsumptionSaving.ConsIndShockModel import PerfForesightConsumerType import numpy as np import unittest
35.408163
111
0.625072
2944814c5ae01dfc5daf1a2ce4f89caabba6e70c
3,893
py
Python
src-gen/openapi_server/models/config.py
etherisc/bima-bolt-api
14201a3055d94ff9c42afbb755109a69e77248f4
[ "Apache-2.0" ]
null
null
null
src-gen/openapi_server/models/config.py
etherisc/bima-bolt-api
14201a3055d94ff9c42afbb755109a69e77248f4
[ "Apache-2.0" ]
null
null
null
src-gen/openapi_server/models/config.py
etherisc/bima-bolt-api
14201a3055d94ff9c42afbb755109a69e77248f4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server.models.component import Component from openapi_server import util from openapi_server.models.co...
25.444444
96
0.579245
2944fda074b1c1551c4b520622df91dd49749873
1,003
py
Python
txt_annotation.py
bubbliiiing/classification-keras
b914c5d8526cccbeb3ae8d8f2fea4c8bbabf1d94
[ "MIT" ]
30
2021-01-23T15:51:20.000Z
2022-03-26T13:37:49.000Z
txt_annotation.py
PARILM/classification-keras
91e558b5a128449b81acc4f6983f01e420b2039d
[ "MIT" ]
4
2021-01-22T08:58:57.000Z
2022-03-17T14:21:07.000Z
txt_annotation.py
PARILM/classification-keras
91e558b5a128449b81acc4f6983f01e420b2039d
[ "MIT" ]
10
2021-01-31T01:23:35.000Z
2022-02-17T11:53:05.000Z
import os from os import getcwd #---------------------------------------------# # classes # model_datatxt #---------------------------------------------# classes = ["cat", "dog"] sets = ["train", "test"] wd = getcwd() for se in sets: list_file = open('cls_' + se + '.txt', 'w') datasets_path...
31.34375
101
0.521436
29451165b051aed5989a0318d992368267c8109d
5,272
py
Python
S4/S4 Library/simulation/relationships/sim_knowledge.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/relationships/sim_knowledge.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/relationships/sim_knowledge.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from protocolbuffers import SimObjectAttributes_pb2 as protocols from careers.career_unemployment import CareerUnemployment import services import sims4 logger = sims4.log.Logger('Relationship', default_owner='jjacobson')
39.939394
161
0.660281
29452ec5be15d28b45cb5711c4822ec7f8c5c51e
1,001
py
Python
233_number_of_digt_one.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
233_number_of_digt_one.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
233_number_of_digt_one.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# Given an integer n, count the total number of digit 1 appearing # in all non-negative integers less than or equal to n. # # For example: # Given n = 13, # Return 6, because digit 1 occurred in the following numbers: # 1, 10, 11, 12, 13. # if __name__ == "__main__": print Solution().countDigitOne(13)
22.75
65
0.548452
29458e025d37036dcc3d6da38653c530afc7e75e
13,954
py
Python
Search Algorithms.py
fzehracetin/A-Star-and-Best-First-Search
78be430f0c3523aa78d9822ec8aa19615fd3e500
[ "Apache-2.0" ]
1
2021-02-24T10:13:22.000Z
2021-02-24T10:13:22.000Z
Search Algorithms.py
fzehracetin/A-Star-and-Best-First-Search
78be430f0c3523aa78d9822ec8aa19615fd3e500
[ "Apache-2.0" ]
null
null
null
Search Algorithms.py
fzehracetin/A-Star-and-Best-First-Search
78be430f0c3523aa78d9822ec8aa19615fd3e500
[ "Apache-2.0" ]
null
null
null
from PIL import Image from math import sqrt import numpy as np import time import matplotlib.backends.backend_tkagg import matplotlib.pyplot as plt def distance(point, x, y): return sqrt((point.x - x)**2 + (point.y - y)**2) def insert_in_heap(heap, top, point): heap.append(point) i =...
35.68798
124
0.580264
2945bb791202db0434b867efcbc0fdb23fb1256d
624
py
Python
time_test.py
Shb742/rnnoise_python
e370e85984d5909111c9e6e7e4a627bf4de76648
[ "BSD-3-Clause" ]
32
2019-05-24T08:51:36.000Z
2022-03-10T06:10:08.000Z
time_test.py
Shb742/rnnoise_python
e370e85984d5909111c9e6e7e4a627bf4de76648
[ "BSD-3-Clause" ]
3
2020-08-06T09:40:51.000Z
2021-04-21T08:50:20.000Z
time_test.py
Shb742/rnnoise_python
e370e85984d5909111c9e6e7e4a627bf4de76648
[ "BSD-3-Clause" ]
5
2019-09-19T05:54:33.000Z
2021-04-21T08:50:29.000Z
#Author Shoaib Omar import time import rnnoise import numpy as np time_rnnoise()
28.363636
71
0.692308
29461dc478380b16ce5a78cc8afb8aa1b8e6189a
1,092
py
Python
tests/test_shell.py
jakubtyniecki/pact
c23547a2aed1d612180528e33ec1ce021f9badb6
[ "MIT" ]
2
2017-01-12T10:24:31.000Z
2020-06-11T16:05:05.000Z
tests/test_shell.py
jakubtyniecki/pact
c23547a2aed1d612180528e33ec1ce021f9badb6
[ "MIT" ]
null
null
null
tests/test_shell.py
jakubtyniecki/pact
c23547a2aed1d612180528e33ec1ce021f9badb6
[ "MIT" ]
null
null
null
""" shell sort tests module """ import unittest import random from sort import shell from tests import helper
22.285714
80
0.574176
2946888881fb3eee8c4a9270d71f7bab3158abad
666
py
Python
k8s_apps/admin/dump_inventory_file.py
AkadioInc/firefly
d6c48ff9999ffedcaa294fcd956eb97b90408583
[ "BSD-2-Clause" ]
null
null
null
k8s_apps/admin/dump_inventory_file.py
AkadioInc/firefly
d6c48ff9999ffedcaa294fcd956eb97b90408583
[ "BSD-2-Clause" ]
null
null
null
k8s_apps/admin/dump_inventory_file.py
AkadioInc/firefly
d6c48ff9999ffedcaa294fcd956eb97b90408583
[ "BSD-2-Clause" ]
null
null
null
import h5pyd from datetime import datetime import tzlocal BUCKET="firefly-hsds" inventory_domain = "/FIREfly/inventory.h5" f = h5pyd.File(inventory_domain, "r", bucket=BUCKET) table = f["inventory"] for row in table: filename = row[0].decode('utf-8') if row[1]: start = formatTime(row[1]) else: ...
22.965517
66
0.666667
2946dbe0237daa4f111129ff8959628dbb456b22
2,640
py
Python
enaml/qt/qt_timer.py
xtuzy/enaml
a1b5c0df71c665b6ef7f61d21260db92d77d9a46
[ "BSD-3-Clause-Clear" ]
1,080
2015-01-04T14:29:34.000Z
2022-03-29T05:44:51.000Z
enaml/qt/qt_timer.py
xtuzy/enaml
a1b5c0df71c665b6ef7f61d21260db92d77d9a46
[ "BSD-3-Clause-Clear" ]
308
2015-01-05T22:44:13.000Z
2022-03-30T21:19:18.000Z
enaml/qt/qt_timer.py
xtuzy/enaml
a1b5c0df71c665b6ef7f61d21260db92d77d9a46
[ "BSD-3-Clause-Clear" ]
123
2015-01-25T16:33:48.000Z
2022-02-25T19:57:10.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2013-2017, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. #------------------------------------------------...
27.789474
79
0.46553
29487962f697ad1bbd8acf9245d0ea5da17bae4f
12,488
py
Python
mindhome_alpha/erpnext/erpnext_integrations/doctype/mpesa_settings/test_mpesa_settings.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/erpnext_integrations/doctype/mpesa_settings/test_mpesa_settings.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/erpnext_integrations/doctype/mpesa_settings/test_mpesa_settings.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals from json import dumps import frappe import unittest from erpnext.erpnext_integrations.doctype.mpesa_settings.mpesa_settings import process_balance_info, verify_transact...
35.177465
124
0.738629
2948b21202accf70d658d0b73f9aafb72b41be55
114
py
Python
b2accessdeprovisioning/configparser.py
EUDAT-B2ACCESS/b2access-deprovisioning-report
2260347a4e1f522386c188c0dfae2e94bc5b2a40
[ "Apache-2.0" ]
null
null
null
b2accessdeprovisioning/configparser.py
EUDAT-B2ACCESS/b2access-deprovisioning-report
2260347a4e1f522386c188c0dfae2e94bc5b2a40
[ "Apache-2.0" ]
null
null
null
b2accessdeprovisioning/configparser.py
EUDAT-B2ACCESS/b2access-deprovisioning-report
2260347a4e1f522386c188c0dfae2e94bc5b2a40
[ "Apache-2.0" ]
2
2017-10-05T07:26:39.000Z
2017-10-05T07:27:54.000Z
from __future__ import absolute_import import yaml with open("config.yml", "r") as f: config = yaml.load(f)
16.285714
38
0.710526
2948ba6edb0a75f155add6e7fa7726939cd6ba56
3,870
py
Python
res_mods/mods/packages/xvm_main/python/vehinfo_tiers.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
null
null
null
res_mods/mods/packages/xvm_main/python/vehinfo_tiers.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
1
2016-04-03T13:31:39.000Z
2016-04-03T16:48:26.000Z
res_mods/mods/packages/xvm_main/python/vehinfo_tiers.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
null
null
null
""" XVM (c) www.modxvm.com 2013-2017 """ # PUBLIC # PRIVATE from logger import * from gui.shared.utils.requesters import REQ_CRITERIA from helpers import dependency from skeletons.gui.shared import IItemsCache _special = { # Data from http://forum.worldoftanks.ru/index.php?/topic/41221- # Last update: 23.0...
36.857143
93
0.445478
294933d7ee4435c7faf58b9337983fadc1b0d19b
6,099
py
Python
pypy/module/cpyext/test/test_pystrtod.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
pypy/module/cpyext/test/test_pystrtod.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
pypy/module/cpyext/test/test_pystrtod.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
30
2018-08-20T03:16:34.000Z
2022-01-12T17:39:22.000Z
import math from pypy.module.cpyext import pystrtod from pypy.module.cpyext.test.test_api import BaseApiTest, raises_w from rpython.rtyper.lltypesystem import rffi from rpython.rtyper.lltypesystem import lltype from pypy.module.cpyext.pystrtod import PyOS_string_to_double
37.881988
70
0.624529
294a474ec8bf0bc2d0dc645a827ce6425f19ce7f
3,529
py
Python
mathics/core/systemsymbols.py
Mathics3/mathics-core
54dc3c00a42cd893c6430054e125291b6eb55ead
[ "Apache-2.0" ]
90
2021-09-11T14:14:00.000Z
2022-03-29T02:08:29.000Z
mathics/core/systemsymbols.py
Mathics3/mathics-core
54dc3c00a42cd893c6430054e125291b6eb55ead
[ "Apache-2.0" ]
187
2021-09-13T01:00:41.000Z
2022-03-31T11:52:52.000Z
mathics/core/systemsymbols.py
Mathics3/mathics-core
54dc3c00a42cd893c6430054e125291b6eb55ead
[ "Apache-2.0" ]
10
2021-10-05T15:44:26.000Z
2022-03-21T12:34:33.000Z
# -*- coding: utf-8 -*- from mathics.core.symbols import Symbol # Some other common Symbols. This list is sorted in alphabetic order. SymbolAssumptions = Symbol("$Assumptions") SymbolAborted = Symbol("$Aborted") SymbolAll = Symbol("All") SymbolAlternatives = Symbol("Alternatives") SymbolAnd = Symbol("And") SymbolAppe...
33.932692
69
0.765373
294bff20d8c499704a706ccaf6f51e0e5fd8ce4d
5,821
py
Python
exercises/ali/cartpole-MCTS/cartpole.py
alik604/ra
6058a9adb47db93bb86bcb2c224930c5731d663d
[ "Unlicense" ]
null
null
null
exercises/ali/cartpole-MCTS/cartpole.py
alik604/ra
6058a9adb47db93bb86bcb2c224930c5731d663d
[ "Unlicense" ]
5
2021-03-26T01:30:13.000Z
2021-04-22T22:19:03.000Z
exercises/ali/cartpole-MCTS/cartpole.py
alik604/ra
6058a9adb47db93bb86bcb2c224930c5731d663d
[ "Unlicense" ]
1
2021-05-05T00:57:43.000Z
2021-05-05T00:57:43.000Z
# from https://github.com/kvwoerden/mcts-cartpole # ---------------------------------------------------------------------------- # # Imports # # ---------------------------------------------------------------------------- # import os import time impor...
39.067114
219
0.519842
294c561a401bd6bdb0db578e7797d3a5175a9a58
318
py
Python
wildlifecompliance/components/applications/cron.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/components/applications/cron.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/components/applications/cron.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
from django_cron import CronJobBase, Schedule
21.2
50
0.704403
294ddecc4d289926d35a18bd81582fdedcf038ee
2,999
py
Python
optional-plugins/CSVPlugin/CSVContext.py
owlfish/pubtal
fb20a0acf2769b2c06012b65bd462f02da12bd1c
[ "BSD-3-Clause" ]
null
null
null
optional-plugins/CSVPlugin/CSVContext.py
owlfish/pubtal
fb20a0acf2769b2c06012b65bd462f02da12bd1c
[ "BSD-3-Clause" ]
null
null
null
optional-plugins/CSVPlugin/CSVContext.py
owlfish/pubtal
fb20a0acf2769b2c06012b65bd462f02da12bd1c
[ "BSD-3-Clause" ]
null
null
null
import ASV from simpletal import simpleTAL, simpleTALES try: import logging except: import InfoLogging as logging import codecs
26.307018
92
0.686896
294e1d0fe03b7258df243ff2841d037d1b8158e8
2,484
py
Python
wagtail/admin/forms/comments.py
stephiescastle/wagtail
391f46ef91ca4a7bbf339bf9e9a738df3eb8e179
[ "BSD-3-Clause" ]
null
null
null
wagtail/admin/forms/comments.py
stephiescastle/wagtail
391f46ef91ca4a7bbf339bf9e9a738df3eb8e179
[ "BSD-3-Clause" ]
null
null
null
wagtail/admin/forms/comments.py
stephiescastle/wagtail
391f46ef91ca4a7bbf339bf9e9a738df3eb8e179
[ "BSD-3-Clause" ]
null
null
null
from django.forms import BooleanField, ValidationError from django.utils.timezone import now from django.utils.translation import gettext as _ from .models import WagtailAdminModelForm
34.5
129
0.594605
294e291b1d27799d1015e0d511b66da83b03b728
1,039
py
Python
run_db_data.py
MahirMahbub/email-client
71ab85f987f783b703b58780444c072bd683927e
[ "MIT" ]
null
null
null
run_db_data.py
MahirMahbub/email-client
71ab85f987f783b703b58780444c072bd683927e
[ "MIT" ]
4
2021-08-01T16:29:48.000Z
2021-08-01T16:58:36.000Z
run_db_data.py
MahirMahbub/email-client
71ab85f987f783b703b58780444c072bd683927e
[ "MIT" ]
null
null
null
import os from sqlalchemy.orm import Session from db.database import SessionLocal
23.088889
79
0.549567
29509faf87f0d6a17ff1205ace918609c71b08fe
1,750
py
Python
five/five_copy.py
ngd-b/python-demo
0341c1620bcde1c1d886cb9e75dc6db3722273c8
[ "MIT" ]
1
2019-10-09T13:40:13.000Z
2019-10-09T13:40:13.000Z
five/five_copy.py
ngd-b/python-demo
0341c1620bcde1c1d886cb9e75dc6db3722273c8
[ "MIT" ]
null
null
null
five/five_copy.py
ngd-b/python-demo
0341c1620bcde1c1d886cb9e75dc6db3722273c8
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- print("hello world") f = None try: f = open("./hello.txt","r",encoding="utf8") print(f.read(5),end='') print(f.read(5),end='') print(f.read(5)) except IOError as e: print(e) finally: if f: f.close() # with auto call the methods' close with open...
19.444444
72
0.6
2951e1c21121343a134fe48bfcc73abc7a482cb1
6,355
py
Python
examples/batch_ts_insert.py
bureau14/qdb-api-python
2a010df3252d39bc4d529f545547c5cefb9fe86e
[ "BSD-3-Clause" ]
9
2015-09-02T20:13:13.000Z
2020-07-16T14:17:36.000Z
examples/batch_ts_insert.py
bureau14/qdb-api-python
2a010df3252d39bc4d529f545547c5cefb9fe86e
[ "BSD-3-Clause" ]
5
2018-02-20T10:47:02.000Z
2020-05-20T10:05:49.000Z
examples/batch_ts_insert.py
bureau14/qdb-api-python
2a010df3252d39bc4d529f545547c5cefb9fe86e
[ "BSD-3-Clause" ]
1
2018-04-01T11:12:56.000Z
2018-04-01T11:12:56.000Z
# Copyright (c) 2009-2020, quasardb SAS. All rights reserved. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice,...
40.737179
165
0.70181
295371af41debc44d7d6cd681954bb737b9ceb2b
2,128
py
Python
tests/backends/test_flashtext_backend.py
openredact/pii-identifier
97eaef56d6de59718501095d631a0fb49700e45a
[ "MIT" ]
14
2020-07-31T18:45:29.000Z
2022-02-21T13:24:00.000Z
tests/backends/test_flashtext_backend.py
openredact/pii-identifier
97eaef56d6de59718501095d631a0fb49700e45a
[ "MIT" ]
7
2020-07-31T06:17:21.000Z
2021-05-23T08:40:24.000Z
tests/backends/test_flashtext_backend.py
openredact/pii-identifier
97eaef56d6de59718501095d631a0fb49700e45a
[ "MIT" ]
1
2020-09-30T01:42:57.000Z
2020-09-30T01:42:57.000Z
from nerwhal.backends.flashtext_backend import FlashtextBackend from nerwhal.recognizer_bases import FlashtextRecognizer
26.6
63
0.62218
2954339ee63d8f3aeb46e217258769ecc01fa43c
1,444
py
Python
new_rdsmysql.py
AdminTurnedDevOps/AWS_Solutions_Architect_Python
5389f8c9dfbda7b0b49a94a93e9b070420ca9ece
[ "MIT" ]
30
2019-01-13T20:14:07.000Z
2022-02-06T15:08:01.000Z
new_rdsmysql.py
AdminTurnedDevOps/AWS_Solutions_Architect_Python
5389f8c9dfbda7b0b49a94a93e9b070420ca9ece
[ "MIT" ]
1
2019-01-13T23:52:39.000Z
2019-01-14T14:39:45.000Z
new_rdsmysql.py
AdminTurnedDevOps/AWS_Solutions_Architect_Python
5389f8c9dfbda7b0b49a94a93e9b070420ca9ece
[ "MIT" ]
26
2019-01-13T21:32:23.000Z
2022-03-20T05:19:03.000Z
import boto3 import sys import time import logging import getpass dbname = sys.argv[1] instanceID = sys.argv[2] storage = sys.argv[3] dbInstancetype = sys.argv[4] dbusername = sys.argv[5] new_rdsmysql(dbname, instanceID, storage, dbInstancetype, dbusername)
27.769231
83
0.587258
295527972ae5a65fd8aad67870244e225d07dc77
2,657
py
Python
src/tzscan/tzscan_block_api.py
Twente-Mining/tezos-reward-distributor
8df0745fdb44cbd765084303882545202d2427f3
[ "MIT" ]
null
null
null
src/tzscan/tzscan_block_api.py
Twente-Mining/tezos-reward-distributor
8df0745fdb44cbd765084303882545202d2427f3
[ "MIT" ]
null
null
null
src/tzscan/tzscan_block_api.py
Twente-Mining/tezos-reward-distributor
8df0745fdb44cbd765084303882545202d2427f3
[ "MIT" ]
null
null
null
import random import requests from api.block_api import BlockApi from exception.tzscan import TzScanException from log_config import main_logger logger = main_logger HEAD_API = {'MAINNET': {'HEAD_API_URL': 'https://api%MIRROR%.tzscan.io/v2/head'}, 'ALPHANET': {'HEAD_API_URL': 'http://api.alphanet.tzscan...
32.402439
116
0.621377
29554b0b9e721e4b0e9ff426e2c29a4e943ecd1c
10,086
py
Python
python/cuxfilter/tests/charts/core/test_core_non_aggregate.py
Anhmike/cuxfilter
a8b25b1c37ac0e5435acb7261f6fcbf677d96bfa
[ "Apache-2.0" ]
201
2018-12-21T18:32:40.000Z
2022-03-22T11:50:29.000Z
python/cuxfilter/tests/charts/core/test_core_non_aggregate.py
Anhmike/cuxfilter
a8b25b1c37ac0e5435acb7261f6fcbf677d96bfa
[ "Apache-2.0" ]
258
2018-12-27T07:37:50.000Z
2022-03-31T20:01:32.000Z
python/cuxfilter/tests/charts/core/test_core_non_aggregate.py
Anhmike/cuxfilter
a8b25b1c37ac0e5435acb7261f6fcbf677d96bfa
[ "Apache-2.0" ]
51
2019-01-10T19:03:09.000Z
2022-03-08T01:37:11.000Z
import pytest import cudf import mock from cuxfilter.charts.core.non_aggregate.core_non_aggregate import ( BaseNonAggregate, ) from cuxfilter.dashboard import DashBoard from cuxfilter import DataFrame from cuxfilter.layouts import chart_view
30.288288
78
0.561967
29560939d9082f0d01fcc95be50270dfe0f453ac
4,265
py
Python
tunobase/tagging/migrations/0001_initial.py
unomena/tunobase-core
fd24e378c87407131805fa56ade8669fceec8dfa
[ "BSD-3-Clause" ]
null
null
null
tunobase/tagging/migrations/0001_initial.py
unomena/tunobase-core
fd24e378c87407131805fa56ade8669fceec8dfa
[ "BSD-3-Clause" ]
null
null
null
tunobase/tagging/migrations/0001_initial.py
unomena/tunobase-core
fd24e378c87407131805fa56ade8669fceec8dfa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
56.118421
182
0.597655
2959af169e729db8be7ba1725d5b1686b6c154d4
6,462
py
Python
b.py
lbarchive/b.py
18b533dc40e5fdf7ba62209b51584927c2dd9ba0
[ "MIT" ]
null
null
null
b.py
lbarchive/b.py
18b533dc40e5fdf7ba62209b51584927c2dd9ba0
[ "MIT" ]
null
null
null
b.py
lbarchive/b.py
18b533dc40e5fdf7ba62209b51584927c2dd9ba0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2013-2016 by Yu-Jie Lin # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, mo...
29.108108
79
0.660786
295a62c87a95c13de9ca2d600326020d699ab2e2
8,729
py
Python
spyder/plugins/outlineexplorer/api.py
suokunlong/spyder
2d5d450fdcef232fb7f38e7fefc27f0e7f704c9a
[ "MIT" ]
1
2018-05-03T02:14:15.000Z
2018-05-03T02:14:15.000Z
spyder/plugins/outlineexplorer/api.py
jastema/spyder
0ef48ea227c53f57556cd8002087dc404b0108b0
[ "MIT" ]
null
null
null
spyder/plugins/outlineexplorer/api.py
jastema/spyder
0ef48ea227c53f57556cd8002087dc404b0108b0
[ "MIT" ]
1
2020-03-05T03:09:11.000Z
2020-03-05T03:09:11.000Z
# -*- coding: utf-8 -*- # # Copyright Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Outline explorer API. You need to declare a OutlineExplorerProxy, and a function for handle the edit_goto Signal. class OutlineExplorerProxyCustom(OutlineExplorer...
29.096667
74
0.595601
295bcd4e3374d50cf1562ad240b9c1e9e4ac0fc7
3,132
py
Python
seamless/core/__init__.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
15
2017-06-07T12:49:12.000Z
2020-07-25T18:06:04.000Z
seamless/core/__init__.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
110
2016-06-21T23:20:44.000Z
2022-02-24T16:15:22.000Z
seamless/core/__init__.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
6
2016-06-21T11:19:22.000Z
2019-01-21T13:45:39.000Z
import weakref from .mount import mountmanager from .macro_mode import get_macro_mode, macro_mode_on from . import cell as cell_module from .cell import Cell, cell from . import context as context_module from .context import Context, context from .worker import Worker from .transformer import Transformer, transformer ...
30.705882
102
0.628672
295bf91559d8557674834d5e4100c334bcac0923
11,613
py
Python
oguilem/configuration/config.py
dewberryants/oGUIlem
28271fdc0fb6ffba0037f30f9f9858bec32b0d13
[ "BSD-3-Clause" ]
2
2022-02-23T13:16:47.000Z
2022-03-07T09:47:29.000Z
oguilem/configuration/config.py
dewberryants/oGUIlem
28271fdc0fb6ffba0037f30f9f9858bec32b0d13
[ "BSD-3-Clause" ]
null
null
null
oguilem/configuration/config.py
dewberryants/oGUIlem
28271fdc0fb6ffba0037f30f9f9858bec32b0d13
[ "BSD-3-Clause" ]
1
2022-02-23T13:16:49.000Z
2022-02-23T13:16:49.000Z
import os import re import sys from oguilem.configuration.fitness import OGUILEMFitnessFunctionConfiguration from oguilem.configuration.ga import OGUILEMGlobOptConfig from oguilem.configuration.geometry import OGUILEMGeometryConfig from oguilem.configuration.utils import ConnectedValue, ConfigFileManager from oguilem....
43.494382
118
0.533023
295cb6523225a5b823029ec4f2d16b55a8369739
8,705
py
Python
xpd_workflow/temp_graph.py
CJ-Wright/xpd_workflow
f3fd84831b86b696631759946c3af9b16b45de26
[ "BSD-3-Clause" ]
null
null
null
xpd_workflow/temp_graph.py
CJ-Wright/xpd_workflow
f3fd84831b86b696631759946c3af9b16b45de26
[ "BSD-3-Clause" ]
4
2016-08-25T02:59:05.000Z
2016-09-28T22:32:34.000Z
xpd_workflow/temp_graph.py
CJ-Wright/xpd_workflow
f3fd84831b86b696631759946c3af9b16b45de26
[ "BSD-3-Clause" ]
null
null
null
from __future__ import (division, print_function) import matplotlib.cm as cmx import matplotlib.colors as colors from matplotlib import gridspec from metadatastore.api import db_connect as mds_db_connect from filestore.api import db_connect as fs_db_connect fs_db_connect( **{'database': 'data-processing-dev', 'h...
38.688889
84
0.443538
295d0342f32753f768fc55a488c38b501e122b06
12,101
py
Python
winnow/core.py
bgschiller/winnow
0fde7fcc9e2fe3519528feb9115658aa3b3954e5
[ "MIT" ]
3
2017-08-10T16:20:29.000Z
2018-09-19T01:33:13.000Z
winnow/core.py
bgschiller/winnow
0fde7fcc9e2fe3519528feb9115658aa3b3954e5
[ "MIT" ]
null
null
null
winnow/core.py
bgschiller/winnow
0fde7fcc9e2fe3519528feb9115658aa3b3954e5
[ "MIT" ]
1
2019-11-29T20:17:23.000Z
2019-11-29T20:17:23.000Z
from __future__ import unicode_literals import copy import json from six import string_types from . import default_operators from . import sql_prepare from . import values from .error import WinnowError from .templating import SqlFragment from .templating import WinnowSql
37.934169
122
0.614081
295d64816bed48df8774a68b70c332508540215b
12,525
py
Python
ibis/bigquery/client.py
tswast/ibis
2f6d47e4c33cefd7ea1d679bb1d9253c2245993b
[ "Apache-2.0" ]
null
null
null
ibis/bigquery/client.py
tswast/ibis
2f6d47e4c33cefd7ea1d679bb1d9253c2245993b
[ "Apache-2.0" ]
null
null
null
ibis/bigquery/client.py
tswast/ibis
2f6d47e4c33cefd7ea1d679bb1d9253c2245993b
[ "Apache-2.0" ]
null
null
null
import regex as re import time import collections import datetime import six import pandas as pd import google.cloud.bigquery as bq from multipledispatch import Dispatcher import ibis import ibis.common as com import ibis.expr.operations as ops import ibis.expr.types as ir import ibis.expr.schema as sch import ibis...
28.020134
79
0.660918
295d6dddae668ee8a211bf176e96dec0fc246700
1,583
py
Python
5 kyu/Family Tree Ancestors.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
6
2020-09-03T09:32:25.000Z
2020-12-07T04:10:01.000Z
5 kyu/Family Tree Ancestors.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
1
2021-12-13T15:30:21.000Z
2021-12-13T15:30:21.000Z
5 kyu/Family Tree Ancestors.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
null
null
null
from math import log, ceil
32.979167
139
0.53885
295da24723071b30363f5dee9937e755f296d5c6
690
py
Python
tests/make_expected_lookup.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
77
2019-06-09T14:23:33.000Z
2022-03-22T21:34:01.000Z
tests/make_expected_lookup.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
353
2019-06-05T23:54:39.000Z
2022-03-31T21:21:47.000Z
tests/make_expected_lookup.py
bfis/coffea
e5e67d410e86faee1172fcc864774d7024d97653
[ "BSD-3-Clause" ]
71
2019-06-07T02:04:11.000Z
2022-03-05T21:03:45.000Z
import numpy as np import ROOT from dummy_distributions import dummy_pt_eta counts, test_in1, test_in2 = dummy_pt_eta() f = ROOT.TFile.Open("samples/testSF2d.root") sf = f.Get("scalefactors_Tight_Electron") xmin, xmax = sf.GetXaxis().GetXmin(), sf.GetXaxis().GetXmax() ymin, ymax = sf.GetYaxis().GetXmin(), sf.GetYax...
24.642857
61
0.649275
295e24a9ef2f154bf2eab43ba3f883adfaf8378d
5,755
py
Python
engine/sentiment_analysis.py
zgeorg03/nesase
4dae70994cd0c730a88b4a54e6b8e29868aafb09
[ "BSD-3-Clause" ]
2
2020-12-30T18:03:01.000Z
2021-08-08T21:05:43.000Z
engine/sentiment_analysis.py
zgeorg03/nesase
4dae70994cd0c730a88b4a54e6b8e29868aafb09
[ "BSD-3-Clause" ]
null
null
null
engine/sentiment_analysis.py
zgeorg03/nesase
4dae70994cd0c730a88b4a54e6b8e29868aafb09
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 14 17:42:27 2018 @author: zgeorg03 """ import re import json # Used for converting json to dictionary import datetime # Used for date conversions import matplotlib.pyplot as plt import numpy as np from sentiment import Sentiment import json if ...
31.277174
137
0.559687
295e89c3127cdc64f86ba1f4504dbc0c0e95c2df
1,214
py
Python
ch05/recursion.py
laszlokiraly/LearningAlgorithms
032a3cc409546619cf41220821d081cde54bbcce
[ "MIT" ]
74
2021-05-06T22:03:18.000Z
2022-03-25T04:37:51.000Z
ch05/recursion.py
laszlokiraly/LearningAlgorithms
032a3cc409546619cf41220821d081cde54bbcce
[ "MIT" ]
null
null
null
ch05/recursion.py
laszlokiraly/LearningAlgorithms
032a3cc409546619cf41220821d081cde54bbcce
[ "MIT" ]
19
2021-07-16T11:42:00.000Z
2022-03-22T00:25:49.000Z
"""Recursive implementations.""" def find_max(A): """invoke recursive function to find maximum value in A.""" def rmax(lo, hi): """Use recursion to find maximum value in A[lo:hi+1].""" if lo == hi: return A[lo] mid = (lo+hi) // 2 L = rmax(lo, mid) R = rmax(mid+1, hi) ...
26.977778
82
0.555189
295eeef6c40b7545564ffef7ae9d385146c2bde6
3,084
py
Python
setup.py
koonimaru/DeepGMAP
7daac354229fc25fba81649b741921345dc5db05
[ "Apache-2.0" ]
11
2018-06-27T11:45:47.000Z
2021-07-01T15:32:56.000Z
setup.py
koonimaru/DeepGMAP
7daac354229fc25fba81649b741921345dc5db05
[ "Apache-2.0" ]
3
2020-01-28T21:45:15.000Z
2020-04-20T02:40:48.000Z
setup.py
koonimaru/DeepGMAP
7daac354229fc25fba81649b741921345dc5db05
[ "Apache-2.0" ]
1
2018-10-19T19:43:27.000Z
2018-10-19T19:43:27.000Z
#from distutils.core import setup from setuptools import setup, find_packages from distutils.extension import Extension import re import os import codecs here = os.path.abspath(os.path.dirname(__file__)) try: from Cython.Distutils import build_ext except ImportError: use_cython = False else: use_cython =...
34.651685
155
0.664073
295f637700f993cfd8e37b0ff39f106d2c2a6469
1,716
py
Python
{{cookiecutter.project_slug}}/api/__init__.py
Steamboat/cookiecutter-devops
6f07329c9e54b76e671a0308d343d2d9ebff5343
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/api/__init__.py
Steamboat/cookiecutter-devops
6f07329c9e54b76e671a0308d343d2d9ebff5343
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/api/__init__.py
Steamboat/cookiecutter-devops
6f07329c9e54b76e671a0308d343d2d9ebff5343
[ "BSD-3-Clause" ]
null
null
null
import logging from flask import Flask from flask_sqlalchemy import SQLAlchemy as _BaseSQLAlchemy from flask_migrate import Migrate from flask_cors import CORS from flask_talisman import Talisman from flask_ipban import IpBan from config import Config, get_logger_handler # database db = SQLAlchemy() migrate = Migrat...
32.377358
106
0.740093
295f7531aae2696a47947cc69a933b6673909fb5
4,937
py
Python
weibospider/pipelines.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
2
2021-03-26T03:02:52.000Z
2021-04-01T11:08:46.000Z
weibospider/pipelines.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
null
null
null
weibospider/pipelines.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import csv import pymongo from pymongo.errors import DuplicateKeyError from settings import MONGO_HOST, MONGO_PORT, SAVE_ROOT
40.467213
118
0.611302
295f767e353179afb030c3f6f2c390f8073634e9
6,020
py
Python
tests/test_gc3_config.py
ericmharris/gc3-query
0bf5226130aafbb1974aeb96d93ee1996833e87d
[ "MIT" ]
null
null
null
tests/test_gc3_config.py
ericmharris/gc3-query
0bf5226130aafbb1974aeb96d93ee1996833e87d
[ "MIT" ]
null
null
null
tests/test_gc3_config.py
ericmharris/gc3-query
0bf5226130aafbb1974aeb96d93ee1996833e87d
[ "MIT" ]
null
null
null
from pathlib import Path from requests.auth import _basic_auth_str import pytest from bravado_core.formatter import SwaggerFormat, NO_OP from gc3_query.lib.gc3_config import GC3Config, IDMCredential TEST_BASE_DIR: Path = Path(__file__).parent.joinpath("GC3Config") config_dir = TEST_BASE_DIR.joinpath("config") ...
39.605263
96
0.767608
2960cfa3589dae062b2a5ee5a75ad678bb175e9d
2,871
py
Python
lab6/server/datapredict.py
zhiji95/iot
4202f00a79b429d5f5083bca6e914fcff09df294
[ "Apache-2.0" ]
2
2019-09-20T01:38:40.000Z
2020-10-13T21:18:18.000Z
lab6/server/datapredict.py
zw2497/4764
28caec1947c1b1479d2ec9c8ecba8cd599d66d23
[ "Apache-2.0" ]
null
null
null
lab6/server/datapredict.py
zw2497/4764
28caec1947c1b1479d2ec9c8ecba8cd599d66d23
[ "Apache-2.0" ]
null
null
null
import machine from machine import * import ssd1306 import time import socket import urequests as requests import json word = {'body':8} labels = ['c', 'o', 'l', 'u', 'm', 'b', 'i', 'a','null'] HOST = '18.218.158.249' PORT = 8080 flag = 0 stop = False data = {} xdata = [] ydata = [] n = 0 do_connect() switchA = mach...
20.804348
83
0.554859
2960f549fc004cf3590c25e915c7395ebd3b5e4d
79
py
Python
Geometry/VeryForwardGeometry/python/dd4hep/geometryRPFromDD_2021_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
2
2020-10-26T18:40:32.000Z
2021-04-10T16:33:25.000Z
Geometry/VeryForwardGeometry/python/dd4hep/geometryRPFromDD_2021_cfi.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
25
2016-06-24T20:55:32.000Z
2022-02-01T19:24:45.000Z
Geometry/VeryForwardGeometry/python/dd4hep/geometryRPFromDD_2021_cfi.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
8
2016-03-25T07:17:43.000Z
2021-07-08T17:11:21.000Z
from Geometry.VeryForwardGeometry.dd4hep.v5.geometryRPFromDD_2021_cfi import *
39.5
78
0.886076
2962e10ff2cdb13a6dd7a8ef80474fffa61365b3
1,464
py
Python
examples/plots/warmup_schedule.py
shuoyangd/pytorch_warmup
b3557afa6fcfc04e9ddc6ff08a1ae51e8a0ce5df
[ "MIT" ]
170
2019-11-03T06:14:42.000Z
2022-03-18T08:21:44.000Z
examples/plots/warmup_schedule.py
shuoyangd/pytorch_warmup
b3557afa6fcfc04e9ddc6ff08a1ae51e8a0ce5df
[ "MIT" ]
5
2020-05-18T16:53:33.000Z
2021-11-12T13:03:14.000Z
examples/plots/warmup_schedule.py
shuoyangd/pytorch_warmup
b3557afa6fcfc04e9ddc6ff08a1ae51e8a0ce5df
[ "MIT" ]
21
2019-11-06T10:55:21.000Z
2022-02-23T21:38:12.000Z
import argparse import matplotlib.pyplot as plt import torch from pytorch_warmup import * parser = argparse.ArgumentParser(description='Warmup schedule') parser.add_argument('--output', type=str, default='none', choices=['none', 'png', 'pdf'], help='Output file type (default: ...
34.857143
113
0.693306
2965377859485f3e331393d42e82329e9f5b3052
2,107
py
Python
plugins/httpev.py
wohali/gizzy
c9d4ee9cdcf6fdbf260869365b944f29c660e6aa
[ "Apache-2.0" ]
3
2015-09-11T23:34:36.000Z
2018-04-05T21:17:08.000Z
plugins/httpev.py
wohali/gizzy
c9d4ee9cdcf6fdbf260869365b944f29c660e6aa
[ "Apache-2.0" ]
null
null
null
plugins/httpev.py
wohali/gizzy
c9d4ee9cdcf6fdbf260869365b944f29c660e6aa
[ "Apache-2.0" ]
null
null
null
"""\ This plugin merely enables other plugins to accept data over HTTP. If a plugin defines a module level function named "httpev" it will be invoked for POST requests to the url http://$hostname/event/$pluginname. The function is invoked from the thread in the web.py request context and as such has access to the full ...
26.670886
76
0.591362
29656dc8827f4e4fcb777d91bc04e2895b6de0ad
773
py
Python
ex056.py
danilodelucio/Exercicios_Curso_em_Video
d59e1b4efaf27dd0fc828a608201613c69ac333d
[ "MIT" ]
null
null
null
ex056.py
danilodelucio/Exercicios_Curso_em_Video
d59e1b4efaf27dd0fc828a608201613c69ac333d
[ "MIT" ]
null
null
null
ex056.py
danilodelucio/Exercicios_Curso_em_Video
d59e1b4efaf27dd0fc828a608201613c69ac333d
[ "MIT" ]
null
null
null
somaIdade = 0 maiorIdade = 0 nomeVelho = '' totmulher20 = 0 for p in range(1, 3): print('---- {} PESSOA ----'.format(p)) nome = str(input('Nome: ')).strip() idade = int(input('Idade: ')) sexo = str(input('Sexo [M/F]: ')) somaIdade += idade if p == 1 and sexo in 'Mm': maiorIdade = idade ...
30.92
84
0.606727
2966debf755863b57841211c2eb24e99ff45937a
6,583
py
Python
python/promort.py
simleo/promort_pipeline
03b9d3553a3dade57d0007e230230b02dd70832f
[ "MIT" ]
null
null
null
python/promort.py
simleo/promort_pipeline
03b9d3553a3dade57d0007e230230b02dd70832f
[ "MIT" ]
null
null
null
python/promort.py
simleo/promort_pipeline
03b9d3553a3dade57d0007e230230b02dd70832f
[ "MIT" ]
3
2020-07-29T15:03:40.000Z
2020-10-06T11:16:04.000Z
"""\ PROMORT example. """ import argparse import random import sys import pyecvl.ecvl as ecvl import pyeddl.eddl as eddl from pyeddl.tensor import Tensor import models if __name__ == "__main__": parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("in_ds", metavar="INPUT_DATASET") ...
37.19209
98
0.556433
2967592aac9355f4e077c19d82c1790326f4a71b
343
py
Python
src/view/services_update_page.py
nbilbo/services_manager
74e0471a1101305303a96d39963cc98fc0645a64
[ "MIT" ]
null
null
null
src/view/services_update_page.py
nbilbo/services_manager
74e0471a1101305303a96d39963cc98fc0645a64
[ "MIT" ]
null
null
null
src/view/services_update_page.py
nbilbo/services_manager
74e0471a1101305303a96d39963cc98fc0645a64
[ "MIT" ]
null
null
null
from src.view.services_page import ServicesPage from src.view.services_add_page import ServicesAddPage
34.3
54
0.723032
2967a056b02745df6754455d5a9a7411cbb1bfd2
7,543
py
Python
Lib/site-packages/wagtail/utils/l18n/translation.py
SyahmiAmin/belikilo
0a26dadb514683456ea0dbdcbcfcbf65e09d5dbb
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/wagtail/utils/l18n/translation.py
SyahmiAmin/belikilo
0a26dadb514683456ea0dbdcbcfcbf65e09d5dbb
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/wagtail/utils/l18n/translation.py
SyahmiAmin/belikilo
0a26dadb514683456ea0dbdcbcfcbf65e09d5dbb
[ "bzip2-1.0.6" ]
null
null
null
import os import gettext import bisect from locale import getdefaultlocale from collections.abc import MutableMapping from copy import copy, deepcopy import six _trans = Trans() if six.PY2: else:
27.32971
78
0.571258
2967c010afb3c90f1b88a872839f1b992255abcc
272
py
Python
playground/sockets/server.py
tunki/lang-training
79b9f59a7187053f540f9057c585747762ca8890
[ "MIT" ]
null
null
null
playground/sockets/server.py
tunki/lang-training
79b9f59a7187053f540f9057c585747762ca8890
[ "MIT" ]
4
2020-03-10T19:20:21.000Z
2021-06-07T15:39:48.000Z
proglangs-learning/python/example_sockets/server.py
helq/old_code
a432faf1b340cb379190a2f2b11b997b02d1cd8d
[ "CC0-1.0" ]
null
null
null
import socket s = socket.socket() s.bind(("localhost", 9999)) s.listen(1) sc, addr = s.accept() while True: recibido = sc.recv(1024) if recibido == "quit": break print "Recibido:", recibido sc.send(recibido) print "adios" sc.close() s.close()
13.6
31
0.617647
29682fb767c90bc573a3f797e4f0ca061a3378d9
743
py
Python
examples/example_contour.py
moghimis/geojsoncontour
23f298cb5c5ae4b7000024423493e109a9cc908d
[ "MIT" ]
63
2016-10-31T06:55:47.000Z
2022-02-04T06:47:32.000Z
examples/example_contour.py
moghimis/geojsoncontour
23f298cb5c5ae4b7000024423493e109a9cc908d
[ "MIT" ]
20
2016-09-26T15:25:53.000Z
2020-11-11T18:26:32.000Z
examples/example_contour.py
moghimis/geojsoncontour
23f298cb5c5ae4b7000024423493e109a9cc908d
[ "MIT" ]
26
2016-06-15T02:39:10.000Z
2022-02-04T06:48:15.000Z
import numpy import matplotlib.pyplot as plt import geojsoncontour # Create lat and lon vectors and grid data grid_size = 1.0 latrange = numpy.arange(-90.0, 90.0, grid_size) lonrange = numpy.arange(-180.0, 180.0, grid_size) X, Y = numpy.meshgrid(lonrange, latrange) Z = numpy.sqrt(X * X + Y * Y) n_contours = 10 levels...
26.535714
75
0.729475