hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
53d70d3013eebf509bd463bbe169adf9205bf22b
4,367
py
Python
api_youtube.py
OnoArnaldo/PythonApiYoutube
8507eac234cd3d05a223db3beebd10412505bcf8
[ "MIT" ]
2
2019-11-15T16:46:36.000Z
2020-11-30T07:34:26.000Z
api_youtube.py
OnoArnaldo/PythonApiYoutube
8507eac234cd3d05a223db3beebd10412505bcf8
[ "MIT" ]
null
null
null
api_youtube.py
OnoArnaldo/PythonApiYoutube
8507eac234cd3d05a223db3beebd10412505bcf8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os import sys import json import urllib2 import codecs BASE_DIR = os.path.dirname(__file__) BASE_URL = 'https://www.googleapis.com/youtube/v3/' API_CHANNELS = 'channels' API_PLAYLIST = 'playlistItems' API_KEY = 'YOUR KEY' CHANNELS = [ 'videos...
24.672316
90
0.587589
3,533
0.809022
0
0
164
0.037554
0
0
544
0.124571
53d750a045a189f59e633e7a1ce562b90e7d821b
2,744
py
Python
python_and_ebpf/train.py
be4r/ssh-miner-detection
47003db1d9f72ae44d5a27e92d0109d5111bec35
[ "MIT" ]
null
null
null
python_and_ebpf/train.py
be4r/ssh-miner-detection
47003db1d9f72ae44d5a27e92d0109d5111bec35
[ "MIT" ]
null
null
null
python_and_ebpf/train.py
be4r/ssh-miner-detection
47003db1d9f72ae44d5a27e92d0109d5111bec35
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from sklearn.tree import DecisionTreeClassifier import pickle import numpy as np no = [b'runc:[2:INIT]', b'containerssh-ag', b'apt',b'dpkg'] class model: def __init__(self): self.d = DecisionTreeClassifier() def load(self, filename = 'model.p'): try: f = open(filename, 'rb') self...
24.283186
95
0.622085
854
0.311224
0
0
0
0
0
0
225
0.081997
53d8b7928beadd81971824eb5f4c9a1dab184d41
1,318
py
Python
data/parse_hipp_data.py
slinderman/pyhsmm-spiketrains
462d8d2c59bd2e7c39d20d624bd8b289a31baaa2
[ "MIT" ]
10
2016-04-23T00:23:20.000Z
2022-01-05T19:28:08.000Z
data/parse_hipp_data.py
slinderman/pyhsmm-spiketrains
462d8d2c59bd2e7c39d20d624bd8b289a31baaa2
[ "MIT" ]
1
2017-06-24T06:37:12.000Z
2017-07-07T17:19:59.000Z
data/parse_hipp_data.py
slinderman/pyhsmm-spiketrains
462d8d2c59bd2e7c39d20d624bd8b289a31baaa2
[ "MIT" ]
9
2016-03-29T21:37:46.000Z
2022-01-05T19:28:11.000Z
import os import numpy as np from scipy.io import loadmat data = loadmat("data/hipp_2dtrack_a/smJun03p2.dat") N = 49 data = reshape(data, 3, length(data)/3); data = data'; size(data) % 43799-by-3 fclose(fid); % sampling time Ts = 0.0333; duration = size(data,1) * Ts; % in second Tmax = data(end, 3); Tmin = d...
22.338983
78
0.634294
0
0
0
0
0
0
0
0
52
0.039454
53d94f243224facafe883070b86bd959182c98e6
9,455
py
Python
repokid/tests/test_roledata.py
tomdev/repokid
e1a4839290bafccfaa304d87bbdeae85b9dc80aa
[ "Apache-2.0" ]
null
null
null
repokid/tests/test_roledata.py
tomdev/repokid
e1a4839290bafccfaa304d87bbdeae85b9dc80aa
[ "Apache-2.0" ]
null
null
null
repokid/tests/test_roledata.py
tomdev/repokid
e1a4839290bafccfaa304d87bbdeae85b9dc80aa
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Netflix, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
51.950549
120
0.639662
7,960
0.841883
0
0
5,148
0.544474
0
0
3,342
0.353464
53da2e6911920cb3cc789891eed24c27f4a325c6
1,838
py
Python
DL_Scripts/image_recognition.py
Matnay/KPIT_Deep_Learning
14f3815fc2829db9bede86c31f23e721f6423f79
[ "MIT" ]
1
2020-05-01T15:28:12.000Z
2020-05-01T15:28:12.000Z
DL_Scripts/image_recognition.py
Matnay/KPIT_Deep_Learning
14f3815fc2829db9bede86c31f23e721f6423f79
[ "MIT" ]
null
null
null
DL_Scripts/image_recognition.py
Matnay/KPIT_Deep_Learning
14f3815fc2829db9bede86c31f23e721f6423f79
[ "MIT" ]
null
null
null
import rospy from sensor_msgs.msg import Image from std_msgs.msg import String from cv_bridge import CvBridge import cv2 import numpy as np import tensorflow as tf import classify_image class RosTensorFlow(): def __init__(self): classify_image.maybe_download_and_extract() self._session = tf.Sessio...
36.039216
94
0.661589
1,505
0.818825
0
0
0
0
0
0
258
0.14037
53dd0a97f61bddb70bdbb1861eb823497caf7e52
21,202
py
Python
plugins/grouputils.py
aviskumar/speedo
758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa
[ "BSD-3-Clause" ]
null
null
null
plugins/grouputils.py
aviskumar/speedo
758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa
[ "BSD-3-Clause" ]
null
null
null
plugins/grouputils.py
aviskumar/speedo
758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa
[ "BSD-3-Clause" ]
3
2021-10-12T08:17:01.000Z
2021-12-21T01:17:54.000Z
# Copyright (C) 2020-2021 by TeamSpeedo@Github, < https://github.com/TeamSpeedo >. # # This file is part of < https://github.com/TeamSpeedo/FridayUserBot > project, # and is released under the "GNU v3.0 License Agreement". # Please see < https://github.com/TeamSpeedo/blob/master/LICENSE > # # All rights reserved. imp...
33.076443
146
0.621215
0
0
0
0
20,343
0.959304
17,265
0.814156
4,617
0.217721
53dd16873458e07dbdbf665e77a30bc20865dfcb
16,809
py
Python
carberretta/bot/cogs/feeds.py
Nereg/Carberretta
01e25bc8ece4c310ab541304e8809dfdd3eec3b8
[ "BSD-3-Clause" ]
null
null
null
carberretta/bot/cogs/feeds.py
Nereg/Carberretta
01e25bc8ece4c310ab541304e8809dfdd3eec3b8
[ "BSD-3-Clause" ]
null
null
null
carberretta/bot/cogs/feeds.py
Nereg/Carberretta
01e25bc8ece4c310ab541304e8809dfdd3eec3b8
[ "BSD-3-Clause" ]
null
null
null
""" FEEDS Handles YouTube and Twitch feed notifications. """ import datetime as dt import discord import feedparser from apscheduler.triggers.cron import CronTrigger from discord.ext import commands from carberretta import Config from carberretta.utils import DEFAULT_EMBED_COLOUR, chron LIVE_EMBED_COLOUR = 0x9146FF...
44.586207
166
0.50467
16,389
0.975013
0
0
2,556
0.152061
15,841
0.942412
4,669
0.277768
53dd795653b27c0823e1d06e1e8c37e9cd9ead3e
5,676
py
Python
gdb/proxy.py
abaire/gdb_sniffer
f330193c65a39ce6abb01f25737ca967a0af9629
[ "Unlicense" ]
1
2021-12-22T04:04:22.000Z
2021-12-22T04:04:22.000Z
gdb/proxy.py
abaire/gdb_sniffer
f330193c65a39ce6abb01f25737ca967a0af9629
[ "Unlicense" ]
null
null
null
gdb/proxy.py
abaire/gdb_sniffer
f330193c65a39ce6abb01f25737ca967a0af9629
[ "Unlicense" ]
null
null
null
"""Provides a GDB logging proxy. See https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html See https://www.embecosm.com/appnotes/ean4/embecosm-howto-rsp-server-ean4-issue-2.html """ from __future__ import annotations import logging import socket from typing import Optional from typing import Tuple from .pa...
35.698113
112
0.617512
5,264
0.927414
0
0
1,050
0.184989
0
0
1,099
0.193622
53ddde78f62a83aa118f0171be55b4c481a15868
1,373
py
Python
pylayers/em/openems/test/Rect_Waveguide.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
143
2015-01-09T07:50:20.000Z
2022-03-02T11:26:53.000Z
pylayers/em/openems/test/Rect_Waveguide.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
148
2015-01-13T04:19:34.000Z
2022-03-11T23:48:25.000Z
pylayers/em/openems/test/Rect_Waveguide.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
95
2015-05-01T13:22:42.000Z
2022-03-15T11:22:28.000Z
from openems.openems import * # A simple simulation # # FDTD Simulation Setting # F = FDTD() F.add(Exc(typ='Sinus',f0=100000)) F.add(BoundaryCond(['PMC','PMC','PEC','PEC','MUR','MUR'])) # # CSX (Geometry setting) # C = CSX() # The Box is added as a property C.add(Excitation('excitation'),p=Box(P1=[-10,-10,0],P2=...
25.90566
87
0.632921
0
0
0
0
0
0
0
0
969
0.705754
53debe5489e3f53b73538719925c989ad4ce399d
381
py
Python
DataPreprocessing/_segment_Y.py
vd1371/CBSA
f2b3f03c91ccd9ec02c2331f43573d7d6e72fd47
[ "MIT" ]
null
null
null
DataPreprocessing/_segment_Y.py
vd1371/CBSA
f2b3f03c91ccd9ec02c2331f43573d7d6e72fd47
[ "MIT" ]
null
null
null
DataPreprocessing/_segment_Y.py
vd1371/CBSA
f2b3f03c91ccd9ec02c2331f43573d7d6e72fd47
[ "MIT" ]
null
null
null
import numpy as np def segment_Y(Y, **params): Y_segments = params.get("Y_segments") Y_quantile = params.get("Y_quantile") print("segmenting Y") Y = Y.values.reshape(-1) Y_quantile = np.quantile(Y, Y_quantile, axis = 0) bigger_mask = (Y > Y_quantile).copy() smaller_mask = (Y <= Y_quantile).copy() Y[bigger_...
19.05
50
0.677165
0
0
0
0
0
0
0
0
38
0.099738
53df3216d619040fc2551d1e35eda4fe2e177604
3,868
py
Python
WifiEnigma/BattleAI/question.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
WifiEnigma/BattleAI/question.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
WifiEnigma/BattleAI/question.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
import mysql.connector import random from voice import synthetize_voice, delete_wav def AllQuestionAI(id_theme): i = 0 #CONNEXION A LA BDD conn = mysql.connector.connect(host="localhost", user="phpmyadmin", password="Vince@Mysql1997", ...
31.447154
140
0.520941
0
0
0
0
0
0
0
0
1,535
0.396231
53e02e91fc0737f80d21208f1511392c2bcd37d1
875
py
Python
toy-amr/flux_functions.py
IanHawke/toy-amr
1f616791993ccd83cc6034616c08e09fa4ba310d
[ "MIT" ]
5
2019-05-27T18:13:45.000Z
2021-01-06T09:42:28.000Z
toy-amr/flux_functions.py
IanHawke/toy-amr
1f616791993ccd83cc6034616c08e09fa4ba310d
[ "MIT" ]
1
2019-10-21T13:34:48.000Z
2019-12-11T22:11:17.000Z
toy-amr/flux_functions.py
IanHawke/toy-amr
1f616791993ccd83cc6034616c08e09fa4ba310d
[ "MIT" ]
2
2019-05-08T18:00:36.000Z
2021-05-27T16:57:57.000Z
import numpy def lax_friedrichs(cons_minus, cons_plus, simulation, tl): alpha = tl.grid.dx / tl.dt flux = numpy.zeros_like(cons_minus) prim_minus, aux_minus = simulation.model.cons2all(cons_minus, tl.prim) prim_plus, aux_plus = simulation.model.cons2all(cons_plus , tl.prim) f_minus = simulation.m...
39.772727
79
0.609143
0
0
0
0
0
0
0
0
0
0
53e0390b65014122e4de16c06f08712946e2a007
2,084
py
Python
pi/auth.py
vmagamedov/pi
6ee98af69b757d96aa4eddc32513309e0fe05d1d
[ "BSD-3-Clause" ]
7
2016-06-24T04:49:48.000Z
2020-06-29T17:34:12.000Z
pi/auth.py
vmagamedov/pi
6ee98af69b757d96aa4eddc32513309e0fe05d1d
[ "BSD-3-Clause" ]
11
2016-06-19T13:16:59.000Z
2019-11-02T13:14:19.000Z
pi/auth.py
vmagamedov/pi
6ee98af69b757d96aa4eddc32513309e0fe05d1d
[ "BSD-3-Clause" ]
null
null
null
import re import json import base64 import codecs import os.path import asyncio import subprocess _PREFIX = 'docker-credential-' def read_config(): path = os.path.expanduser('~/.docker/config.json') if not os.path.exists(path): return {} with codecs.open(path, encoding='utf-8') as f: jso...
25.108434
72
0.644914
0
0
0
0
0
0
1,145
0.549424
240
0.115163
53e05b14f47fe11d4c2e4b89d1492b45ec46b072
5,199
py
Python
etl/transform.py
ACWI-SOGW/ngwmn_monitoring_locations_etl
e9ebfebbc5fa349a58669fb1d9944786f26729c3
[ "CC0-1.0" ]
1
2020-10-07T14:44:30.000Z
2020-10-07T14:44:30.000Z
etl/transform.py
ACWI-SOGW/ngwmn_monitoring_locations_etl
e9ebfebbc5fa349a58669fb1d9944786f26729c3
[ "CC0-1.0" ]
7
2020-10-14T19:13:10.000Z
2021-10-06T20:04:38.000Z
etl/transform.py
ACWI-SOGW/ngwmn_monitoring_locations_etl
e9ebfebbc5fa349a58669fb1d9944786f26729c3
[ "CC0-1.0" ]
1
2020-10-02T14:43:18.000Z
2020-10-02T14:43:18.000Z
""" Transform the data into a form that works with the WELL_REGISTRY_STG table. """ import re def mapping_factory(mapping): def map_func(key): if key is not None: ora_val = mapping.get(key.lower()) else: ora_val = None return ora_val return map_func WELL_TYPES...
38.227941
117
0.695903
0
0
0
0
0
0
0
0
2,110
0.405847
53e0d34e58ad9e0686dc6ee3e5a7f6fc0076f469
55
py
Python
django_reporter_pro/config/model_configs.py
shamilison/django-reporter-pro
0c6f60bbae939d318e7aafaec83613d2768a4f63
[ "Apache-2.0" ]
null
null
null
django_reporter_pro/config/model_configs.py
shamilison/django-reporter-pro
0c6f60bbae939d318e7aafaec83613d2768a4f63
[ "Apache-2.0" ]
null
null
null
django_reporter_pro/config/model_configs.py
shamilison/django-reporter-pro
0c6f60bbae939d318e7aafaec83613d2768a4f63
[ "Apache-2.0" ]
null
null
null
# Created by shamilsakib at 04/10/20 BASE_MODEL = None
18.333333
36
0.763636
0
0
0
0
0
0
0
0
36
0.654545
53e10c53f31c7e396a4573a421ae3212e9a11856
1,543
py
Python
DPSparkImplementations/paf_kernels.py
TEAlab/DPSpark
4d53ee13b03e2e12119c28fe2b2241ad20231eac
[ "MIT" ]
null
null
null
DPSparkImplementations/paf_kernels.py
TEAlab/DPSpark
4d53ee13b03e2e12119c28fe2b2241ad20231eac
[ "MIT" ]
null
null
null
DPSparkImplementations/paf_kernels.py
TEAlab/DPSpark
4d53ee13b03e2e12119c28fe2b2241ad20231eac
[ "MIT" ]
1
2020-12-30T22:12:55.000Z
2020-12-30T22:12:55.000Z
__author__ = "Zafar Ahmad, Mohammad Mahdi Javanmard" __copyright__ = "Copyright (c) 2019 Tealab@SBU" __license__ = "MIT" __version__ = "1.0.0" __maintainer__ = "Zafar Ahmad" __email__ = "zafahmad@cs.stonybrook.edu" __status__ = "Development" import numpy as np import numba as nb ''' Iterative kernels ''' def up...
35.068182
104
0.610499
0
0
0
0
771
0.499676
0
0
250
0.162022
53e339cc8fb766eb00e75883c4d6064e436e942f
1,343
py
Python
terrakg/rates.py
terrapain/terrakg
90c52ca3b227d2daabd604255e793ac5f536c246
[ "Apache-2.0" ]
null
null
null
terrakg/rates.py
terrapain/terrakg
90c52ca3b227d2daabd604255e793ac5f536c246
[ "Apache-2.0" ]
null
null
null
terrakg/rates.py
terrapain/terrakg
90c52ca3b227d2daabd604255e793ac5f536c246
[ "Apache-2.0" ]
null
null
null
from terra_sdk.exceptions import LCDResponseError from terrakg import logger # Logging from terrakg.client import ClientContainer logger = logger.get_logger(__name__) class Rates: """ Access the most recent rates. """ def __init__(self, client: ClientContainer): self.client = client de...
30.522727
117
0.568876
1,170
0.871184
0
0
0
0
0
0
386
0.287416
53e44f41ef2d0962b6580e25176980ba9b2fe713
2,868
py
Python
src/tracking_module.py
HonzaKlicpera/Effective-footage-processing-Blender-add-on
f3faae3fc56a3ef8f2eabba9af8be718e57f4d35
[ "MIT" ]
1
2020-06-09T11:23:44.000Z
2020-06-09T11:23:44.000Z
src/tracking_module.py
HonzaKlicpera/Effective-footage-processing-Blender
f3faae3fc56a3ef8f2eabba9af8be718e57f4d35
[ "MIT" ]
null
null
null
src/tracking_module.py
HonzaKlicpera/Effective-footage-processing-Blender
f3faae3fc56a3ef8f2eabba9af8be718e57f4d35
[ "MIT" ]
null
null
null
import bpy import os, glob from pathlib import Path from enum import Enum from abc import ABC, abstractmethod import csv from . import keying_module def export_tracking_data(self, context): clip = context.space_data.clip clip_name = os.path.splitext(clip.name)[0] tracker_name = context.scene.tracking_loca...
30.189474
87
0.644003
1,279
0.445955
0
0
0
0
0
0
546
0.190377
53e4b90b1159d838a8edfa7ab52a953ffb4eca72
437
py
Python
nodes/2.x/python/View.ViewTemplate.py
andydandy74/ClockworkForDynamo
bd4ac2c13956a02352a458d01096a35b7258d9f2
[ "MIT" ]
147
2016-02-24T16:37:03.000Z
2022-02-18T12:10:34.000Z
nodes/2.x/python/View.ViewTemplate.py
johnpierson/ClockworkForDynamo
953d3f56b75e99561978925756e527357f9978dd
[ "MIT" ]
269
2016-02-25T14:04:14.000Z
2022-03-26T07:30:53.000Z
nodes/2.x/python/View.ViewTemplate.py
johnpierson/ClockworkForDynamo
953d3f56b75e99561978925756e527357f9978dd
[ "MIT" ]
89
2016-03-16T18:21:56.000Z
2022-02-03T14:34:30.000Z
import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import * def GetViewTemplate(view): if not view: return None elif hasattr(view, "ViewTemplateId"): if view.ViewTemplateId.IntegerValue == -1: return None else: return view.Document.GetElement(view.ViewTemplateId) else: return None views = UnwrapEle...
29.133333
69
0.757437
0
0
0
0
0
0
0
0
26
0.059497
53e73c9f153e27f98b4ee8cc325ad02d4ef90185
8,267
py
Python
infrastructure-provisioning/src/general/scripts/gcp/dataengine-service_prepare.py
bohdana-kuzmenko/incubator-dlab
d052709450e7916860c7dd191708d5524cf44c1e
[ "Apache-2.0" ]
null
null
null
infrastructure-provisioning/src/general/scripts/gcp/dataengine-service_prepare.py
bohdana-kuzmenko/incubator-dlab
d052709450e7916860c7dd191708d5524cf44c1e
[ "Apache-2.0" ]
null
null
null
infrastructure-provisioning/src/general/scripts/gcp/dataengine-service_prepare.py
bohdana-kuzmenko/incubator-dlab
d052709450e7916860c7dd191708d5524cf44c1e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # ***************************************************************************** # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The A...
57.013793
178
0.670134
0
0
0
0
0
0
0
0
4,042
0.488932
53e7f5b9bbd28821250ea584ab34945cec2c0582
931
py
Python
02.py
mattias-lundell/aoc2021
32bd41446d963c5788d4614106405be65de81bcd
[ "MIT" ]
null
null
null
02.py
mattias-lundell/aoc2021
32bd41446d963c5788d4614106405be65de81bcd
[ "MIT" ]
null
null
null
02.py
mattias-lundell/aoc2021
32bd41446d963c5788d4614106405be65de81bcd
[ "MIT" ]
null
null
null
test = """forward 5 down 5 forward 8 up 3 down 8 forward 2 """ def part1(lines): h = 0 d = 0 for line in lines: direction, delta = line.split() delta = int(delta) if direction == 'forward': h += delta elif direction == 'down': d += delta elif...
19.395833
39
0.493018
0
0
0
0
0
0
0
0
123
0.132116
53e86b46c3285488d7ebc41a01e6a577e706cb66
693
py
Python
associations/migrations/0001_initial.py
ollc-code/django-back
205f3adc61f9e62c88dfcc170999cef495cebed7
[ "MIT" ]
null
null
null
associations/migrations/0001_initial.py
ollc-code/django-back
205f3adc61f9e62c88dfcc170999cef495cebed7
[ "MIT" ]
null
null
null
associations/migrations/0001_initial.py
ollc-code/django-back
205f3adc61f9e62c88dfcc170999cef495cebed7
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-09 08:56 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Associations', fields=[ ('id', models.AutoF...
27.72
114
0.580087
600
0.865801
0
0
0
0
0
0
114
0.164502
53e96f34f945ecef4aebd95bbb66a14049ee97c2
4,631
py
Python
tests/pds/test_times.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
4
2019-09-16T15:50:22.000Z
2021-04-08T15:32:48.000Z
tests/pds/test_times.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
3
2018-05-04T09:28:24.000Z
2018-12-03T09:00:31.000Z
tests/pds/test_times.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
1
2020-10-12T15:14:17.000Z
2020-10-12T15:14:17.000Z
"""Test PDS times modules.""" from datetime import datetime as dt from pyvims.pds.times import (cassini2utc, cassini_time, dt_date, dt_doy, dt_iso, dyear, pds_folder, pds_time, utc2cassini) from pytest import approx, raises def test_dt_iso(): """Test parsing ISO time pattern.""" ...
34.559701
89
0.628374
0
0
0
0
0
0
0
0
2,055
0.443174
53e9f02f64051ff304c3ebef251b469302530c2e
626
py
Python
e/mail-relay/web/apps/mail/migrations/0109_auto_20171130_1047.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
e/mail-relay/web/apps/mail/migrations/0109_auto_20171130_1047.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
e/mail-relay/web/apps/mail/migrations/0109_auto_20171130_1047.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('mail', '0108_auto_20171130_1004'), ] operations = [ migrations.AlterModelOptions( name='relaysenderwhitelist', ...
27.217391
113
0.635783
517
0.825879
0
0
0
0
0
0
246
0.392971
53ea00fc5aec5aef16f52f772300f59c029df625
11,168
py
Python
venv/lib/python3.6/site-packages/ansible_test/_data/sanity/code-smell/runtime-metadata.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_test/_data/sanity/code-smell/runtime-metadata.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_test/_data/sanity/code-smell/runtime-metadata.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Schema validation of ansible-core's ansible_builtin_runtime.yml and collection's meta/runtime.yml""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import datetime import os import re import sys from distutils.version import StrictVersion, LooseVersion ...
39.885714
112
0.632969
0
0
0
0
0
0
0
0
3,385
0.303098
53eb2f5275fa111e5a11e8a6b19fe5db87a5dc8d
2,160
py
Python
catkin_ws/src/o2ac_flexbe/o2ac_flexbe_states/src/o2ac_flexbe_states/align_bearing_holes.py
mitdo/o2ac-ur
74c82a54a693bf6a3fc995ff63e7c91ac1fda6fd
[ "MIT" ]
32
2021-09-02T12:29:47.000Z
2022-03-30T21:44:10.000Z
catkin_ws/src/o2ac_flexbe/o2ac_flexbe_states/src/o2ac_flexbe_states/align_bearing_holes.py
kroglice/o2ac-ur
f684f21fd280a22ec061dc5d503801f6fefb2422
[ "MIT" ]
4
2021-09-22T00:51:14.000Z
2022-01-30T11:54:19.000Z
catkin_ws/src/o2ac_flexbe/o2ac_flexbe_states/src/o2ac_flexbe_states/align_bearing_holes.py
kroglice/o2ac-ur
f684f21fd280a22ec061dc5d503801f6fefb2422
[ "MIT" ]
7
2021-11-02T12:26:09.000Z
2022-02-01T01:45:22.000Z
#!/usr/bin/env python from flexbe_core import EventState, Logger from flexbe_core.proxy import ProxyActionClient # example import of required action from o2ac_msgs.msg import AlignBearingHolesAction, AlignBearingHolesGoal class AlignBearingHolesActionState(EventState): ''' Actionlib for aligning the bearing ...
30.422535
72
0.600463
1,934
0.89537
0
0
0
0
0
0
583
0.269907
53eb9134fe73eaf59759bdec6bb46f044d4317f1
6,710
py
Python
find_unicode_control.py
sebastian-philipp/find-unicode-control
170730aff64d17a4d9c57b0284d862c932e1565c
[ "BSD-3-Clause" ]
null
null
null
find_unicode_control.py
sebastian-philipp/find-unicode-control
170730aff64d17a4d9c57b0284d862c932e1565c
[ "BSD-3-Clause" ]
null
null
null
find_unicode_control.py
sebastian-philipp/find-unicode-control
170730aff64d17a4d9c57b0284d862c932e1565c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """Find unicode control characters in source files By default the script takes one or more files or directories and looks for unicode control characters in all text files. To narrow down the files, provide a config file with the -c command line, defining a scan_exclude list, which should be a l...
35.882353
109
0.634426
0
0
0
0
0
0
0
0
2,292
0.34158
53ebe27af2c0c28dac914d098023620cb50fc322
1,529
py
Python
igibson/object_states/aabb.py
mamadbiabon/iGibson
d416a470240eb7ad86e04fee475ae4bd67263a7c
[ "MIT" ]
360
2020-04-02T11:12:09.000Z
2022-03-24T21:46:58.000Z
igibson/object_states/aabb.py
mamadbiabon/iGibson
d416a470240eb7ad86e04fee475ae4bd67263a7c
[ "MIT" ]
169
2020-04-07T21:01:05.000Z
2022-03-31T10:07:39.000Z
igibson/object_states/aabb.py
mamadbiabon/iGibson
d416a470240eb7ad86e04fee475ae4bd67263a7c
[ "MIT" ]
94
2020-04-09T23:22:17.000Z
2022-03-17T21:49:03.000Z
import numpy as np from igibson.external.pybullet_tools.utils import aabb_union, get_aabb, get_all_links from igibson.object_states.object_state_base import CachingEnabledObjectState class AABB(CachingEnabledObjectState): def _compute_value(self): body_id = self.obj.get_body_id() all_links = get_...
36.404762
109
0.699804
1,342
0.877698
0
0
0
0
0
0
328
0.214519
53ed119c9b07bf3b0dd5b8ddf0cc3d573400eed1
34,187
py
Python
vsphere/tests/test_vsphere.py
fujigon/integrations-core
256b1c138fd1bf1c71db63698737e813cfda00f8
[ "BSD-3-Clause" ]
null
null
null
vsphere/tests/test_vsphere.py
fujigon/integrations-core
256b1c138fd1bf1c71db63698737e813cfda00f8
[ "BSD-3-Clause" ]
null
null
null
vsphere/tests/test_vsphere.py
fujigon/integrations-core
256b1c138fd1bf1c71db63698737e813cfda00f8
[ "BSD-3-Clause" ]
1
2019-12-23T13:35:17.000Z
2019-12-23T13:35:17.000Z
# (C) Datadog, Inc. 2010-2017 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) from __future__ import unicode_literals import time from datetime import datetime import mock import pytest from mock import MagicMock from pyVmomi import vim from datadog_checks.vsphere import VSphereCheck from...
42.363073
120
0.678796
0
0
0
0
0
0
0
0
9,802
0.286717
53f022c5295afcf5069c62aac2f57d65cf97e719
2,147
py
Python
data_steward/constants/validation/email_notification.py
jp3477/curation
41f98d57c8273d9963ad6d466a237c99b63c74be
[ "MIT" ]
1
2021-04-05T18:06:25.000Z
2021-04-05T18:06:25.000Z
data_steward/constants/validation/email_notification.py
jp3477/curation
41f98d57c8273d9963ad6d466a237c99b63c74be
[ "MIT" ]
null
null
null
data_steward/constants/validation/email_notification.py
jp3477/curation
41f98d57c8273d9963ad6d466a237c99b63c74be
[ "MIT" ]
null
null
null
MANDRILL_API_KEY = 'MANDRILL_API_KEY' UNSET_MANDRILL_API_KEY_MSG = f"Mandrill API key not set in environment variable {MANDRILL_API_KEY}" CONTACT_LIST_QUERY = """ SELECT * FROM `{{project}}.{{dataset}}.{{contact_table}}` """ EHR_OPERATIONS = 'EHR Ops' EHR_OPS_ZENDESK = 'support@aou-ehr-ops.zendesk.com' DATA_CURATION_...
39.036364
116
0.726129
0
0
0
0
0
0
0
0
1,841
0.857476
53f15f1ad7b41be043cf58489197157314abeded
2,110
py
Python
clip/clip.py
keshav11/clip
f426dee5c3a6885ddeba20d450d85fc71951c5ca
[ "MIT" ]
1
2018-03-27T05:13:43.000Z
2018-03-27T05:13:43.000Z
clip/clip.py
keshav11/clip
f426dee5c3a6885ddeba20d450d85fc71951c5ca
[ "MIT" ]
1
2018-03-27T14:57:05.000Z
2018-03-27T14:57:05.000Z
clip/clip.py
keshav11/clip
f426dee5c3a6885ddeba20d450d85fc71951c5ca
[ "MIT" ]
null
null
null
import os import argparse from pathlib import Path CLIP_FILE = os.path.join(Path.home(), '.clip') TEMP_FILE = '.TEMP_FILE' def add_text(key, text): if os.path.exists(CLIP_FILE): open_mode = 'a' else: open_mode = 'w+' with open(CLIP_FILE, open_mode) as clip_file: clip_file.write(ke...
26.708861
95
0.555924
0
0
0
0
0
0
0
0
248
0.117536
53f16f379316b618805c2343722f2905bbfec891
2,383
py
Python
tests/unit/test_nsga2.py
learsi1911/GAMA_pygmo_v4
459807db352dd1c9f9c1e0e322f8c1e9b5abbca0
[ "Apache-2.0" ]
49
2018-10-22T06:05:29.000Z
2021-09-07T20:12:36.000Z
tests/unit/test_nsga2.py
learsi1911/GAMA_pygmo_v4
459807db352dd1c9f9c1e0e322f8c1e9b5abbca0
[ "Apache-2.0" ]
102
2018-10-02T12:00:47.000Z
2021-02-24T14:35:30.000Z
tests/unit/test_nsga2.py
learsi1911/GAMA_pygmo_v4
459807db352dd1c9f9c1e0e322f8c1e9b5abbca0
[ "Apache-2.0" ]
11
2021-06-04T11:56:19.000Z
2022-03-21T20:21:15.000Z
from typing import List, Tuple from gama.genetic_programming.nsga2 import ( NSGAMeta, fast_non_dominated_sort, crowding_distance_assignment, ) def _tuples_to_NSGAMeta(tuples: List[Tuple]) -> List[NSGAMeta]: """ Converts a list of tuples to NSGAMeta objects. """ # Can't declare it directly in a loo...
33.56338
84
0.698699
0
0
0
0
0
0
0
0
250
0.10491
53f1e3a9ae5af85a04a5bf0c18896233f3416fe3
2,738
py
Python
stac_ingest/utils/tds.py
crim-ca/stac-ingest
e4cc2a66fee4b86ec238f139135d78215ec91ea4
[ "Apache-2.0" ]
null
null
null
stac_ingest/utils/tds.py
crim-ca/stac-ingest
e4cc2a66fee4b86ec238f139135d78215ec91ea4
[ "Apache-2.0" ]
null
null
null
stac_ingest/utils/tds.py
crim-ca/stac-ingest
e4cc2a66fee4b86ec238f139135d78215ec91ea4
[ "Apache-2.0" ]
null
null
null
# File taken from https://github.com/Ouranosinc/pavics-vdb/blob/master/catalog/tds.py """Utility function to parse metadata from a THREDDS Data Server catalog.""" def walk(cat, depth=1): """Return a generator walking a THREDDS data catalog for datasets. Parameters ---------- cat : TDSCatalog T...
29.44086
111
0.648283
0
0
559
0.204164
0
0
0
0
1,400
0.511322
53f27d7f999c3ddce62ec7074bca13f18a96eb7b
4,484
py
Python
tact/util.py
brunel-physics/mva_scikit
b0182da89efa466461aaf2cff4387c821df1758b
[ "BSD-3-Clause" ]
null
null
null
tact/util.py
brunel-physics/mva_scikit
b0182da89efa466461aaf2cff4387c821df1758b
[ "BSD-3-Clause" ]
null
null
null
tact/util.py
brunel-physics/mva_scikit
b0182da89efa466461aaf2cff4387c821df1758b
[ "BSD-3-Clause" ]
2
2020-05-18T19:52:32.000Z
2022-01-24T10:07:35.000Z
# -*- coding: utf-8 -*- """ Module containing miscellaneous utility functions. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import collections import itertools import numpy as np class BinaryTree(object): def __init__(self): self.left...
26.222222
79
0.61686
124
0.027654
379
0.084523
0
0
0
0
2,988
0.666369
53f2926766ffb4a7606e6a1c06800d6ce10ac775
3,893
py
Python
src/stochastic_tour.py
DavidNKraemer/ams553-final-project
fc23fe5f126a8bd9ea593c0b339883ec71820a05
[ "MIT" ]
null
null
null
src/stochastic_tour.py
DavidNKraemer/ams553-final-project
fc23fe5f126a8bd9ea593c0b339883ec71820a05
[ "MIT" ]
null
null
null
src/stochastic_tour.py
DavidNKraemer/ams553-final-project
fc23fe5f126a8bd9ea593c0b339883ec71820a05
[ "MIT" ]
null
null
null
import numpy as np import random from collections import namedtuple def generate_prob_matrix(n): matrix = np.random.rand(n, n) for i in range(n): matrix[i][i] = 0 for i in range(n): matrix[i] = (1/np.sum(matrix[i]))*matrix[i] return matrix def categorical(p): return np.random...
25.781457
75
0.5813
2,145
0.550989
0
0
404
0.103776
0
0
42
0.010789
53f4891624f4d3bc5f0cf1971fce25d204c1cf18
1,325
py
Python
orbit/actions/conditional_action_test.py
mcasanova1445/models
37be0fdb4abccca633bb3199a4e6f3f71cd174d9
[ "Apache-2.0" ]
1
2020-09-14T10:46:07.000Z
2020-09-14T10:46:07.000Z
orbit/actions/conditional_action_test.py
mdsaifhaider/models
7214e17eb425963ec3d0295be215d5d26deaeb32
[ "Apache-2.0" ]
8
2020-05-19T00:52:30.000Z
2020-06-04T23:57:20.000Z
orbit/actions/conditional_action_test.py
mdsaifhaider/models
7214e17eb425963ec3d0295be215d5d26deaeb32
[ "Apache-2.0" ]
2
2021-10-07T04:47:04.000Z
2021-12-18T04:18:19.000Z
# Copyright 2022 The Orbit Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
33.125
79
0.739623
570
0.430189
0
0
0
0
0
0
782
0.590189
53f4cffa9d98d6fc50ab66c96fe1f4f487091562
880
py
Python
Customizations/Tagging/show_tags.task.py
phnomcobra/valarie-content
b1f6242605badd2b0b2e53c4320f5d963b5e0b21
[ "MIT" ]
null
null
null
Customizations/Tagging/show_tags.task.py
phnomcobra/valarie-content
b1f6242605badd2b0b2e53c4320f5d963b5e0b21
[ "MIT" ]
null
null
null
Customizations/Tagging/show_tags.task.py
phnomcobra/valarie-content
b1f6242605badd2b0b2e53c4320f5d963b5e0b21
[ "MIT" ]
null
null
null
#!/usr/bin/python ################################################################################ # DOCUMENTS # # Justin Dierking # justin.l.dierking.civ@mail.mil # 614 692 2050 # # 04/22/2018 Original Construction ################################################################################ import traceback impor...
25.882353
80
0.465909
552
0.627273
0
0
0
0
0
0
303
0.344318
53f8fdaf42e35a017e458aac366d4271e4baa22e
1,932
py
Python
examples/python/masked_hist.py
DerThorsten/seglib
4655079e390e301dd93e53f5beed6c9737d6df9f
[ "MIT" ]
null
null
null
examples/python/masked_hist.py
DerThorsten/seglib
4655079e390e301dd93e53f5beed6c9737d6df9f
[ "MIT" ]
null
null
null
examples/python/masked_hist.py
DerThorsten/seglib
4655079e390e301dd93e53f5beed6c9737d6df9f
[ "MIT" ]
null
null
null
import vigra import numpy import pylab from seglib import cgp2d from seglib.preprocessing import norm01 import seglib.edge_detectors.pixel as edp import seglib.region_descriptors.pixel as rdp from seglib.preprocessing import norm01 from seglib.histogram import jointHistogram,histogram from seglib.region_descriptors.p...
27.6
133
0.70911
0
0
0
0
0
0
0
0
283
0.14648
53fa17d1fb343f99d7928294d83a0d41844594ce
748
py
Python
backup/models.py
helwete/simple-backup
c7dd1a08d398f5b4005c187e274e192b2e024f30
[ "MIT" ]
null
null
null
backup/models.py
helwete/simple-backup
c7dd1a08d398f5b4005c187e274e192b2e024f30
[ "MIT" ]
null
null
null
backup/models.py
helwete/simple-backup
c7dd1a08d398f5b4005c187e274e192b2e024f30
[ "MIT" ]
null
null
null
from datetime import date from django.conf import settings from django.db import models # Create your models here. def user_directory_path(instance, filename): # file will be uploaded to MEDIA_ROOT/user_<id>/<filename> today = date.today() return '{0}/{2}/{1}'.format(instance.user.username, filename, toda...
35.619048
94
0.743316
400
0.534759
0
0
0
0
0
0
108
0.144385
53fa743e6670e6a8830a736afc87f494f4f511b4
2,713
py
Python
Kmeans Cluster/Kmeans_Compare.py
Jojoxiao/Machine-Learning-for-Beginner-by-Python3
71b91c9cba5803bd78d4d31be6dabb1d3989e968
[ "MIT" ]
397
2018-05-28T02:07:32.000Z
2022-03-30T09:53:37.000Z
Kmeans Cluster/Kmeans_Compare.py
976634681/Machine-Learning-for-Beginner-by-Python3
d9effcbb1b390dc608a0f4c0a28f0ad03892047a
[ "MIT" ]
4
2019-01-14T16:41:02.000Z
2021-03-11T13:23:06.000Z
Kmeans Cluster/Kmeans_Compare.py
976634681/Machine-Learning-for-Beginner-by-Python3
d9effcbb1b390dc608a0f4c0a28f0ad03892047a
[ "MIT" ]
235
2018-06-28T05:31:40.000Z
2022-03-11T03:20:07.000Z
#-*- coding:utf-8 -*- # &Author AnFany # 引入方法 import Kmeans_AnFany as K_Af # AnFany import Kmeans_Sklearn as K_Sk # Sklearn import matplotlib.pyplot as plt from pylab import mpl # 作图显示中文 mpl.rcParams['font.sans-serif'] = ['FangSong'] # 设置中文字体新宋体 mpl.rcParams['axes.unicode_minus'] = False import numpy as...
25.59434
123
0.573535
0
0
0
0
0
0
0
0
846
0.281344
53faaa8c310593f3046382b5d7e3fa8922d7e1b7
5,544
py
Python
control_panel.py
Stayermax/5dof-bartender-robot
dd04303afd2c252e6f7105e33ba35b01f3915194
[ "MIT" ]
null
null
null
control_panel.py
Stayermax/5dof-bartender-robot
dd04303afd2c252e6f7105e33ba35b01f3915194
[ "MIT" ]
null
null
null
control_panel.py
Stayermax/5dof-bartender-robot
dd04303afd2c252e6f7105e33ba35b01f3915194
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Control panel file """ import pddl_solver as pddl import ik import rospy from get_object_position import get_object_position import time from constants import * from spawn_models import reset_model_position, reset_all, spawn_model, spawn_all_models from delete_models import delete_all, de...
40.173913
170
0.530483
0
0
0
0
0
0
0
0
1,662
0.299784
53fac3e7275b1080c646a6ed12952be14a9e25f1
1,427
py
Python
Enigma/Enigma.py
archanpatkar/Enigma
dbbc1fda99bf451a0284f051c724ed43915dfe2a
[ "MIT" ]
3
2019-06-25T06:46:50.000Z
2021-07-27T14:14:32.000Z
Enigma/Enigma.py
archanpatkar/Enigma
dbbc1fda99bf451a0284f051c724ed43915dfe2a
[ "MIT" ]
null
null
null
Enigma/Enigma.py
archanpatkar/Enigma
dbbc1fda99bf451a0284f051c724ed43915dfe2a
[ "MIT" ]
1
2021-07-27T14:20:30.000Z
2021-07-27T14:20:30.000Z
from Enigma.Rotor import Rotor from Enigma.Reflector import Reflector from Enigma.Plugboard import Plugboard class Enigma: def __init__(self , rotors = [ Rotor(0,"IC") , Rotor(0,"IIC") , Rotor(0,"IIIC") ] , plugboard = Plugboard() , reflector = Reflector("A")): self.rotors = rotors for i in r...
32.431818
143
0.5459
1,316
0.922214
0
0
0
0
0
0
37
0.025929
53fad9cdfe9f1c4fdba68eaa168284de33fce059
647
py
Python
var/spack/repos/builtin/packages/exiv2/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/exiv2/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/exiv2/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Exiv2(CMakePackage): """Exiv2 is a Cross-platform C++ library and a command line utility ...
30.809524
96
0.710974
426
0.658423
0
0
0
0
0
0
482
0.744977
53fb4aef0b525310a37b5aa5c278d91c9afe8fd1
2,711
py
Python
magicauth/send_token.py
JMIdeaMaker/django-magicauth
ffca3423c46f8f3d7e49eaf374b33265d4730587
[ "MIT" ]
null
null
null
magicauth/send_token.py
JMIdeaMaker/django-magicauth
ffca3423c46f8f3d7e49eaf374b33265d4730587
[ "MIT" ]
null
null
null
magicauth/send_token.py
JMIdeaMaker/django-magicauth
ffca3423c46f8f3d7e49eaf374b33265d4730587
[ "MIT" ]
null
null
null
import math from django.contrib.auth import get_user_model from django.contrib.sites.shortcuts import get_current_site from django.core.mail import send_mail from django.template import loader from magicauth import settings as magicauth_settings from django.conf import settings as django_settings from magicauth.model...
36.146667
98
0.69384
2,206
0.813722
0
0
0
0
0
0
516
0.190336
53fbcfdc398532d49a5138646d1108fbc979d12a
2,148
py
Python
qcdb/util/paths.py
loriab/qccddb
d9e156ef8b313ac0633211fc6b841f84a3ddde24
[ "BSD-3-Clause" ]
8
2019-03-28T11:54:59.000Z
2022-03-19T03:31:37.000Z
qcdb/util/paths.py
loriab/qccddb
d9e156ef8b313ac0633211fc6b841f84a3ddde24
[ "BSD-3-Clause" ]
39
2018-10-31T23:02:18.000Z
2021-12-12T22:11:37.000Z
qcdb/util/paths.py
loriab/qccddb
d9e156ef8b313ac0633211fc6b841f84a3ddde24
[ "BSD-3-Clause" ]
9
2018-03-12T20:51:50.000Z
2022-02-28T15:18:34.000Z
import os import sys ## {{{ http://code.activestate.com/recipes/52224/ (r1) def search_file(filename, search_path): """Given an os.pathsep divided `search_path`, find first occurrence of `filename`. Returns full path to file if found or None if unfound. """ file_found = False paths = search_path....
26.85
74
0.603352
374
0.174115
534
0.248603
0
0
0
0
661
0.307728
53fbd095d48c73b6a23ec7ef2c3b6688ff51dfc5
2,380
py
Python
tests/models/DCN_test.py
JiangBowen-master/DeepCTR
291ffb0ff3b8322f64bd839f963d5c7a70e6b358
[ "Apache-2.0" ]
1
2021-09-20T14:12:35.000Z
2021-09-20T14:12:35.000Z
tests/models/DCN_test.py
JiangBowen-master/DeepCTR
291ffb0ff3b8322f64bd839f963d5c7a70e6b358
[ "Apache-2.0" ]
1
2022-02-10T06:29:19.000Z
2022-02-10T06:29:19.000Z
tests/models/DCN_test.py
JiangBowen-master/DeepCTR
291ffb0ff3b8322f64bd839f963d5c7a70e6b358
[ "Apache-2.0" ]
null
null
null
import pytest import tensorflow as tf from deepctr.estimator import DCNEstimator from deepctr.models import DCN from ..utils import check_model, get_test_data, SAMPLE_SIZE, get_test_data_estimator, check_estimator, \ Estimator_TEST_TF1 @pytest.mark.parametrize( 'cross_num,hidden_size,sparse_feature_num,cross...
42.5
122
0.654622
0
0
0
0
1,626
0.683193
0
0
644
0.270588
53fbe12da973d06be5b6afaae786b7644d276650
1,309
py
Python
workflows/post_process_run/fv3post/gsutil.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
5
2021-03-20T22:42:40.000Z
2021-06-30T18:39:36.000Z
workflows/post_process_run/fv3post/gsutil.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
195
2021-09-16T05:47:18.000Z
2022-03-31T22:03:15.000Z
workflows/post_process_run/fv3post/gsutil.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
1
2021-06-16T22:04:24.000Z
2021-06-16T22:04:24.000Z
import os import subprocess import backoff class GSUtilResumableUploadException(Exception): pass def _decode_to_str_if_bytes(s, encoding="utf-8"): if isinstance(s, bytes): return s.decode(encoding) else: return s def authenticate(): try: credentials = os.environ["GOOGLE_AP...
25.666667
85
0.654698
57
0.043545
0
0
549
0.419404
0
0
245
0.187166
53fc42709c54959b0375cdc103e3419eb44ee072
3,012
py
Python
deploy_tix/__main__.py
rpappalax/deploy-tix
a53c7fa7898b9f0c2f530c8abd8bab322a2eb7bc
[ "MIT" ]
null
null
null
deploy_tix/__main__.py
rpappalax/deploy-tix
a53c7fa7898b9f0c2f530c8abd8bab322a2eb7bc
[ "MIT" ]
20
2015-02-24T08:56:47.000Z
2018-07-25T16:35:30.000Z
deploy_tix/__main__.py
rpappalax/deploy-tix
a53c7fa7898b9f0c2f530c8abd8bab322a2eb7bc
[ "MIT" ]
3
2015-04-01T21:39:50.000Z
2020-09-10T19:40:43.000Z
import argparse from deploy_tix.bugzilla_rest_client import BugzillaRESTClient from deploy_tix.release_notes import ReleaseNotes from output_helper import OutputHelper def main(args=None): parser = argparse.ArgumentParser( description='Scripts for creating / updating deployment tickets in \ Bugzi...
30.12
87
0.625166
0
0
0
0
0
0
0
0
937
0.311089
53fce9990550dc9cdc1a65b09b6de93156132380
2,583
py
Python
site-packages/visual/examples/drape.py
lebarsfa/vpython-wx
38df062e5532b79f632f4f2a1abae86754c264a9
[ "BSL-1.0" ]
68
2015-01-17T05:41:58.000Z
2021-04-24T08:35:24.000Z
site-packages/visual/examples/drape.py
lebarsfa/vpython-wx
38df062e5532b79f632f4f2a1abae86754c264a9
[ "BSL-1.0" ]
16
2015-01-02T19:36:06.000Z
2018-09-09T21:01:25.000Z
site-packages/visual/examples/drape.py
lebarsfa/vpython-wx
38df062e5532b79f632f4f2a1abae86754c264a9
[ "BSL-1.0" ]
37
2015-02-04T04:23:00.000Z
2020-06-07T03:24:41.000Z
from visual import * print(""" Click to place spheres under falling string. Right button drag or Ctrl-drag to rotate view. Middle button drag or Alt-drag to zoom in or out. On a two-button mouse, middle is left + right. """) # David Scherer scene.title = "Drape" restlength = 0.02 m = 0.010 * restlengt...
27.189474
81
0.542005
0
0
0
0
0
0
0
0
652
0.25242
53fd39f8be55af2124122647f83ca83013ed5b72
8,921
py
Python
sdc/utilities/sdc_typing_utils.py
dlee992/sdc
1ebf55c00ef38dfbd401a70b3945e352a5a38b87
[ "BSD-2-Clause" ]
540
2017-06-19T16:29:24.000Z
2019-05-21T09:30:07.000Z
sdc/utilities/sdc_typing_utils.py
dlee992/sdc
1ebf55c00ef38dfbd401a70b3945e352a5a38b87
[ "BSD-2-Clause" ]
389
2019-10-30T18:56:46.000Z
2022-03-09T08:21:36.000Z
sdc/utilities/sdc_typing_utils.py
dlee992/sdc
1ebf55c00ef38dfbd401a70b3945e352a5a38b87
[ "BSD-2-Clause" ]
36
2017-06-19T16:29:15.000Z
2019-04-26T09:22:39.000Z
# ***************************************************************************** # Copyright (c) 2020, Intel Corporation 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 sou...
34.311538
109
0.690954
1,546
0.173299
0
0
0
0
0
0
3,978
0.445914
53fde8ce197812a38b7631459a915158d4d2d39f
1,074
py
Python
Hackerrank/Contests/Project Euler/euler010.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
1
2021-01-10T13:29:21.000Z
2021-01-10T13:29:21.000Z
Hackerrank/Contests/Project Euler/euler010.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
Hackerrank/Contests/Project Euler/euler010.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
from math import sqrt # Naive method: Loop through N and check if every number is prime or not. If prime add to sum. Time complexity is O(√n). Time of execution ~ 8sec for n = 1000000 def prime(n): yield 2 yield 3 for p in range(5, n+1, 2): if p % 3 == 0: continue else: ...
23.347826
161
0.515829
0
0
298
0.276952
0
0
0
0
264
0.245353
53fe751d15505be94879d0853534a2ee2c6e3129
3,891
py
Python
DQM/L1TMonitorClient/python/L1EmulatorErrorFlagClient_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/L1TMonitorClient/python/L1EmulatorErrorFlagClient_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/L1TMonitorClient/python/L1EmulatorErrorFlagClient_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDHarvester import DQMEDHarvester l1EmulatorErrorFlagClient = DQMEDHarvester("L1EmulatorErrorFlagClient", # # for each L1 system, give: # - SystemLabel: system label # - HwValLabel: system label as used in hardware validation ...
45.776471
101
0.40992
0
0
0
0
0
0
0
0
704
0.18093
53ff445026af64cf9c890da3e25303bb69266c4d
17,382
py
Python
codalab/model/tables.py
jzwang43/codalab-worksheets
b1d4c6cc4b72f4dfa35a15f876e2d0ce9a03d28d
[ "Apache-2.0" ]
null
null
null
codalab/model/tables.py
jzwang43/codalab-worksheets
b1d4c6cc4b72f4dfa35a15f876e2d0ce9a03d28d
[ "Apache-2.0" ]
null
null
null
codalab/model/tables.py
jzwang43/codalab-worksheets
b1d4c6cc4b72f4dfa35a15f876e2d0ce9a03d28d
[ "Apache-2.0" ]
null
null
null
""" The SQLAlchemy table objects for the CodaLab bundle system tables. """ # TODO: Replace String and Text columns with Unicode and UnicodeText as appropriate # This way, SQLAlchemy will automatically perform conversions to and from UTF-8 # encoding, or use appropriate database engine-specific data types for Unicode # ...
36.904459
136
0.676159
0
0
0
0
0
0
0
0
6,636
0.381774
53ff8a47a271e5535277c6325b7ff8df26908ae6
31,403
py
Python
grpc/plugins/connection/gnmi.py
hansthienpondt/ansible-networking-collections
278c88fceac297693a31df3cb54c942284823fbd
[ "BSD-3-Clause" ]
null
null
null
grpc/plugins/connection/gnmi.py
hansthienpondt/ansible-networking-collections
278c88fceac297693a31df3cb54c942284823fbd
[ "BSD-3-Clause" ]
null
null
null
grpc/plugins/connection/gnmi.py
hansthienpondt/ansible-networking-collections
278c88fceac297693a31df3cb54c942284823fbd
[ "BSD-3-Clause" ]
null
null
null
# (c) 2020 Nokia # # Licensed under the BSD 3 Clause license # SPDX-License-Identifier: BSD-3-Clause # from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ --- author: - "Hans Thienpondt (@HansThienpondt)" - "Sven Wisotzky (@wisotzky)" connection: gnmi short_...
37.74399
124
0.583384
23,542
0.749674
913
0.029074
7,336
0.233608
0
0
16,131
0.513677
9900a4818a6a2131c9358bacda678af44a4371c0
4,056
py
Python
testcases/cloud_admin/services_up_test.py
tbeckham/eutester
1440187150ce284bd87147e71ac7f0fda194b4d9
[ "BSD-2-Clause" ]
null
null
null
testcases/cloud_admin/services_up_test.py
tbeckham/eutester
1440187150ce284bd87147e71ac7f0fda194b4d9
[ "BSD-2-Clause" ]
null
null
null
testcases/cloud_admin/services_up_test.py
tbeckham/eutester
1440187150ce284bd87147e71ac7f0fda194b4d9
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # Software License Agreement (BSD License) # # Copyright (c) 2009-2011, Eucalyptus Systems, Inc. # All rights reserved. # # Redistribution and use of this software in source and binary forms, with or # without modification, are permitted provided that the following conditions # are met: # # Redistri...
42.25
115
0.704389
1,804
0.444773
0
0
0
0
0
0
2,383
0.587525
99019a837f86e3b14c54300ab0d06ff51f85071a
173
py
Python
intValues.py
jules552/ProjetISN
20da3572b59af25a166022bc2f5b25d46add2650
[ "Unlicense" ]
null
null
null
intValues.py
jules552/ProjetISN
20da3572b59af25a166022bc2f5b25d46add2650
[ "Unlicense" ]
null
null
null
intValues.py
jules552/ProjetISN
20da3572b59af25a166022bc2f5b25d46add2650
[ "Unlicense" ]
null
null
null
MAP = 1 SPEED = 1.5 VELOCITYRESET = 6 WIDTH = 1280 HEIGHT = 720 X = WIDTH / 2 - 50 Y = HEIGHT / 2 - 50 MOUSER = 325 TICKRATES = 120 nfc = False raspberry = False
14.416667
20
0.606936
0
0
0
0
0
0
0
0
0
0
990280dc9a383a0a37cbb821de57615b46aa6a23
401
py
Python
April/Apr_25_2019/builder.py
while1618/DailyCodingProblem
187909f78281828da543439646cdf52d64c2bd0c
[ "MIT" ]
1
2019-11-17T10:56:28.000Z
2019-11-17T10:56:28.000Z
April/Apr_25_2019/builder.py
while1618/DailyCodingProblem
187909f78281828da543439646cdf52d64c2bd0c
[ "MIT" ]
null
null
null
April/Apr_25_2019/builder.py
while1618/DailyCodingProblem
187909f78281828da543439646cdf52d64c2bd0c
[ "MIT" ]
1
2021-11-02T01:00:37.000Z
2021-11-02T01:00:37.000Z
# This problem was asked by Facebook. # # A builder is looking to build a row of N houses that can be of K different colors. # He has a goal of minimizing cost while ensuring that no two neighboring houses are of the same color. # # Given an N by K matrix where the nth row and kth column represents the cost to build th...
44.555556
116
0.763092
0
0
0
0
0
0
0
0
393
0.98005
99050763178e67f3f1f7faee3c71dfb0a78b6af1
4,521
py
Python
experiments/delaney/plot.py
pfnet-research/bayesgrad
5db613391777b20b7a367c274804f0b736991b0a
[ "MIT" ]
57
2018-06-30T01:47:19.000Z
2022-03-03T17:21:42.000Z
experiments/delaney/plot.py
pfnet-research/bayesgrad
5db613391777b20b7a367c274804f0b736991b0a
[ "MIT" ]
null
null
null
experiments/delaney/plot.py
pfnet-research/bayesgrad
5db613391777b20b7a367c274804f0b736991b0a
[ "MIT" ]
8
2018-07-07T06:18:40.000Z
2021-02-23T21:58:45.000Z
import argparse import numpy as np import os import sys import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from saliency.visualizer.smiles_visualizer import SmilesVisualizer def visualize(dir_path): ...
35.320313
116
0.628622
0
0
0
0
0
0
0
0
877
0.193984
99062a5160d0b8327745e2f7901f243a1d23d8b8
853
py
Python
public/js/tinymice/plugins/bootstrap/jquery-file-tree/connectors/jqueryFileTree.py
btybug/main.albumbugs
2343466bae7ee3d8941abc4c9684667cccc3e103
[ "MIT" ]
13
2016-05-25T16:12:49.000Z
2021-04-09T01:49:24.000Z
public/js/tinymice/plugins/bootstrap/jquery-file-tree/connectors/jqueryFileTree.py
btybug/main.albumbugs
2343466bae7ee3d8941abc4c9684667cccc3e103
[ "MIT" ]
265
2015-10-19T02:40:55.000Z
2022-03-28T07:24:49.000Z
public/js/tinymice/plugins/bootstrap/jquery-file-tree/connectors/jqueryFileTree.py
btybug/main.albumbugs
2343466bae7ee3d8941abc4c9684667cccc3e103
[ "MIT" ]
7
2016-02-08T11:41:40.000Z
2021-06-08T18:18:02.000Z
# # jQuery File Tree # Python/Django connector script # By Martin Skou # import os import urllib def dirlist(request): r=['<ul class="jqueryFileTree" style="display: none;">'] try: r=['<ul class="jqueryFileTree" style="display: none;">'] d=urllib.unquote(request.POST.get('dir','c:\\temp')) f...
32.807692
101
0.548652
0
0
0
0
0
0
0
0
383
0.449004
990961ddde648d8a6e8bdae1002af6b0a3fe992c
1,639
py
Python
gpytorch/lazy/chol_lazy_tensor.py
harvineet/gpytorch
8aa8f1a4298ef61cfea9c4d11c75576a84ffcc3e
[ "MIT" ]
null
null
null
gpytorch/lazy/chol_lazy_tensor.py
harvineet/gpytorch
8aa8f1a4298ef61cfea9c4d11c75576a84ffcc3e
[ "MIT" ]
null
null
null
gpytorch/lazy/chol_lazy_tensor.py
harvineet/gpytorch
8aa8f1a4298ef61cfea9c4d11c75576a84ffcc3e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import torch from .lazy_tensor import LazyTensor from .root_lazy_tensor import RootLazyTensor from .. import settings class CholLazyTensor(RootLazyTensor): def __init__(self, chol): if isinstance(chol, LazyTensor): # Probably is an instance of NonLazyTensor chol = cho...
33.44898
113
0.654667
1,493
0.910921
0
0
357
0.217816
0
0
239
0.145821
9909642cf635ba7b413ffb8f974cd5801c613d72
5,765
py
Python
pirates/audio/AmbientManagerBase.py
ksmit799/POTCO-PS
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
8
2017-01-24T04:33:29.000Z
2020-11-01T08:36:24.000Z
pirates/audio/AmbientManagerBase.py
ksmit799/Pirates-Online-Remake
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
1
2017-03-02T18:05:17.000Z
2017-03-14T06:47:10.000Z
pirates/audio/AmbientManagerBase.py
ksmit799/Pirates-Online-Remake
520d38935ae8df4b452c733a82c94dddac01e275
[ "Apache-2.0" ]
11
2017-03-02T18:46:07.000Z
2020-11-01T08:36:26.000Z
# File: A (Python 2.4) from pandac.PandaModules import AudioSound from direct.directnotify import DirectNotifyGlobal from direct.interval.IntervalGlobal import LerpFunc, Sequence from direct.showbase.DirectObject import DirectObject class AmbientSound: notify = DirectNotifyGlobal.directNotify.newCategory('Ambient...
30.828877
153
0.601214
5,492
0.952645
0
0
0
0
0
0
181
0.031396
99096743e56d22ad0a53c9983c2e48c412dd1c0f
890
py
Python
test/tests/import_test.py
jmgc/pyston
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/tests/import_test.py
jmgc/pyston
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/import_test.py
jmgc/pyston
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
import import_target print import_target.x import import_target import_target.foo() c = import_target.C() print import_target.import_nested_target.y import_target.import_nested_target.bar() d = import_target.import_nested_target.D() print "testing importfrom:" from import_target import x as z print z import_nested...
20.227273
65
0.837079
0
0
0
0
0
0
0
0
86
0.096629
99098c029853719101bfb8070fc7fe3e4ddbd2c3
6,801
py
Python
hexrd/ui/matrix_editor.py
HEXRD/hexrdgui
d92915463f237e0521b5830655ae73bc5bcd9f80
[ "BSD-3-Clause" ]
13
2020-02-18T00:23:02.000Z
2022-02-24T20:04:36.000Z
hexrd/ui/matrix_editor.py
HEXRD/hexrdgui
d92915463f237e0521b5830655ae73bc5bcd9f80
[ "BSD-3-Clause" ]
656
2020-01-14T02:33:40.000Z
2022-03-26T15:31:17.000Z
hexrd/ui/matrix_editor.py
HEXRD/hexrdgui
d92915463f237e0521b5830655ae73bc5bcd9f80
[ "BSD-3-Clause" ]
6
2020-01-17T15:02:53.000Z
2020-11-01T22:02:48.000Z
import numpy as np from PySide2.QtCore import QSignalBlocker, Signal from PySide2.QtWidgets import QGridLayout, QWidget from hexrd.ui.scientificspinbox import ScientificDoubleSpinBox DEFAULT_ENABLED_STYLE_SHEET = 'background-color: white' DEFAULT_DISABLED_STYLE_SHEET = 'background-color: #F0F0F0' INVALID_MATRIX_STY...
27.987654
78
0.617115
5,629
0.827672
0
0
2,288
0.336421
0
0
764
0.112336
990aa6cbf16ed34f5030609c03ab43c0f0ed8c2a
674
py
Python
data/train/python/990aa6cbf16ed34f5030609c03ab43c0f0ed8c2aurls.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/990aa6cbf16ed34f5030609c03ab43c0f0ed8c2aurls.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/990aa6cbf16ed34f5030609c03ab43c0f0ed8c2aurls.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
from django.conf.urls.defaults import * urlpatterns = patterns('pytorque.views', (r'^$', 'central_dispatch_view'), (r'^browse$', 'central_dispatch_view'), (r'^monitor$', 'central_dispatch_view'), (r'^submit$', 'central_dispatch_view'), (r'^stat$', 'central_dispatch_view'), (r'^login/$', 'login...
33.7
58
0.569733
0
0
0
0
0
0
0
0
508
0.753709
990b3873866758deed49ecf19b9f6e265d5bd2a4
3,616
py
Python
checkerpy/types/all/typedtuple.py
yedivanseven/CheckerPy
04612086d25fecdd0b20ca0a050db8620c437b0e
[ "MIT" ]
1
2018-01-12T19:20:51.000Z
2018-01-12T19:20:51.000Z
checkerpy/types/all/typedtuple.py
yedivanseven/CheckerPy
04612086d25fecdd0b20ca0a050db8620c437b0e
[ "MIT" ]
null
null
null
checkerpy/types/all/typedtuple.py
yedivanseven/CheckerPy
04612086d25fecdd0b20ca0a050db8620c437b0e
[ "MIT" ]
null
null
null
from typing import Tuple, Union, Any, Sequence from collections import deque, defaultdict, OrderedDict from ...validators.one import JustLen from ...functional.mixins import CompositionClassMixin from ..one import Just dict_keys = type({}.keys()) odict_keys = type(OrderedDict({}).keys()) dict_values = type({}.values()...
35.45098
78
0.641316
2,940
0.813053
0
0
854
0.236173
0
0
1,578
0.436394
54c99a336aaeb2a2bf8fbb1530f743b492eca07a
2,019
py
Python
data/analyzer/linux/lib/common/abstracts.py
iswenhao/Panda-Sandbox
a04069d404cb4326ff459e703f14625dc45759ed
[ "MIT" ]
2
2021-01-12T15:42:05.000Z
2021-01-13T04:59:39.000Z
data/analyzer/linux/lib/common/abstracts.py
iswenhao/Panda-Sandbox
a04069d404cb4326ff459e703f14625dc45759ed
[ "MIT" ]
null
null
null
data/analyzer/linux/lib/common/abstracts.py
iswenhao/Panda-Sandbox
a04069d404cb4326ff459e703f14625dc45759ed
[ "MIT" ]
null
null
null
# Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from lib.api.process import Process from lib.exceptions.exceptions import CuckooPackageError class Package(object): """Base abstract analysis pack...
27.657534
102
0.583952
1,753
0.868252
0
0
0
0
0
0
1,028
0.509163
54ca6e875f242dc42891ee212f00bf7ca42878a5
182
py
Python
rdmo/options/apps.py
Raspeanut/rdmo
9f785010a499c372a2f8368ccf76d2ea4150adcb
[ "Apache-2.0" ]
1
2021-12-13T16:32:25.000Z
2021-12-13T16:32:25.000Z
rdmo/options/apps.py
Raspeanut/rdmo
9f785010a499c372a2f8368ccf76d2ea4150adcb
[ "Apache-2.0" ]
null
null
null
rdmo/options/apps.py
Raspeanut/rdmo
9f785010a499c372a2f8368ccf76d2ea4150adcb
[ "Apache-2.0" ]
1
2021-05-20T09:31:49.000Z
2021-05-20T09:31:49.000Z
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class OptionsConfig(AppConfig): name = 'rdmo.options' verbose_name = _('Options')
22.75
55
0.763736
89
0.489011
0
0
0
0
0
0
23
0.126374
54d0c3f0ae68b706ed041587d739745d17917113
380
py
Python
main/admin.py
sirodoht/mal
82295e1b6a03cd9a7ee1357ca3f5be7a26d0ffe9
[ "MIT" ]
2
2020-03-29T18:47:18.000Z
2020-05-12T07:03:36.000Z
main/admin.py
sirodoht/mal
82295e1b6a03cd9a7ee1357ca3f5be7a26d0ffe9
[ "MIT" ]
null
null
null
main/admin.py
sirodoht/mal
82295e1b6a03cd9a7ee1357ca3f5be7a26d0ffe9
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from main import models class Admin(UserAdmin): list_display = ("id", "username", "email", "date_joined", "last_login") admin.site.register(models.User, Admin) class DocumentAdmin(admin.ModelAdmin): list_display = ("id", "ti...
20
75
0.747368
172
0.452632
0
0
0
0
0
0
57
0.15
54d0c963fcd5c7b6f9c7de58ed61e6d2623f1f5a
3,501
py
Python
cloudshell/cli/configurator.py
QualiSystems/cloudshell-cli
9a38ff37e91e7798511e860603f5a8a79b782472
[ "Apache-2.0" ]
4
2017-01-31T14:05:19.000Z
2019-04-10T16:35:44.000Z
cloudshell/cli/configurator.py
QualiSystems/cloudshell-cli
9a38ff37e91e7798511e860603f5a8a79b782472
[ "Apache-2.0" ]
89
2016-05-25T14:17:38.000Z
2022-03-17T13:09:59.000Z
cloudshell/cli/configurator.py
QualiSystems/cloudshell-cli
9a38ff37e91e7798511e860603f5a8a79b782472
[ "Apache-2.0" ]
6
2016-07-21T12:24:10.000Z
2022-02-21T06:33:18.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import sys from abc import ABCMeta, abstractmethod from collections import defaultdict from cloudshell.cli.factory.session_factory import ( CloudInfoAccessKeySessionFactory, GenericSessionFactory, SessionFactory, ) from cloudshell.cli.service.cli import CLI from cl...
32.119266
120
0.694087
2,896
0.827192
0
0
531
0.151671
0
0
982
0.280491
54d0e7ae83bd72293871a6d51b4fbe8e0a0e701d
142
py
Python
examples/ingenerator.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
206
2021-06-24T16:16:13.000Z
2022-03-31T07:44:17.000Z
examples/ingenerator.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
13
2021-06-24T17:51:36.000Z
2022-02-23T10:07:17.000Z
examples/ingenerator.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
14
2021-06-26T02:19:45.000Z
2022-03-30T03:02:49.000Z
def main(): n = 111 gen = (n * 7 for x in range(10)) if 777 in gen: print("Yes!") if __name__ == '__main__': main()
14.2
36
0.485915
0
0
0
0
0
0
0
0
16
0.112676
54d2af6cc6ffcbe94ad442887d35faa47a8ec2cd
1,090
py
Python
source/packages/scs-pm-server/src/python-server/app.py
amittkSharma/scs_predictive_maintenance
105a218b47d81d02f7e799287bd1e9279db452ce
[ "MIT" ]
null
null
null
source/packages/scs-pm-server/src/python-server/app.py
amittkSharma/scs_predictive_maintenance
105a218b47d81d02f7e799287bd1e9279db452ce
[ "MIT" ]
1
2022-02-05T17:13:00.000Z
2022-02-05T17:13:00.000Z
source/packages/scs-pm-server/src/python-server/app.py
amittkSharma/scs_predictive_maintenance
105a218b47d81d02f7e799287bd1e9279db452ce
[ "MIT" ]
null
null
null
import json import logging import joblib import pandas as pd from flask import Flask, jsonify, request from flask_cors import CORS, cross_origin app = Flask(__name__) CORS(app) @app.route("/api/machinePrediction", methods=['GET']) def home(): incomingMachineId = request.args.get('machineId') modelPath = requ...
24.222222
67
0.709174
0
0
0
0
816
0.748624
0
0
193
0.177064
54d3039f58743cfa00e492ea3768046369054479
4,411
py
Python
tests/test_remove_from_dependee_chain.py
ess-dmsc/nexus-constructor
ae0026c48f8f2d4d88d3ff00e45cb6591983853b
[ "BSD-2-Clause" ]
3
2019-05-31T08:38:25.000Z
2022-01-06T09:23:21.000Z
tests/test_remove_from_dependee_chain.py
ess-dmsc/nexus-constructor
ae0026c48f8f2d4d88d3ff00e45cb6591983853b
[ "BSD-2-Clause" ]
709
2019-02-06T08:23:07.000Z
2022-03-29T23:03:37.000Z
tests/test_remove_from_dependee_chain.py
ess-dmsc/nexus-constructor
ae0026c48f8f2d4d88d3ff00e45cb6591983853b
[ "BSD-2-Clause" ]
2
2020-03-06T09:58:56.000Z
2020-08-04T18:32:57.000Z
import pytest from PySide2.QtGui import QVector3D from nexus_constructor.model.component import Component from nexus_constructor.model.dataset import Dataset from nexus_constructor.model.instrument import Instrument from nexus_constructor.model.value_type import ValueTypes values = Dataset( name="scalar_value", ...
28.275641
68
0.670143
0
0
0
0
73
0.01655
0
0
231
0.052369
54d32f6738e6ad2c2884cf8b772cee6a6620a984
11,013
py
Python
fastmvsnet/train1.py
molspace/FastMVS_experiments
b897015d77600687ca2addf99bb6a6f0de524e5f
[ "MIT" ]
null
null
null
fastmvsnet/train1.py
molspace/FastMVS_experiments
b897015d77600687ca2addf99bb6a6f0de524e5f
[ "MIT" ]
null
null
null
fastmvsnet/train1.py
molspace/FastMVS_experiments
b897015d77600687ca2addf99bb6a6f0de524e5f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import os.path as osp import logging import time import sys sys.path.insert(0, osp.dirname(__file__) + '/..') import torch import torch.nn as nn from fastmvsnet.config import load_cfg_from_file from fastmvsnet.utils.io import mkdir from fastmvsnet.utils.logger import setup_logger...
37.080808
119
0.562608
0
0
0
0
0
0
0
0
1,020
0.092618
54d41bf8d53f9ade04da7c58f9daea5fe0658840
857
py
Python
modulo2/3-detectores/3.2-detector/models.py
fossabot/unifacisa-visao-computacional
14aef22a3e7fe10ee820d31ce12ad21a3cad7b0b
[ "MIT" ]
null
null
null
modulo2/3-detectores/3.2-detector/models.py
fossabot/unifacisa-visao-computacional
14aef22a3e7fe10ee820d31ce12ad21a3cad7b0b
[ "MIT" ]
null
null
null
modulo2/3-detectores/3.2-detector/models.py
fossabot/unifacisa-visao-computacional
14aef22a3e7fe10ee820d31ce12ad21a3cad7b0b
[ "MIT" ]
1
2021-02-06T00:49:32.000Z
2021-02-06T00:49:32.000Z
# Estrutura básica para projetos de Machine Learning e Deep Learning # Por Adriano Santos. from torch import nn, relu import torch.nn.functional as F import torch.optim as optim import torch from torchvision import models class ResNet(nn.Module): def __init__(self, saida, pretreinado=True): super(ResNet,...
29.551724
86
0.655776
632
0.736597
0
0
0
0
0
0
90
0.104895
54d5248eff89e3f435c1da7e63250cb5c736a60a
3,231
py
Python
python/setup.py
sbrodeur/evert
c7005ba29576145ab650144f9b9230eaf7bec460
[ "BSD-3-Clause" ]
28
2017-10-04T13:58:43.000Z
2021-11-06T10:46:51.000Z
python/setup.py
sbrodeur/evert
c7005ba29576145ab650144f9b9230eaf7bec460
[ "BSD-3-Clause" ]
7
2017-12-04T17:17:55.000Z
2021-07-29T08:58:26.000Z
python/setup.py
sbrodeur/evert
c7005ba29576145ab650144f9b9230eaf7bec460
[ "BSD-3-Clause" ]
10
2017-11-07T14:51:08.000Z
2019-06-05T04:17:44.000Z
#!/usr/bin/env python # Copyright (c) 2017, Simon Brodeur # 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, th...
46.826087
89
0.556484
0
0
0
0
0
0
0
0
2,110
0.653049
54d6049e6360802df5527ba35f15e6ff291748e2
530
py
Python
somegame/fps_osd.py
kodo-pp/somegame-but-not-that-one
6252d34b84fe7c83ada9e699df17688c50dd7596
[ "MIT" ]
null
null
null
somegame/fps_osd.py
kodo-pp/somegame-but-not-that-one
6252d34b84fe7c83ada9e699df17688c50dd7596
[ "MIT" ]
null
null
null
somegame/fps_osd.py
kodo-pp/somegame-but-not-that-one
6252d34b84fe7c83ada9e699df17688c50dd7596
[ "MIT" ]
null
null
null
import pygame from loguru import logger from somegame.osd import OSD class FpsOSD(OSD): def __init__(self, game): super().__init__(game) logger.info('Loading font') self.font = pygame.font.Font(pygame.font.get_default_font(), 32) def draw(self, surface): fps = self.game.get_a...
29.444444
85
0.635849
457
0.862264
0
0
0
0
0
0
41
0.077358
54d6ce148b09071a1e33198868f6c84a03813ea1
11,846
py
Python
python/chronos/test/bigdl/chronos/data/experimental/test_xshardstsdataset.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/chronos/test/bigdl/chronos/data/experimental/test_xshardstsdataset.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/chronos/test/bigdl/chronos/data/experimental/test_xshardstsdataset.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # 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 ...
46.454902
100
0.593534
9,829
0.829732
0
0
534
0.045079
0
0
1,794
0.151444
54d7680f93fc7f5f7a46d60f37723337c7dce6f3
2,603
py
Python
zoom_functions.py
WXSD-Sales/ZoomToWebex
16cc663620e2ef2904b0e2857d709aee96b78eb7
[ "MIT" ]
1
2021-10-21T01:36:33.000Z
2021-10-21T01:36:33.000Z
zoom_functions.py
WXSD-Sales/integration-samples
2f18be740329f3c35c78c268a6d4544cae5d313e
[ "MIT" ]
null
null
null
zoom_functions.py
WXSD-Sales/integration-samples
2f18be740329f3c35c78c268a6d4544cae5d313e
[ "MIT" ]
null
null
null
import json import tornado.gen import traceback from base64 import b64encode from tornado.httpclient import AsyncHTTPClient, HTTPRequest, HTTPError from settings import Settings from mongo_db_controller import ZoomUserDB @tornado.gen.coroutine def zoomRefresh(zoom_user): url = "https://zoom.us/oauth/token" p...
38.850746
142
0.661929
0
0
2,330
0.895121
2,376
0.912793
0
0
584
0.224357
54d83fe60a2207f45c149a5e0cac230756ba7376
1,484
py
Python
crypten/mpc/__init__.py
gmuraru/CrypTen
e39a7aaf65436706321fe4e3fc055308c78b6b92
[ "MIT" ]
null
null
null
crypten/mpc/__init__.py
gmuraru/CrypTen
e39a7aaf65436706321fe4e3fc055308c78b6b92
[ "MIT" ]
null
null
null
crypten/mpc/__init__.py
gmuraru/CrypTen
e39a7aaf65436706321fe4e3fc055308c78b6b92
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os from crypten.mpc import primitives # noqa: F401 from crypten.mpc import provider # noqa: F40 from .conte...
28.538462
81
0.768194
0
0
0
0
0
0
0
0
451
0.303908
54d943f36b7e93ff9b844e618cfa99e6c35ca662
2,011
py
Python
contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/pyflakes.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
null
null
null
contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/pyflakes.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
null
null
null
contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/pyflakes.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pyflakes.checke...
35.910714
93
0.721532
1,564
0.777723
290
0.144207
116
0.057683
0
0
740
0.367976
54d95a6a219b638ddca6d85bef7b830f95b22592
2,426
py
Python
pharmrep/forum/models.py
boyombo/pharmrep
2293ceb235dec949c58fa40d1ee43fce172e0ceb
[ "MIT" ]
null
null
null
pharmrep/forum/models.py
boyombo/pharmrep
2293ceb235dec949c58fa40d1ee43fce172e0ceb
[ "MIT" ]
null
null
null
pharmrep/forum/models.py
boyombo/pharmrep
2293ceb235dec949c58fa40d1ee43fce172e0ceb
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.contrib import admin from django.utils.translation import ugettext_lazy as _ class Forum(models.Model): title = models.CharField(max_length=60) description = models.TextField(blank=True, default='') updated = models.DateTi...
32.783784
100
0.659934
2,255
0.929514
0
0
0
0
0
0
62
0.025556
54d9afa8624f72c8f6f8e3ffc3c4fcb52e42ad11
1,744
py
Python
iri-node/fabfile.py
jinnerbichler/home-automflashion
f93442712322ab819651f453437c11f685640e83
[ "Apache-2.0" ]
8
2018-02-06T15:18:08.000Z
2020-07-12T20:16:22.000Z
iri-node/fabfile.py
jinnerbichler/home-autoflashion
f93442712322ab819651f453437c11f685640e83
[ "Apache-2.0" ]
1
2018-09-02T17:10:57.000Z
2018-10-02T04:14:43.000Z
iri-node/fabfile.py
jinnerbichler/home-autoflashion
f93442712322ab819651f453437c11f685640e83
[ "Apache-2.0" ]
1
2019-08-14T04:39:48.000Z
2019-08-14T04:39:48.000Z
import time from fabric.api import run, env, task, put, cd, local, sudo env.use_ssh_config = True env.hosts = ['iota_node'] @task(default=True) def iri(): run('mkdir -p /srv/private-tangle/') with cd('/srv/private-tangle'): put('.', '.') run('docker-compose --project-name private-tangle pull'...
24.222222
113
0.639908
0
0
0
0
1,593
0.913417
0
0
1,014
0.581422
54da3dc2f38e9f403fcf4bc41db3259f59c8f372
1,763
py
Python
features.py
ptorresmanque/MachineLearning_v2.0
795e47b9cfc68f4e0fefb700d43af6c59e2f1d73
[ "MIT" ]
null
null
null
features.py
ptorresmanque/MachineLearning_v2.0
795e47b9cfc68f4e0fefb700d43af6c59e2f1d73
[ "MIT" ]
null
null
null
features.py
ptorresmanque/MachineLearning_v2.0
795e47b9cfc68f4e0fefb700d43af6c59e2f1d73
[ "MIT" ]
null
null
null
import sqlite3 from random import randint, choice import numpy as np conn = sqlite3.connect('ej.db') c = conn.cursor() #OBTENIENDO TAMAnOS MAXIMOS MINIMOS Y PROMEDIO# c.execute('SELECT MAX(alto) FROM features') resultado = c.fetchone() if resultado: altoMax = resultado[0] c.execute('SELECT MIN(alto) FROM featu...
23.506667
103
0.640953
0
0
0
0
0
0
0
0
318
0.180374
54da935d3d5cf04aac496677e269b59710d17100
5,503
py
Python
dev/ideas/cython/playing_around.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
dev/ideas/cython/playing_around.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
dev/ideas/cython/playing_around.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
from pylab import * import cython import time, timeit from brian2.codegen.runtime.cython_rt.modified_inline import modified_cython_inline import numpy from scipy import weave import numexpr import theano from theano import tensor as tt tau = 20 * 0.001 N = 1000000 b = 1.2 # constant current mean, the modul...
30.743017
125
0.589678
0
0
0
0
0
0
0
0
1,898
0.344903
54db106024a4f46cf548821fe280245ccaf57da7
114
py
Python
azbankgateways/views/__init__.py
lordmahyar/az-iranian-bank-gateways
e9eb7101f2b91318847d63d783c22c4a8d430ba3
[ "MIT" ]
196
2020-12-07T11:29:19.000Z
2022-03-23T09:32:56.000Z
azbankgateways/views/__init__.py
lordmahyar/az-iranian-bank-gateways
e9eb7101f2b91318847d63d783c22c4a8d430ba3
[ "MIT" ]
25
2021-01-13T11:56:35.000Z
2022-03-14T19:41:51.000Z
azbankgateways/views/__init__.py
lordmahyar/az-iranian-bank-gateways
e9eb7101f2b91318847d63d783c22c4a8d430ba3
[ "MIT" ]
44
2021-01-08T18:27:47.000Z
2022-03-22T03:36:04.000Z
from .banks import callback_view, go_to_bank_gateway from .samples import sample_payment_view, sample_result_view
38
60
0.877193
0
0
0
0
0
0
0
0
0
0
54db89c835de6895b4c1b46df78297a288ccdb1f
3,254
py
Python
dev/unittest/update.py
PowerDNS/exabgp
bbf69f25853e10432fbe588b5bc2f8d9f1e5dda2
[ "BSD-3-Clause" ]
8
2015-01-11T09:57:26.000Z
2019-07-05T05:57:02.000Z
dev/unittest/update.py
Acidburn0zzz/exabgp
bbf69f25853e10432fbe588b5bc2f8d9f1e5dda2
[ "BSD-3-Clause" ]
1
2018-11-15T22:10:09.000Z
2018-11-15T22:20:31.000Z
dev/unittest/update.py
Acidburn0zzz/exabgp
bbf69f25853e10432fbe588b5bc2f8d9f1e5dda2
[ "BSD-3-Clause" ]
6
2015-09-11T01:51:06.000Z
2020-03-10T19:16:18.000Z
#!/usr/bin/env python # encoding: utf-8 """ update.py Created by Thomas Mangin on 2009-09-06. Copyright (c) 2009-2013 Exa Networks. All rights reserved. """ import unittest from exabgp.configuration.environment import environment env = environment.setup('') from exabgp.bgp.message.update.update import * from exabgp...
38.282353
313
0.667486
2,434
0.748002
0
0
0
0
0
0
668
0.205286
54dbf6330b24d0c6aff3e7ee1c31934c49d43385
12,082
py
Python
nuscenes/eval/detection/evaluate.py
WJ-Lai/NightFusion
1555692eceb6b85127d21cd43e6fc780b7f91ffd
[ "Apache-2.0" ]
null
null
null
nuscenes/eval/detection/evaluate.py
WJ-Lai/NightFusion
1555692eceb6b85127d21cd43e6fc780b7f91ffd
[ "Apache-2.0" ]
1
2019-04-24T12:14:59.000Z
2019-04-24T12:14:59.000Z
nuscenes/eval/detection/evaluate.py
WJ-Lai/NightFusion
1555692eceb6b85127d21cd43e6fc780b7f91ffd
[ "Apache-2.0" ]
null
null
null
# nuScenes dev-kit. # Code written by Holger Caesar & Oscar Beijbom, 2018. # Licensed under the Creative Commons [see licence.txt] import argparse import json import os import random import time from typing import Tuple, Dict, Any import numpy as np from nuscenes import NuScenes from nuscenes.eval.detection.algo imp...
45.421053
120
0.630525
8,984
0.743585
0
0
0
0
0
0
3,934
0.325608
54dcf21edb2556756e4c18e431858f02788f9d3a
9,520
py
Python
tests/get_problem_atcoder.py
aberent/api-client
845e5f1daa02cc7fee5a65234a24bb59a7b71083
[ "MIT" ]
null
null
null
tests/get_problem_atcoder.py
aberent/api-client
845e5f1daa02cc7fee5a65234a24bb59a7b71083
[ "MIT" ]
null
null
null
tests/get_problem_atcoder.py
aberent/api-client
845e5f1daa02cc7fee5a65234a24bb59a7b71083
[ "MIT" ]
null
null
null
import unittest from onlinejudge_api.main import main class DownloadAtCoderTest(unittest.TestCase): def test_icpc2013spring_a(self): """This problem contains both words `Input` and `Output` for the headings for sample outputs. """ url = 'http://jag2013spring.contest.atcoder.jp/tasks/icpc...
36.615385
157
0.411029
9,462
0.993908
0
0
0
0
0
0
4,296
0.451261
54dcf64898b0684c67b6786b86aa9adc1e8b99c7
681
py
Python
odm/libexec/odm_tenant.py
UMCollab/ODM
95da49939dbcd54318a58a132aa76725fd9c0b5f
[ "MIT" ]
2
2019-04-26T13:26:02.000Z
2019-10-18T10:36:52.000Z
odm/libexec/odm_tenant.py
flowerysong/ODM
95da49939dbcd54318a58a132aa76725fd9c0b5f
[ "MIT" ]
1
2020-10-28T00:38:07.000Z
2020-10-28T00:38:07.000Z
odm/libexec/odm_tenant.py
flowerysong/ODM
95da49939dbcd54318a58a132aa76725fd9c0b5f
[ "MIT" ]
1
2019-02-21T16:41:24.000Z
2019-02-21T16:41:24.000Z
#!/usr/bin/env python3 # This file is part of ODM and distributed under the terms of the # MIT license. See COPYING. import json import sys import odm.cli def main(): cli = odm.cli.CLI(['action']) client = cli.client if cli.args.action == 'list-users': print(json.dumps(client.list_users(), ind...
21.28125
79
0.638767
0
0
0
0
0
0
0
0
192
0.281938
54dde115e15519f27b695b4a4ec6e5589e225fb7
17,182
py
Python
tests/test_tag_value_parser.py
quaresmajose/tools-python
53c917a1a2491a373efa23e4ef8570b5e863fabc
[ "Apache-2.0" ]
74
2015-12-25T09:43:18.000Z
2022-03-30T00:23:30.000Z
tests/test_tag_value_parser.py
quaresmajose/tools-python
53c917a1a2491a373efa23e4ef8570b5e863fabc
[ "Apache-2.0" ]
184
2016-11-23T15:57:16.000Z
2022-03-15T05:25:59.000Z
tests/test_tag_value_parser.py
quaresmajose/tools-python
53c917a1a2491a373efa23e4ef8570b5e863fabc
[ "Apache-2.0" ]
98
2015-12-13T12:20:34.000Z
2022-03-18T15:28:35.000Z
# Copyright (c) 2014 Ahmed H. Ismail # 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...
49.091429
178
0.650506
16,325
0.950122
0
0
0
0
0
0
7,968
0.463741
54df90a5374a87e257978dcb4c0e1caa9abfa7f7
2,024
py
Python
mount_drives.py
DT-was-an-ET/fanshim-python-pwm
dd3e6e29251000946e34d80704c040b5bcad7f8e
[ "MIT" ]
null
null
null
mount_drives.py
DT-was-an-ET/fanshim-python-pwm
dd3e6e29251000946e34d80704c040b5bcad7f8e
[ "MIT" ]
null
null
null
mount_drives.py
DT-was-an-ET/fanshim-python-pwm
dd3e6e29251000946e34d80704c040b5bcad7f8e
[ "MIT" ]
3
2020-02-27T13:45:19.000Z
2020-03-26T13:38:17.000Z
# Standard library imports from subprocess import call as subprocess_call from utility import fileexists from time import sleep as time_sleep from datetime import datetime mount_try = 1 not_yet = True done = False start_time = datetime.now() if fileexists("/home/rpi4-sftp/usb/drive_present.txt"): when_usba...
36.142857
107
0.733202
0
0
0
0
0
0
0
0
556
0.274704
54e0817402b9c2ce35c6af23684ce91b4042e10a
5,639
py
Python
home/views.py
Kshitij-Kumar-Singh-Chauhan/docon
bff0547e7bbd030e027217a2ca7800a8da529b56
[ "MIT" ]
null
null
null
home/views.py
Kshitij-Kumar-Singh-Chauhan/docon
bff0547e7bbd030e027217a2ca7800a8da529b56
[ "MIT" ]
null
null
null
home/views.py
Kshitij-Kumar-Singh-Chauhan/docon
bff0547e7bbd030e027217a2ca7800a8da529b56
[ "MIT" ]
2
2021-06-17T05:35:07.000Z
2021-06-17T06:01:23.000Z
from django.http.response import HttpResponse from django.shortcuts import render from django.shortcuts import redirect, render from cryptography.fernet import Fernet from .models import Book, UserDetails from .models import Contact from .models import Book from .models import Report from .models import Diagnostic from...
33.565476
124
0.567477
0
0
0
0
0
0
0
0
1,272
0.225572
54e0e5e26d187af365758e0bf02412dfcafdb712
1,028
py
Python
hkube_python_wrapper/storage/base_storage_manager.py
kube-HPC/python-wrapper.hkube
74713d9fea6689c116ade7d67b7ab67373a79d3b
[ "MIT" ]
1
2021-03-20T06:18:57.000Z
2021-03-20T06:18:57.000Z
hkube_python_wrapper/storage/base_storage_manager.py
kube-HPC/python-wrapper.hkube
74713d9fea6689c116ade7d67b7ab67373a79d3b
[ "MIT" ]
10
2020-04-24T06:58:59.000Z
2022-03-30T14:42:55.000Z
hkube_python_wrapper/storage/base_storage_manager.py
kube-HPC/python-wrapper.hkube
74713d9fea6689c116ade7d67b7ab67373a79d3b
[ "MIT" ]
null
null
null
class BaseStorageManager(object): def __init__(self, adpter): self.adapter = adpter def put(self, options): try: return self.adapter.put(options) except Exception: raise Exception('Failed to write data to storage') def get(self, options): try: ...
27.783784
72
0.59144
1,026
0.998054
0
0
0
0
0
0
162
0.157588
54e0ed7eefaaeac2cfcbec8d464ffc806c518afa
9,892
py
Python
compressor/tests/templatetags.py
bigmlcom/django_compressor
66dfda503633018275fdb64ad46ef80dc9a3901d
[ "Apache-2.0" ]
null
null
null
compressor/tests/templatetags.py
bigmlcom/django_compressor
66dfda503633018275fdb64ad46ef80dc9a3901d
[ "Apache-2.0" ]
null
null
null
compressor/tests/templatetags.py
bigmlcom/django_compressor
66dfda503633018275fdb64ad46ef80dc9a3901d
[ "Apache-2.0" ]
null
null
null
from __future__ import with_statement import os import sys from mock import Mock from django.template import Template, Context, TemplateSyntaxError from django.test import TestCase from compressor.conf import settings from compressor.signals import post_compress from compressor.tests.base import css_tag, test_dir ...
41.563025
107
0.616761
8,840
0.893651
0
0
0
0
0
0
4,634
0.468459
54e0f7ad3e850fa6d21aab5200a2493a26332352
3,324
py
Python
cle/cle/backends/relocations/generic.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
cle/cle/backends/relocations/generic.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
cle/cle/backends/relocations/generic.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
from ...address_translator import AT from ...errors import CLEOperationError from . import Relocation import struct import logging l = logging.getLogger('cle.relocations.generic') class GenericAbsoluteReloc(Relocation): @property def value(self): return self.resolvedby.rebased_addr class GenericAbsol...
36.130435
117
0.666968
3,125
0.940132
0
0
657
0.197653
0
0
619
0.186221
54e179a25d793c478f7e42c99a00025d13aed6d0
1,438
py
Python
codes/Lib/site-packages/openpyxl/writer/tests/test_style.py
charlescayno/automation
a4a34d87f372d49fd69740ad3ca46ae19bf2612d
[ "MIT" ]
null
null
null
codes/Lib/site-packages/openpyxl/writer/tests/test_style.py
charlescayno/automation
a4a34d87f372d49fd69740ad3ca46ae19bf2612d
[ "MIT" ]
null
null
null
codes/Lib/site-packages/openpyxl/writer/tests/test_style.py
charlescayno/automation
a4a34d87f372d49fd69740ad3ca46ae19bf2612d
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2014 openpyxl import pytest from openpyxl.styles.borders import Border, Side from openpyxl.styles.fills import GradientFill from openpyxl.styles.colors import Color from openpyxl.writer.styles import StyleWriter from openpyxl.tests.helper import get_xml, compare_xml class DummyWorkbook: st...
25.678571
78
0.684284
47
0.032684
0
0
0
0
0
0
557
0.387344
54e1fce9e0db363710daf71e66104aba025bc831
477
py
Python
ringapp/migrations/0009_auto_20150116_1759.py
rschwiebert/RingApp
35675b3dd81728d71b7dc70071be3185d7f99bf4
[ "MIT" ]
10
2015-02-02T12:40:05.000Z
2022-01-29T14:11:03.000Z
ringapp/migrations/0009_auto_20150116_1759.py
rschwiebert/RingApp
35675b3dd81728d71b7dc70071be3185d7f99bf4
[ "MIT" ]
22
2015-01-07T21:29:24.000Z
2022-03-19T01:15:13.000Z
ringapp/migrations/0009_auto_20150116_1759.py
rschwiebert/RingApp
35675b3dd81728d71b7dc70071be3185d7f99bf4
[ "MIT" ]
1
2016-08-07T15:41:51.000Z
2016-08-07T15:41:51.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('ringapp', '0008_auto_20150116_1755'), ] operations = [ migrations.AlterModelTable( name='invariance', ...
20.73913
47
0.589099
368
0.771488
0
0
0
0
0
0
113
0.236897
54e218f734c2d85cbff6df8c45d35331a499ae96
654
py
Python
front-end/testsuite-python-lib/Python-3.1/Lib/json/tests/test_dump.py
MalloyPower/parsing-python
b2bca5eed07ea2af7a2001cd4f63becdfb0570be
[ "MIT" ]
1
2020-11-26T18:53:46.000Z
2020-11-26T18:53:46.000Z
Lib/json/tests/test_dump.py
orestis/python
870a82aac7788ffa105e2a3e4480b3715c93bff6
[ "PSF-2.0" ]
null
null
null
Lib/json/tests/test_dump.py
orestis/python
870a82aac7788ffa105e2a3e4480b3715c93bff6
[ "PSF-2.0" ]
2
2018-08-06T04:37:38.000Z
2022-02-27T18:07:12.000Z
from unittest import TestCase from io import StringIO import json class TestDump(TestCase): def test_dump(self): sio = StringIO() json.dump({}, sio) self.assertEquals(sio.getvalue(), '{}') def test_dumps(self): self.assertEquals(json.dumps({}), '{}') def test_encode_truef...
29.727273
69
0.547401
585
0.894495
0
0
0
0
0
0
85
0.129969
54e3b8446107d9bccd2d0bc314395d7a3117387b
7,069
py
Python
src/resources/clients/python_client/visitstate.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/resources/clients/python_client/visitstate.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/resources/clients/python_client/visitstate.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import sys class RPCType(object): CloseRPC = 0 DetachRPC = 1 AddWindowRPC = 2 DeleteWindowRPC = 3 SetWindowLayoutRPC = 4 SetActiveWindowRPC = 5 ClearWindowRPC = 6 ClearAllWindowsRPC = 7 OpenDatabaseRPC = 8 CloseDatabaseRPC = 9 Acti...
34.651961
54
0.660914
7,055
0.99802
0
0
0
0
0
0
0
0
54e459da47af69f9dc842497504519a50554986e
774
py
Python
tests/__init__.py
zhangyiming07/QT4C
2d8d60efe0a4ad78a2618c5beeb0c456a63da067
[ "BSD-3-Clause" ]
53
2020-02-20T06:56:03.000Z
2022-03-03T03:09:25.000Z
tests/__init__.py
zhangyiming07/QT4C
2d8d60efe0a4ad78a2618c5beeb0c456a63da067
[ "BSD-3-Clause" ]
6
2020-03-03T03:15:53.000Z
2021-01-29T02:24:06.000Z
tests/__init__.py
zhangyiming07/QT4C
2d8d60efe0a4ad78a2618c5beeb0c456a63da067
[ "BSD-3-Clause" ]
17
2020-02-26T03:51:41.000Z
2022-03-24T02:23:51.000Z
# -*- coding: utf-8 -*- # # Tencent is pleased to support the open source community by making QT4C available. # Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. # QT4C is licensed under the BSD 3-Clause License, except for the third-party components listed below. # A copy of the BSD 3-Cla...
28.666667
103
0.719638
0
0
0
0
0
0
0
0
397
0.507673