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
8e65daebe577c08239034ca2c192e6c446ad91d9
5,865
py
Python
tests/integration/test_clone_project.py
superannotateai/superannotate-python-sdk
e2ce848b61efed608265fa64f3781fd5a17c929b
[ "MIT" ]
26
2020-09-25T06:25:06.000Z
2022-01-30T16:44:07.000Z
tests/integration/test_clone_project.py
superannotateai/superannotate-python-sdk
e2ce848b61efed608265fa64f3781fd5a17c929b
[ "MIT" ]
12
2020-12-21T19:59:48.000Z
2022-01-21T10:32:07.000Z
tests/integration/test_clone_project.py
superannotateai/superannotate-python-sdk
e2ce848b61efed608265fa64f3781fd5a17c929b
[ "MIT" ]
11
2020-09-17T13:39:19.000Z
2022-03-02T18:12:29.000Z
import os from os.path import dirname from unittest import TestCase import pytest import src.superannotate as sa
35.762195
94
0.539301
8e672b30ac2d4293d252c3f28a77e16722f9d3c0
1,139
py
Python
dmg/classical_amg.py
amkatrutsa/dmg
ac07e28982ddd7b03137b296e03af4d5515c8ad3
[ "MIT" ]
14
2018-07-06T12:04:46.000Z
2022-03-21T10:01:27.000Z
dmg/classical_amg.py
amkatrutsa/dmg
ac07e28982ddd7b03137b296e03af4d5515c8ad3
[ "MIT" ]
null
null
null
dmg/classical_amg.py
amkatrutsa/dmg
ac07e28982ddd7b03137b296e03af4d5515c8ad3
[ "MIT" ]
4
2019-01-08T03:31:55.000Z
2021-12-28T01:39:15.000Z
import pyamg from . import gmg_base
54.238095
107
0.539069
8e673db362c569f9ad4cae086dd2478daf171db2
13,601
py
Python
figures.py
maria-kuruvilla/temp_collective_new
c45b72cee7c17072507eb67790d1699f5684098a
[ "MIT" ]
null
null
null
figures.py
maria-kuruvilla/temp_collective_new
c45b72cee7c17072507eb67790d1699f5684098a
[ "MIT" ]
null
null
null
figures.py
maria-kuruvilla/temp_collective_new
c45b72cee7c17072507eb67790d1699f5684098a
[ "MIT" ]
null
null
null
""" Code to plot average nearest neighbor distance between fish in a school as a function of group size - one line per water temperature. """ # imports import sys, os import numpy as np import matplotlib.pyplot as plt import pickle from matplotlib import cm import argparse #argparse # create the parser object pars...
35.792105
160
0.710462
8e67c9cb778e91d2cab352898b79d1683798c293
144
py
Python
Externals/micromegas_4.3.5/Packages/smodels-v1.1.0patch1/smodels/tools/__init__.py
yuanfangtardis/vscode_project
2d78a85413cc85789cc4fee8ec991eb2a0563ef8
[ "Apache-2.0" ]
null
null
null
Externals/micromegas_4.3.5/Packages/smodels-v1.1.0patch1/smodels/tools/__init__.py
yuanfangtardis/vscode_project
2d78a85413cc85789cc4fee8ec991eb2a0563ef8
[ "Apache-2.0" ]
null
null
null
Externals/micromegas_4.3.5/Packages/smodels-v1.1.0patch1/smodels/tools/__init__.py
yuanfangtardis/vscode_project
2d78a85413cc85789cc4fee8ec991eb2a0563ef8
[ "Apache-2.0" ]
1
2022-01-15T12:22:30.000Z
2022-01-15T12:22:30.000Z
""" .. module:: tools.__init__ :synopsis: This package contains tools for handling results obtained with the main SModelS code. """
20.571429
81
0.6875
8e68d491045b46e0d5c3609fa40d0f8cbf83aabf
3,106
py
Python
src/image_caption_machine/world/place.py
brandontrabucco/ros-image-captioner
5fd18317f2ec600cdc61628028292a22eef45fc2
[ "MIT" ]
3
2018-09-08T10:28:59.000Z
2019-09-08T00:11:33.000Z
src/image_caption_machine/world/place.py
brandontrabucco/ros-image-captioner
5fd18317f2ec600cdc61628028292a22eef45fc2
[ "MIT" ]
null
null
null
src/image_caption_machine/world/place.py
brandontrabucco/ros-image-captioner
5fd18317f2ec600cdc61628028292a22eef45fc2
[ "MIT" ]
2
2019-04-17T17:24:28.000Z
2019-06-10T18:16:44.000Z
"""Author: Brandon Trabucco. Utility class for loading and managing locations in the robot's map. """ import json import math import rospy from rt_msgs.msg import Odom from std_msgs.msg import Header from geometry_msgs.msg import Pose from geometry_msgs.msg import Point from geometry_msgs.msg import Quaternion from g...
24.650794
83
0.603348
8e69d02ee0597be4c48dd1fc7fd8cd5d2f553e35
2,238
py
Python
joplin_web/api/serializers.py
kuyper/joplin-web
7a13b75cbb55741ddfb58767af34c7ad164fec11
[ "BSD-3-Clause" ]
null
null
null
joplin_web/api/serializers.py
kuyper/joplin-web
7a13b75cbb55741ddfb58767af34c7ad164fec11
[ "BSD-3-Clause" ]
null
null
null
joplin_web/api/serializers.py
kuyper/joplin-web
7a13b75cbb55741ddfb58767af34c7ad164fec11
[ "BSD-3-Clause" ]
1
2019-12-13T15:18:58.000Z
2019-12-13T15:18:58.000Z
from rest_framework import serializers from joplin_web.models import Folders, Notes, Tags, NoteTags, Version
29.84
98
0.628239
8e6a3aa8541823f934e62f4e12fc8d0777921c86
435
py
Python
bs.py
marlinarnz/roster_creator
4a158254bbe68e46e604426a59fe26e68711281b
[ "MIT" ]
null
null
null
bs.py
marlinarnz/roster_creator
4a158254bbe68e46e604426a59fe26e68711281b
[ "MIT" ]
null
null
null
bs.py
marlinarnz/roster_creator
4a158254bbe68e46e604426a59fe26e68711281b
[ "MIT" ]
null
null
null
import datetime from app.constants import Constants as c from app.input import InputMonthly from app.output import OutputFactory from app.create import CreatorUtility, SolverMIP inp = InputMonthly() out = OutputFactory() solv = SolverMIP() creator = CreatorUtility(inp, out, solv) settings = {c.START: datetime.date(2...
25.588235
48
0.728736
8e6ab08948cc89750d63dd9c07947a6c58786c2f
5,859
py
Python
Plots/MapProjections/NCL_sat_3.py
learn2free/GeoCAT-examples
3ac152a767e78a362a8ebb6f677005f3de320ca6
[ "Apache-2.0" ]
1
2021-05-09T02:54:10.000Z
2021-05-09T02:54:10.000Z
Plots/MapProjections/NCL_sat_3.py
learn2free/GeoCAT-examples
3ac152a767e78a362a8ebb6f677005f3de320ca6
[ "Apache-2.0" ]
null
null
null
Plots/MapProjections/NCL_sat_3.py
learn2free/GeoCAT-examples
3ac152a767e78a362a8ebb6f677005f3de320ca6
[ "Apache-2.0" ]
null
null
null
""" NCL_sat_3.py ================ This script illustrates the following concepts: - zooming into an orthographic projection - plotting filled contour data on an orthographic map - plotting lat/lon tick marks on an orthographic map See following URLs to see the reproduced NCL plot & script: - Original ...
33.48
82
0.497013
8e6c93847574069cca7db77ebf31e5ff0a8a00ef
2,047
py
Python
bot/team.py
mcfunley/clippingsbot
2954d5b5aa854b57d062a98e2133d258f9fd86c7
[ "MIT" ]
1
2019-02-06T16:52:05.000Z
2019-02-06T16:52:05.000Z
bot/team.py
mcfunley/clippingsbot
2954d5b5aa854b57d062a98e2133d258f9fd86c7
[ "MIT" ]
null
null
null
bot/team.py
mcfunley/clippingsbot
2954d5b5aa854b57d062a98e2133d258f9fd86c7
[ "MIT" ]
null
null
null
from bot import db
28.041096
76
0.662921
8e6d24e204761284a5dd415da03add5895524b76
3,947
py
Python
meeshkan/nlp/spec_transformer.py
meeshkan/meeshkan-nlp
63ef1e0ef31fd9c2031c89e9fd6ca3fc46eef13e
[ "MIT" ]
1
2020-04-02T08:02:33.000Z
2020-04-02T08:02:33.000Z
meeshkan/nlp/spec_transformer.py
meeshkan/meeshkan-nlp
63ef1e0ef31fd9c2031c89e9fd6ca3fc46eef13e
[ "MIT" ]
9
2020-03-24T21:09:16.000Z
2020-07-24T09:58:11.000Z
meeshkan/nlp/spec_transformer.py
meeshkan/meeshkan-nlp
63ef1e0ef31fd9c2031c89e9fd6ca3fc46eef13e
[ "MIT" ]
null
null
null
import typing from operator import itemgetter from http_types import HttpExchange from jsonpath_rw import parse from openapi_typed_2 import OpenAPIObject, convert_from_openapi, convert_to_openapi from meeshkan.nlp.data_extractor import DataExtractor from meeshkan.nlp.entity_extractor import EntityExtractor from meesh...
40.27551
88
0.624272
8e6f58d75f26add4efd1a1ca913400a65b65e8ba
62
py
Python
app/main/errors.py
AJowett/chatty
a23fa594d53ac4d0851d7ce44d3fa81836e379d1
[ "MIT" ]
null
null
null
app/main/errors.py
AJowett/chatty
a23fa594d53ac4d0851d7ce44d3fa81836e379d1
[ "MIT" ]
null
null
null
app/main/errors.py
AJowett/chatty
a23fa594d53ac4d0851d7ce44d3fa81836e379d1
[ "MIT" ]
null
null
null
from flask import render_template, request from . import main
20.666667
42
0.822581
8e7144c085cff446c01b799bb109c5bbe09b0b02
3,216
py
Python
policies.py
IBM/LOA
9cd402c814f1d9c8b4de52ee18a3cb7ec2c6d07a
[ "MIT" ]
12
2021-12-15T09:03:36.000Z
2022-03-28T21:37:25.000Z
policies.py
IBM/LOA
9cd402c814f1d9c8b4de52ee18a3cb7ec2c6d07a
[ "MIT" ]
3
2022-01-04T18:03:01.000Z
2022-03-31T16:15:25.000Z
policies.py
IBM/LOA
9cd402c814f1d9c8b4de52ee18a3cb7ec2c6d07a
[ "MIT" ]
4
2022-01-04T17:44:23.000Z
2022-03-28T21:37:42.000Z
import os import sys import torch.nn as nn if True: DDLNN_HOME = os.environ['DDLNN_HOME'] meta_rule_home = '{}/src/meta_rule/'.format(DDLNN_HOME) src_rule_home = '{}/dd_lnn/'.format(DDLNN_HOME) sys.path.append(meta_rule_home) sys.path.append(src_rule_home) from lnn_operators \ impor...
30.056075
79
0.600435
8e714557c8e4d44f9b9d7485ed6921411a4740ad
359
py
Python
test/test_sns.py
TSNobleSoftware/awssert
a924d591523813b070d67bb4df4bd08913c12eac
[ "Apache-2.0" ]
19
2021-04-25T13:28:12.000Z
2021-06-16T18:30:38.000Z
test/test_sns.py
TSNobleSoftware/awssert
a924d591523813b070d67bb4df4bd08913c12eac
[ "Apache-2.0" ]
23
2021-04-06T17:00:04.000Z
2021-04-20T18:03:35.000Z
test/test_sns.py
TSNoble/awssert
a924d591523813b070d67bb4df4bd08913c12eac
[ "Apache-2.0" ]
1
2021-04-07T07:45:37.000Z
2021-04-07T07:45:37.000Z
import moto import boto3
27.615385
66
0.696379
8e71ce111f7ea9dd7c20cea0fda5b54b66380cdd
423
py
Python
stopwatch/__init__.py
hrishikeshrt/py_stopwatch
8a8dd2f35def2d6ca7f5b6d04f7d7428df9ef3a6
[ "MIT" ]
2
2022-03-04T11:37:44.000Z
2022-03-04T13:53:13.000Z
stopwatch/__init__.py
hrishikeshrt/py_stopwatch
8a8dd2f35def2d6ca7f5b6d04f7d7428df9ef3a6
[ "MIT" ]
null
null
null
stopwatch/__init__.py
hrishikeshrt/py_stopwatch
8a8dd2f35def2d6ca7f5b6d04f7d7428df9ef3a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Apr 12 21:22:49 2021 @author: Hrishikesh Terdalkar """ ############################################################################### __author__ = """Hrishikesh Terdalkar""" __email__ = 'hrishikeshrt@linuxmail.org' __version__ = '0.0.2' ###########...
22.263158
79
0.43026
8e723b8f4a32d0c8a03c62c48807cc3c480dfc71
16,604
py
Python
PsychoPy/testscript.py
esbenkc/Experimental-Methods-1
e2fa12df0f98043ea83f61f439525a5e78978340
[ "MIT" ]
null
null
null
PsychoPy/testscript.py
esbenkc/Experimental-Methods-1
e2fa12df0f98043ea83f61f439525a5e78978340
[ "MIT" ]
null
null
null
PsychoPy/testscript.py
esbenkc/Experimental-Methods-1
e2fa12df0f98043ea83f61f439525a5e78978340
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v3.1.3), on June 24, 2019, at 16:21 If you publish work using this script please cite the PsychoPy publications: Peirce, JW (2007) PsychoPy - Psychophysics software in Python. Journal of Neu...
41.51
201
0.668152
8e73639fd89c53082140ccfdb67b914c88ac5358
831
py
Python
t1.py
eferro/pydatastructsalgorithms
20b84afaa85ee1bba59fcc2bcbe6a2dd058da7bf
[ "MIT" ]
null
null
null
t1.py
eferro/pydatastructsalgorithms
20b84afaa85ee1bba59fcc2bcbe6a2dd058da7bf
[ "MIT" ]
null
null
null
t1.py
eferro/pydatastructsalgorithms
20b84afaa85ee1bba59fcc2bcbe6a2dd058da7bf
[ "MIT" ]
null
null
null
from pydatastructsalgorithms import tree_list as tree # r = tree.binary_tree(3) # tree.insert_left(r, 4) # tree.insert_left(r, 5) # tree.insert_right(r, 6) # tree.insert_right(r, 7) # l = tree.get_left_child(r) # tree.set_root_val(l, 9) # tree.insert_left(l, 11) # print(tree.get_right_child(tree.get_right_child(r))) ...
23.742857
70
0.713598
8e73968f0c29704beef26acb5999c4d5909b9d5e
309
py
Python
choptop-backend/sensor_controller.py
rossng/choptop
cf776d3fdcca92cda2ba56768bac04c37416ec0f
[ "MIT" ]
1
2018-04-10T20:10:39.000Z
2018-04-10T20:10:39.000Z
choptop-backend/sensor_controller.py
rossng/choptop
cf776d3fdcca92cda2ba56768bac04c37416ec0f
[ "MIT" ]
1
2020-04-29T23:14:11.000Z
2020-04-29T23:14:11.000Z
choptop-backend/sensor_controller.py
rossng/choptop
cf776d3fdcca92cda2ba56768bac04c37416ec0f
[ "MIT" ]
null
null
null
from flask import _app_ctx_stack, jsonify from choptop import app
23.769231
50
0.7411
8e745ff62ea6033b9af40da163096d4969eae110
3,856
py
Python
EmbLearning/config.py
zhangjindou/SoLE
2c20e39603ece315d571f8eb12674c6be8d378a4
[ "MIT" ]
2
2021-03-14T06:35:12.000Z
2022-01-03T08:39:30.000Z
EmbLearning/config.py
zhangjindou/SoLE
2c20e39603ece315d571f8eb12674c6be8d378a4
[ "MIT" ]
null
null
null
EmbLearning/config.py
zhangjindou/SoLE
2c20e39603ece315d571f8eb12674c6be8d378a4
[ "MIT" ]
1
2021-03-14T06:35:13.000Z
2021-03-14T06:35:13.000Z
# ----------------------- PATH ------------------------ ROOT_PATH = "." DATA_PATH = "%s/../Datasets" % ROOT_PATH FB15K_DATA_PATH = "%s/fb15k" % DATA_PATH DB100K_DATA_PATH = "%s/db100k" % DATA_PATH FB15K_SPARSE_DATA_PATH = "%s/fb15k-sparse" % DATA_PATH LOG_PATH = "%s/log_dir" % ROOT_PATH CHECKPOINT_PATH = "%s/checkpoi...
34.428571
76
0.673237
8e79f3580f36653daa75d2b29b580bf63af34199
932
py
Python
Krypton/WebApp/__init__.py
BolunHan/Krypton
8caf8e8efad6172ea0783c777e7df49a2ac512cb
[ "MIT" ]
null
null
null
Krypton/WebApp/__init__.py
BolunHan/Krypton
8caf8e8efad6172ea0783c777e7df49a2ac512cb
[ "MIT" ]
null
null
null
Krypton/WebApp/__init__.py
BolunHan/Krypton
8caf8e8efad6172ea0783c777e7df49a2ac512cb
[ "MIT" ]
null
null
null
from flask import Flask from werkzeug.middleware.dispatcher import DispatcherMiddleware from werkzeug.serving import run_simple from Base import Telemetric, CONFIG __all__ = ['start_app'] __version__ = "0.1.0" LOGGER = Telemetric.LOGGER.getChild('WebApp') APP = Flask(__name__) HOSTNAME = CONFIG.get('WebApp', 'HOST',...
23.3
83
0.683476
8e7b1a04d745dc6e204362c61a41930cc35f005b
682
py
Python
class3/testsvg.py
dnsbob/pynet_testz
8a4c778e8592efd796dc27417b7ae7ee4d9111cc
[ "Apache-2.0" ]
null
null
null
class3/testsvg.py
dnsbob/pynet_testz
8a4c778e8592efd796dc27417b7ae7ee4d9111cc
[ "Apache-2.0" ]
null
null
null
class3/testsvg.py
dnsbob/pynet_testz
8a4c778e8592efd796dc27417b7ae7ee4d9111cc
[ "Apache-2.0" ]
null
null
null
''' testsvg.py ''' import pygal fa4_in_packets = [24, 21, 40, 32, 21, 21, 49, 9, 21, 34, 24, 21] fa4_out_packets = [21, 24, 21, 40, 32, 21, 21, 49, 9, 21, 34, 24] # Create a Chart of type Line line_chart = pygal.Line() # Title line_chart.title = 'Input/Output Packets and Bytes' # X-axis labels (samples were every ...
29.652174
93
0.678886
8e7b99b3286e2086dc64ba2272a4da8ef40cb9cf
2,573
py
Python
CKC102_python_example.py
sagenew/scc-ckc-api-examples
fd86e435877cf68f35d01b8314a47a08b83eb391
[ "MIT" ]
null
null
null
CKC102_python_example.py
sagenew/scc-ckc-api-examples
fd86e435877cf68f35d01b8314a47a08b83eb391
[ "MIT" ]
null
null
null
CKC102_python_example.py
sagenew/scc-ckc-api-examples
fd86e435877cf68f35d01b8314a47a08b83eb391
[ "MIT" ]
null
null
null
import urllib.parse, urllib.request, json, ssl # Authentication and API Requests # LEARNING LAB 2 Cisco Kinetic for Cities # The Initial login steps are the same as Learning Lab 1. # You can skip ahead to 'LEARNING LAB 2 CODE BEGINS HERE' #Ignore invalid Certificates ssl._create_default_https_context = ssl._create_...
37.289855
128
0.724835
8e7d265dcc13b68469fdea2d8131380b85fbb3c6
4,780
py
Python
judge/machine.py
Means88/judge-backend
6e998ebb145911e66f8baec6568f007082835a61
[ "MIT" ]
null
null
null
judge/machine.py
Means88/judge-backend
6e998ebb145911e66f8baec6568f007082835a61
[ "MIT" ]
3
2020-06-05T19:21:25.000Z
2021-06-10T20:54:22.000Z
judge/machine.py
Means88/judge-backend
6e998ebb145911e66f8baec6568f007082835a61
[ "MIT" ]
null
null
null
import json import uuid import os import docker import time from celery.utils.log import get_task_logger from config import settings from .language import LANGUAGE from .status import ComputingStatus logger = get_task_logger(__name__)
32.965517
105
0.565063
8e7e2fd82b90a62a490603dc24f1988ca7e27fb8
31
py
Python
networth/__init__.py
Hedde/django-networth
496311e31f3b49202bda9c0b2997ee4508cc9477
[ "MIT" ]
null
null
null
networth/__init__.py
Hedde/django-networth
496311e31f3b49202bda9c0b2997ee4508cc9477
[ "MIT" ]
3
2020-02-12T00:02:35.000Z
2021-06-10T19:38:41.000Z
networth/__init__.py
Hedde/django-networth
496311e31f3b49202bda9c0b2997ee4508cc9477
[ "MIT" ]
null
null
null
__author__ = 'heddevanderheide'
31
31
0.83871
8e7edf92edac4cf5b0a634e3bcb329f30e6b8e66
2,160
py
Python
sources/classic/messaging_kombu/consumer.py
variasov/classic_messaging_kombu
c4191f3d1f788a39f50dc137eca1b67f3ee2af20
[ "MIT" ]
1
2021-11-12T08:19:53.000Z
2021-11-12T08:19:53.000Z
sources/classic/messaging_kombu/consumer.py
variasov/classic_messaging_kombu
c4191f3d1f788a39f50dc137eca1b67f3ee2af20
[ "MIT" ]
null
null
null
sources/classic/messaging_kombu/consumer.py
variasov/classic_messaging_kombu
c4191f3d1f788a39f50dc137eca1b67f3ee2af20
[ "MIT" ]
null
null
null
from functools import partial import logging from typing import Callable, Any, Iterable from collections import defaultdict from kombu import Connection from kombu.mixins import ConsumerMixin from classic.components import component from .handlers import MessageHandler, SimpleMessageHandler from .scheme import Broke...
29.589041
75
0.6375
8e7ff2193d4240f5f73671b8a5f9d6d5555d5513
2,004
py
Python
du4/du4.py
Honzaik/PocAlgDU
a3d32d1906298ba4bc1627640ecc04370ff4e49c
[ "Unlicense" ]
null
null
null
du4/du4.py
Honzaik/PocAlgDU
a3d32d1906298ba4bc1627640ecc04370ff4e49c
[ "Unlicense" ]
null
null
null
du4/du4.py
Honzaik/PocAlgDU
a3d32d1906298ba4bc1627640ecc04370ff4e49c
[ "Unlicense" ]
null
null
null
from cmath import exp, pi from math import log2 vektor = [1,1,2,2,5,2,4,7] #pocitani vektor n = len(vektor) myPrim = exp((2j*pi)/n) #primitivni odmocnina res = recursiveComplexFFT(n, myPrim, vektor) #rekurzivni fft print(res) myPrim = exp((2j*pi)/n) res2 = iterativeComplexFFT(n, myPrim, vektor) #iterativni fft print(r...
27.833333
65
0.510978
8e80ad9615affb9458b6c1ded08a8495b039b868
609
py
Python
lang/py/pylib/07/pickle/pickle_dump_to_file1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/07/pickle/pickle_dump_to_file1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/07/pickle/pickle_dump_to_file1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding:UTF-8 -*- # pickle try: import cPickle as pickle except: import pickle import sys if __name__ == '__main__': data = [] data.append(SimpleObject("pickle")) data.append(SimpleObject("cPickle")) data.append(SimpleObject("last")) filename = sys.argv[1] ...
20.3
66
0.596059
8e85f751c8a5501a2b056c1fde74847efffec00d
4,147
py
Python
tests/test_cv.py
goyoambrosio/RobotAtHome2
9ab31e5e11d8551b9f6934d90245221449dbbbf4
[ "MIT" ]
1
2022-03-08T19:00:37.000Z
2022-03-08T19:00:37.000Z
tests/test_cv.py
goyoambrosio/RobotAtHome2
9ab31e5e11d8551b9f6934d90245221449dbbbf4
[ "MIT" ]
null
null
null
tests/test_cv.py
goyoambrosio/RobotAtHome2
9ab31e5e11d8551b9f6934d90245221449dbbbf4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8; buffer-read-only: t -*- __author__ = "Gregorio Ambrosio" __contact__ = "gambrosio[at]uma.es" __copyright__ = "Copyright 2021, Gregorio Ambrosio" __date__ = "2021/02/22" __license__ = "MIT" import unittest import os import sys import pandas as pd import matplotlib.pyplot as p...
30.947761
78
0.564022
8e8737e7bdcd75430db3502155a2cb8e2ea47372
4,483
py
Python
third_party/DiffAugment_pytorch.py
SuperStar0907/lecam-gan
e502c9b182345ddd03d29edda56b76caa7d8fb41
[ "Apache-2.0" ]
135
2021-03-23T23:07:47.000Z
2022-03-30T03:08:42.000Z
third_party/DiffAugment_pytorch.py
SuperStar0907/lecam-gan
e502c9b182345ddd03d29edda56b76caa7d8fb41
[ "Apache-2.0" ]
12
2021-04-06T16:57:14.000Z
2021-12-31T07:06:05.000Z
third_party/DiffAugment_pytorch.py
SuperStar0907/lecam-gan
e502c9b182345ddd03d29edda56b76caa7d8fb41
[ "Apache-2.0" ]
13
2021-03-24T14:37:48.000Z
2022-03-06T13:24:52.000Z
# Differentiable Augmentation for Data-Efficient GAN Training # Shengyu Zhao, Zhijian Liu, Ji Lin, Jun-Yan Zhu, and Song Han # https://arxiv.org/pdf/2006.10738 import torch import torch.nn.functional as F from torch.distributions.dirichlet import _Dirichlet AUGMENT_FNS = { 'color': [rand_brightness, rand_sa...
39.672566
110
0.586438
8e8a1596a6b3ed1679875e09d7a25bdcda290e69
3,000
py
Python
advent_of_code_2021/day4/giant_squid.py
mortendaehli/advent-of-code-2021
b36959eeff461d1d9eb8bf32c1efc767f6f00b23
[ "MIT" ]
null
null
null
advent_of_code_2021/day4/giant_squid.py
mortendaehli/advent-of-code-2021
b36959eeff461d1d9eb8bf32c1efc767f6f00b23
[ "MIT" ]
null
null
null
advent_of_code_2021/day4/giant_squid.py
mortendaehli/advent-of-code-2021
b36959eeff461d1d9eb8bf32c1efc767f6f00b23
[ "MIT" ]
null
null
null
import re from dataclasses import dataclass from typing import List, Optional def read_boards() -> List[PlayBoard]: """ Reading each board defined by a new line then 5 lists of 5 ints. Given the data format, this divides equally by 6 for possible performant mapping. """ with open("data.txt", "r"...
30.30303
118
0.640333
8e8ac78399e840a9f4584fc74b5d093c38c0fc44
265
py
Python
lastrender/settings.py
jc855/lastgraph
a2917e73f0e0b9409e897e4a83944e72161a33ce
[ "BSD-3-Clause" ]
77
2015-01-03T20:26:28.000Z
2021-07-07T15:08:25.000Z
lastrender/settings.py
jc855/lastgraph
a2917e73f0e0b9409e897e4a83944e72161a33ce
[ "BSD-3-Clause" ]
1
2021-06-10T23:42:31.000Z
2021-06-10T23:42:31.000Z
lastrender/settings.py
jc855/lastgraph
a2917e73f0e0b9409e897e4a83944e72161a33ce
[ "BSD-3-Clause" ]
20
2015-01-17T16:33:41.000Z
2021-12-23T03:40:36.000Z
import os static_path = os.path.join(os.path.dirname(__file__), "..", "static") apiurl = "http://localhost:8000/api/%s" local_store = os.path.join(static_path, "graphs") local_store_url = "http://localhost:8000/static/graphs" nodename = "lg" nodepwd = "lg@home"
24.090909
69
0.709434
8e8bc66edbc27feb19c1a24e01f7065d5f4aedb0
4,646
py
Python
mesh_vertex_color/np_ray_triangle_intersection.py
naysok/Mesh_Vertex_Color
c6fafe480957305176ac1adc14c093d9278baa94
[ "MIT" ]
1
2020-09-17T16:41:34.000Z
2020-09-17T16:41:34.000Z
mesh_vertex_color/np_ray_triangle_intersection.py
naysok/Mesh_Vertex_Color
c6fafe480957305176ac1adc14c093d9278baa94
[ "MIT" ]
null
null
null
mesh_vertex_color/np_ray_triangle_intersection.py
naysok/Mesh_Vertex_Color
c6fafe480957305176ac1adc14c093d9278baa94
[ "MIT" ]
null
null
null
import sys import numpy as np ############################################################# ### ### ### Module for Python3 ### ### * Using Numpy ( + Cupy ? ) ### ### ...
30.168831
88
0.44619
8e8d954a7e320b872b94573d4e171b827ee4d202
1,099
py
Python
src/utils/load_or_make.py
jlehnersd/metis_project2
0bde762c43c4cf9aa5c6672b894e704803616aa3
[ "MIT" ]
16
2019-04-08T22:09:51.000Z
2021-08-02T18:18:41.000Z
src/utils/load_or_make.py
jlehnersd/metis_project2
0bde762c43c4cf9aa5c6672b894e704803616aa3
[ "MIT" ]
1
2019-11-19T06:27:37.000Z
2019-12-26T20:56:03.000Z
src/utils/load_or_make.py
floraxinru/metisproject04
80ee97eedbf675d6f5064eb92fd7166b56bb81e6
[ "MIT" ]
8
2019-04-08T23:01:39.000Z
2021-08-02T18:18:43.000Z
import os, pickle import functools def load_or_make(creator): """ Loads data that is pickled at filepath if filepath exists; otherwise, calls creator(*args, **kwargs) to create the data and pickle it at filepath. Returns the data in either case. Inputs: - filepath: path to where data...
28.179487
67
0.606915
8e8e40f2f08d10e053b3679ecaea9d2e6c4d91a1
183
py
Python
djangoreactAnimalRescue/animalresque/animals/urls.py
LegolasVzla/django
bbecd7175fb4833731041f88c0ba3327f8a898f0
[ "MIT" ]
null
null
null
djangoreactAnimalRescue/animalresque/animals/urls.py
LegolasVzla/django
bbecd7175fb4833731041f88c0ba3327f8a898f0
[ "MIT" ]
9
2019-12-04T22:50:51.000Z
2022-02-10T10:25:40.000Z
djangoreactAnimalRescue/animalresque/animals/urls.py
LegolasVzla/django
bbecd7175fb4833731041f88c0ba3327f8a898f0
[ "MIT" ]
null
null
null
from rest_framework import routers from .api import AnimalViewSet router = routers.DefaultRouter() router.register('api/animals', AnimalViewSet, 'animals') urlpatterns = router.urls
26.142857
56
0.808743
8e8f2cd4383b58674dc6f3bff361444a5618a257
13,075
py
Python
ir.py
safx/nu-scraper
6b18d9f4937bd2a1cd5b89b141868e1ae60a5a4e
[ "MIT" ]
3
2021-02-05T08:30:40.000Z
2021-02-05T11:33:16.000Z
ir.py
safx/nu-scraper
6b18d9f4937bd2a1cd5b89b141868e1ae60a5a4e
[ "MIT" ]
null
null
null
ir.py
safx/nu-scraper
6b18d9f4937bd2a1cd5b89b141868e1ae60a5a4e
[ "MIT" ]
null
null
null
from os import replace from typing import List, Dict, Any, Callable import os import re import json import functools ST_UNKNOWN = "*" ST_BOOL = "bool" ST_INT = "integer" ST_STR = "string" ST_FLOAT = "float" ST_URL = "url" ST_DATETIME = "datetime" REGEXP_URL = re.compile('^https?://.+$') REGEX...
36.218837
144
0.578356
8e8fa3cd904b0121303ce6cd660e368b0933349e
393
py
Python
setup.py
RonenHoffer/grebot
a8ca01baba72ff13ad68706626c5fd51630bbdf1
[ "MIT" ]
null
null
null
setup.py
RonenHoffer/grebot
a8ca01baba72ff13ad68706626c5fd51630bbdf1
[ "MIT" ]
null
null
null
setup.py
RonenHoffer/grebot
a8ca01baba72ff13ad68706626c5fd51630bbdf1
[ "MIT" ]
1
2016-01-27T13:37:09.000Z
2016-01-27T13:37:09.000Z
from setuptools import setup from platform import system SYSTEM = system() VERSION = '1.0.2' if SYSTEM == 'Windows': scripts = ['grebot/grebot.bat'] else: scripts = ['grebot/grebot.sh'] setup( name='grebot', version=VERSION, packages=['grebot'], license='MIT', long_description=open('READM...
18.714286
47
0.653944
8e90005a1d37aeec86aa49ac6b0e7b616e3410f4
3,774
py
Python
src/arcos_gui/magic_guis.py
bgraedel/arcos-gui
aaeeba3aae1bc9a23c635ebabf6309f878ad8a39
[ "BSD-3-Clause" ]
2
2022-02-22T14:24:38.000Z
2022-02-26T13:33:25.000Z
src/arcos_gui/magic_guis.py
bgraedel/arcos-gui
aaeeba3aae1bc9a23c635ebabf6309f878ad8a39
[ "BSD-3-Clause" ]
null
null
null
src/arcos_gui/magic_guis.py
bgraedel/arcos-gui
aaeeba3aae1bc9a23c635ebabf6309f878ad8a39
[ "BSD-3-Clause" ]
null
null
null
import operator from magicgui import magicgui OPERATOR_DICTIONARY = { "Divide": (operator.truediv, "Measurement_Ratio"), "Multiply": (operator.mul, "Measurement_Product"), "Add": (operator.add, "Measurement_Sum"), "Subtract": (operator.sub, "Measurement_Difference"), } measurement_math_options = list...
29.952381
144
0.621092
8e90bb685c3b1c5f6854891a144a51a32c3e3543
3,717
py
Python
pylibrets/models.py
fernherrera/pylibrets
ee7ae95a9a7c8809c4bc6d269c52518d672cbf82
[ "MIT" ]
5
2016-08-02T16:01:31.000Z
2017-09-15T21:44:56.000Z
pylibrets/models.py
fernherrera/pylibrets
ee7ae95a9a7c8809c4bc6d269c52518d672cbf82
[ "MIT" ]
null
null
null
pylibrets/models.py
fernherrera/pylibrets
ee7ae95a9a7c8809c4bc6d269c52518d672cbf82
[ "MIT" ]
1
2017-07-29T18:42:09.000Z
2017-07-29T18:42:09.000Z
""" Model classes - contains the primary objects that power pylibRETS. """
25.634483
66
0.750605
8e91dfb90c4fe4bfe8c34531aaadba87573629d2
980
py
Python
setup.py
michaelremington2/uumarrty
4c48b496e09429eb6777f9dececa7c7be203cc8c
[ "BSD-3-Clause" ]
null
null
null
setup.py
michaelremington2/uumarrty
4c48b496e09429eb6777f9dececa7c7be203cc8c
[ "BSD-3-Clause" ]
null
null
null
setup.py
michaelremington2/uumarrty
4c48b496e09429eb6777f9dececa7c7be203cc8c
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='uumarrty', version='0.0.1', url='https://github.com/michaelremington2/uumarrty', author='Michael Remington and Jeet Sukumaran', ...
28.823529
68
0.656122
8e92b7bf4f6465a749d963319c6412e27abe7160
111
py
Python
src/ToolChainSCDG/procedures/linux/custom_package/gen_simproc4v.py
AnonymousSEMA/SEMA-ToolChain
05d6a7e43e10d4b1f6c5dfb70fbabeab3d4daf82
[ "BSD-2-Clause" ]
null
null
null
src/ToolChainSCDG/procedures/linux/custom_package/gen_simproc4v.py
AnonymousSEMA/SEMA-ToolChain
05d6a7e43e10d4b1f6c5dfb70fbabeab3d4daf82
[ "BSD-2-Clause" ]
null
null
null
src/ToolChainSCDG/procedures/linux/custom_package/gen_simproc4v.py
AnonymousSEMA/SEMA-ToolChain
05d6a7e43e10d4b1f6c5dfb70fbabeab3d4daf82
[ "BSD-2-Clause" ]
null
null
null
import angr
15.857143
41
0.675676
8e92d4b4780c0502b64aba9cbe5abb7f02ad327d
10,370
py
Python
_pylab_colorslider.py
streitho/spinmob
5dd75b54de1b158e6f1308612336638fde520cbd
[ "Unlicense" ]
null
null
null
_pylab_colorslider.py
streitho/spinmob
5dd75b54de1b158e6f1308612336638fde520cbd
[ "Unlicense" ]
null
null
null
_pylab_colorslider.py
streitho/spinmob
5dd75b54de1b158e6f1308612336638fde520cbd
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python #Boa:App:BoaApp import wx import matplotlib as _matplotlib import pylab as _pylab import _pylab_colorslider_frame as _pcf; reload(_pcf) try: _prefs except: _prefs = None modules ={u'pylab_colorslider_frame': [1, 'Main frame of Application', ...
34.451827
105
0.533848
8e948cdbd864ca7d68940aa639d8604501f00bc5
683
py
Python
RackPi/Pages/Reboot.py
DarkIrata/rackpi
e588f9b42ae55c8a763ce9e7a953e29f25e696b3
[ "MIT" ]
null
null
null
RackPi/Pages/Reboot.py
DarkIrata/rackpi
e588f9b42ae55c8a763ce9e7a953e29f25e696b3
[ "MIT" ]
null
null
null
RackPi/Pages/Reboot.py
DarkIrata/rackpi
e588f9b42ae55c8a763ce9e7a953e29f25e696b3
[ "MIT" ]
null
null
null
from Data.Drawer import Drawer from Data.Helper import * from Pages.PageBase import PageBase
31.045455
65
0.610542
8e98c19a9f41dbb82f2ec64a837df13e0499732e
380
py
Python
ex018.py
Gustavo-Dev-Web/python
88c9a51cba5290d1dcfce8ea9481ed4749503f68
[ "MIT" ]
null
null
null
ex018.py
Gustavo-Dev-Web/python
88c9a51cba5290d1dcfce8ea9481ed4749503f68
[ "MIT" ]
null
null
null
ex018.py
Gustavo-Dev-Web/python
88c9a51cba5290d1dcfce8ea9481ed4749503f68
[ "MIT" ]
null
null
null
from math import radians, sin, cos, tan angulo = float(input('Digite o ngulo que voc deseja: ')) seno = sin(radians(angulo)) cosseno = cos(radians(angulo)) tangente = tan(radians(angulo)) print(f'O ngulo de {angulo} tem o SENO de {seno :.2f}!') print(f'O ngulo de {angulo} tem o COSSENO de {cosseno :.2f}!') print(f'O ...
34.545455
65
0.694737
8e995a2b9016602f49ded74c3b7213f7af39a054
2,315
py
Python
Dash/Plotly_to_Dash.py
jorge-garciadiego/Visualization-Dash
68fe99ff5c3ecc99eea3845f38849669449d89d2
[ "MIT" ]
null
null
null
Dash/Plotly_to_Dash.py
jorge-garciadiego/Visualization-Dash
68fe99ff5c3ecc99eea3845f38849669449d89d2
[ "MIT" ]
null
null
null
Dash/Plotly_to_Dash.py
jorge-garciadiego/Visualization-Dash
68fe99ff5c3ecc99eea3845f38849669449d89d2
[ "MIT" ]
null
null
null
import dash import dash_core_components as dcc import dash_html_components as html import plotly.graph_objs as go import numpy as np app = dash.Dash() # Creating Data np.random.seed(42) random_x = np.random.randint(1, 101, 100) random_y = np.random.randint(1, 101, 100) # everything that we are going to be inserting ...
45.392157
90
0.310151
8e9b97604a5cb5368bd271887ae7d926ada9d2f3
685
py
Python
LeetCode/python/061-090/086-partition-list/solution.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
LeetCode/python/061-090/086-partition-list/solution.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
LeetCode/python/061-090/086-partition-list/solution.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
__author__ = 'yinjun' # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None
18.513514
41
0.464234
8e9c2da8ab435f1bdffb4bc676ac1fdf47cb0931
1,134
py
Python
aprendi com guanabara/Ex 039.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
aprendi com guanabara/Ex 039.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
aprendi com guanabara/Ex 039.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
""" Faa um programa que leia o ano de nascimento de um jovem e informe, de acordo com sua idade se ele ainda vai se alistar se a hora de se alistar se j passou o tempo de alistar o programa tambm deve falar o tempo que falta ou que passou """ import datetime import time ano_nasc = int(input('Ano de Nascimento: ')) a...
35.4375
92
0.694004
8e9c71c55ad72a43c98fbcef2fffb6bb801d664d
3,040
py
Python
standalone_tf/WholeImageDescriptor.py
galsh17/cartwheel_train
a50abe18cfe8c1f0f24267c3efa8537ecf211e72
[ "MIT" ]
32
2018-09-04T08:51:08.000Z
2022-02-22T02:04:38.000Z
standalone_tf/WholeImageDescriptor.py
galsh17/cartwheel_train
a50abe18cfe8c1f0f24267c3efa8537ecf211e72
[ "MIT" ]
5
2019-05-27T07:54:52.000Z
2022-01-11T10:14:25.000Z
standalone_tf/WholeImageDescriptor.py
galsh17/cartwheel_train
a50abe18cfe8c1f0f24267c3efa8537ecf211e72
[ "MIT" ]
14
2018-06-22T15:29:39.000Z
2021-09-28T12:58:37.000Z
""" A class interfce to netvlad based whole image descriptor. To use the pre-trained network in your application use this code and unit-test Author : Manohar Kuse <mpkuse@connect.ust.hk> Created : 20th Aug, 2018 """ import cv2 import numpy as np import os import time import code import argparse impor...
30.707071
113
0.659868
8e9d1f88f2018b598e87d9922395a3eec689c6a1
2,389
py
Python
jasonhelper/__init__.py
jbkoh/jason_python_helper
6a9d8e31d070b5adb827ba96887db24cb431b94e
[ "MIT" ]
null
null
null
jasonhelper/__init__.py
jbkoh/jason_python_helper
6a9d8e31d070b5adb827ba96887db24cb431b94e
[ "MIT" ]
1
2017-10-12T23:01:32.000Z
2017-11-21T06:44:07.000Z
jasonhelper/__init__.py
jbkoh/jason_python_helper
6a9d8e31d070b5adb827ba96887db24cb431b94e
[ "MIT" ]
1
2018-09-19T15:12:57.000Z
2018-09-19T15:12:57.000Z
import argparse import os import time ## Argparser argparser = argparse.ArgumentParser() argparser.register('type','bool',str2bool) argparser.register('type','slist', str2slist) argparser.register('type','ilist', str2ilist) # Adopted from: http://stackoverflow.com/a/8412405 def check_and_create_dir(dir_path): ...
25.688172
69
0.601925
8e9d9a8e7ebad14756d858c92a15d00b8f0de94b
2,983
py
Python
data_evaluation.py
portaloffreedom/reinforcement-learning-in-rust
470a8b6486a2c83dccbab9a0ef4bfd020e975d56
[ "MIT" ]
null
null
null
data_evaluation.py
portaloffreedom/reinforcement-learning-in-rust
470a8b6486a2c83dccbab9a0ef4bfd020e975d56
[ "MIT" ]
null
null
null
data_evaluation.py
portaloffreedom/reinforcement-learning-in-rust
470a8b6486a2c83dccbab9a0ef4bfd020e975d56
[ "MIT" ]
null
null
null
# Download data, unzip, etc. from matplotlib import pyplot as plt import pandas as pd import numpy as np import scipy.stats as st # Set some parameters to apply to all plots. These can be overridden # in each plot if desired import matplotlib # Plot size to 14" x 7" matplotlib.rc('figure', figsize = (14, 7)) # Font...
33.516854
111
0.638284
8e9e6af2d0e1e8b1eb883ee00252a7b5e6939c84
3,953
py
Python
speedread_ner.py
gsi-upm/nerdy
62d2a6df730e30bc1c05c91557fcfd2236b742b8
[ "Apache-2.0" ]
2
2017-10-26T19:40:51.000Z
2018-03-07T12:10:49.000Z
speedread_ner.py
gsi-upm/nerdy
62d2a6df730e30bc1c05c91557fcfd2236b742b8
[ "Apache-2.0" ]
null
null
null
speedread_ner.py
gsi-upm/nerdy
62d2a6df730e30bc1c05c91557fcfd2236b742b8
[ "Apache-2.0" ]
null
null
null
__author__ = 'croman' from pipeline import pipe from lxml import etree import rdflib ner("Mena Collection.ttl", "nif") """__author__ = 'croman' from pipeline import pipe from lxml import etree import rdflib def ner(datasetfile, format): tweets = "" tweetids = [] if format == 'xml': dataset =...
27.838028
77
0.517329
8ea04f344a5f50abc39827025757b32b1b9d55c5
2,313
py
Python
vfoot/gen/__init__.py
filipecn/vfoot
3059f5bb471b6bdf92a18a7cdb6b33a2c8852046
[ "MIT" ]
null
null
null
vfoot/gen/__init__.py
filipecn/vfoot
3059f5bb471b6bdf92a18a7cdb6b33a2c8852046
[ "MIT" ]
null
null
null
vfoot/gen/__init__.py
filipecn/vfoot
3059f5bb471b6bdf92a18a7cdb6b33a2c8852046
[ "MIT" ]
null
null
null
import pandas as pd import random def generate_players(n_teams=128, n_countries=3, csv_file="jogadores.csv"): """ gerar os jogadores 0 - sarrafeiro 1 - caceteiro 2 - cordeirinho 3 - cavalheiro 4 - fair play 0 - goleiro 3 1 - defensor 7 ...
32.125
107
0.5361
8ea223055e4d3fcfd6d5415328c4b3e36324649c
3,988
py
Python
roles/openshift_health_checker/library/rpm_version.py
KoteikinyDrova/openshift-ansible
3db2bb10c0ad5e7ed702bfccdec03562533e8539
[ "Apache-2.0" ]
1
2019-03-13T10:14:35.000Z
2019-03-13T10:14:35.000Z
roles/openshift_health_checker/library/rpm_version.py
KoteikinyDrova/openshift-ansible
3db2bb10c0ad5e7ed702bfccdec03562533e8539
[ "Apache-2.0" ]
1
2021-09-23T23:36:29.000Z
2021-09-23T23:36:29.000Z
roles/openshift_health_checker/library/rpm_version.py
KoteikinyDrova/openshift-ansible
3db2bb10c0ad5e7ed702bfccdec03562533e8539
[ "Apache-2.0" ]
4
2018-10-27T00:29:24.000Z
2022-01-07T07:39:51.000Z
#!/usr/bin/python """ Ansible module for rpm-based systems determining existing package version information in a host. """ from ansible.module_utils.basic import AnsibleModule IMPORT_EXCEPTION = None try: import rpm # pylint: disable=import-error except ImportError as err: IMPORT_EXCEPTION = err # in tox te...
31.15625
116
0.621364
8ea41ac7ddbb096f8c509205102ac3523839b975
3,335
py
Python
cameo/__init__.py
jlerman44/cameo
6aa4b9db7ebcc3e52547821e64b13675cf73f73a
[ "Apache-2.0" ]
null
null
null
cameo/__init__.py
jlerman44/cameo
6aa4b9db7ebcc3e52547821e64b13675cf73f73a
[ "Apache-2.0" ]
null
null
null
cameo/__init__.py
jlerman44/cameo
6aa4b9db7ebcc3e52547821e64b13675cf73f73a
[ "Apache-2.0" ]
1
2018-09-27T22:41:58.000Z
2018-09-27T22:41:58.000Z
# Copyright 2014 Novo Nordisk Foundation Center for Biosustainability, DTU. # # 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 requi...
31.761905
119
0.755022
8ea5524aaaf6020d2fb120959b8bb005d31ffdc3
12,967
py
Python
spider_proxy/app/managers/proxy_fetch.py
seniortesting/python-spider
0b70817373e2e22267ddf3b80b9b7eb15931e41e
[ "MIT" ]
null
null
null
spider_proxy/app/managers/proxy_fetch.py
seniortesting/python-spider
0b70817373e2e22267ddf3b80b9b7eb15931e41e
[ "MIT" ]
null
null
null
spider_proxy/app/managers/proxy_fetch.py
seniortesting/python-spider
0b70817373e2e22267ddf3b80b9b7eb15931e41e
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import logging import re from time import sleep import requests import urllib3 from app.utils.spider_utils import getHtmlTree, verifyProxyFormat from app.utils.web_request import WebRequest urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) logging.basicConfig(level=logging.IN...
36.94302
134
0.488162
8ea5e29ef8c1696d1f4448a1275564f4cc6083ea
786
py
Python
tools/leetcode.023.Merge k Sorted Lists/leetcode.023.Merge k Sorted Lists.submission5.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
tools/leetcode.023.Merge k Sorted Lists/leetcode.023.Merge k Sorted Lists.submission5.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
tools/leetcode.023.Merge k Sorted Lists/leetcode.023.Merge k Sorted Lists.submission5.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param {ListNode[]} lists # @return {ListNode} def mergeKLists(self, lists): lists = [i for i in lists if i] if not lists: return None ...
786
786
0.479644
8ea66006c86aaaba9532a364fe87531b05105008
1,384
py
Python
Mundo 3/File 105.py
PedroHenriqueSimoes/Exercicios-Python
702a819d508dd7878b88fb676559d899237ac761
[ "MIT" ]
1
2020-04-30T21:32:01.000Z
2020-04-30T21:32:01.000Z
Mundo 3/File 105.py
PedroHenriqueSimoes/Exercicios-Python
702a819d508dd7878b88fb676559d899237ac761
[ "MIT" ]
1
2021-10-05T02:00:04.000Z
2021-10-05T02:00:04.000Z
Mundo 3/File 105.py
PedroHenriqueSimoes/Exercicios-Python
702a819d508dd7878b88fb676559d899237ac761
[ "MIT" ]
null
null
null
def notas(*n, show=False): """ -> Funo que l varias notas e retorna um dicionario com dados :param n: L varias notas (numero indefinido) :param show: Mostra a situao do aluno (opc) :return: Retorna um dicionario """ dados = dict() dados['total'] = len(n) dados['maior'] = max(n) ...
28.244898
77
0.533237
8ea6772e802a782c50f83515c19392b32fbb9402
779
py
Python
Backend/ChatBot/question detection.py
paucutrina/RareHacks_Chatbot
c7ecfef693bf2f477d090629d6eecf7b0bf57872
[ "MIT" ]
null
null
null
Backend/ChatBot/question detection.py
paucutrina/RareHacks_Chatbot
c7ecfef693bf2f477d090629d6eecf7b0bf57872
[ "MIT" ]
null
null
null
Backend/ChatBot/question detection.py
paucutrina/RareHacks_Chatbot
c7ecfef693bf2f477d090629d6eecf7b0bf57872
[ "MIT" ]
null
null
null
from nltk import sent_tokenize, word_tokenize, pos_tag, ne_chunk sentence = 'Usually I go to the hospital when I am afraid. When I sould go there?' sentences_splitted = sent_tokenize(sentence) sentence_words_splitted = [word_tokenize(s) for s in sentences_splitted] question = [ne_chunk(pos_tag(s)) for s in sentences_...
51.933333
172
0.69448
8ea86f5c1066313076da8b4f11d85883b0f7d98c
16,079
py
Python
tp4/src/back-end/translator.py
ha2398/compiladores1-tps
a70de7cbb6a76301258f1e0f88141a57c6a15d5e
[ "MIT" ]
null
null
null
tp4/src/back-end/translator.py
ha2398/compiladores1-tps
a70de7cbb6a76301258f1e0f88141a57c6a15d5e
[ "MIT" ]
null
null
null
tp4/src/back-end/translator.py
ha2398/compiladores1-tps
a70de7cbb6a76301258f1e0f88141a57c6a15d5e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' translator.py: 3 address code -> TAM translator. @author: Hugo Araujo de Sousa [2013007463] @email: hugosousa@dcc.ufmg.br @DCC053 - Compiladores I - UFMG ''' # TODO: Need to handle floating point literals. # TAM does not provide arithmetic routines for floating point!? import argparse as...
26.57686
80
0.602525
8eab3a16c60da45c7e9e2c9740482835876404d6
2,501
py
Python
CaffeNet/caffenet_settings.py
MasazI/DeepLearning_TensorFlow
6a0865850b32eb4af52bc41984e0cbaa2a19c48a
[ "MIT" ]
17
2015-12-20T14:10:35.000Z
2022-02-28T13:06:33.000Z
CaffeNet/caffenet_settings.py
MasazI/DeepLearning_TensorFlow
6a0865850b32eb4af52bc41984e0cbaa2a19c48a
[ "MIT" ]
1
2019-02-20T12:37:56.000Z
2019-02-20T12:37:56.000Z
CaffeNet/caffenet_settings.py
MasazI/DeepLearning_TensorFlow
6a0865850b32eb4af52bc41984e0cbaa2a19c48a
[ "MIT" ]
8
2015-11-14T04:32:10.000Z
2020-12-26T01:12:18.000Z
# encoding: utf-8 import tensorflow as tf flags = tf.app.flags FLAGS = flags.FLAGS # train settings flags.DEFINE_integer('batch_size', 40, 'the number of images in a batch.') flags.DEFINE_integer('training_data_type', 1, '0: directly feed, 1: tfrecords') #flags.DEFINE_string('train_tfrecords', 'data/train_caltech_ra...
59.547619
115
0.773291
8eab8b064c9e76464450980bd8d5e48a2c98df8b
2,529
py
Python
mnist_train.py
danielgolf/AI-playground
d1148da7a3ca42b788a7ba268d3367bca0803cb9
[ "MIT" ]
null
null
null
mnist_train.py
danielgolf/AI-playground
d1148da7a3ca42b788a7ba268d3367bca0803cb9
[ "MIT" ]
null
null
null
mnist_train.py
danielgolf/AI-playground
d1148da7a3ca42b788a7ba268d3367bca0803cb9
[ "MIT" ]
null
null
null
import numpy as np import keras import keras.layers as layers from get_mnist import get_mnist_preproc ### --- hyperparameterrs --- ### epochs = 48 batch_size = 64 num_classes = 10 reg = 3e-3 ### --- hyperparams end --- ### ### --- setup data --- ### traini, trainl, vali, vall, testi, testl = get_mnist_preproc() ...
19.453846
62
0.627521
8eadce45d598833e81a4fe85012aa8463fefa8ba
539
py
Python
main.py
mir45ol/cyber-controller
b12399731d2cb66ae1209e0bfbde9fcc88ed3558
[ "MIT" ]
1
2022-01-30T01:17:05.000Z
2022-01-30T01:17:05.000Z
main.py
mir45ol/cyber-controller
b12399731d2cb66ae1209e0bfbde9fcc88ed3558
[ "MIT" ]
null
null
null
main.py
mir45ol/cyber-controller
b12399731d2cb66ae1209e0bfbde9fcc88ed3558
[ "MIT" ]
1
2022-02-05T20:17:01.000Z
2022-02-05T20:17:01.000Z
import config import controller import hwrtc import network import web_server import wlan main()
20.730769
58
0.71243
8eaeba892f2de5df103a615e0e9a36e8ab22471a
25,480
py
Python
c2cgeoportal/__init__.py
kalbermattenm/c2cgeoportal
4ab41ec7130536bc86f4c05ca330e9ce3dfb93c1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cgeoportal/__init__.py
kalbermattenm/c2cgeoportal
4ab41ec7130536bc86f4c05ca330e9ce3dfb93c1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cgeoportal/__init__.py
kalbermattenm/c2cgeoportal
4ab41ec7130536bc86f4c05ca330e9ce3dfb93c1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2011-2016, Camptocamp SA # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this #...
35.586592
98
0.672567
8eaf5d71da4aea86f6032fa830b38828a3ca197e
1,102
py
Python
app/cruds/seeds.py
woods0918/graphql_server_sample
b19e57fedb8cdb41ee001c8e80ef4baeebc8fe99
[ "MIT" ]
null
null
null
app/cruds/seeds.py
woods0918/graphql_server_sample
b19e57fedb8cdb41ee001c8e80ef4baeebc8fe99
[ "MIT" ]
null
null
null
app/cruds/seeds.py
woods0918/graphql_server_sample
b19e57fedb8cdb41ee001c8e80ef4baeebc8fe99
[ "MIT" ]
null
null
null
import sys import pathlib from datetime import datetime current_dir = pathlib.Path(__file__).resolve().parent sys.path.append( str(current_dir) + '/../../' ) from app.database import BASE, ENGINE, session_scope from app.models.todos import Todo from app.models.users import User if __name__ == "__main__": generat...
29.783784
54
0.57804
8eaf99475c5184ec13f9c69b29833abb9f843b06
3,217
py
Python
tests/test_rogue_web.py
bfontaine/rogue_scores
894f118de81e91246a114a0bc3ed74de2edd3cc8
[ "MIT" ]
null
null
null
tests/test_rogue_web.py
bfontaine/rogue_scores
894f118de81e91246a114a0bc3ed74de2edd3cc8
[ "MIT" ]
5
2019-11-04T09:00:39.000Z
2021-03-30T06:44:26.000Z
tests/test_rogue_web.py
bfontaine/rogue_scores
894f118de81e91246a114a0bc3ed74de2edd3cc8
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import os import os.path import json import platform import tempfile import logging if platform.python_version() < '2.7': import unittest2 as unittest else: import unittest from rogue_scores.web import app from rogue_scores.web.app import index, scores_upload, scores_json app.app.log...
30.638095
78
0.5788
8eb1436051dd71a0f14169c0a3e3c5db3f38a647
95
py
Python
Bio-StrongHold/src/Partial_Permutations.py
crf1111/Bio-Informatics-Learning
2ccc02d7a23584c12aee44c5620160cdcaf70bd4
[ "MIT" ]
1
2018-10-10T19:03:52.000Z
2018-10-10T19:03:52.000Z
Bio-StrongHold/src/Partial_Permutations.py
crf1111/Bio-Informatics-Learning
2ccc02d7a23584c12aee44c5620160cdcaf70bd4
[ "MIT" ]
null
null
null
Bio-StrongHold/src/Partial_Permutations.py
crf1111/Bio-Informatics-Learning
2ccc02d7a23584c12aee44c5620160cdcaf70bd4
[ "MIT" ]
null
null
null
from math import factorial n = 86 k = 8 res = factorial(n)/factorial(n-k)%1e6 print int(res)
11.875
37
0.694737
8eb1ed9124daee9f997f42d027fa2279f05ec66b
3,162
py
Python
OwnVsRent/Investment.py
hermantai/beta-programs
06dadc61845a55f15dba76f1438b6795d26d6820
[ "Apache-2.0" ]
null
null
null
OwnVsRent/Investment.py
hermantai/beta-programs
06dadc61845a55f15dba76f1438b6795d26d6820
[ "Apache-2.0" ]
null
null
null
OwnVsRent/Investment.py
hermantai/beta-programs
06dadc61845a55f15dba76f1438b6795d26d6820
[ "Apache-2.0" ]
null
null
null
""" Investment created by Herman Tai 3/20/2008 """ from math import * TOLERANCE = 0.0000001 def number_format(num, places=0): """Format a number with grouped thousands and given decimal places""" places = max(0,places) tmp = "%.*f" % (places, num) point = tmp.find(".") integer = (point == -1) and...
31.62
159
0.63852
8eb2a4b31e0e2b5fb4e1538f458c2107162096b7
1,544
py
Python
Sakurajima/models/recommendation.py
TrimVis/Sakurajima
9d3f6acc0a6228d94da58a518f7cfdd796d652f7
[ "MIT" ]
null
null
null
Sakurajima/models/recommendation.py
TrimVis/Sakurajima
9d3f6acc0a6228d94da58a518f7cfdd796d652f7
[ "MIT" ]
null
null
null
Sakurajima/models/recommendation.py
TrimVis/Sakurajima
9d3f6acc0a6228d94da58a518f7cfdd796d652f7
[ "MIT" ]
null
null
null
import requests import json from Sakurajima.models import base_models as bm
35.090909
85
0.619171
8eb329a5034df522f053c63062da9cdf64fd7143
3,620
py
Python
edinet_baseline_hourly_module/edinet_models/pyEMIS/EventDetection/event_model.py
BeeGroup-cimne/module_edinet
0cda52e9d6222a681f85567e9bf0f7e5885ebf5e
[ "MIT" ]
null
null
null
edinet_baseline_hourly_module/edinet_models/pyEMIS/EventDetection/event_model.py
BeeGroup-cimne/module_edinet
0cda52e9d6222a681f85567e9bf0f7e5885ebf5e
[ "MIT" ]
13
2021-03-25T22:24:38.000Z
2022-03-12T00:56:45.000Z
edinet_baseline_hourly_module/edinet_models/pyEMIS/EventDetection/event_model.py
BeeGroup-cimne/module_edinet
0cda52e9d6222a681f85567e9bf0f7e5885ebf5e
[ "MIT" ]
1
2019-03-13T09:49:56.000Z
2019-03-13T09:49:56.000Z
"""Events separate segements of data. A model is fitted to each segment independently""" import numpy as np def period_range(min_date, max_date, events, index): if index > len(events): raise InvalidPeriod('Not enough events to generate period %s' % index) dates = [] dates.append(min_date) if len(events...
34.150943
110
0.625138
8eb3fe8d61ca018e169ea0f932496e2418d8f490
2,388
py
Python
muscle_tuning/logisticregression_tuning.py
c60evaporator/param_tuning_utility
8518b76369dcc918172a87ab4c975ee3a12f7045
[ "BSD-3-Clause" ]
null
null
null
muscle_tuning/logisticregression_tuning.py
c60evaporator/param_tuning_utility
8518b76369dcc918172a87ab4c975ee3a12f7045
[ "BSD-3-Clause" ]
null
null
null
muscle_tuning/logisticregression_tuning.py
c60evaporator/param_tuning_utility
8518b76369dcc918172a87ab4c975ee3a12f7045
[ "BSD-3-Clause" ]
null
null
null
from sklearn.linear_model import LogisticRegression from sklearn.pipeline import Pipeline from sklearn.preprocessing import StandardScaler import numpy as np from .param_tuning import ParamTuning
32.27027
105
0.600503
8eb4e2799d377de7e9d39b8148f9aadd7b2d4071
1,578
py
Python
main.py
Marques004/Medical-Data-Visualizer
1c096cc3f7732b532b94a60021f102f15680f98c
[ "MIT" ]
null
null
null
main.py
Marques004/Medical-Data-Visualizer
1c096cc3f7732b532b94a60021f102f15680f98c
[ "MIT" ]
null
null
null
main.py
Marques004/Medical-Data-Visualizer
1c096cc3f7732b532b94a60021f102f15680f98c
[ "MIT" ]
null
null
null
import os os.environ['MPLCONFIGDIR'] = os.getcwd() + "/configs/" import matplotlib import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import numpy as np df = pd.read_csv('medical_examination.csv') df['overweight'] = (df['weight'] / (df['height']/100)**2).apply(lambda x: 1 if x > 25 else 0) df['...
33.574468
144
0.627376
8eb5d6396e2a31bb9fbff7585432ac8ecb96f4b0
2,785
py
Python
Gadakeco_Code/src/gui/guiscrollbar.py
YueNing/gadakeco-ml
ec64703d7d6582d867b873f333b230d32b0e1d1a
[ "MIT" ]
3
2019-07-26T15:47:23.000Z
2019-10-02T13:39:49.000Z
Gadakeco_Code/src/gui/guiscrollbar.py
YueNing/gadakeco-ml
ec64703d7d6582d867b873f333b230d32b0e1d1a
[ "MIT" ]
5
2019-07-26T20:32:50.000Z
2019-07-26T20:48:34.000Z
Gadakeco_Code/src/gui/guiscrollbar.py
YueNing/gadakeco-neat
ec64703d7d6582d867b873f333b230d32b0e1d1a
[ "MIT" ]
1
2019-07-28T21:51:19.000Z
2019-07-28T21:51:19.000Z
import pygame from gui.guielement import GuiElement HORIZONTAL = 0 VERTICAL = 1
36.168831
117
0.549013
8eb61d8e3e5b97341a3cbfca6e4c058994f2fde4
1,785
py
Python
sympy/physics/unitsystems/systems/natural.py
shipci/sympy
4b59927bed992b980c9b3faac01becb36feef26b
[ "BSD-3-Clause" ]
4
2018-07-04T17:20:12.000Z
2019-07-14T18:07:25.000Z
sympy/physics/unitsystems/systems/natural.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
7
2017-05-01T14:15:32.000Z
2017-09-06T20:44:24.000Z
sympy/physics/unitsystems/systems/natural.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
3
2015-04-18T22:33:32.000Z
2015-09-23T06:45:07.000Z
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- """ Naturalunit system. The natural system comes from "setting c = 1, hbar = 1". From the computer point of view it means that we use velocity and action instead of length and time. Moreover instead of mass we use energy. """ from __future__ import division from sympy...
37.1875
76
0.712605
8eb69037013653cb91aa261a3a91f12415a4923f
816
py
Python
airbnb/random_request.py
jaksmid/airbnb-python
5fd049f683b0a3ad30bf34342927f50dd99c8b6d
[ "WTFPL" ]
171
2015-01-03T09:51:38.000Z
2022-03-20T18:56:09.000Z
airbnb/random_request.py
jaksmid/airbnb-python
5fd049f683b0a3ad30bf34342927f50dd99c8b6d
[ "WTFPL" ]
25
2015-03-30T03:55:26.000Z
2022-03-19T23:28:34.000Z
airbnb/random_request.py
jaksmid/airbnb-python
5fd049f683b0a3ad30bf34342927f50dd99c8b6d
[ "WTFPL" ]
76
2015-03-28T02:23:03.000Z
2022-03-19T23:27:42.000Z
import random import uuid import os
32.64
118
0.681373
8eb74a5d4b26092fceaac2ec7a39970256c7a4c4
76
py
Python
qrcode_styled/types.py
AdamBrianBright/qrcode_styled
da4c11934cca49b78ac688f5ff942352c7b58807
[ "MIT" ]
3
2021-08-03T15:55:08.000Z
2021-12-13T03:23:18.000Z
qrcode_styled/types.py
AdamBrianBright/qrcode_styled
da4c11934cca49b78ac688f5ff942352c7b58807
[ "MIT" ]
null
null
null
qrcode_styled/types.py
AdamBrianBright/qrcode_styled
da4c11934cca49b78ac688f5ff942352c7b58807
[ "MIT" ]
null
null
null
from typing import Union __all__ = [ 'num', ] num = Union[int, float]
9.5
24
0.618421
8eb7a596233dad4bd13e3f014ef38f1b7c4660a5
867
py
Python
git_pylint/reporter.py
vcoder4c/git_pylint
9e72e725152d59c1f94663c8ca1e841615a4b6cd
[ "MIT" ]
1
2020-08-29T19:23:06.000Z
2020-08-29T19:23:06.000Z
git_pylint/reporter.py
vcoder4c/git_pylint
9e72e725152d59c1f94663c8ca1e841615a4b6cd
[ "MIT" ]
null
null
null
git_pylint/reporter.py
vcoder4c/git_pylint
9e72e725152d59c1f94663c8ca1e841615a4b6cd
[ "MIT" ]
null
null
null
from pylint.reporters.json import JSONReporter def json_reporter_handle_message(self, msg): """Manage message of different type and in the context of path.""" self.messages.append({ 'path': msg.path, 'abspath': msg.abspath, 'line': msg.line, 'column': msg.column, 'modul...
27.967742
73
0.600923
8eba32c6fbf4ca5fdda513dc3cc28ee4369367a4
12,492
py
Python
partstem/__init__.py
AndreyPerelygin/partstem
dacd0537aa2ddf8ac85fd28fc337dd9f0e8235a4
[ "Apache-2.0" ]
null
null
null
partstem/__init__.py
AndreyPerelygin/partstem
dacd0537aa2ddf8ac85fd28fc337dd9f0e8235a4
[ "Apache-2.0" ]
null
null
null
partstem/__init__.py
AndreyPerelygin/partstem
dacd0537aa2ddf8ac85fd28fc337dd9f0e8235a4
[ "Apache-2.0" ]
null
null
null
from nltk.stem import SnowballStemmer from nltk.stem.api import StemmerI import nltk import json partstem = ParticleStemmer()
35.896552
891
0.580692
8ebc8f2acab51140910ab8af9bec5bb0c1f48067
700
py
Python
tests/test_utils.py
kairosfuture/abacusevents
121215a6855f2e0371e557b5f0d1dd7f2f33e069
[ "MIT" ]
null
null
null
tests/test_utils.py
kairosfuture/abacusevents
121215a6855f2e0371e557b5f0d1dd7f2f33e069
[ "MIT" ]
null
null
null
tests/test_utils.py
kairosfuture/abacusevents
121215a6855f2e0371e557b5f0d1dd7f2f33e069
[ "MIT" ]
null
null
null
import os from abacusevents.utils import env, lowercase_first
24.137931
51
0.665714
8ebd3cea58ee2b7b8500c146fbc4d43dc8ae98f8
6,340
py
Python
analysis/Scripts/FunctionScript.py
data301-2021-summer2/group07-Project
48e399c45cecbe2e596dbd214fa21b939f75e5ae
[ "MIT" ]
null
null
null
analysis/Scripts/FunctionScript.py
data301-2021-summer2/group07-Project
48e399c45cecbe2e596dbd214fa21b939f75e5ae
[ "MIT" ]
1
2021-08-06T11:01:27.000Z
2021-08-16T05:20:02.000Z
analysis/Scripts/FunctionScript.py
data301-2021-summer2/group07-Project
48e399c45cecbe2e596dbd214fa21b939f75e5ae
[ "MIT" ]
2
2021-07-12T21:48:09.000Z
2021-08-15T00:19:27.000Z
#!/usr/bin/env python # coding: utf-8 # In[ ]:
43.129252
195
0.435016
8ebed4d0176c34b024d1e9fb74490c28a812e120
305
py
Python
application/__init__.py
DelgadGuilherme/labproghiper-microblog
5acfdfcd1b6f731dca53b6649422d07683038ea4
[ "Apache-2.0" ]
null
null
null
application/__init__.py
DelgadGuilherme/labproghiper-microblog
5acfdfcd1b6f731dca53b6649422d07683038ea4
[ "Apache-2.0" ]
null
null
null
application/__init__.py
DelgadGuilherme/labproghiper-microblog
5acfdfcd1b6f731dca53b6649422d07683038ea4
[ "Apache-2.0" ]
null
null
null
from flask import Flask import os templates_folder = os.path.abspath("application/view/templates") static_folder = os.path.abspath("application/view/static") app = Flask(__name__,template_folder=templates_folder,static_folder=static_folder) from application.controller import hello_controller
30.5
83
0.813115
8ebf0f9b2161bc522983927efdf52e3e727f1b40
664
py
Python
_projects/new.py
devChuk/ddevchuk.github.io
1bb83b27f887158b532186af38b3fd5851bdc01b
[ "MIT" ]
2
2017-03-12T07:45:15.000Z
2017-07-17T02:36:01.000Z
_projects/new.py
devChuk/ddevchuk.github.io
1bb83b27f887158b532186af38b3fd5851bdc01b
[ "MIT" ]
1
2015-03-20T03:30:47.000Z
2015-03-23T03:49:47.000Z
_projects/new.py
devChuk/ddevchuk.github.io
1bb83b27f887158b532186af38b3fd5851bdc01b
[ "MIT" ]
1
2015-06-14T23:06:55.000Z
2015-06-14T23:06:55.000Z
#Just a simple script to automate the YAML front matter in new posts import datetime import os title = raw_input('\nEnter title: ') fileName= title.replace(" ", "_").lower() + '.md' print fileName + '\n' text = """--- layout: project title: {} date: Feb 2015 thumbnail: http://devchuk.github.io/devchukV1/res/img/porti...
21.419355
77
0.721386
8ec13621ede7ad08cdf4a9c2edd5a1f939fb4fac
1,820
py
Python
AI_Web/GA/tools/pre_load_data.py
xwy27/ArtificialIntelligenceProjects
e2b0154f07d749084e2d670260fa82f8f5ea23ed
[ "MIT" ]
4
2018-12-19T14:10:56.000Z
2021-07-12T06:05:17.000Z
AI_Web/GA/tools/pre_load_data.py
xwy27/ArtificialIntelligenceProjects
e2b0154f07d749084e2d670260fa82f8f5ea23ed
[ "MIT" ]
1
2019-08-06T01:57:41.000Z
2019-08-06T01:57:41.000Z
AI_Web/SA/tools/pre_load_data.py
xwy27/ArtificialIntelligenceProjects
e2b0154f07d749084e2d670260fa82f8f5ea23ed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- '''pre load default TSP city data into database''' from django.db.transaction import atomic from ..models import * import os # Load default city data def load_cities(cities_folder_path, delete=False): ''' Load data files in cities_folder_path to database if delete is True, previous da...
26.764706
64
0.562088
8ec186c4e3adffdeaef95f08452042f97de330e2
11,725
py
Python
saasy_boi/apis.py
NetskopeOSS/sassy_boi
dbbfd9223a8a93e495ea39c0e8ea54be5fb47715
[ "BSD-3-Clause" ]
6
2019-10-09T03:51:34.000Z
2022-01-08T19:59:07.000Z
saasy_boi/apis.py
NetskopeOSS/sassy_boi
dbbfd9223a8a93e495ea39c0e8ea54be5fb47715
[ "BSD-3-Clause" ]
null
null
null
saasy_boi/apis.py
NetskopeOSS/sassy_boi
dbbfd9223a8a93e495ea39c0e8ea54be5fb47715
[ "BSD-3-Clause" ]
1
2021-08-05T07:25:06.000Z
2021-08-05T07:25:06.000Z
# Copyright 2019 Netskope, Inc. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following # disclaimer. # # 2. ...
27.916667
120
0.615778
8ec1e9523ebc0bba611e68e3f95d01d207d019c2
308
py
Python
database_program.py
amintai/Hacktoberfest-1
ccfe3688db720e35e032eaf7c7dfcaf86bc94272
[ "MIT" ]
null
null
null
database_program.py
amintai/Hacktoberfest-1
ccfe3688db720e35e032eaf7c7dfcaf86bc94272
[ "MIT" ]
null
null
null
database_program.py
amintai/Hacktoberfest-1
ccfe3688db720e35e032eaf7c7dfcaf86bc94272
[ "MIT" ]
null
null
null
import mysql.connector mydb = mysql.connector.connect( host="databaseurl", user="username", password="password", database="database_name", ) mycursor = mydb.cursor() code = input("Enter SQL code here ") sql = code mycursor.execute(sql) mydb.commit() print(mycursor.rowcount, "record inserted.")
16.210526
44
0.720779
8ec330c45c5450e56db86bcc225b4e9c85a36af2
941
py
Python
codeforces/B/8-451B.py
safiulanik/problem-solving
116539750b901b55fe6e69447c8ede78f2e9ff16
[ "MIT" ]
null
null
null
codeforces/B/8-451B.py
safiulanik/problem-solving
116539750b901b55fe6e69447c8ede78f2e9ff16
[ "MIT" ]
null
null
null
codeforces/B/8-451B.py
safiulanik/problem-solving
116539750b901b55fe6e69447c8ede78f2e9ff16
[ "MIT" ]
null
null
null
""" URL: https://codeforces.com/problemset/problem/451/B Author: Safiul Kabir [safiulanik at gmail.com] Tags: implementation, sortings, *1300 """ main()
20.021277
74
0.430393
8ec5846ccf710a39df521d57cab6d18b4a25c956
68
py
Python
pywren_ibm_cloud/storage/backends/ibm_cos/__init__.py
gerardparis/pywren-ibm-cloud
ca69bed54f5bd5157bcda961b86dbfcfecf3c54a
[ "Apache-2.0" ]
158
2020-09-16T13:22:03.000Z
2022-03-28T20:01:31.000Z
pywren_ibm_cloud/storage/backends/ibm_cos/__init__.py
gerardparis/pywren-ibm-cloud
ca69bed54f5bd5157bcda961b86dbfcfecf3c54a
[ "Apache-2.0" ]
256
2018-05-20T13:01:51.000Z
2020-09-16T09:09:54.000Z
pywren_ibm_cloud/storage/backends/ibm_cos/__init__.py
gerardparis/pywren-ibm-cloud
ca69bed54f5bd5157bcda961b86dbfcfecf3c54a
[ "Apache-2.0" ]
48
2020-09-19T15:29:53.000Z
2022-03-23T17:08:24.000Z
from .ibm_cos import IBMCloudObjectStorageBackend as StorageBackend
34
67
0.897059
8ec5c30f23ba531d5364376457bcfc23d7f65b85
2,877
py
Python
finetune-data-sampling/pytorch_softmax_regression_4_class.py
lankuohsing/machine-learning-in-python
a7317325dd914402231ee908e4208e1ddb171a28
[ "MIT" ]
null
null
null
finetune-data-sampling/pytorch_softmax_regression_4_class.py
lankuohsing/machine-learning-in-python
a7317325dd914402231ee908e4208e1ddb171a28
[ "MIT" ]
null
null
null
finetune-data-sampling/pytorch_softmax_regression_4_class.py
lankuohsing/machine-learning-in-python
a7317325dd914402231ee908e4208e1ddb171a28
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 7 22:03:24 2021 @author: lankuohsing """ import numpy as np import torch.utils.data as Data import torch from collections import OrderedDict from torchsummary import summary # In[] data1=[] labels1=[] data2=[] labels2=[] with open("./dataset/4_class_data_2d.txt",'r',enc...
33.453488
186
0.668752
8ec7abf3f5da5952254f519ad7b912d9d04dbca3
7,476
py
Python
app/py/database.py
tbor8080/pyhongo
11d200509913f80399c758197d215ff0ff6049cd
[ "MIT" ]
null
null
null
app/py/database.py
tbor8080/pyhongo
11d200509913f80399c758197d215ff0ff6049cd
[ "MIT" ]
null
null
null
app/py/database.py
tbor8080/pyhongo
11d200509913f80399c758197d215ff0ff6049cd
[ "MIT" ]
null
null
null
# /usr/bin/env python # -*- coding: utf-8 -*- import inspect,sqlite3 # load module from py.sheet.sheet import * try: # PostgreSQL import psycopg2 except ModuleNotFoundError as e: ErrorMessage('psycopg2') exit() try: # MySQL import pymysql except ModuleNotFoundError as e: ErrorMessage('My...
23.28972
108
0.563537
8ec8117705a6e00290140c42310bd866602c4857
6,543
py
Python
Training.py
Waewarin-C/MLProject
9bd3821db24b1210621169cbbfdd68a1d6e6ab20
[ "CC-BY-4.0" ]
null
null
null
Training.py
Waewarin-C/MLProject
9bd3821db24b1210621169cbbfdd68a1d6e6ab20
[ "CC-BY-4.0" ]
null
null
null
Training.py
Waewarin-C/MLProject
9bd3821db24b1210621169cbbfdd68a1d6e6ab20
[ "CC-BY-4.0" ]
null
null
null
from TabularTrainer import * from RandomPlayer import * from TicTacToe import * import matplotlib.pyplot as plt action_to_coordinate = {0: (0, 0), 1: (0, 1), 2: (0, 2), 3: (1, 0), 4: (1, 1), 5: (1, 2), 6: (2, 0), 7: (2, 1), 8: (2, 2)} NUM_OF_BATTLES = 10 NUM_OF_GAMES = ...
34.436842
107
0.561058
8ec9af37320f3317b87c57c752336e62fe5c3973
3,402
py
Python
util/visualize3d.py
jshuhnow/OddEyeCam
ed76cd1c29701b7b49f20bcd61e7e72d3140fda8
[ "MIT" ]
8
2020-10-08T13:32:33.000Z
2021-12-08T10:59:03.000Z
util/visualize3d.py
jshuhnow/OddEyeCam
ed76cd1c29701b7b49f20bcd61e7e72d3140fda8
[ "MIT" ]
null
null
null
util/visualize3d.py
jshuhnow/OddEyeCam
ed76cd1c29701b7b49f20bcd61e7e72d3140fda8
[ "MIT" ]
1
2021-04-15T23:50:13.000Z
2021-04-15T23:50:13.000Z
import os import sys from core.math_tool.coordinate_system import CoordSys import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np import cv2
43.063291
129
0.592593
8ecb338cf3968f1e2415034f8610eb76602e4a7a
7,134
py
Python
spell/keyboardspell.py
leolca/spellcheck
1edf7a598052822d0f95885288a3cf7f6d706c84
[ "MIT" ]
null
null
null
spell/keyboardspell.py
leolca/spellcheck
1edf7a598052822d0f95885288a3cf7f6d706c84
[ "MIT" ]
null
null
null
spell/keyboardspell.py
leolca/spellcheck
1edf7a598052822d0f95885288a3cf7f6d706c84
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .utils import exists, nlargest, removeMultiple from .spell import Spell
45.43949
174
0.585506
8ecc375f9b2ef579824f623a0c86a56a39d05d4d
2,262
py
Python
src/helpTool/imFilterPipeline.py
uguisu/DraftTensorflow_chinese_hand_writing
13f4097dff53ff32d10d51789975700e18052500
[ "Apache-2.0" ]
null
null
null
src/helpTool/imFilterPipeline.py
uguisu/DraftTensorflow_chinese_hand_writing
13f4097dff53ff32d10d51789975700e18052500
[ "Apache-2.0" ]
1
2018-01-25T06:39:52.000Z
2018-01-25T13:37:44.000Z
src/helpTool/imFilterPipeline.py
uguisu/DraftTensorflow_chinese_hand_writing
13f4097dff53ff32d10d51789975700e18052500
[ "Apache-2.0" ]
1
2018-04-22T13:55:18.000Z
2018-04-22T13:55:18.000Z
# encoding: UTF-8 import cv2 import numpy as np
29.763158
103
0.564987
8ece7d53acacbd74d22fdfc3c2e28686c0f3e1f0
2,052
py
Python
tests/karura_test/test_database_api.py
ScoopML-labs/karura
ffd3d06e496ffbb0602d3cff3ac0692c747523ab
[ "Apache-2.0" ]
74
2017-03-03T00:35:14.000Z
2021-12-26T17:50:48.000Z
tests/karura_test/test_database_api.py
ScoopML-labs/karura
ffd3d06e496ffbb0602d3cff3ac0692c747523ab
[ "Apache-2.0" ]
1
2017-08-18T02:50:11.000Z
2017-08-18T07:15:25.000Z
tests/karura_test/test_database_api.py
ScoopML-labs/karura
ffd3d06e496ffbb0602d3cff3ac0692c747523ab
[ "Apache-2.0" ]
6
2017-09-29T06:56:31.000Z
2020-12-17T14:39:59.000Z
import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), "../../")) import unittest from karura.database_api import DatabaseAPI if __name__ == "__main__": unittest.main()
38.716981
97
0.661793
8ece994dd1b163e2074ce6aebf451a06d9516101
310
py
Python
python/time.py
LifengWang/ReportGen
9266acc7cde7f21206a509607fef0676a8dab52e
[ "Apache-2.0" ]
null
null
null
python/time.py
LifengWang/ReportGen
9266acc7cde7f21206a509607fef0676a8dab52e
[ "Apache-2.0" ]
1
2020-10-14T01:01:12.000Z
2020-10-14T01:01:12.000Z
python/time.py
LifengWang/ReportGen
9266acc7cde7f21206a509607fef0676a8dab52e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import pandas as pd import sys if __name__ == '__main__': main()
19.375
74
0.664516
8ecef356f844a42e3d374691a1124f1ea40fd4a1
1,225
py
Python
etc/metadataParsers/includes/nameparser-0.2.3/setup.py
organisciak/HTRC-BookwormDB
bc24080d6443f8da38255e19149431c9e5b182ab
[ "MIT" ]
null
null
null
etc/metadataParsers/includes/nameparser-0.2.3/setup.py
organisciak/HTRC-BookwormDB
bc24080d6443f8da38255e19149431c9e5b182ab
[ "MIT" ]
null
null
null
etc/metadataParsers/includes/nameparser-0.2.3/setup.py
organisciak/HTRC-BookwormDB
bc24080d6443f8da38255e19149431c9e5b182ab
[ "MIT" ]
null
null
null
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup import nameparser import os README = read('README.rst') setup(name='nameparser', packages = ['nameparser'], description = 'A simple Python module for parsing human names into their indiv...
35
105
0.629388
8ecf4e191c51888fe96cf70ed22b287feafa153f
300
py
Python
SVM_example.py
COSC-Research-BowieState/ARP_Simulator
ec109253bc3cc6903252f6f24b1205b8e7bab189
[ "MIT" ]
null
null
null
SVM_example.py
COSC-Research-BowieState/ARP_Simulator
ec109253bc3cc6903252f6f24b1205b8e7bab189
[ "MIT" ]
null
null
null
SVM_example.py
COSC-Research-BowieState/ARP_Simulator
ec109253bc3cc6903252f6f24b1205b8e7bab189
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 4 17:41:56 2018 @author: hubert kyeremateng-boateng """ import numpy as np import pandas as pd recipes = pd.read_csv('arp_dataset.csv', header=None) recipes.rename(columns={0: 'name'}, inplace=True) print(np.transpose(recipes))
23.076923
53
0.71
8ed11d23c76018ac70846f21efa7b622a426700a
973
py
Python
DiceRoll.py
SwethaGudla/Dice_POC
818b343773027791508b59badf7159b1fee5f2f8
[ "BSD-3-Clause" ]
null
null
null
DiceRoll.py
SwethaGudla/Dice_POC
818b343773027791508b59badf7159b1fee5f2f8
[ "BSD-3-Clause" ]
null
null
null
DiceRoll.py
SwethaGudla/Dice_POC
818b343773027791508b59badf7159b1fee5f2f8
[ "BSD-3-Clause" ]
null
null
null
import roll_dice as r #importing RollDice module COUNT = 0 #initializing count while True: roll = input("Enter your choice(d/u/l/r): ").lower() #Pick your choice if roll == 'down' or roll == 'd': r.dice_down(r.res) COUNT+=1 elif roll == 'up'or roll =='u': ...
27.027778
75
0.51593
8ed19150ff78b6ca1c2491ef7203c5ad4bd6be6e
2,756
py
Python
app/updateinformation.py
mjogodnik22/mini-amazon
cc7caf9366b862e43271305d1b2d27bb6c08260d
[ "MIT" ]
null
null
null
app/updateinformation.py
mjogodnik22/mini-amazon
cc7caf9366b862e43271305d1b2d27bb6c08260d
[ "MIT" ]
null
null
null
app/updateinformation.py
mjogodnik22/mini-amazon
cc7caf9366b862e43271305d1b2d27bb6c08260d
[ "MIT" ]
null
null
null
from flask import render_template, redirect, url_for, flash, request from werkzeug.urls import url_parse from flask_login import login_user, logout_user, current_user from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, DecimalField, BooleanField, SelectField, SubmitField from wtforms.validat...
47.517241
199
0.675617
8ed3c961a32f648b6ecbf986b24a8369b72e355c
457
py
Python
05_data_science/matplotlib/bar_chart.py
bluehenry/python.best.practices
99fde3557b0c423d3050e988e82a641ccd75b644
[ "MIT" ]
null
null
null
05_data_science/matplotlib/bar_chart.py
bluehenry/python.best.practices
99fde3557b0c423d3050e988e82a641ccd75b644
[ "MIT" ]
null
null
null
05_data_science/matplotlib/bar_chart.py
bluehenry/python.best.practices
99fde3557b0c423d3050e988e82a641ccd75b644
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np divisions = ['Admin', 'Development', 'Lead', 'HR'] salary = [10, 14,20, 12] age = [28, 30, 45, 32] index = np.arange(4) width = 0.3 plt.bar(index, salary, width, color='green', label='Salary') plt.bar(index+width, age, width, color='blue', label='Age') plt.title('Di...
22.85
60
0.684902
8ed58557b8e3435731641f5c05374ed0db710745
1,951
py
Python
python/clima.py
crato-thaissa/crato-thaissa.github.Io
91d18e38461bdd202f0262abace65595fa1efa96
[ "MIT" ]
null
null
null
python/clima.py
crato-thaissa/crato-thaissa.github.Io
91d18e38461bdd202f0262abace65595fa1efa96
[ "MIT" ]
null
null
null
python/clima.py
crato-thaissa/crato-thaissa.github.Io
91d18e38461bdd202f0262abace65595fa1efa96
[ "MIT" ]
null
null
null
from string import * import json, sys from urllib.request import urlopen #parameters params1 = "<||^{tss+^=r]^/\A/+|</`[+^r]`;s.+|+s#r&sA/+|</`y_w" params2 = ':#%:%!,"' params3 = "-#%&!&')&:-/$,)+-.!:-::-" params4 = params2 + params3 params_id = "j+^^=.w" unit = [ "k", "atm"] data1 = printable data2 = punctuation...
29.119403
108
0.603793
8ed69e0440b6aec85c5fa9e138215b592e9adcb1
2,309
py
Python
src/main/python/apache/thermos/bin/thermos_ckpt.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
null
null
null
src/main/python/apache/thermos/bin/thermos_ckpt.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
null
null
null
src/main/python/apache/thermos/bin/thermos_ckpt.py
zmanji/incubator-aurora
9f594f1de6bbf46c74863dd3fc4d2708b7a974f2
[ "Apache-2.0" ]
null
null
null
# # 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, software # distributed under ...
27.488095
84
0.695972
8ed6cda7ad637a16bcaea267f7b03c869ea08e8b
1,913
py
Python
test/lib/testFixed.py
animator/titus2
1d35fab2950bd9f0438b931a02996475271a695e
[ "Apache-2.0" ]
18
2019-11-29T08:53:58.000Z
2021-11-19T05:33:33.000Z
test/lib/testFixed.py
animator/titus2
1d35fab2950bd9f0438b931a02996475271a695e
[ "Apache-2.0" ]
2
2020-04-29T12:58:32.000Z
2021-03-23T05:55:43.000Z
test/lib/testFixed.py
animator/titus2
1d35fab2950bd9f0438b931a02996475271a695e
[ "Apache-2.0" ]
1
2020-05-05T15:10:27.000Z
2020-05-05T15:10:27.000Z
#!/usr/bin/env python # Copyright (C) 2014 Open Data ("Open Data" refers to # one or more of the following companies: Open Data Partners LLC, # Open Data Research LLC, or Open Data Capital LLC.) # # This file is part of Hadrian. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
37.509804
142
0.652901