hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
1c6f742ff7bb6409fa5b1d806e2433034d2aa878
1,096
py
Python
distillation/build_student.py
fengxiaoshuai/CNN_model_optimizer
4c48420989ffe31a4075d36a5133fee0d999466a
[ "Apache-2.0" ]
null
null
null
distillation/build_student.py
fengxiaoshuai/CNN_model_optimizer
4c48420989ffe31a4075d36a5133fee0d999466a
[ "Apache-2.0" ]
1
2021-01-05T10:41:24.000Z
2021-01-05T10:41:24.000Z
distillation/build_student.py
fengxiaoshuai/CNN_model_optimizer
4c48420989ffe31a4075d36a5133fee0d999466a
[ "Apache-2.0" ]
1
2020-08-07T02:56:20.000Z
2020-08-07T02:56:20.000Z
import tensorflow as tf import numpy as np with tf.variable_scope("student"): input_label = tf.placeholder(dtype=tf.float32, shape=[10, 10], name="label") input_image = tf.placeholder(dtype=tf.float32, shape=[10, 224, 224, 3], name="input") conv1 = tf.layers.conv2d(inputs=input_image, filters=64, kernel_s...
40.592593
96
0.681569
166
1,096
4.403614
0.39759
0.05472
0.057456
0.077975
0.253078
0.22435
0.22435
0.131327
0
0
0
0.064447
0.150547
1,096
26
97
42.153846
0.72073
0
0
0
0
0
0.046533
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c70409e75cdadbb3949d0d1cde6a6029abd620b
5,365
py
Python
code/statistical_tests.py
ChamiLamelas/Math36B_FinalProject
0bdb5d17769553a4edb163534c21cc641860a07a
[ "MIT" ]
null
null
null
code/statistical_tests.py
ChamiLamelas/Math36B_FinalProject
0bdb5d17769553a4edb163534c21cc641860a07a
[ "MIT" ]
null
null
null
code/statistical_tests.py
ChamiLamelas/Math36B_FinalProject
0bdb5d17769553a4edb163534c21cc641860a07a
[ "MIT" ]
null
null
null
import scipy.stats import numpy as np def f_test(sample_x, sample_y, larger_varx_alt): """ Computes the F-value and corresponding p-value for a pair of samples and alternative hypothesis. Parameters ---------- sample_x : list A random sample x1,...,xnx. Let its (underlying) variance be ox...
41.269231
261
0.654054
906
5,365
3.729581
0.168874
0.030186
0.014797
0.017757
0.66055
0.625629
0.603729
0.575318
0.564664
0.529743
0
0.022249
0.237651
5,365
129
262
41.589147
0.803912
0.608947
0
0.292683
0
0
0.016631
0
0
0
0
0
0
1
0.073171
false
0
0.04878
0
0.195122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c720e3c45ed8efa4771cbbb3a3b55d0385c9d41
1,125
py
Python
finnhub_python/socket.py
humdings/finnhub-python
ca98681e5a529598e9d17e3ebc2f6d49c64b54de
[ "MIT" ]
null
null
null
finnhub_python/socket.py
humdings/finnhub-python
ca98681e5a529598e9d17e3ebc2f6d49c64b54de
[ "MIT" ]
null
null
null
finnhub_python/socket.py
humdings/finnhub-python
ca98681e5a529598e9d17e3ebc2f6d49c64b54de
[ "MIT" ]
null
null
null
""" Example usage of Finnhub socket API. """ from __future__ import print_function # Py2 compat import websocket from finnhub_python.utils import get_finnhub_api_key def write_line(data, fname): with open(fname, 'a+') as f: f.write(data + '\n') def on_message(ws, message): write_line(message, tick_...
20.089286
69
0.604444
144
1,125
4.458333
0.479167
0.031153
0.040498
0.049844
0
0
0
0
0
0
0
0.001202
0.260444
1,125
56
70
20.089286
0.770433
0.042667
0
0
0
0
0.129907
0.05514
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c722363623f21dde32f8eb4058f20a248ddb2fd
2,570
py
Python
pycovjson/cli/convert.py
RileyWilliams/pycovjson
741737f53ef18ef1476eccb5e626866843c152bd
[ "BSD-3-Clause" ]
10
2016-08-16T17:46:30.000Z
2021-04-06T22:03:58.000Z
pycovjson/cli/convert.py
RileyWilliams/pycovjson
741737f53ef18ef1476eccb5e626866843c152bd
[ "BSD-3-Clause" ]
46
2016-07-21T13:14:14.000Z
2020-07-02T09:16:29.000Z
pycovjson/cli/convert.py
RileyWilliams/pycovjson
741737f53ef18ef1476eccb5e626866843c152bd
[ "BSD-3-Clause" ]
6
2016-07-29T09:56:37.000Z
2020-08-23T18:20:47.000Z
""" Pycovjson - Command line interface Author: rileywilliams Version: 0.1.0 """ import argparse from pycovjson.write import Writer from pycovjson.read_netcdf import NetCDFReader as Reader def main(): """ Command line interface for pycovjson - Converts Scientific Data Formats into CovJSON and saves to disk. ...
36.714286
107
0.649027
306
2,570
5.320261
0.330065
0.077396
0.073096
0.03317
0.111794
0
0
0
0
0
0
0.002536
0.232685
2,570
69
108
37.246377
0.823022
0.164591
0
0
0
0
0.2149
0
0
0
0
0
0
1
0.022727
false
0
0.068182
0
0.090909
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c72ce0a57a6b20d9f3b0b840d03685a73126b0e
22,727
py
Python
duels/duels.py
ridinginstyle00/redcogs
216869935f322f7e5927740da22fa36f728c48db
[ "MIT" ]
8
2016-08-23T16:56:17.000Z
2021-07-24T16:44:31.000Z
duels/duels.py
ridinginstyle00/redcogs
216869935f322f7e5927740da22fa36f728c48db
[ "MIT" ]
1
2018-04-25T14:20:06.000Z
2018-04-25T14:20:06.000Z
duels/duels.py
ridinginstyle00/redcogs
216869935f322f7e5927740da22fa36f728c48db
[ "MIT" ]
8
2016-07-26T21:36:44.000Z
2019-08-03T16:38:57.000Z
import discord from discord.ext import commands from .utils import checks from .utils.dataIO import dataIO from __main__ import send_cmd_help from __main__ import settings from datetime import datetime from random import choice from random import sample from copy import deepcopy from collections import namedt...
44.215953
195
0.6267
3,099
22,727
4.504356
0.132623
0.036106
0.060176
0.073071
0.704993
0.670607
0.639372
0.621391
0.597321
0.582492
0
0.015554
0.230563
22,727
514
196
44.215953
0.782696
0.018172
0
0.565789
0
0.008772
0.262099
0.039362
0
0
0
0
0
1
0.028509
false
0.024123
0.037281
0
0.089912
0.008772
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c741e6bc69fc8671df5a15c26f40ce7a3bf09f3
2,839
py
Python
paranuara/citizens/models/citizens.py
SPLAYER-HD/Paranuara
5a42f23d761e16e3b486ba04d9185551614f06a5
[ "MIT" ]
null
null
null
paranuara/citizens/models/citizens.py
SPLAYER-HD/Paranuara
5a42f23d761e16e3b486ba04d9185551614f06a5
[ "MIT" ]
4
2021-06-08T20:53:43.000Z
2022-03-12T00:13:51.000Z
paranuara/citizens/models/citizens.py
SPLAYER-HD/RestServiceDjango
5a42f23d761e16e3b486ba04d9185551614f06a5
[ "MIT" ]
null
null
null
"""Citizens model.""" # Django from django.db import models from django.contrib.auth.models import AbstractUser from django.core.validators import RegexValidator # models from paranuara.companies.models import Company # PostgreSQL fields from django.contrib.postgres.fields import JSONField # Utilities from paranuar...
22.007752
98
0.62205
306
2,839
5.663399
0.441176
0.036353
0.051933
0.069244
0.129256
0.098096
0.051933
0.051933
0.051933
0
0
0.017699
0.283551
2,839
128
99
22.179688
0.834317
0.08031
0
0.197802
0
0
0.126793
0.010857
0
0
0
0
0
1
0.010989
false
0
0.065934
0.010989
0.318681
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c770de3012ff3f97ad6bf07fd17d96b765a28e4
2,442
py
Python
chess/rules.py
DevStrikerTech/Chess-Engine
f0d2e0fc48b820325b1826e4379bf0520c8d3b52
[ "MIT" ]
18
2021-01-26T19:21:45.000Z
2021-01-27T00:32:49.000Z
chess/rules.py
KingCobra2018/Chess-Engine
f0d2e0fc48b820325b1826e4379bf0520c8d3b52
[ "MIT" ]
null
null
null
chess/rules.py
KingCobra2018/Chess-Engine
f0d2e0fc48b820325b1826e4379bf0520c8d3b52
[ "MIT" ]
9
2021-01-26T19:51:20.000Z
2021-01-26T22:39:28.000Z
import pygame from chess.board import Board from .variable_declaration import black_piece, white_piece, position_piece, board_square_size class Rules: def __init__(self, window): self._init() self.window = window def update(self): self.chess_board.draw_pieces(self.window) self...
29.421687
97
0.620393
303
2,442
4.69967
0.188119
0.091292
0.108146
0.120084
0.375
0.25632
0.176264
0.132725
0.095506
0.095506
0
0.003507
0.299345
2,442
82
98
29.780488
0.828755
0
0
0.3
0
0
0
0
0
0
0
0
0
1
0.183333
false
0
0.05
0.033333
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c77f1e65b1460f3b0a09bd95f3c03183aa1bcf6
1,542
py
Python
kivygames/games/noughtsandcrosses/__init__.py
jonathanjameswatson/kivygames
7636580956562af0814c973f94afede926cfa4b9
[ "MIT" ]
null
null
null
kivygames/games/noughtsandcrosses/__init__.py
jonathanjameswatson/kivygames
7636580956562af0814c973f94afede926cfa4b9
[ "MIT" ]
null
null
null
kivygames/games/noughtsandcrosses/__init__.py
jonathanjameswatson/kivygames
7636580956562af0814c973f94afede926cfa4b9
[ "MIT" ]
null
null
null
import numpy as np from kivygames.games import Game import kivygames.games.noughtsandcrosses.c as c class CellOccupiedError(Exception): pass class NoughtsAndCrosses(Game): minPlayers = 2 maxPlayers = 2 hasAI = True gridShape = (3, 3) def __init__(self): Game.__init__(self) ...
26.135593
74
0.586252
184
1,542
4.86413
0.353261
0.111732
0.127374
0.053631
0.094972
0
0
0
0
0
0
0.00932
0.30415
1,542
58
75
26.586207
0.82479
0
0
0.139535
0
0
0.070687
0
0
0
0
0
0
1
0.069767
false
0.023256
0.069767
0.023256
0.395349
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c7894b14ef779955e6bd0f109d8986f10e8fa84
1,206
py
Python
03-Decouvrez-POO/download_agents.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
03-Decouvrez-POO/download_agents.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
03-Decouvrez-POO/download_agents.py
gruiick/openclassrooms-py
add4b28eab8b311dea7c1d3915a22061f54326a9
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python import argparse import json import time import urllib.error import urllib.request def main(): parser = argparse.ArgumentParser(description="Download agents from pplapi.com") parser.add_argument("-c", "--count", type=int, default=10, help="Number of agents to download.") parser.add_a...
30.923077
109
0.630182
154
1,206
4.831169
0.577922
0.03629
0.045699
0
0
0
0
0
0
0
0
0.012987
0.233831
1,206
38
110
31.736842
0.792208
0.048922
0
0
0
0
0.191266
0
0
0
0
0
0
1
0.034483
false
0
0.172414
0
0.206897
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c78aef6937bac0c47b2a7aeef06915d8ec4cebe
3,681
py
Python
Commands/images.py
Mariobob/Proton
7c5eab0251266ca1da83591d396b357bab692399
[ "MIT" ]
null
null
null
Commands/images.py
Mariobob/Proton
7c5eab0251266ca1da83591d396b357bab692399
[ "MIT" ]
null
null
null
Commands/images.py
Mariobob/Proton
7c5eab0251266ca1da83591d396b357bab692399
[ "MIT" ]
null
null
null
import functools import re import asyncio from io import BytesIO from discord.ext import commands import discord from Utils import canvas import random class Images: """ Contains commands for manipulation of images. """ def __init__(self, bot): self.bot = bot self.imageClient = canvas...
41.359551
125
0.620212
467
3,681
4.865096
0.308351
0.03169
0.047535
0.035211
0.388204
0.352553
0.265845
0.265845
0.265845
0.265845
0
0.007294
0.255094
3,681
89
126
41.359551
0.821298
0.012225
0
0.246377
0
0.014493
0.141984
0.010474
0
0
0
0
0
1
0.028986
false
0.014493
0.115942
0
0.202899
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c7b885a3c4fad049ff2d1a6a859aa95838e0630
2,954
py
Python
encyclopaedia/labels.py
tcyrus/renpy-encyclopaedia
900517b34ab7b870f6ee03057f898fb5eb61313c
[ "MIT" ]
null
null
null
encyclopaedia/labels.py
tcyrus/renpy-encyclopaedia
900517b34ab7b870f6ee03057f898fb5eb61313c
[ "MIT" ]
null
null
null
encyclopaedia/labels.py
tcyrus/renpy-encyclopaedia
900517b34ab7b870f6ee03057f898fb5eb61313c
[ "MIT" ]
null
null
null
from renpy import store class Labels(store.object): """Controls how the labels that display Encyclopaedia data appear. Attributes: percentage_label (str): Placed next to the percentage unlocked number page_label (str): Placed before the entry page displayed page_separator_label (str):...
32.461538
94
0.635748
335
2,954
5.376119
0.262687
0.04442
0.036091
0.04442
0.092171
0
0
0
0
0
0
0.004292
0.290115
2,954
90
95
32.822222
0.854554
0.350034
0
0.068182
0
0
0.068789
0
0
0
0
0
0
1
0.090909
false
0
0.022727
0
0.204545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c7bed607992f89cbbe011d8fbb3d755bb77d244
1,816
py
Python
ncservice/ncDeviceOps/threaded/get_configs.py
cunningr/yanccm
2d8f891d704672f4d3a15472c7a13edf7832d53d
[ "MIT" ]
null
null
null
ncservice/ncDeviceOps/threaded/get_configs.py
cunningr/yanccm
2d8f891d704672f4d3a15472c7a13edf7832d53d
[ "MIT" ]
null
null
null
ncservice/ncDeviceOps/threaded/get_configs.py
cunningr/yanccm
2d8f891d704672f4d3a15472c7a13edf7832d53d
[ "MIT" ]
null
null
null
import logging from ncservice.ncDeviceOps.nc_device_ops import NcDeviceOps from ncservice.ncDeviceOps.task_report import TaskReport from ncservice.ncDeviceOps.threaded.base_thread_class import BaseThreadClass logger = logging.getLogger('main.{}'.format(__name__)) extra = {'signature': '---SIGNATURE-NOT-SET---'} clas...
37.061224
108
0.643722
200
1,816
5.535
0.365
0.049684
0.065041
0.036134
0.133695
0.133695
0.092141
0.092141
0.092141
0
0
0.002246
0.264317
1,816
48
109
37.833333
0.826347
0
0
0.051282
0
0
0.110683
0.038546
0
0
0
0
0
1
0.076923
false
0
0.102564
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c7fbcb14ea301bda84e83c0a6cddb4f13bae6fe
14,860
py
Python
Postprocessing/Hardt/Hardt.py
maliha93/Fairness-Analysis-Code
acf13c6e7993704fc627249fe4ada44d8b616264
[ "MIT" ]
null
null
null
Postprocessing/Hardt/Hardt.py
maliha93/Fairness-Analysis-Code
acf13c6e7993704fc627249fe4ada44d8b616264
[ "MIT" ]
null
null
null
Postprocessing/Hardt/Hardt.py
maliha93/Fairness-Analysis-Code
acf13c6e7993704fc627249fe4ada44d8b616264
[ "MIT" ]
null
null
null
import cvxpy as cvx import numpy as np from collections import namedtuple from metric import metric, cd import pandas as pd import sys from helper import make_dataset class Model(namedtuple('Model', 'pred label')): def logits(self): raw_logits = np.clip(np.log(self.pred / (1 - self.pred)), -100, 100) ...
43.323615
113
0.611844
2,148
14,860
3.866387
0.086127
0.047682
0.06755
0.054184
0.694401
0.635882
0.626731
0.618543
0.610837
0.582902
0
0.028582
0.263055
14,860
343
114
43.323615
0.729796
0.054172
0
0.392562
0
0
0.057476
0.016134
0
0
0
0
0
1
0.082645
false
0
0.028926
0.024793
0.18595
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c802e1801de4019c3b100aff72c042e2ff702ed
1,632
py
Python
tests/test_exceptions.py
nesnahnoj/py3-textract
61290fb44c964cf78ce64593fdf0076143dbcd91
[ "MIT" ]
2
2015-03-03T12:40:17.000Z
2015-03-03T13:05:14.000Z
tests/test_exceptions.py
anderser/textract
8f7b32cadabcd13ad1eab1a56b9aa151901d0453
[ "MIT" ]
null
null
null
tests/test_exceptions.py
anderser/textract
8f7b32cadabcd13ad1eab1a56b9aa151901d0453
[ "MIT" ]
null
null
null
import unittest import os import subprocess import base class ExceptionTestCase(base.GenericUtilities, unittest.TestCase): """This class contains a bunch of tests to make sure that textract fails in expected ways. """ def test_unsupported_extension_cli(self): """Make sure unsupported extensi...
37.090909
72
0.692402
184
1,632
6.032609
0.347826
0.036036
0.043243
0.068468
0.594595
0.452252
0.376577
0.344144
0.23964
0.23964
0
0.003142
0.219975
1,632
43
73
37.953488
0.868814
0.185049
0
0.551724
0
0
0.066409
0
0
0
0
0
0.137931
1
0.137931
false
0
0.275862
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c81071b5834983f0325a721292427a8ce6ce5f8
1,998
py
Python
dloud_ads/circular_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
dloud_ads/circular_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
dloud_ads/circular_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
"""Queue implementation using circularly linked list for storage.""" class CircularQueue: """Queue implementation using circularly linked list for storage.""" class _Node: """Lightweight, nonpublic class for storing a singly linked node.""" __slots__ = '_element', '_next' def __init__...
29.382353
76
0.578579
243
1,998
4.526749
0.263374
0.072727
0.065455
0.032727
0.302727
0.254545
0.254545
0.254545
0.254545
0.147273
0
0.004438
0.323323
1,998
67
77
29.820896
0.809172
0.302803
0
0.225
0
0
0.031346
0
0
0
0
0
0
1
0.2
false
0
0
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c850ddd900887b33d213aba43297d734592063b
31,713
py
Python
geofem/emg3d/meshes.py
iisadoramacedo/geofem-master
cc5cf4ae660480dd4dc3d805310f7207fb28230e
[ "MIT" ]
null
null
null
geofem/emg3d/meshes.py
iisadoramacedo/geofem-master
cc5cf4ae660480dd4dc3d805310f7207fb28230e
[ "MIT" ]
1
2020-10-29T11:42:21.000Z
2020-10-29T11:42:21.000Z
build/lib/geofem/emg3d/meshes.py
iisadoramacedo/geofem-master
cc5cf4ae660480dd4dc3d805310f7207fb28230e
[ "MIT" ]
1
2020-07-09T18:15:10.000Z
2020-07-09T18:15:10.000Z
""" :mod:`meshes` -- Discretization =============================== Everything related to meshes appropriate for the multigrid solver. """ # Copyright 2018-2020 The emg3d Developers. # # This file is part of emg3d. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except...
35.833898
79
0.590578
4,601
31,713
4.010433
0.15627
0.021244
0.014741
0.002601
0.208649
0.168058
0.143562
0.127683
0.121504
0.104
0
0.023983
0.29789
31,713
884
80
35.874434
0.804725
0.542743
0
0.138408
0
0.00692
0.107544
0.002125
0
0
0
0
0
1
0.041522
false
0
0.010381
0
0.100346
0.062284
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c88139e81ccf155fe77c897a8674f07ab2d5797
1,461
py
Python
common-scrapers/common_src/scrapers/second_extinction.py
mrPaintMan/blog-scraper
9b1ff3d398bd23d799d86c9a62ec76a6950555cc
[ "MIT" ]
null
null
null
common-scrapers/common_src/scrapers/second_extinction.py
mrPaintMan/blog-scraper
9b1ff3d398bd23d799d86c9a62ec76a6950555cc
[ "MIT" ]
null
null
null
common-scrapers/common_src/scrapers/second_extinction.py
mrPaintMan/blog-scraper
9b1ff3d398bd23d799d86c9a62ec76a6950555cc
[ "MIT" ]
1
2020-03-11T14:49:00.000Z
2020-03-11T14:49:00.000Z
from common_src.lib.model.post import Post from common_src.lib.model.source import Source from common_src.scrapers.abstract_scraper import make_soup, remove_dups, now SOURCE_CODE = "second_extinction" WEBSITE = "https://www.secondextinctiongame.com/news" ALT_IMAGE = 'https://www.secondextinctiongame.com/static/242486b...
39.486486
119
0.699521
188
1,461
5.297872
0.5
0.040161
0.11245
0.124498
0.126506
0.084337
0
0
0
0
0
0.043265
0.161533
1,461
36
120
40.583333
0.769796
0
0
0
0
0
0.351814
0.026694
0
0
0
0
0
1
0.076923
false
0
0.115385
0
0.269231
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c88d1e1834d792edf9c14b13846bd1ee7d80360
3,860
py
Python
systems/ILSVRC12/AlexNet/alexnet.py
mdatres/quantlab
09fb24ede78f49768f829afe0fac2ac291b8fd4f
[ "Apache-2.0" ]
7
2021-07-01T17:02:50.000Z
2022-03-29T10:54:41.000Z
systems/ILSVRC12/AlexNet/alexnet.py
mdatres/quantlab
09fb24ede78f49768f829afe0fac2ac291b8fd4f
[ "Apache-2.0" ]
null
null
null
systems/ILSVRC12/AlexNet/alexnet.py
mdatres/quantlab
09fb24ede78f49768f829afe0fac2ac291b8fd4f
[ "Apache-2.0" ]
2
2021-07-10T20:57:06.000Z
2022-01-02T10:10:25.000Z
# # alexnet.py # # Author(s): # Matteo Spallanzani <spmatteo@iis.ee.ethz.ch> # # Copyright (c) 2020-2021 ETH Zurich. # # 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...
31.900826
91
0.591192
521
3,860
4.276392
0.285988
0.100987
0.040844
0.062837
0.386445
0.335278
0.310144
0.310144
0.310144
0.274237
0
0.048149
0.279016
3,860
120
92
32.166667
0.752425
0.189378
0
0.377049
0
0
0.003556
0
0
0
0
0
0
1
0.081967
false
0
0.032787
0
0.180328
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c8a214cb9301b78671cb8aa70f1cebef2a6167b
448
py
Python
e/mail-relay/web/apps/core/migrations/0012_auto_20151105_1442.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
e/mail-relay/web/apps/core/migrations/0012_auto_20151105_1442.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
e/mail-relay/web/apps/core/migrations/0012_auto_20151105_1442.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 = [ ('core', '0011_customersetting'), ] operations = [ migrations.AlterField( model_name='customersetting', ...
22.4
93
0.625
41
448
6.634146
0.780488
0
0
0
0
0
0
0
0
0
0
0.050746
0.252232
448
19
94
23.578947
0.761194
0.046875
0
0
0
0
0.162353
0.056471
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c8eddd2bd80bb485d60b7d54110b5642d861af4
16,525
py
Python
mainTrain.py
PolarizedLightFieldMicroscopy/LFMNet2
c9b064d7625e018ef54b8dd8a0e53801c4565397
[ "Apache-2.0" ]
null
null
null
mainTrain.py
PolarizedLightFieldMicroscopy/LFMNet2
c9b064d7625e018ef54b8dd8a0e53801c4565397
[ "Apache-2.0" ]
null
null
null
mainTrain.py
PolarizedLightFieldMicroscopy/LFMNet2
c9b064d7625e018ef54b8dd8a0e53801c4565397
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.tensorboard import SummaryWriter from torch.utils import data from torch import optim import torchvision.models as models from torch.autograd import Variable import torchvision as tv import random import math import time from datetime i...
47.34957
191
0.616884
1,938
16,525
5.104747
0.216202
0.017285
0.032649
0.021227
0.341555
0.312342
0.279288
0.251794
0.241585
0.223795
0
0.01405
0.26348
16,525
349
192
47.34957
0.798784
0.198245
0
0.253394
0
0.004525
0.064145
0.007533
0
0
0
0
0
1
0.00905
false
0
0.085973
0
0.095023
0.049774
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c8fed7e472142a2a42ee1131ff8f6b28599bc16
1,295
py
Python
tools/utils.py
valsworthen/toxic-comment-classification
12ceb4d78410a14fba05e43f6f424cec52e6665d
[ "MIT" ]
10
2018-03-26T05:46:39.000Z
2020-04-30T08:03:18.000Z
tools/utils.py
valsworthen/toxic_comment_classification
12ceb4d78410a14fba05e43f6f424cec52e6665d
[ "MIT" ]
null
null
null
tools/utils.py
valsworthen/toxic_comment_classification
12ceb4d78410a14fba05e43f6f424cec52e6665d
[ "MIT" ]
null
null
null
"""Utilities""" import pandas as pd import numpy as np from attrdict import AttrDict import yaml def average_predictions(cv_predictions, n_splits, num_samples = 153164, num_labels = 6): """Average k-fold predictions stored in a dict""" preds = np.zeros((num_samples, num_labels)) for preds_i in cv_predictio...
33.205128
93
0.67722
188
1,295
4.5
0.398936
0.061466
0.047281
0.073286
0.44208
0.392435
0.392435
0.392435
0.392435
0.392435
0
0.021926
0.189961
1,295
38
94
34.078947
0.784557
0.074903
0
0.133333
0
0
0.088832
0.022843
0
0
0
0
0
1
0.166667
false
0
0.133333
0
0.433333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c90552cf52e653e519bda73228f741afee1058c
3,148
py
Python
pyhelp/scripts/produce_meteo_maps.py
jnsebgosselin/help
f0194a96ba7e1474fe1864d79447ee20cee949ec
[ "MIT" ]
12
2019-03-11T12:38:35.000Z
2021-06-26T03:40:18.000Z
pyhelp/scripts/produce_meteo_maps.py
jnsebgosselin/help
f0194a96ba7e1474fe1864d79447ee20cee949ec
[ "MIT" ]
23
2018-11-22T15:16:12.000Z
2022-03-25T12:55:33.000Z
pyhelp/scripts/produce_meteo_maps.py
jnsebgosselin/help
f0194a96ba7e1474fe1864d79447ee20cee949ec
[ "MIT" ]
2
2019-04-18T17:47:00.000Z
2021-08-31T04:45:30.000Z
# -*- coding: utf-8 -*- """ Created on Tue Feb 27 10:54:25 2018 @author: jsgosselin """ # ---- Standard Library Imports from itertools import product import os.path as osp import os # ---- Third Party Imports import netCDF4 from geopandas import GeoDataFrame import pandas as pd from shapely.geometry import Point, P...
29.420561
79
0.67249
481
3,148
4.191268
0.261954
0.049107
0.053571
0.042163
0.239583
0.184524
0.117063
0.050595
0.02381
0.02381
0
0.021211
0.176302
3,148
106
80
29.698113
0.756267
0.129288
0
0.058824
0
0.014706
0.159383
0.029747
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c90b62f02619f835bc7d89b23d75b9ecf0b6be0
1,803
py
Python
platform/core/tests/test_activitylogs/test_service.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/test_activitylogs/test_service.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/test_activitylogs/test_service.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
# pylint:disable=ungrouped-imports import uuid import pytest import activitylogs from db.models.activitylogs import ActivityLog from events.registry.experiment import EXPERIMENT_DELETED_TRIGGERED from events.registry.user import USER_ACTIVATED from factories.factory_experiments import ExperimentFactory from factorie...
36.795918
68
0.658902
187
1,803
6.197861
0.342246
0.054357
0.067299
0.075065
0.434858
0.288179
0.288179
0.288179
0.125971
0.125971
0
0.003776
0.265668
1,803
48
69
37.5625
0.871601
0.017748
0
0.263158
0
0
0
0
0
0
0
0
0.236842
1
0.052632
false
0
0.236842
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c91c9a08ce7e29a5358fe242bc8b960fc941c8f
1,844
py
Python
software/hippietrap/gradient.py
mayhem/led-chandelier
899caa8d81e6aac6e954f78b4f5b4ab101bf5257
[ "MIT" ]
2
2018-09-20T08:36:11.000Z
2019-08-25T20:06:11.000Z
software/hippietrap/gradient.py
mayhem/led-chandelier
899caa8d81e6aac6e954f78b4f5b4ab101bf5257
[ "MIT" ]
null
null
null
software/hippietrap/gradient.py
mayhem/led-chandelier
899caa8d81e6aac6e954f78b4f5b4ab101bf5257
[ "MIT" ]
1
2020-12-12T18:21:18.000Z
2020-12-12T18:21:18.000Z
from colorsys import hsv_to_rgb from math import fabs, fmod import os from hippietrap.color import Color class Gradient(object): def __init__(self, palette, num_leds = 1): # palletes are in format [ (.345, (128, 0, 128)) ] self._validate_palette(palette) self.palette = palette sel...
29.741935
107
0.58026
248
1,844
4.173387
0.310484
0.10628
0.092754
0.0657
0.104348
0.0657
0
0
0
0
0
0.043375
0.312364
1,844
61
108
30.229508
0.772871
0.036876
0
0
0
0
0.094191
0
0
0
0
0
0.026316
1
0.131579
false
0
0.105263
0
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c962e345da89a5eb411a0b3f49cfb775dfe43b5
1,850
py
Python
src/http_pick/pickergui.py
thomaspcole/http-pick
c470869878483241672c2928fd85458ab30555c4
[ "MIT" ]
null
null
null
src/http_pick/pickergui.py
thomaspcole/http-pick
c470869878483241672c2928fd85458ab30555c4
[ "MIT" ]
null
null
null
src/http_pick/pickergui.py
thomaspcole/http-pick
c470869878483241672c2928fd85458ab30555c4
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import (QMainWindow, QToolButton, QWidget, QHBoxLayout) from PyQt5.QtGui import QIcon from PyQt5 import QtCore from math import floor import sys class MainWindow(QMainWindow): def __init__(self, browsers, iconsize=72, displayappname=False, x=0, y=0, callback=lambda v: print(v)): ...
40.217391
148
0.591892
191
1,850
5.680628
0.455497
0.051613
0.03871
0.04424
0.03871
0
0
0
0
0
0
0.014638
0.298378
1,850
46
149
40.217391
0.821263
0.016757
0
0.052632
0
0
0.041254
0
0
0
0
0
0
1
0.052632
false
0
0.131579
0
0.210526
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c9707dc1574081d46ce438a0fbd3d659ca252fc
7,985
py
Python
openverse_catalog/dags/providers/provider_api_scripts/science_museum.py
yavik-kapadia/openverse-catalog
853766f2176a96450f456a9fd6675e134c0866e1
[ "MIT" ]
25
2021-05-06T20:53:45.000Z
2022-03-30T23:18:50.000Z
openverse_catalog/dags/providers/provider_api_scripts/science_museum.py
yavik-kapadia/openverse-catalog
853766f2176a96450f456a9fd6675e134c0866e1
[ "MIT" ]
272
2021-05-17T05:53:00.000Z
2022-03-31T23:57:20.000Z
openverse_catalog/dags/providers/provider_api_scripts/science_museum.py
yavik-kapadia/openverse-catalog
853766f2176a96450f456a9fd6675e134c0866e1
[ "MIT" ]
13
2021-06-12T07:09:06.000Z
2022-03-29T17:39:13.000Z
import logging from common.licenses import get_license_info from common.loader import provider_details as prov from common.requester import DelayedRequester from common.storage.image import ImageStore logging.basicConfig( format="%(asctime)s - %(name)s - %(levelname)s: %(message)s", level=logging.INFO ) logger ...
30.830116
87
0.628053
944
7,985
5.049788
0.202331
0.033564
0.012587
0.011747
0.119992
0.049927
0.011747
0.011747
0
0
0
0.019731
0.263745
7,985
258
88
30.949612
0.791121
0.005886
0
0.104072
0
0
0.114541
0
0
0
0
0
0
1
0.054299
false
0
0.022624
0
0.126697
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c97af3344054a3843093ee257c735adccd419f3
1,089
py
Python
digitaltape.py
heerdyes/tapegame
d6e0c6f81fe9c7c85a54edbd037be318ff7ed391
[ "Artistic-2.0" ]
null
null
null
digitaltape.py
heerdyes/tapegame
d6e0c6f81fe9c7c85a54edbd037be318ff7ed391
[ "Artistic-2.0" ]
null
null
null
digitaltape.py
heerdyes/tapegame
d6e0c6f81fe9c7c85a54edbd037be318ff7ed391
[ "Artistic-2.0" ]
null
null
null
# tape variables TS_MAX=1000 # the digital tape model class DTape: def __init__(self,size,alphabet,noopidx=0): if size>TS_MAX: self.size=TS_MAX else: self.size=size if len(alphabet)==0: raise Exception('alphabet has zero symbols') self.alphabet=al...
26.560976
86
0.602388
138
1,089
4.630435
0.405797
0.084507
0.051643
0
0
0
0
0
0
0
0
0.011613
0.288338
1,089
40
87
27.225
0.812903
0.033976
0
0.0625
0
0
0.092469
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c980836374b3fb5fedf0a12599c8c546395b546
422
py
Python
webhook-cdk/lambda/vars.py
ncalteen/github-webhook-lambda-example
414daf1a70343abf207ff37dc4a9d65d6892197d
[ "MIT" ]
null
null
null
webhook-cdk/lambda/vars.py
ncalteen/github-webhook-lambda-example
414daf1a70343abf207ff37dc4a9d65d6892197d
[ "MIT" ]
null
null
null
webhook-cdk/lambda/vars.py
ncalteen/github-webhook-lambda-example
414daf1a70343abf207ff37dc4a9d65d6892197d
[ "MIT" ]
1
2022-03-29T14:42:25.000Z
2022-03-29T14:42:25.000Z
import json # Output must be returned in the format mentioned below: # https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-output-format lambda_response = { "isBase64Encoded": False, "statusCode": 200, "headers": { ...
26.375
152
0.668246
49
422
5.734694
0.857143
0
0
0
0
0
0
0
0
0
0
0.014451
0.180095
422
15
153
28.133333
0.797688
0.483412
0
0
0
0
0.336449
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c988d19204c6f421dff8e8f0c696fe6f0e5ec4f
3,737
py
Python
gym_unblockme/envs/unblockme_render.py
fedingo/gym-unblockme
a4dd20a7608122e09862d681259111e2634f3d4b
[ "MIT" ]
3
2019-02-12T15:53:17.000Z
2019-07-03T12:00:32.000Z
gym_unblockme/envs/unblockme_render.py
fedingo/gym-unblockme
a4dd20a7608122e09862d681259111e2634f3d4b
[ "MIT" ]
null
null
null
gym_unblockme/envs/unblockme_render.py
fedingo/gym-unblockme
a4dd20a7608122e09862d681259111e2634f3d4b
[ "MIT" ]
null
null
null
import pygame import time import numpy as np import sys gray = (150, 150, 150) white = (255, 255, 255) black = (0, 0, 0, ) red_block = (255, 0, 0) red_border = (76, 0, 19) block_color = (255, 128, 0) border_color = (165,42,42) screen = None SIDE = 50 BORDER = 5 MARGIN = 5 LINE = 1 h_switch = True def __draw_hor...
36.637255
116
0.557399
515
3,737
3.906796
0.190291
0.049702
0.069583
0.099404
0.568091
0.511431
0.473161
0.423956
0.423956
0.384195
0
0.035108
0.321648
3,737
102
117
36.637255
0.75858
0.047899
0
0.2
0
0
0.002252
0
0
0
0
0
0
1
0.05
false
0
0.0625
0
0.1125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c990cbd7a7616bc0cdb891dffbb562850c5ab57
21,364
py
Python
phy/cluster/tests/test_supervisor.py
mikailweston/phy
d774cb989152a4b7344ac9b70c79c204a5036763
[ "BSD-3-Clause" ]
null
null
null
phy/cluster/tests/test_supervisor.py
mikailweston/phy
d774cb989152a4b7344ac9b70c79c204a5036763
[ "BSD-3-Clause" ]
null
null
null
phy/cluster/tests/test_supervisor.py
mikailweston/phy
d774cb989152a4b7344ac9b70c79c204a5036763
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Test GUI component.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ #from contextlib import contextmanager from pytest import yield_fixture, fixture, raises import ...
27.460154
92
0.637521
2,555
21,364
5.115851
0.113503
0.06656
0.097315
0.090965
0.583735
0.499273
0.44396
0.393772
0.310535
0.260806
0
0.032909
0.187839
21,364
777
93
27.495496
0.72042
0.096892
0
0.464213
0
0
0.047305
0
0
0
0
0
0.198364
1
0.126789
false
0.00409
0.022495
0.006135
0.169734
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c9997692782ea5187e69a11b0059d2cc2e4c11c
2,733
py
Python
Source/CommandManager.py
SOBotics/Botpy
8e3eb48fcc2a46fd60f4d49832941fa1b71bc223
[ "WTFPL" ]
5
2017-09-19T10:19:33.000Z
2020-10-11T13:29:43.000Z
Source/CommandManager.py
SOBotics/Botpy
8e3eb48fcc2a46fd60f4d49832941fa1b71bc223
[ "WTFPL" ]
33
2018-05-14T09:05:06.000Z
2020-04-20T08:48:59.000Z
Source/CommandManager.py
SOBotics/Botpy
8e3eb48fcc2a46fd60f4d49832941fa1b71bc223
[ "WTFPL" ]
1
2017-09-27T10:40:34.000Z
2017-09-27T10:40:34.000Z
# # CommandManager.py # Botpy # # Created by Ashish Ahuja on 4th September 2017. # # import threading import chatexchange as ce class CommandManager: def __init__(self, commands): self.commands = commands self.running_commands = [] def run_command(self, command): if command.privileges...
35.038462
98
0.555799
267
2,733
5.47191
0.299625
0.080082
0.065024
0.03833
0.186174
0.154689
0.154689
0.154689
0.154689
0.154689
0
0.006932
0.36663
2,733
77
99
35.493506
0.837088
0.035858
0
0.214286
0
0
0.024752
0
0
0
0
0
0
1
0.071429
false
0
0.035714
0
0.196429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c9adb0e11b484554e5e9a324f68f256e624b588
13,217
py
Python
iotronic/wamp/agent.py
smartmeio/stack4things-openstack-iotronic
3e5782eb1fb33b7c3c8c9362e24d30241153c371
[ "Apache-2.0" ]
1
2021-11-04T09:43:49.000Z
2021-11-04T09:43:49.000Z
iotronic/wamp/agent.py
smartmeio/stack4things-openstack-iotronic
3e5782eb1fb33b7c3c8c9362e24d30241153c371
[ "Apache-2.0" ]
null
null
null
iotronic/wamp/agent.py
smartmeio/stack4things-openstack-iotronic
3e5782eb1fb33b7c3c8c9362e24d30241153c371
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 MDSLAB - University of Messina # 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 # # U...
31.544153
81
0.557464
1,433
13,217
4.980461
0.251221
0.026482
0.015693
0.011209
0.21914
0.171501
0.152305
0.143618
0.107188
0.107188
0
0.00505
0.340773
13,217
418
82
31.619617
0.814071
0.061133
0
0.191419
0
0
0.168497
0.017601
0
0
0
0
0
1
0.049505
false
0.0033
0.072607
0
0.155116
0.006601
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c9ae3c6c99371fef5bc7aaa5ea9deed848c23c0
1,406
py
Python
src/export_to_poseviz.py
anibali/metro-pose3d
dd0c8a82ae271ce69441d216d615428e5ab1d5d1
[ "MIT" ]
52
2020-03-10T05:18:02.000Z
2021-12-23T04:03:38.000Z
src/export_to_poseviz.py
anibali/metro-pose3d
dd0c8a82ae271ce69441d216d615428e5ab1d5d1
[ "MIT" ]
2
2020-03-30T08:08:06.000Z
2020-03-31T04:26:10.000Z
src/export_to_poseviz.py
anibali/metro-pose3d
dd0c8a82ae271ce69441d216d615428e5ab1d5d1
[ "MIT" ]
7
2020-04-02T09:02:00.000Z
2020-12-12T07:11:07.000Z
#!/usr/bin/env python3 import argparse import logging import sys import numpy as np import util def main(): flags = initialize() logging.debug(f'Loading from {flags.in_path}') a = np.load(flags.in_path, allow_pickle=True) all_results_3d = {} for image_path, coords3d_pred in zip(a['image_path'],...
29.914894
94
0.69559
188
1,406
4.978723
0.473404
0.048077
0.051282
0
0
0
0
0
0
0
0
0.015306
0.163585
1,406
46
95
30.565217
0.780612
0.014936
0
0
0
0
0.132225
0.018786
0
0
0
0
0
1
0.060606
false
0
0.151515
0
0.242424
0.121212
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1c9b5d5805105a181cbbe52dc9cadbd70001e7f9
1,606
py
Python
xcube/core/gen2/local/helpers.py
bcdev/xcube
9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3
[ "MIT" ]
97
2018-06-26T13:02:55.000Z
2022-03-26T21:03:13.000Z
xcube/core/gen2/local/helpers.py
bcdev/xcube
9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3
[ "MIT" ]
524
2018-11-09T12:00:08.000Z
2022-03-31T17:00:13.000Z
xcube/core/gen2/local/helpers.py
bcdev/xcube
9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3
[ "MIT" ]
15
2019-07-09T08:46:03.000Z
2022-02-07T18:47:34.000Z
# The MIT License (MIT) # Copyright (c) 2021 by the xcube development team and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation...
41.179487
81
0.71731
250
1,606
4.572
0.504
0.07699
0.022747
0.029746
0
0
0
0
0
0
0
0.008723
0.214819
1,606
38
82
42.263158
0.8977
0.689913
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0.076923
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98bbff443455dac48b3d58e95d525a9389d58413
7,896
py
Python
smarts/core/utils/traffic_history_service.py
c-h-a-r-l-i-e/SMARTS
6cb8ffda74e235c25d63b74313623b2e03e402f7
[ "MIT" ]
null
null
null
smarts/core/utils/traffic_history_service.py
c-h-a-r-l-i-e/SMARTS
6cb8ffda74e235c25d63b74313623b2e03e402f7
[ "MIT" ]
null
null
null
smarts/core/utils/traffic_history_service.py
c-h-a-r-l-i-e/SMARTS
6cb8ffda74e235c25d63b74313623b2e03e402f7
[ "MIT" ]
null
null
null
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to us...
37.245283
90
0.630699
909
7,896
5.179318
0.267327
0.050552
0.054163
0.02825
0.20497
0.129354
0.09452
0.075828
0.041419
0.033135
0
0.001997
0.302305
7,896
211
91
37.421801
0.852605
0.198075
0
0.198676
0
0
0.014673
0
0
0
0
0
0.013245
1
0.07947
false
0.006623
0.046358
0.033113
0.238411
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98bd3099195cf49ba522ba023294ea3a974ffe7f
1,599
py
Python
calvin/runtime/south/plugins/media/defaultimpl/image.py
josrolgil/exjobbCalvin
976459eaa50246586360c049b9880d753623d574
[ "Apache-2.0" ]
1
2016-05-10T22:36:31.000Z
2016-05-10T22:36:31.000Z
calvin/runtime/south/plugins/media/defaultimpl/image.py
josrolgil/exjobbCalvin
976459eaa50246586360c049b9880d753623d574
[ "Apache-2.0" ]
null
null
null
calvin/runtime/south/plugins/media/defaultimpl/image.py
josrolgil/exjobbCalvin
976459eaa50246586360c049b9880d753623d574
[ "Apache-2.0" ]
null
null
null
import pygame from StringIO import StringIO import cv2 import os import numpy class Image(object): """ Image object """ def __init__(self): self.display = None def show_image(self, image, width, height): """ Show image """ size = (width, height) s...
26.65
69
0.56035
182
1,599
4.818681
0.461538
0.062714
0.020525
0
0
0
0
0
0
0
0
0.012357
0.342089
1,599
59
70
27.101695
0.821293
0.042527
0
0
0
0
0.0742
0.049013
0
0
0
0
0
1
0.1
false
0
0.125
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98bd3fd17ab9f4b238b6d43814353c33f950c7b3
3,340
py
Python
durin/models.py
mlodic/django-rest-durin
b31a7257fb9765a4928c08bb1e68e80f48159229
[ "MIT" ]
null
null
null
durin/models.py
mlodic/django-rest-durin
b31a7257fb9765a4928c08bb1e68e80f48159229
[ "MIT" ]
null
null
null
durin/models.py
mlodic/django-rest-durin
b31a7257fb9765a4928c08bb1e68e80f48159229
[ "MIT" ]
null
null
null
import binascii from os import urandom import humanize from django.conf import settings from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from durin.settings import durin_settings from durin.signals import token_renewed User = settings.AUTH_USER_MO...
26.299213
82
0.606886
382
3,340
5.112565
0.314136
0.02765
0.028674
0.038914
0.147465
0.113671
0.113671
0.113671
0.113671
0.113671
0
0.003381
0.291617
3,340
126
83
26.507937
0.822063
0
0
0.205882
0
0
0.055281
0
0
0
0
0
0
1
0.078431
false
0
0.088235
0.039216
0.372549
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98bf3939045052dd4fba91a19ad1fdf6be1101a5
640
py
Python
PP4E-Examples-1.4/Examples/PP4E/Dstruct/Basic/inter2.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/Dstruct/Basic/inter2.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/Dstruct/Basic/inter2.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
"set operations for multiple sequences" def intersect(*args): res = [] for x in args[0]: # scan the first list for other in args[1:]: # for all other arguments if x not in other: break # this item in each one? else: res.append(x) #...
33.684211
68
0.504688
86
640
3.755814
0.488372
0.027864
0.06192
0.080495
0
0
0
0
0
0
0
0.005464
0.428125
640
18
69
35.555556
0.877049
0.328125
0
0.375
0
0
0.08026
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98c0a5642acac614148ed6f1d7bcaa9979233d3b
8,950
py
Python
scripts/fast_queue.py
ourresearch/openalex-guts
f6c3e9992361e4bb1dbe76fbfb644c80f081319a
[ "MIT" ]
48
2021-11-20T08:17:53.000Z
2022-03-19T13:57:15.000Z
scripts/fast_queue.py
ourresearch/openalex-guts
f6c3e9992361e4bb1dbe76fbfb644c80f081319a
[ "MIT" ]
null
null
null
scripts/fast_queue.py
ourresearch/openalex-guts
f6c3e9992361e4bb1dbe76fbfb644c80f081319a
[ "MIT" ]
2
2022-01-04T16:28:48.000Z
2022-02-05T21:25:01.000Z
import argparse from time import sleep, time from collections import defaultdict from sqlalchemy import orm, text, insert, delete from sqlalchemy.orm import selectinload import models from app import db from app import logger from scripts.queue import JsonWorks, JsonAuthors, JsonConcepts, JsonInstitutions, JsonVenues...
42.216981
149
0.639777
1,063
8,950
5.195673
0.20508
0.117328
0.067717
0.072968
0.324642
0.22868
0.168749
0.124932
0.084737
0.026435
0
0.002931
0.237654
8,950
211
150
42.417062
0.806537
0.024693
0
0.121387
0
0
0.182162
0.017769
0
0
0
0
0
1
0.028902
false
0
0.057803
0
0.098266
0.023121
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98c1fbeb0d5441c90960a350fd079ea801185651
2,298
py
Python
scripts/collect_timelines1.py
tedhchen/twitter_timeline_tools
bc21e8c7c4e976409281e2697e1ec75044648eb8
[ "MIT" ]
null
null
null
scripts/collect_timelines1.py
tedhchen/twitter_timeline_tools
bc21e8c7c4e976409281e2697e1ec75044648eb8
[ "MIT" ]
null
null
null
scripts/collect_timelines1.py
tedhchen/twitter_timeline_tools
bc21e8c7c4e976409281e2697e1ec75044648eb8
[ "MIT" ]
null
null
null
# Prep import json, configparser, pickle, csv, logging, os import pandas as pd from tweepy import AppAuthHandler, API, Cursor # Reading in configuation params = configparser.ConfigParser() params.read('config.ini') # Functions # Takes config file and returns authenticated api object def twitter_auth(config): auth = ...
31.479452
150
0.700174
333
2,298
4.753754
0.444444
0.018951
0.017056
0.018951
0.04801
0.04801
0.04801
0
0
0
0
0.007341
0.170148
2,298
72
151
31.916667
0.822758
0.197998
0
0
0
0
0.128219
0
0
0
0
0
0
1
0.090909
false
0
0.068182
0
0.227273
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98c615953ef0bbcfd93b9c52b023ec8e35bea466
115,101
py
Python
trade_remedies_caseworker/cases/views.py
uktrade/trade-remedies-caseworker
fece9fde3cb241d96cbc1aaf7188d976f8621600
[ "MIT" ]
1
2020-08-27T09:53:00.000Z
2020-08-27T09:53:00.000Z
trade_remedies_caseworker/cases/views.py
uktrade/trade-remedies-caseworker
fece9fde3cb241d96cbc1aaf7188d976f8621600
[ "MIT" ]
7
2020-10-14T16:23:42.000Z
2021-09-24T14:18:47.000Z
trade_remedies_caseworker/cases/views.py
uktrade/trade-remedies-caseworker
fece9fde3cb241d96cbc1aaf7188d976f8621600
[ "MIT" ]
null
null
null
import itertools import json import logging import re from django.views.generic import TemplateView from django.http import HttpResponse from django.views import View from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin from django.views.decorators.csrf import csrf_exempt from django.short...
41.063503
150
0.574391
11,958
115,101
5.238836
0.061632
0.028254
0.023034
0.013792
0.497222
0.421495
0.369186
0.325831
0.288111
0.251365
0
0.002329
0.321057
115,101
2,802
151
41.078158
0.799314
0.038132
0
0.355856
0
0.000819
0.141229
0.03705
0
0
0
0.001071
0
1
0.036446
false
0.00041
0.009419
0.001638
0.141278
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98c872b368191fe4e11021c3430aca414eab1a34
2,698
py
Python
mmdet/models/emod_ops/ar_module.py
zhenglab/EMOD
68bef744a99d0ec4eef8f3cc6b1f5ab3c0807d89
[ "Apache-2.0" ]
2
2020-12-09T08:40:04.000Z
2021-07-27T08:44:46.000Z
mmdet/models/emod_ops/ar_module.py
zhenglab/EMOD
68bef744a99d0ec4eef8f3cc6b1f5ab3c0807d89
[ "Apache-2.0" ]
null
null
null
mmdet/models/emod_ops/ar_module.py
zhenglab/EMOD
68bef744a99d0ec4eef8f3cc6b1f5ab3c0807d89
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn from mmcv.cnn.utils import constant_init, kaiming_init class SimAttention(nn.Module): def __init__(self, in_channels): super(SimAttention, self).__init__() self.conv_attn = nn.Conv2d(in_channels, 1, kernel_size=1) self.softmax = nn.Softmax(dim=2) ...
29.326087
81
0.546331
364
2,698
3.785714
0.211538
0.039913
0.017417
0.028302
0.323657
0.222787
0.175617
0.133527
0.049347
0.049347
0
0.009594
0.343217
2,698
91
82
29.648352
0.768059
0.014455
0
0.227273
0
0
0.020362
0
0
0
0
0
0.015152
1
0.090909
false
0
0.045455
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98ca9c54fc93a4a5630df7be404c28ca3e935a2c
4,962
py
Python
sqlpuzzle/_common/argsparser.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
8
2015-03-19T11:25:32.000Z
2020-09-02T11:30:10.000Z
sqlpuzzle/_common/argsparser.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
7
2015-03-23T14:34:28.000Z
2022-02-21T12:36:01.000Z
sqlpuzzle/_common/argsparser.py
Dundee/python-sqlpuzzle
260524922a0645c9bf94a9779195f93ef2c78cba
[ "MIT" ]
4
2018-11-28T21:59:27.000Z
2020-01-05T01:50:08.000Z
from sqlpuzzle.exceptions import InvalidArgumentException __all__ = ('parse_args',) # pylint: disable=dangerous-default-value,keyword-arg-before-vararg def parse_args(options={}, *args, **kwds): """ Parser of arguments. dict options { int min_items: Min of required items to fold one tuple. (defa...
33.755102
112
0.620314
638
4,962
4.595611
0.170846
0.042974
0.053206
0.02558
0.165757
0.115621
0.048431
0.030014
0.030014
0.030014
0
0.019114
0.272471
4,962
146
113
33.986301
0.793075
0.249899
0
0.113636
0
0
0.032071
0
0
0
0
0
0.022727
1
0.193182
false
0
0.011364
0.056818
0.386364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98cab2bad7becb5d77b33c01de7f7ffa0e4c8c44
16,809
py
Python
reviewboard/webapi/tests/test_review_screenshot_comment.py
ParikhKadam/reviewboard
7395902e4c181bcd1d633f61105012ffb1d18e1b
[ "MIT" ]
921
2015-01-01T15:26:28.000Z
2022-03-29T11:30:38.000Z
reviewboard/webapi/tests/test_review_screenshot_comment.py
ParikhKadam/reviewboard
7395902e4c181bcd1d633f61105012ffb1d18e1b
[ "MIT" ]
5
2015-03-17T18:57:47.000Z
2020-10-02T13:24:31.000Z
reviewboard/webapi/tests/test_review_screenshot_comment.py
ParikhKadam/reviewboard
7395902e4c181bcd1d633f61105012ffb1d18e1b
[ "MIT" ]
285
2015-01-12T06:24:36.000Z
2022-03-29T11:03:50.000Z
from __future__ import unicode_literals from django.contrib.auth.models import User from djblets.webapi.errors import PERMISSION_DENIED from reviewboard.reviews.models import ScreenshotComment from reviewboard.webapi.resources import resources from reviewboard.webapi.tests.base import BaseWebAPITestCase from reviewbo...
41.198529
79
0.636861
1,845
16,809
5.519241
0.106775
0.101836
0.049494
0.043209
0.728567
0.685554
0.644604
0.616223
0.611018
0.559756
0
0.001959
0.271164
16,809
407
80
41.299754
0.829238
0.127075
0
0.589552
0
0
0.076542
0.007877
0
0
0
0
0.156716
1
0.078358
false
0
0.037313
0
0.179104
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98caf2eb8158bde50b1d44dd5a0629d9a33340c7
1,163
py
Python
qbapi/app.py
dimddev/qb
fbf9f4cac8aaf14243229e3193960da7114bb7ba
[ "BSD-3-Clause" ]
null
null
null
qbapi/app.py
dimddev/qb
fbf9f4cac8aaf14243229e3193960da7114bb7ba
[ "BSD-3-Clause" ]
null
null
null
qbapi/app.py
dimddev/qb
fbf9f4cac8aaf14243229e3193960da7114bb7ba
[ "BSD-3-Clause" ]
null
null
null
""" Command line tool """ import asyncio from qbapi.request import create_request from qbapi.services.clients import Producer, Consumer async def spider(user_data: tuple) -> None: """spider :param user_data: :type user_data: tuple :rtype: None """ producer_queue = asyncio.Queue() consum...
21.943396
66
0.638005
130
1,163
5.476923
0.346154
0.044944
0.036517
0.067416
0.078652
0
0
0
0
0
0
0.002356
0.269991
1,163
52
67
22.365385
0.836278
0.014617
0
0.066667
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98cd18a83142f071207fd03be7967e2e0520ebe6
9,063
py
Python
test/test_literal.py
hrnciar/rdflib
d507fdac93be2ec3e35882e3efaa5e7c7349fa93
[ "BSD-3-Clause" ]
null
null
null
test/test_literal.py
hrnciar/rdflib
d507fdac93be2ec3e35882e3efaa5e7c7349fa93
[ "BSD-3-Clause" ]
null
null
null
test/test_literal.py
hrnciar/rdflib
d507fdac93be2ec3e35882e3efaa5e7c7349fa93
[ "BSD-3-Clause" ]
null
null
null
import unittest import datetime import rdflib # needed for eval(repr(...)) below from rdflib.term import Literal, URIRef, _XSD_DOUBLE, bind, _XSD_BOOLEAN from rdflib.namespace import XSD def uformat(s): return s.replace("u'", "'") class TestLiteral(unittest.TestCase): def setUp(self): pass de...
33.69145
98
0.580051
1,041
9,063
4.962536
0.215178
0.060976
0.030972
0.027875
0.353271
0.275648
0.183508
0.180798
0.131049
0.131049
0
0.046797
0.271433
9,063
268
99
33.817164
0.735575
0.04899
0
0.161765
0
0.009804
0.118513
0.017882
0
0
0
0
0.186275
1
0.137255
false
0.014706
0.02451
0.02451
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98cecf3619ad0f5f809b91b86260d60284ee57d7
14,312
py
Python
extras/20190910/code/dummy_11a/resnet18_unet_softmax_01/train.py
pyaf/severstal-steel-defect-detection
68a0df4164e84803b6cba78597a079d3736b4e00
[ "MIT" ]
null
null
null
extras/20190910/code/dummy_11a/resnet18_unet_softmax_01/train.py
pyaf/severstal-steel-defect-detection
68a0df4164e84803b6cba78597a079d3736b4e00
[ "MIT" ]
null
null
null
extras/20190910/code/dummy_11a/resnet18_unet_softmax_01/train.py
pyaf/severstal-steel-defect-detection
68a0df4164e84803b6cba78597a079d3736b4e00
[ "MIT" ]
null
null
null
import os os.environ['CUDA_VISIBLE_DEVICES']='0' from common import * from dataset import * from model import * def valid_augment(image, mask, infor): return image, mask, infor def train_augment(image, mask, infor): u=np.random.choice(3) if u==0: pass elif u==1: image, mask = do_...
33.995249
180
0.523896
1,801
14,312
3.964464
0.177679
0.034734
0.014566
0.021849
0.435574
0.397619
0.342297
0.285854
0.247759
0.237395
0
0.043457
0.287731
14,312
420
181
34.07619
0.656955
0.103759
0
0.283088
0
0.018382
0.138558
0.05664
0
0
0
0
0.007353
1
0.018382
false
0.029412
0.014706
0.003676
0.047794
0.022059
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98d09bdc81e45d8b676af2c3e285dd5d038ee1da
1,283
py
Python
city_coord_download.py
Yuchen971/Chinese-city-level-geojson
51f8d3d336f3e335b15bbf37882a9f248f0e6461
[ "MIT" ]
null
null
null
city_coord_download.py
Yuchen971/Chinese-city-level-geojson
51f8d3d336f3e335b15bbf37882a9f248f0e6461
[ "MIT" ]
null
null
null
city_coord_download.py
Yuchen971/Chinese-city-level-geojson
51f8d3d336f3e335b15bbf37882a9f248f0e6461
[ "MIT" ]
null
null
null
import requests import os def get_json(save_dir, adcode): # 获取当前地图轮廓 base_url = 'https://geo.datav.aliyun.com/areas/bound/' + str(adcode) + '.json' full_url = 'https://geo.datav.aliyun.com/areas/bound/' + str(adcode) + '_full.json' base_r = requests.get(base_url) if base_r.status_code == 200: ...
44.241379
87
0.626656
187
1,283
4.032086
0.326203
0.055703
0.079576
0.04244
0.278515
0.278515
0.278515
0.214854
0.214854
0.214854
0
0.013265
0.236165
1,283
29
88
44.241379
0.756122
0.015588
0
0
0
0
0.172086
0.035686
0
0
0
0
0
1
0.037037
false
0.037037
0.074074
0
0.111111
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98d0b391f82dbbbda80cf6f637cf8415548b806e
1,881
py
Python
verticapy/tests/vDataFrame/test_vDF_create.py
sitingren/VerticaPy
aa18f4f1277e264005de2d1a8646c28acd1ba137
[ "Apache-2.0" ]
null
null
null
verticapy/tests/vDataFrame/test_vDF_create.py
sitingren/VerticaPy
aa18f4f1277e264005de2d1a8646c28acd1ba137
[ "Apache-2.0" ]
null
null
null
verticapy/tests/vDataFrame/test_vDF_create.py
sitingren/VerticaPy
aa18f4f1277e264005de2d1a8646c28acd1ba137
[ "Apache-2.0" ]
null
null
null
# (c) Copyright [2018-2021] Micro Focus or one of its affiliates. # 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 applicabl...
34.2
88
0.725678
255
1,881
5.203922
0.486275
0.068576
0.060286
0.054258
0.330821
0.289375
0.289375
0.235117
0.201959
0.201959
0
0.015564
0.180223
1,881
54
89
34.833333
0.845006
0.308878
0
0.071429
0
0
0.094794
0
0
0
0
0
0.107143
1
0.178571
false
0.035714
0.142857
0
0.357143
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98d33c72cdff1bb8b3302772a68873ef14217bfa
353
py
Python
Solutions/beta/beta_is_it_an_isogram.py
citrok25/Codewars-1
dc641c5079e2e8b5955eb027fd15427e5bdb2e26
[ "MIT" ]
46
2017-08-24T09:27:57.000Z
2022-02-25T02:24:33.000Z
Solutions/beta/beta_is_it_an_isogram.py
abbhishek971/Codewars
9e761811db724da1e8aae44594df42b4ee879a16
[ "MIT" ]
null
null
null
Solutions/beta/beta_is_it_an_isogram.py
abbhishek971/Codewars
9e761811db724da1e8aae44594df42b4ee879a16
[ "MIT" ]
35
2017-08-01T22:09:48.000Z
2022-02-18T17:21:37.000Z
import re from collections import Counter def is_isogram(word): if not isinstance(word, str) or word == '': return False word = {j for i,j in Counter( re.sub('[^a-z]', '', word.lower()) ).most_common() ...
32.090909
67
0.430595
38
353
3.947368
0.736842
0
0
0
0
0
0
0
0
0
0
0.005208
0.456091
353
10
68
35.3
0.776042
0
0
0
0
0
0.016997
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98d39e717fc52a479b273f0813ba804a39854ac0
1,011
py
Python
p23_Merge_k_Sorted_Lists.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p23_Merge_k_Sorted_Lists.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p23_Merge_k_Sorted_Lists.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
''' - Leetcode problem: 23 - Difficulty: Hard - Brief problem description: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->5, 1->3->4, 2->6 ] Output: 1->1->2->3->4->4->5->6 - Solution Summary: - Used Resources: --- Bo Zhou ''' # ...
20.22
98
0.565776
127
1,011
4.472441
0.511811
0.007042
0.052817
0
0
0
0
0
0
0
0
0.027221
0.309594
1,011
49
99
20.632653
0.786533
0.444115
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98d57c6c79fbcfbe80f6e85abd3550ed59d42da1
22,613
py
Python
src/LaminariaCore.py
MrKelpy/IFXG
695865a8140fdf258a643ee29d6439a59037bc99
[ "MIT" ]
null
null
null
src/LaminariaCore.py
MrKelpy/IFXG
695865a8140fdf258a643ee29d6439a59037bc99
[ "MIT" ]
null
null
null
src/LaminariaCore.py
MrKelpy/IFXG
695865a8140fdf258a643ee29d6439a59037bc99
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This module is distributed as part of the Laminaria Core (Python Version). Get the Source Code in GitHub: https://github.com/MrKelpy/LaminariaCore The LaminariaCore is Open Source and distributed under the MIT License """ # Built-in Imports import datetime import random import asyncio impo...
35.388106
139
0.618007
2,849
22,613
4.837838
0.165672
0.035116
0.032504
0.022056
0.343176
0.297976
0.266923
0.238845
0.224262
0.222666
0
0.006702
0.254367
22,613
638
140
35.443574
0.810747
0.118472
0
0.288809
0
0.032491
0.188528
0.103161
0
0
0
0
0
1
0.021661
false
0
0.028881
0
0.187726
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98d5c4c121e4fde76563c5c0ac59d5c2ef8f0cbc
23,139
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Codec/YUV4MPEG.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Codec/YUV4MPEG.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Codec/YUV4MPEG.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
#!/usr/bin/env python # # Copyright (C) 2007 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser General ...
35.543779
107
0.563075
2,587
23,139
4.98879
0.177426
0.025027
0.008368
0.015342
0.446382
0.398109
0.37068
0.343794
0.322641
0.294049
0
0.017109
0.325554
23,139
650
108
35.598462
0.809881
0.390682
0
0.492492
0
0
0.099212
0
0
0
0
0
0.006006
1
0.045045
false
0.015015
0.024024
0
0.12012
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98d7520f9994f6836e73faaf42f63009eee0dc64
697
py
Python
project/cli/event.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/cli/event.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/cli/event.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import click from flask.cli import AppGroup from project import app, db from project.dateutils import berlin_tz from project.services.event import ( get_recurring_events, update_event_dates_with_recurrence_rule, ) event_cli = AppGroup("event") @event_cli.command("update-recurring-dates") def update_recurrin...
24.034483
72
0.746055
98
697
5.081633
0.459184
0.066265
0.072289
0.088353
0.180723
0.180723
0.180723
0.180723
0
0
0
0
0.157819
697
28
73
24.892857
0.848382
0.071736
0
0
0
0
0.134884
0.034109
0
0
0
0
0
1
0.055556
false
0
0.277778
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98d900684301053ffd4e6344e16abaa1c0d10ed9
3,647
py
Python
test/functional/examples/test_examples.py
ymn1k/testplan
b1bde8495c449d75a74a7fe4e7c6501b0476f833
[ "Apache-2.0" ]
null
null
null
test/functional/examples/test_examples.py
ymn1k/testplan
b1bde8495c449d75a74a7fe4e7c6501b0476f833
[ "Apache-2.0" ]
null
null
null
test/functional/examples/test_examples.py
ymn1k/testplan
b1bde8495c449d75a74a7fe4e7c6501b0476f833
[ "Apache-2.0" ]
1
2019-09-11T09:13:18.000Z
2019-09-11T09:13:18.000Z
import os import re import sys import subprocess import pytest from testplan.common.utils.path import change_directory import platform ON_WINDOWS = platform.system() == 'Windows' KNOWN_EXCEPTIONS = [ "TclError: Can't find a usable init\.tcl in the following directories:", # Matplotlib module improperly installe...
34.733333
166
0.636413
443
3,647
5.119639
0.388262
0.028219
0.026455
0.041887
0.168871
0.148589
0.148589
0.148589
0.148589
0.142857
0
0.000372
0.262682
3,647
104
167
35.067308
0.843064
0.127228
0
0
0
0
0.270951
0
0
0
0
0
0.034091
1
0.045455
false
0.011364
0.125
0
0.215909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98db431598c035c6864fd313e00c493666f532f6
1,223
py
Python
peco/template/template.py
Tikubonn/peco
c77fc163ad31d3c271d299747914ce4ef3386987
[ "MIT" ]
null
null
null
peco/template/template.py
Tikubonn/peco
c77fc163ad31d3c271d299747914ce4ef3386987
[ "MIT" ]
null
null
null
peco/template/template.py
Tikubonn/peco
c77fc163ad31d3c271d299747914ce4ef3386987
[ "MIT" ]
null
null
null
from io import StringIO class Template: """ this has information that parsed source code. you can get rendered text with .render() and .render_string() """ def __init__(self, sentencenode, scope): self.sentencenode = sentencenode self.scope = scope def render(self, stream, ...
23.519231
66
0.555192
119
1,223
5.647059
0.428571
0.071429
0.071429
0.059524
0.08631
0
0
0
0
0
0
0
0.349959
1,223
51
67
23.980392
0.845283
0.370401
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.066667
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98dc08bcdfcddaf7d2d055024948658ae151bf17
2,342
py
Python
mtp_api/apps/credit/tests/test_views/test_credit_list/test_security_credit_list/test_credit_list_with_blank_string_filters.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
5
2016-01-05T12:21:35.000Z
2020-10-28T17:06:02.000Z
mtp_api/apps/credit/tests/test_views/test_credit_list/test_security_credit_list/test_credit_list_with_blank_string_filters.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
209
2015-06-12T09:39:41.000Z
2022-03-21T16:01:19.000Z
mtp_api/apps/credit/tests/test_views/test_credit_list/test_security_credit_list/test_credit_list_with_blank_string_filters.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
1
2021-04-11T06:19:23.000Z
2021-04-11T06:19:23.000Z
from core import getattr_path from rest_framework import status from credit.tests.test_views.test_credit_list.test_security_credit_list import SecurityCreditListTestCase class CreditListWithBlankStringFiltersTestCase(SecurityCreditListTestCase): def assertAllResponsesHaveBlankField(self, filters, blank_fields, e...
36.59375
105
0.634927
223
2,342
6.295964
0.295964
0.039174
0.034188
0.051282
0.260684
0.139601
0.139601
0.074074
0
0
0
0.003519
0.27199
2,342
63
106
37.174603
0.819941
0.00427
0
0.075472
0
0
0.133476
0.093133
0
0
0
0
0.150943
1
0.09434
false
0
0.056604
0
0.169811
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98dc59660d9259931f06beb23b9db7e987e199a4
3,800
py
Python
vipermonkey/core/filetype.py
lap1nou/ViperMonkey
631d242f43108226bb25ed91e773a274012dc8c2
[ "Unlicense" ]
874
2016-09-29T08:19:00.000Z
2022-03-28T03:34:16.000Z
vipermonkey/core/filetype.py
Mercury-180/ViperMonkey
1045dadcf7bebedc126ca36d25475e413196d053
[ "Unlicense" ]
94
2016-09-30T17:03:36.000Z
2022-03-01T17:25:26.000Z
vipermonkey/core/filetype.py
Mercury-180/ViperMonkey
1045dadcf7bebedc126ca36d25475e413196d053
[ "Unlicense" ]
186
2016-09-29T10:59:37.000Z
2022-03-26T10:20:38.000Z
""" Check for Office file types ViperMonkey is a specialized engine to parse, analyze and interpret Microsoft VBA macros (Visual Basic for Applications), mainly for malware analysis. Author: Philippe Lagadec - http://www.decalage.info License: BSD, see source code or documentation Project Repository: https://github....
33.043478
84
0.678158
560
3,800
4.5
0.373214
0.033333
0.032143
0.02381
0.329762
0.286111
0.259127
0.219048
0.219048
0.219048
0
0.026798
0.224211
3,800
114
85
33.333333
0.828019
0.612632
0
0.153846
0
0
0.057637
0
0
0
0
0
0
1
0.128205
false
0
0
0
0.282051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98dec69515aeffc54b77de9f6161248b53aa1b30
2,699
py
Python
packs/kubernetes/tests/test_third_party_resource.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
164
2015-01-17T16:08:33.000Z
2021-08-03T02:34:07.000Z
packs/kubernetes/tests/test_third_party_resource.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
442
2015-01-01T11:19:01.000Z
2017-09-06T23:26:17.000Z
packs/kubernetes/tests/test_third_party_resource.py
userlocalhost2000/st2contrib
1a5f759e76401743ed9023d298a3d767e3885db1
[ "Apache-2.0" ]
202
2015-01-13T00:37:40.000Z
2020-11-07T11:30:10.000Z
from st2tests.base import BaseSensorTestCase from third_party_resource import ThirdPartyResource class ThirdPartyResourceTestCase(BaseSensorTestCase): sensor_cls = ThirdPartyResource def test_k8s_object_to_st2_trigger_bad_object(self): k8s_obj = { 'type': 'kanye', 'object': {...
40.283582
90
0.567247
257
2,699
5.747082
0.206226
0.123223
0.096818
0.081246
0.607312
0.459039
0.287068
0.148951
0.104265
0.104265
0
0.01
0.296036
2,699
66
91
40.893939
0.767368
0.009263
0
0.465517
0
0
0.202546
0
0
0
0
0
0.344828
1
0.051724
false
0
0.034483
0
0.12069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98e0601566ba652e64eedad746be214634e5e438
17,357
py
Python
MrWorldwide.py
AnonymousHacker1279/MrWorldwide
a782194e1ebe3a1cd73409e3d4dc9946700bcc0e
[ "MIT" ]
null
null
null
MrWorldwide.py
AnonymousHacker1279/MrWorldwide
a782194e1ebe3a1cd73409e3d4dc9946700bcc0e
[ "MIT" ]
null
null
null
MrWorldwide.py
AnonymousHacker1279/MrWorldwide
a782194e1ebe3a1cd73409e3d4dc9946700bcc0e
[ "MIT" ]
null
null
null
from PyQt6.QtWidgets import QApplication, QWidget, QFileDialog import PyQt6.QtCore as QtCore import PyQt6.QtGui as QtGui import sys, time, json, requests, traceback, configparser, os import MrWorldwideUI, ConfigurationUI, UpdateManagerUI version = "v1.0.0" class LangTypes: ENGLISH = "English" ARABIC = "Arabic" CHI...
37.008529
399
0.75157
1,921
17,357
6.735554
0.210828
0.018549
0.022026
0.020403
0.331788
0.285416
0.271118
0.255738
0.223356
0.223356
0
0.002905
0.127499
17,357
469
400
37.008529
0.85136
0.082215
0
0.239669
0
0.002755
0.147857
0.052181
0
0
0
0.002132
0
1
0.090909
false
0.00551
0.013774
0
0.264463
0.00551
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98e15c2d42b427bf4ffb23842980cd80d4cd57bf
7,429
py
Python
tools/az_cli.py
google/cloud-forensics-utls
719093b4a229e5e97c30d93faabb1ccf3b6ee422
[ "Apache-2.0" ]
null
null
null
tools/az_cli.py
google/cloud-forensics-utls
719093b4a229e5e97c30d93faabb1ccf3b6ee422
[ "Apache-2.0" ]
null
null
null
tools/az_cli.py
google/cloud-forensics-utls
719093b4a229e5e97c30d93faabb1ccf3b6ee422
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google 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 ...
35.208531
79
0.679768
972
7,429
5.041152
0.254115
0.028571
0.051429
0.030612
0.290408
0.221633
0.195918
0.155918
0.14449
0.124898
0
0.005829
0.214834
7,429
210
80
35.37619
0.834219
0.256562
0
0.127273
0
0
0.138704
0
0
0
0
0
0
1
0.063636
false
0
0.081818
0
0.163636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98e710a1b1cb3e42d4cbdb66250958e21888c440
804
py
Python
interface/inter5.py
CeciliaDornelas/Python
883959ed2e10cd8e8ace2b640e1944edc0c1d8a3
[ "MIT" ]
null
null
null
interface/inter5.py
CeciliaDornelas/Python
883959ed2e10cd8e8ace2b640e1944edc0c1d8a3
[ "MIT" ]
null
null
null
interface/inter5.py
CeciliaDornelas/Python
883959ed2e10cd8e8ace2b640e1944edc0c1d8a3
[ "MIT" ]
null
null
null
import sys from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import QMainWindow, QLabel, QGridLayout, QWidget from PyQt5.QtCore import QSize class HelloWindow(QMainWindow): def __init__(self): QMainWindow.__init__(self) self.setMinimumSize(QSize(280, 120)) self.setWindowTitle("Olá, ...
26.8
69
0.691542
85
804
6.341176
0.529412
0.050093
0
0
0
0
0
0
0
0
0
0.018927
0.211443
804
29
70
27.724138
0.83123
0
0
0
0
0
0.064838
0
0
0
0
0
0
1
0.047619
false
0
0.190476
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98e753afbcdb25feef4bb770897b167108c721b5
1,523
py
Python
setup.py
notwa/scipybiteopt
62e1510789b680483ad867984849af215a9848c5
[ "MIT" ]
null
null
null
setup.py
notwa/scipybiteopt
62e1510789b680483ad867984849af215a9848c5
[ "MIT" ]
null
null
null
setup.py
notwa/scipybiteopt
62e1510789b680483ad867984849af215a9848c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import numpy from setuptools import setup, Extension #include markdown description in pip page this_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() # https://g...
35.418605
119
0.670387
184
1,523
5.396739
0.586957
0.060423
0.028197
0.060423
0
0
0
0
0
0
0
0.013799
0.19107
1,523
42
120
36.261905
0.792208
0.107682
0
0
0
0
0.282657
0.127675
0
0
0
0
0
1
0.030303
false
0
0.121212
0.030303
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98eb89e6efe4554abbe1506f10c8ccfbcb3dedf8
2,234
py
Python
HoverSlam.py
GiantWaffleCode/WafflePython
d3e85ce6d9c792e7338eb825307f7bb48113742a
[ "MIT" ]
13
2020-10-13T00:19:21.000Z
2020-12-31T02:38:58.000Z
HoverSlam.py
GiantWaffleCode/WafflePython
d3e85ce6d9c792e7338eb825307f7bb48113742a
[ "MIT" ]
null
null
null
HoverSlam.py
GiantWaffleCode/WafflePython
d3e85ce6d9c792e7338eb825307f7bb48113742a
[ "MIT" ]
10
2020-10-13T00:19:52.000Z
2020-12-31T02:39:42.000Z
import krpc import time import math from simple_pid import PID conn = krpc.connect(name="UI Test") vessel = conn.space_center.active_vessel kerbin_frame = vessel.orbit.body.reference_frame orb_frame = vessel.orbital_reference_frame srf_frame = vessel.surface_reference_frame surface_gravity = vessel.orbit.body.surface_...
33.848485
91
0.705461
307
2,234
4.918567
0.338762
0.041722
0.077483
0.10596
0.288742
0.203974
0.055629
0.055629
0
0
0
0.019818
0.164279
2,234
65
92
34.369231
0.788966
0.008953
0
0.075472
0
0
0.046564
0
0
0
0
0
0
1
0.018868
false
0.018868
0.075472
0.018868
0.113208
0.075472
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98ee7596428318903272a404f3751220eec8a490
11,760
py
Python
datapackage_pipelines/web/server.py
gperonato/datapackage-pipelines
72b98918db1c19590586a3a85c5b087227cbbc3b
[ "MIT" ]
109
2016-09-01T08:41:55.000Z
2021-11-10T10:08:35.000Z
datapackage_pipelines/web/server.py
gperonato/datapackage-pipelines
72b98918db1c19590586a3a85c5b087227cbbc3b
[ "MIT" ]
144
2016-08-30T16:26:50.000Z
2021-04-18T09:06:12.000Z
datapackage_pipelines/web/server.py
gperonato/datapackage-pipelines
72b98918db1c19590586a3a85c5b087227cbbc3b
[ "MIT" ]
34
2016-09-05T12:46:53.000Z
2022-03-05T01:53:49.000Z
import datetime import os from io import BytesIO import logging from functools import wraps from copy import deepcopy from collections import Counter import slugify import yaml import mistune import requests from flask import \ Blueprint, Flask, render_template, abort, send_file, make_response from flask_cors imp...
33.696275
79
0.631463
1,421
11,760
4.990852
0.18297
0.071066
0.023971
0.024112
0.329808
0.262549
0.21348
0.169769
0.126058
0.064298
0
0.003408
0.251446
11,760
348
80
33.793103
0.802227
0.036905
0
0.183453
0
0
0.11426
0.020903
0
0
0
0
0
1
0.057554
false
0.007194
0.061151
0.007194
0.18705
0.035971
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98eec9960afb05f934f3e80b57d22d6b3147c3f1
1,425
py
Python
MoveSim/code/models/losses.py
tobinsouth/privacy-preserving-synthetic-mobility-data
fd4d1851b47e3e7304761a894b460e8345fae5db
[ "MIT" ]
null
null
null
MoveSim/code/models/losses.py
tobinsouth/privacy-preserving-synthetic-mobility-data
fd4d1851b47e3e7304761a894b460e8345fae5db
[ "MIT" ]
null
null
null
MoveSim/code/models/losses.py
tobinsouth/privacy-preserving-synthetic-mobility-data
fd4d1851b47e3e7304761a894b460e8345fae5db
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np import torch.nn as nn class distance_loss(nn.Module): def __init__(self): with open('../data/raw/Cellular_Baselocation_baidu') as f: gpss = f.readlines() self.X = [] self.Y = [] for gps in gpss: x, y = float(gps.split()[0]...
27.403846
67
0.523509
203
1,425
3.551724
0.315271
0.055479
0.088766
0.110957
0.449376
0.38835
0.324549
0.324549
0.324549
0.324549
0
0.028571
0.312281
1,425
51
68
27.941176
0.707143
0.094035
0
0.125
0
0
0.031811
0.031811
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98ef6a5aa62915725ae521746cef94f51adfcf47
1,316
py
Python
board/game.py
petthauk/chess_ml
2a66ca8511fd4eef71607a7f56417d039d94dbf9
[ "MIT" ]
null
null
null
board/game.py
petthauk/chess_ml
2a66ca8511fd4eef71607a7f56417d039d94dbf9
[ "MIT" ]
null
null
null
board/game.py
petthauk/chess_ml
2a66ca8511fd4eef71607a7f56417d039d94dbf9
[ "MIT" ]
null
null
null
import pygame as pg from pygame.locals import * import sys import board.chess_board as board w = 60 * 8 h = 60 * 8 class Game: """ Class to setup and start a game """ def __init__(self): self.b = board.Board(w, h) def get_board(self): """ Returns board :return: B...
24.830189
73
0.458207
144
1,316
4.048611
0.465278
0.042882
0.037736
0
0
0
0
0
0
0
0
0.00831
0.451368
1,316
52
74
25.307692
0.799169
0.179331
0
0
0
0
0.009018
0
0
0
0
0
0
1
0.107143
false
0
0.142857
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98efb4404db7ca8bc8ddf99fbe40494ec2e70aa1
2,515
py
Python
pix2pix/Dataset_util.py
Atharva-Phatak/Season-Tranfer
d6a0d4d42e396677920ffb81ab0086b0aa05d3c3
[ "MIT" ]
2
2019-07-02T14:00:15.000Z
2019-07-11T15:50:41.000Z
pix2pix/Dataset_util.py
Atharva-Phatak/Season-Tranfer
d6a0d4d42e396677920ffb81ab0086b0aa05d3c3
[ "MIT" ]
null
null
null
pix2pix/Dataset_util.py
Atharva-Phatak/Season-Tranfer
d6a0d4d42e396677920ffb81ab0086b0aa05d3c3
[ "MIT" ]
null
null
null
#importing libraries import torch import torch.utils.data as data import os import random from PIL import Image class CreateDataset(data.Dataset): def __init__(self , imagedir , subfolder='train' , direction = 'AtoB' , flip = False , transform = None ,resize_scale = None , crop_size = None): ...
36.985294
150
0.553082
302
2,515
4.374172
0.221854
0.049962
0.09084
0.057532
0.36866
0.351249
0.296745
0.296745
0.296745
0.296745
0
0.009756
0.347913
2,515
68
151
36.985294
0.795732
0.007555
0
0
0
0
0.006999
0
0
0
0
0
0
1
0.071429
false
0
0.119048
0.02381
0.261905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98efd5c91e56c42872a45ff29528b847156d1400
20,126
py
Python
crslab/system/C2CRS_System.py
Zyh716/WSDM2022-C2CRS
8ef2fa7c44bdba1799ab79f379ae7394bd468c02
[ "MIT" ]
4
2022-03-24T02:14:50.000Z
2022-03-30T02:28:19.000Z
crslab/system/C2CRS_System.py
RUCAIBox/WSDM2022-C2CRS
8ef2fa7c44bdba1799ab79f379ae7394bd468c02
[ "MIT" ]
null
null
null
crslab/system/C2CRS_System.py
RUCAIBox/WSDM2022-C2CRS
8ef2fa7c44bdba1799ab79f379ae7394bd468c02
[ "MIT" ]
2
2022-03-23T02:24:24.000Z
2022-03-28T12:45:43.000Z
# @Time : 2022/1/1 # @Author : Yuanhang Zhou # @email : sdzyh002@gmail.com import os from math import floor import torch from loguru import logger from typing import List, Dict from copy import copy, deepcopy import pickle import os import numpy import ipdb from crslab.config import PRETRAIN_PATH, SAVE_P...
42.549683
154
0.622131
2,483
20,126
4.764801
0.103504
0.018933
0.015214
0.010819
0.574085
0.504691
0.458203
0.419407
0.380272
0.368946
0
0.004221
0.270098
20,126
473
155
42.549683
0.801157
0.074282
0
0.327485
0
0
0.082326
0.017517
0
0
0
0
0
1
0.105263
false
0.008772
0.052632
0
0.192982
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98f428d0ea0b7f44539193898ee9647b5c6c689f
2,242
py
Python
marketDataRetrieval.py
amertx/Monte-Carlo-Simulation
6c3a616bc67e668d80a73247ca279e10f6d46cd5
[ "MIT" ]
null
null
null
marketDataRetrieval.py
amertx/Monte-Carlo-Simulation
6c3a616bc67e668d80a73247ca279e10f6d46cd5
[ "MIT" ]
null
null
null
marketDataRetrieval.py
amertx/Monte-Carlo-Simulation
6c3a616bc67e668d80a73247ca279e10f6d46cd5
[ "MIT" ]
null
null
null
#Prediction model using an instance of the Monte Carlo simulation and Brownian Motion equation #import of libraries import numpy as np import pandas as pd from pandas_datareader import data as wb import matplotlib.pyplot as plt from scipy.stats import norm #ticker selection def mainFunction(tradingSymbol): data ...
29.116883
118
0.711864
314
2,242
5.05414
0.429936
0.037807
0.018904
0.024575
0.093258
0.026465
0
0
0
0
0
0.030761
0.202498
2,242
76
119
29.5
0.856823
0.402765
0
0.085714
0
0
0.016679
0
0
0
0
0
0
1
0.028571
false
0
0.142857
0
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98f43fcd4c7844a9b69d2baa890a95f4841f18e8
31,716
py
Python
HelloDeepSpeed/train_bert_ds.py
mrwyattii/DeepSpeedExamples
6bd444a7c62e9d7d320dd4c1e1142062f50c861d
[ "MIT" ]
null
null
null
HelloDeepSpeed/train_bert_ds.py
mrwyattii/DeepSpeedExamples
6bd444a7c62e9d7d320dd4c1e1142062f50c861d
[ "MIT" ]
null
null
null
HelloDeepSpeed/train_bert_ds.py
mrwyattii/DeepSpeedExamples
6bd444a7c62e9d7d320dd4c1e1142062f50c861d
[ "MIT" ]
null
null
null
""" Modified version of train_bert.py that adds DeepSpeed """ import os import datetime import json import pathlib import re import string from functools import partial from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, TypeVar, Union import random import datasets import fire import logging impo...
36.836237
95
0.576334
3,561
31,716
4.919966
0.162595
0.021975
0.011929
0.019521
0.273345
0.224715
0.172945
0.147432
0.133505
0.108505
0
0.008284
0.292092
31,716
860
96
36.87907
0.772047
0.269296
0
0.18254
0
0.001984
0.101402
0.012863
0
0
0
0
0.005952
1
0.039683
false
0
0.047619
0.005952
0.130952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98f5a9225473ea31a925278ee4add1b0f458f788
825
py
Python
programming/leetcode/linkedLists/PalindromeLinkedList/PalindromeLinkedList.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
1
2021-01-03T06:42:58.000Z
2021-01-03T06:42:58.000Z
programming/leetcode/linkedLists/PalindromeLinkedList/PalindromeLinkedList.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
null
null
null
programming/leetcode/linkedLists/PalindromeLinkedList/PalindromeLinkedList.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
null
null
null
# Given a singly linked list, determine if it is a palindrome. # Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def isPalindrome(self, head: ListNode) -> bool: fast = slow = head # find t...
22.916667
62
0.530909
100
825
4.34
0.44
0.0553
0.073733
0
0
0
0
0
0
0
0
0.002024
0.401212
825
35
63
23.571429
0.876518
0.242424
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98f808b42f55c190413c10c0ee75bee408ae97c6
1,671
py
Python
calculator.py
harshitbansal373/Python-Games
4e879b0a97b4b420ed6d440cd2d6a0332a2109b7
[ "MIT" ]
null
null
null
calculator.py
harshitbansal373/Python-Games
4e879b0a97b4b420ed6d440cd2d6a0332a2109b7
[ "MIT" ]
null
null
null
calculator.py
harshitbansal373/Python-Games
4e879b0a97b4b420ed6d440cd2d6a0332a2109b7
[ "MIT" ]
null
null
null
from tkinter import * import time root=Tk() root.title('Calculator') root.config(bg='wheat') def display(x): global s s=s+x text.set(s) def solve(): global s try: s=str(eval(text.get())) except Exception as e: text.set(e) s='' else: text.set(s) def clear(): global s s='' text.set(...
25.318182
125
0.668462
305
1,671
3.662295
0.298361
0.048344
0.080573
0.096688
0.452999
0.435094
0.435094
0.38496
0.322292
0.256043
0
0.075497
0.096349
1,671
65
126
25.707692
0.664238
0
0
0.236364
0
0
0.131737
0
0
0
0
0
0
1
0.090909
false
0
0.036364
0
0.127273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98f8ea06315deb6bd9599f36bf3f99bf2965db61
8,280
py
Python
src/Main.py
OlavH96/Master
f98476063e579b7b2a80b81a2c0ca4005f5fce80
[ "MIT" ]
null
null
null
src/Main.py
OlavH96/Master
f98476063e579b7b2a80b81a2c0ca4005f5fce80
[ "MIT" ]
null
null
null
src/Main.py
OlavH96/Master
f98476063e579b7b2a80b81a2c0ca4005f5fce80
[ "MIT" ]
null
null
null
import glob import os import keras import tensorflow as tf from keras.models import load_model from keras.callbacks import ModelCheckpoint import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import src.util.Files as Files from src.util.ImageLoader import load_images_generator, resize_image, load...
35.844156
139
0.620411
1,135
8,280
4.278414
0.188546
0.019769
0.02883
0.031301
0.347199
0.308896
0.271417
0.262356
0.255354
0.232084
0
0.010558
0.267874
8,280
230
140
36
0.790498
0.067512
0
0.196629
0
0
0.0785
0.039574
0
0
0
0
0
1
0.033708
false
0
0.117978
0
0.162921
0.039326
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98fd965b02157810b02af85a0eee51f0f9a9f9e1
5,040
py
Python
Udacity P3 Additional Files/model.py
sayeayed/Udacity-Project4
da39d0013d35d90818f9aa24ef097e185e705489
[ "MIT" ]
null
null
null
Udacity P3 Additional Files/model.py
sayeayed/Udacity-Project4
da39d0013d35d90818f9aa24ef097e185e705489
[ "MIT" ]
null
null
null
Udacity P3 Additional Files/model.py
sayeayed/Udacity-Project4
da39d0013d35d90818f9aa24ef097e185e705489
[ "MIT" ]
null
null
null
import os import csv import numpy as np from sklearn.utils import shuffle ## Read in frame data samples = [] with open('/../opt/carnd_p3/data/driving_log.csv') as csvfile: #open the log file reader = csv.reader(csvfile) #as a readable csv for line in reader: samples.append(line) #add each line of th...
48.461538
222
0.709127
719
5,040
4.876217
0.369958
0.027382
0.027382
0.015402
0.08899
0.07587
0.047633
0.040502
0.022248
0.022248
0
0.028051
0.193651
5,040
104
223
48.461538
0.834646
0.416667
0
0.033333
0
0
0.037716
0.021799
0
0
0
0
0
1
0.016667
false
0
0.166667
0
0.183333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98fe28b6ed135c40a04274c069f20df97e941299
2,357
py
Python
utils/wavelengthfit_prim.py
GeminiDRSoftware/GHOSTDR
79cd1ac81a7458e06668d6dac51fc6f9c9c61b31
[ "BSD-3-Clause" ]
1
2019-09-05T15:29:25.000Z
2019-09-05T15:29:25.000Z
utils/wavelengthfit_prim.py
GeminiDRSoftware/GHOSTDR
79cd1ac81a7458e06668d6dac51fc6f9c9c61b31
[ "BSD-3-Clause" ]
null
null
null
utils/wavelengthfit_prim.py
GeminiDRSoftware/GHOSTDR
79cd1ac81a7458e06668d6dac51fc6f9c9c61b31
[ "BSD-3-Clause" ]
2
2017-10-10T23:23:53.000Z
2022-02-15T23:28:22.000Z
#!/usr/bin/env python3 """ A script containing the basic principles of the extraction primitive inner workings""" from __future__ import division, print_function from ghostdr import polyfit import numpy as pn # Firstly, let's find all the needed files fitsdir='/Users/mireland/data/ghost/cal_frames/' #Define the f...
35.712121
107
0.801018
369
2,357
4.97019
0.498645
0.04253
0.028353
0.034896
0
0
0
0
0
0
0
0.008118
0.111583
2,357
65
108
36.261538
0.867717
0.439118
0
0
0
0.04
0.203089
0.144402
0
0
0
0
0
1
0
false
0
0.12
0
0.12
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98ff5d19bcbfb3d13ae61a0ad4df7649e741ec52
1,506
py
Python
time_management/test/kronos_test.py
AyushRawal/time-management
a8876f7b681da837c41f17cf896eaa895017f17f
[ "MIT" ]
1
2021-11-15T19:35:51.000Z
2021-11-15T19:35:51.000Z
time_management/test/kronos_test.py
AyushRawal/time-management
a8876f7b681da837c41f17cf896eaa895017f17f
[ "MIT" ]
null
null
null
time_management/test/kronos_test.py
AyushRawal/time-management
a8876f7b681da837c41f17cf896eaa895017f17f
[ "MIT" ]
null
null
null
import unittest import datetime import kronos string_format_time = "%Y-%m-%d %H:%M:%S" date_time_str = "2020-07-19 18:14:21" class KronosTest(unittest.TestCase): def test_get_day_of_week(self): for i in range(len(kronos.week_days)): date = kronos.get_date_time_from_string(f"2020-08-{10 + i} 1...
41.833333
83
0.717131
239
1,506
4.179916
0.271967
0.104104
0.078078
0.102102
0.376376
0.351351
0.302302
0.23023
0.164164
0.082082
0
0.0928
0.169987
1,506
35
84
43.028571
0.7064
0
0
0
0
0
0.116202
0
0
0
0
0
0.25
1
0.142857
false
0
0.107143
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c70208d0f7ec90b8fef96ebe7d673c28540df5bc
2,558
py
Python
odm/dialects/postgresql/green.py
quantmind/pulsar-odm
5955c20beca0a89270c2b390335838deb7d5915e
[ "BSD-3-Clause" ]
16
2015-02-17T22:23:48.000Z
2020-08-08T09:35:53.000Z
odm/dialects/postgresql/green.py
quantmind/pulsar-odm
5955c20beca0a89270c2b390335838deb7d5915e
[ "BSD-3-Clause" ]
11
2015-02-25T11:37:09.000Z
2016-03-04T12:08:11.000Z
odm/dialects/postgresql/green.py
quantmind/pulsar-odm
5955c20beca0a89270c2b390335838deb7d5915e
[ "BSD-3-Clause" ]
3
2017-02-27T10:24:31.000Z
2020-10-08T05:43:15.000Z
from asyncio import Future from greenlet import getcurrent import psycopg2 from psycopg2 import * # noqa from psycopg2 import extensions, OperationalError __version__ = psycopg2.__version__ def psycopg2_wait_callback(conn): """A wait callback to allow greenlet to work with Psycopg. The caller must be from...
29.744186
76
0.67631
333
2,558
5.06006
0.336336
0.024926
0.033828
0.021365
0.164985
0.164985
0.164985
0.127003
0.127003
0.127003
0
0.006312
0.256841
2,558
85
77
30.094118
0.880063
0.315872
0
0.22
0
0
0.106762
0
0
0
0
0
0.02
1
0.06
false
0
0.12
0
0.18
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c70375d862917fab136e0bc4321aa240c2c6c44e
27,984
py
Python
test/test_replica_set_connection.py
h4ck3rm1k3/mongo-python-driver
dfaadd53e86a62c72ca8a7564fdacb30cd0ac01c
[ "Apache-2.0" ]
1
2019-04-27T20:15:11.000Z
2019-04-27T20:15:11.000Z
test/test_replica_set_connection.py
h4ck3rm1k3/mongo-python-driver
dfaadd53e86a62c72ca8a7564fdacb30cd0ac01c
[ "Apache-2.0" ]
null
null
null
test/test_replica_set_connection.py
h4ck3rm1k3/mongo-python-driver
dfaadd53e86a62c72ca8a7564fdacb30cd0ac01c
[ "Apache-2.0" ]
null
null
null
# Copyright 2011-2012 10gen, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
36.966975
85
0.611885
3,159
27,984
5.248496
0.158594
0.055187
0.023583
0.007057
0.493848
0.428408
0.308987
0.290531
0.266828
0.240651
0
0.009876
0.287164
27,984
756
86
37.015873
0.821285
0.116209
0
0.385338
0
0
0.05584
0.003612
0
0
0
0
0.261278
1
0.065789
false
0.013158
0.043233
0.003759
0.12218
0.00188
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c703e56a113105edf215384785217acba5d2eb75
2,177
py
Python
jqi/cmd.py
jan-g/jqi
f304f9fda33ac9b9eae98848d2a64acbe0893131
[ "CC-BY-3.0", "Apache-2.0" ]
3
2020-04-15T13:40:59.000Z
2021-06-30T10:09:33.000Z
jqi/cmd.py
jan-g/jqi
f304f9fda33ac9b9eae98848d2a64acbe0893131
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
jqi/cmd.py
jan-g/jqi
f304f9fda33ac9b9eae98848d2a64acbe0893131
[ "CC-BY-3.0", "Apache-2.0" ]
null
null
null
import argparse_helper as argparse import config_dir import sys from .editor import Editor def main(*args): if len(args) > 0: args = [args] parser = argparse.ArgumentParser() parser.add_argument("-f", dest="cfg_file", help="query save name") parser.add_argument("-x", default=False, action="st...
31.550725
109
0.601746
296
2,177
4.293919
0.280405
0.038552
0.080252
0.030685
0.18332
0.157356
0.108576
0.073958
0.073958
0.073958
0
0.003064
0.250345
2,177
68
110
32.014706
0.775735
0
0
0.090909
0
0
0.123105
0
0
0
0
0
0
1
0.036364
false
0
0.072727
0
0.127273
0.072727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c704a4dc1d06546eaf240da05c092e6fa0ab7b9d
1,704
py
Python
visual_dynamics/policies/random_offset_camera_target_policy.py
alexlee-gk/visual_dynamics
90227bb0d0aebb1989117b5c25ca311655ca7cc7
[ "MIT" ]
30
2017-04-05T12:55:09.000Z
2022-03-14T14:31:31.000Z
visual_dynamics/policies/random_offset_camera_target_policy.py
alexlee-gk/visual_dynamics
90227bb0d0aebb1989117b5c25ca311655ca7cc7
[ "MIT" ]
1
2017-06-19T02:39:03.000Z
2017-06-19T02:39:03.000Z
visual_dynamics/policies/random_offset_camera_target_policy.py
alexlee-gk/visual_dynamics
90227bb0d0aebb1989117b5c25ca311655ca7cc7
[ "MIT" ]
13
2017-04-05T12:55:09.000Z
2021-03-16T01:59:12.000Z
import numpy as np from visual_dynamics.policies import CameraTargetPolicy class RandomOffsetCameraTargetPolicy(CameraTargetPolicy): def __init__(self, env, target_env, camera_node_name, agent_node_name, target_node_name, height=12.0, radius=16.0, angle=(-np.pi/4, np.pi/4), tightness=0.1, hra_in...
47.333333
112
0.629695
190
1,704
5.468421
0.278947
0.046198
0.046198
0.063523
0.152069
0.102021
0.102021
0.102021
0.102021
0.102021
0
0.008
0.266432
1,704
35
113
48.685714
0.8232
0.019953
0
0
0
0
0.013789
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c7075ad8e2a1229e14b617586ca8b05a9f86dd2f
1,920
py
Python
mir/tools/mir_repo_utils.py
fenrir-z/ymir-cmd
6fbffd3c1ff5dd1c9a44b55de411523b50567661
[ "Apache-2.0" ]
1
2022-01-12T03:12:47.000Z
2022-01-12T03:12:47.000Z
mir/tools/mir_repo_utils.py
fenrir-z/ymir-cmd
6fbffd3c1ff5dd1c9a44b55de411523b50567661
[ "Apache-2.0" ]
null
null
null
mir/tools/mir_repo_utils.py
fenrir-z/ymir-cmd
6fbffd3c1ff5dd1c9a44b55de411523b50567661
[ "Apache-2.0" ]
null
null
null
import json import logging import os from typing import Optional from mir import scm from mir.tools import mir_storage def mir_check_repo_dvc_dirty(mir_root: str = ".") -> bool: names = [name for name in mir_storage.get_all_mir_paths() if os.path.isfile(os.path.join(mir_root, name))] if names: dvc_cm...
32.542373
110
0.655729
292
1,920
4.058219
0.328767
0.059072
0.050633
0.037975
0.207595
0.179747
0.179747
0.064135
0.064135
0.064135
0
0.000684
0.239063
1,920
58
111
33.103448
0.810404
0.099479
0
0.166667
0
0
0.069066
0
0
0
0
0
0
1
0.119048
false
0
0.142857
0.047619
0.452381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c70864a5d3c270e78a0bc9da8738245a6e27664f
3,624
py
Python
utils/edit_utils.py
ermekaitygulov/STIT
93dca8d589b555fa99a5c5438a8517a52d8898c3
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
6
2022-03-11T23:42:12.000Z
2022-03-28T09:39:25.000Z
utils/edit_utils.py
bycloudai/STIT-Windows
cadb2a01457bfd1c90bcd8d220587b48e1c2327a
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
utils/edit_utils.py
bycloudai/STIT-Windows
cadb2a01457bfd1c90bcd8d220587b48e1c2327a
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
import argparse import math import os import pickle from typing import List import cv2 import numpy as np import torch from PIL import Image, ImageDraw, ImageFont import configs.paths_config from configs import paths_config from training.networks import SynthesisBlock def add_texts_to_image_vertical(texts, pivot_im...
32.648649
117
0.683499
494
3,624
4.793522
0.291498
0.050676
0.019003
0.029139
0.099662
0.08277
0.054899
0.054899
0.054899
0.054899
0
0.016754
0.209437
3,624
110
118
32.945455
0.809773
0
0
0.116279
0
0
0.019868
0.008278
0
0
0
0
0
1
0.081395
false
0
0.139535
0
0.302326
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c7087550ae8556b1933bc7961a3ed0e9783aaa07
6,845
py
Python
conll_df/conll_df.py
interrogator/conll-df
35611f295e3f8230f574142151e3a19098edfdca
[ "MIT" ]
27
2017-03-17T15:39:16.000Z
2021-11-23T09:10:10.000Z
conll_df/conll_df.py
interrogator/conll-df
35611f295e3f8230f574142151e3a19098edfdca
[ "MIT" ]
2
2017-11-21T05:33:04.000Z
2018-09-22T13:05:06.000Z
conll_df/conll_df.py
interrogator/conll-df
35611f295e3f8230f574142151e3a19098edfdca
[ "MIT" ]
8
2017-03-17T14:59:34.000Z
2022-02-25T19:09:27.000Z
import pandas as pd # UD 1.0 CONLL_COLUMNS = ['i', 'w', 'l', 'p', 'n', 'm', 'g', 'f', 'd', 'c'] # UD 2.0 CONLL_COLUMNS_V2 = ['i', 'w', 'l', 'x', 'p', 'm', 'g', 'f', 'e', 'o'] # possible morphological attributes MORPH_ATTS = ['type', 'animacy', #'gender', 'number' ...
30.154185
100
0.512491
898
6,845
3.825167
0.312918
0.016303
0.01048
0.011354
0.062009
0.014556
0
0
0
0
0
0.010191
0.340541
6,845
226
101
30.287611
0.750775
0.148868
0
0.08125
0
0
0.075597
0
0
0
0
0
0
1
0.01875
false
0.0125
0.0375
0
0.075
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c708da26fb5e59e5b2a82edc62ad3d6177cc9df2
2,491
py
Python
scripts/postgres_to_lmdb_bars_60m.py
alexanu/atpy
3f4b5cfe7de7633ef053d2feaddae421806a9799
[ "MIT" ]
24
2018-03-22T06:22:11.000Z
2022-03-14T09:04:44.000Z
scripts/postgres_to_lmdb_bars_60m.py
alexanu/atpy
3f4b5cfe7de7633ef053d2feaddae421806a9799
[ "MIT" ]
null
null
null
scripts/postgres_to_lmdb_bars_60m.py
alexanu/atpy
3f4b5cfe7de7633ef053d2feaddae421806a9799
[ "MIT" ]
9
2018-03-22T06:22:11.000Z
2020-09-19T16:47:13.000Z
#!/bin/python3 import argparse import datetime import functools import logging import os import psycopg2 from dateutil.relativedelta import relativedelta from atpy.data.cache.lmdb_cache import * from atpy.data.cache.postgres_cache import BarsInPeriodProvider from atpy.data.cache.postgres_cache import request_adjustm...
43.701754
158
0.733842
331
2,491
5.265861
0.308157
0.041308
0.041308
0.043603
0.236374
0.236374
0.174412
0.133104
0.133104
0.133104
0
0.007208
0.164593
2,491
56
159
44.482143
0.83037
0.005219
0
0
0
0
0.134841
0
0
0
0
0
0
1
0
false
0
0.261905
0
0.261905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c7091f356e0452faea68f2b17a6227d31b0f1d34
746
py
Python
src/download_pdf.py
luccanunes/class-url-automation
6ccb77feaa9aede4c8475d9f79149cc8c2c31cc4
[ "MIT" ]
1
2020-10-17T02:08:10.000Z
2020-10-17T02:08:10.000Z
src/download_pdf.py
luccanunes/class-url-automation
6ccb77feaa9aede4c8475d9f79149cc8c2c31cc4
[ "MIT" ]
null
null
null
src/download_pdf.py
luccanunes/class-url-automation
6ccb77feaa9aede4c8475d9f79149cc8c2c31cc4
[ "MIT" ]
1
2020-12-20T23:53:30.000Z
2020-12-20T23:53:30.000Z
def download_pdf(URL): from selenium import webdriver from time import sleep URL = URL options = webdriver.ChromeOptions() options.add_experimental_option('prefs', { # Change default directory for downloads "download.default_directory": r"E:\coding\other\class-url-automation\src\pdf...
35.52381
87
0.687668
90
746
5.555556
0.644444
0.04
0.032
0
0
0
0
0
0
0
0
0.001704
0.213137
746
21
88
35.52381
0.850085
0.13941
0
0
0
0
0.323944
0.300469
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c70a49b112aadc6ae32c90aac8b9581dc39ca540
1,491
py
Python
examples/custom_shape/stages.py
oksumoron/locust
fddfefe7ef1082bc5284cd2dd8477221484dfb0c
[ "MIT" ]
18,336
2015-01-03T20:38:40.000Z
2022-03-31T16:02:35.000Z
examples/custom_shape/stages.py
oksumoron/locust
fddfefe7ef1082bc5284cd2dd8477221484dfb0c
[ "MIT" ]
1,779
2015-01-01T02:09:30.000Z
2022-03-31T09:58:10.000Z
examples/custom_shape/stages.py
oksumoron/locust
fddfefe7ef1082bc5284cd2dd8477221484dfb0c
[ "MIT" ]
2,689
2015-01-05T02:01:50.000Z
2022-03-31T13:13:09.000Z
from locust import HttpUser, TaskSet, task, constant from locust import LoadTestShape class UserTasks(TaskSet): @task def get_root(self): self.client.get("/") class WebsiteUser(HttpUser): wait_time = constant(0.5) tasks = [UserTasks] class StagesShape(LoadTestShape): """ A simply l...
29.82
90
0.602951
193
1,491
4.559585
0.481865
0.092045
0.0625
0.107955
0.059091
0.059091
0
0
0
0
0
0.039363
0.284373
1,491
49
91
30.428571
0.78538
0.343394
0
0
0
0
0.174006
0
0
0
0
0
0
1
0.08
false
0
0.08
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c70b23f1cce14640f16607fb8ec77754089292bc
2,115
py
Python
db/seed_ids.py
xtuyaowu/jtyd_python_spider
ca5c3efd5519f592c0d587c22f03812e7756c8ea
[ "MIT" ]
7
2017-08-19T22:36:29.000Z
2018-06-03T07:02:04.000Z
db/seed_ids.py
xtuyaowu/jtyd_python_spider
ca5c3efd5519f592c0d587c22f03812e7756c8ea
[ "MIT" ]
2
2021-04-30T20:37:14.000Z
2021-12-13T19:46:29.000Z
db/seed_ids.py
xtuyaowu/jtyd_python_spider
ca5c3efd5519f592c0d587c22f03812e7756c8ea
[ "MIT" ]
4
2017-09-06T03:00:11.000Z
2017-12-10T08:04:21.000Z
# coding:utf-8 from sqlalchemy import text from db.basic_db import db_session from db.models import SeedIds from decorators.decorator import db_commit_decorator def get_seed(): """ Get all user id to be crawled :return: user ids """ return db_session.query(SeedIds).filter(text('status=0')).all() d...
24.593023
99
0.659102
314
2,115
4.229299
0.203822
0.09488
0.064006
0.075301
0.557982
0.50753
0.458584
0.458584
0.458584
0.273343
0
0.007903
0.222222
2,115
85
100
24.882353
0.799392
0.178251
0
0.409091
0
0
0.026625
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.022727
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c70b35ed30f0bbb93f6ab0a59185f9e44b410fce
16,745
py
Python
tobler/area_weighted/area_interpolate.py
sjsrey/tobler
8e3ebd5d01de459e4387fabd57cbb12cb6735596
[ "BSD-3-Clause" ]
1
2019-06-21T19:32:22.000Z
2019-06-21T19:32:22.000Z
tobler/area_weighted/area_interpolate.py
sjsrey/tobler
8e3ebd5d01de459e4387fabd57cbb12cb6735596
[ "BSD-3-Clause" ]
null
null
null
tobler/area_weighted/area_interpolate.py
sjsrey/tobler
8e3ebd5d01de459e4387fabd57cbb12cb6735596
[ "BSD-3-Clause" ]
null
null
null
""" Area Weighted Interpolation """ import numpy as np import geopandas as gpd from ._vectorized_raster_interpolation import _fast_append_profile_in_gdf import warnings from scipy.sparse import dok_matrix, diags, coo_matrix import pandas as pd from tobler.util.util import _check_crs, _nan_check, _inf_check, _check_p...
33.828283
225
0.657928
2,315
16,745
4.600432
0.141253
0.039812
0.01784
0.021033
0.715399
0.688357
0.665258
0.65784
0.615869
0.592207
0
0.006242
0.253688
16,745
494
226
33.896761
0.845963
0.473873
0
0.595556
0
0
0.043076
0
0
0
0
0
0
1
0.022222
false
0.022222
0.031111
0
0.097778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c70c23e78ecc9c77169196b937ad121dbbab19c4
1,345
py
Python
ansiblemetrics/playbook/num_deprecated_modules.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
1
2020-04-24T16:09:14.000Z
2020-04-24T16:09:14.000Z
ansiblemetrics/playbook/num_deprecated_modules.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
null
null
null
ansiblemetrics/playbook/num_deprecated_modules.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
null
null
null
from ansiblemetrics.ansible_modules import DEPRECATED_MODULES_LIST from ansiblemetrics.ansible_metric import AnsibleMetric class NumDeprecatedModules(AnsibleMetric): """ This class measures the number of times tasks use deprecated modules.""" def count(self): """Return the deprecated modules occurren...
25.377358
90
0.553903
117
1,345
6.282051
0.555556
0.138776
0.068027
0
0
0
0
0
0
0
0
0.001199
0.379926
1,345
52
91
25.865385
0.880096
0.511524
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c70da4e644f1e748e2087d4c879dc99b2751ebd0
2,710
py
Python
bin/find_latest_versions.py
ebreton/ghost-in-a-shell
8b3382d60a86322c74c6ee1b52f068dfcfc3d79e
[ "MIT" ]
2
2018-05-31T08:56:16.000Z
2020-01-23T15:12:44.000Z
bin/find_latest_versions.py
ebreton/ghost-in-a-shell
8b3382d60a86322c74c6ee1b52f068dfcfc3d79e
[ "MIT" ]
null
null
null
bin/find_latest_versions.py
ebreton/ghost-in-a-shell
8b3382d60a86322c74c6ee1b52f068dfcfc3d79e
[ "MIT" ]
null
null
null
#!/usr/bin/python from distutils.version import LooseVersion import argparse import logging import requests import re session = requests.Session() # authorization token TOKEN_URL = "https://auth.docker.io/token?service=registry.docker.io&scope=repository:%s:pull" # find all tags TAGS_URL = "https://index.docker.io...
30.449438
94
0.667897
345
2,710
5.113043
0.391304
0.019841
0.028912
0.020408
0.055556
0
0
0
0
0
0
0.003245
0.204059
2,710
88
95
30.795455
0.814557
0.07417
0
0.033333
0
0.016667
0.261391
0.029976
0
0
0
0
0
1
0.066667
false
0
0.083333
0
0.233333
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c70f068d9386d59199952ccdcd03582e192c0909
2,933
py
Python
pelicanconf.py
myrle-krantz/treasurer-site
e0beca3d0d724ae09300974f7020a5611fbd3034
[ "Apache-2.0" ]
1
2021-11-09T21:42:44.000Z
2021-11-09T21:42:44.000Z
pelicanconf.py
myrle-krantz/treasurer-site
e0beca3d0d724ae09300974f7020a5611fbd3034
[ "Apache-2.0" ]
1
2021-11-01T11:14:10.000Z
2021-11-01T11:14:10.000Z
pelicanconf.py
isabella232/treasurer-site
9a2e33c85e040183df049d63814ef6b1b0bb7a46
[ "Apache-2.0" ]
3
2021-06-04T09:07:48.000Z
2021-11-09T21:42:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # vim: encoding=utf-8 # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to yo...
27.411215
99
0.715309
408
2,933
5.026961
0.539216
0.023403
0.026329
0.015602
0.019503
0
0
0
0
0
0
0.005745
0.16911
2,933
106
100
27.669811
0.835864
0.502898
0
0
0
0
0.32158
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c70f37923d6264953c0f43a70aaafcb143563524
10,935
py
Python
TurtleArt/taturtle.py
sugar-activities/4585-activity
38e6efd7b4fcb9cf820efaf7406ce7abde92406e
[ "MIT" ]
null
null
null
TurtleArt/taturtle.py
sugar-activities/4585-activity
38e6efd7b4fcb9cf820efaf7406ce7abde92406e
[ "MIT" ]
null
null
null
TurtleArt/taturtle.py
sugar-activities/4585-activity
38e6efd7b4fcb9cf820efaf7406ce7abde92406e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #Copyright (c) 2010,12 Walter Bender #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, ...
34.936102
78
0.561225
1,436
10,935
4.162953
0.197075
0.025594
0.016561
0.021746
0.222315
0.162763
0.143694
0.088491
0.073938
0.073938
0
0.019635
0.333973
10,935
312
79
35.048077
0.801181
0.219021
0
0.219626
0
0
0.008529
0
0
0
0
0
0
1
0.149533
false
0.004673
0.046729
0
0.247664
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c71003847371f17bbe96951b791e894ed7483c4a
1,384
py
Python
django_backend/group.py
holg/django_backend
6cef76a378664e6621619862e6db476788a58992
[ "BSD-3-Clause" ]
null
null
null
django_backend/group.py
holg/django_backend
6cef76a378664e6621619862e6db476788a58992
[ "BSD-3-Clause" ]
null
null
null
django_backend/group.py
holg/django_backend
6cef76a378664e6621619862e6db476788a58992
[ "BSD-3-Clause" ]
null
null
null
try: from django.forms.utils import pretty_name except ImportError: from django.forms.forms import pretty_name from django.template import Context from django.template.loader import render_to_string from .compat import context_flatten class Group(list): """ A simplistic representation of backends tha...
28.833333
77
0.66474
177
1,384
4.983051
0.344633
0.108844
0.081633
0
0
0
0
0
0
0
0
0.000965
0.251445
1,384
47
78
29.446809
0.850386
0.104046
0
0
0
0
0.02541
0.021311
0
0
0
0
0
1
0.147059
false
0
0.176471
0.058824
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c711b732931b1daa135dbab87c710f6b0e8237b0
1,444
py
Python
server/main.py
KejiaQiang/Spicy_pot_search
72aaa9618e54178da513371802c2bcb751037bb0
[ "MIT" ]
1
2021-03-04T09:02:05.000Z
2021-03-04T09:02:05.000Z
server/main.py
yanansong0930/Spicy_pot_search
72aaa9618e54178da513371802c2bcb751037bb0
[ "MIT" ]
null
null
null
server/main.py
yanansong0930/Spicy_pot_search
72aaa9618e54178da513371802c2bcb751037bb0
[ "MIT" ]
1
2021-03-04T08:59:02.000Z
2021-03-04T08:59:02.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from flask import Flask, request, abort, render_template from datetime import timedelta import pymysql from search import start_search, decorate page_dir = "E:/WEBPAGES_RAW" app = Flask(__name__) app.config['DEBUG'] = True app.config['SEND_FILE_MAX_AGE_DEFAULT'] ...
29.469388
103
0.637812
205
1,444
4.380488
0.419512
0.077951
0.089087
0.033408
0.080178
0.080178
0
0
0
0
0
0.021757
0.172438
1,444
48
104
30.083333
0.729707
0.026316
0
0
0
0
0.155605
0.018437
0
0
0
0
0
1
0.083333
false
0
0.111111
0.027778
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c711e0dd9090b2b45a4e1e0eca15dbcffe106551
5,355
py
Python
examples/3d/subduction/viz/plot_dispwarp.py
cehanagan/pylith
cf5c1c34040460a82f79b6eb54df894ed1b1ee93
[ "MIT" ]
93
2015-01-08T16:41:22.000Z
2022-02-25T13:40:02.000Z
examples/3d/subduction/viz/plot_dispwarp.py
sloppyjuicy/pylith
ac2c1587f87e45c948638b19560813d4d5b6a9e3
[ "MIT" ]
277
2015-02-20T16:27:35.000Z
2022-03-30T21:13:09.000Z
examples/3d/subduction/viz/plot_dispwarp.py
sloppyjuicy/pylith
ac2c1587f87e45c948638b19560813d4d5b6a9e3
[ "MIT" ]
71
2015-03-24T12:11:08.000Z
2022-03-03T04:26:02.000Z
#!/usr/bin/env pvpython # -*- Python -*- (syntax highlighting) # ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University at Buffalo # # This code was developed as part of the Computational Infr...
35
118
0.651727
570
5,355
6.052632
0.45614
0.02087
0.034493
0.002319
0
0
0
0
0
0
0
0.035463
0.178525
5,355
152
119
35.230263
0.748807
0.285154
0
0.060241
0
0
0.139688
0
0
0
0
0
0
1
0.024096
false
0
0.036145
0
0.096386
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c714251263633c1447c106182ffec957c2c483cc
1,775
py
Python
script/upload-checksums.py
fireball-x/atom-shell
d229338e40058a9b4323b2544f62818a3c55748c
[ "MIT" ]
4
2016-04-02T14:53:54.000Z
2017-07-26T05:47:43.000Z
script/upload-checksums.py
cocos-creator/atom-shell
d229338e40058a9b4323b2544f62818a3c55748c
[ "MIT" ]
null
null
null
script/upload-checksums.py
cocos-creator/atom-shell
d229338e40058a9b4323b2544f62818a3c55748c
[ "MIT" ]
2
2015-07-18T09:31:03.000Z
2019-12-24T09:55:03.000Z
#!/usr/bin/env python import argparse import hashlib import os import tempfile from lib.config import s3_config from lib.util import download, rm_rf, s3put DIST_URL = 'https://atom.io/download/atom-shell/' def main(): args = parse_args() url = DIST_URL + args.version + '/' directory, files = download_files...
23.666667
75
0.668169
242
1,775
4.760331
0.409091
0.023438
0.027778
0.036458
0.074653
0
0
0
0
0
0
0.013746
0.180282
1,775
74
76
23.986486
0.778007
0.011268
0
0
0
0
0.141961
0
0
0
0
0
0
1
0.09434
false
0
0.132075
0.018868
0.301887
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c7162d1c243872610bbf29a5583204c35093859d
1,691
py
Python
src/json_sort/lib.py
cdumay/json-sort
a76fe2deaad649264e8ca0d1cc096d9741c60a04
[ "Apache-2.0" ]
3
2017-01-03T14:36:25.000Z
2021-03-06T05:42:08.000Z
src/json_sort/lib.py
cdumay/json-sort
a76fe2deaad649264e8ca0d1cc096d9741c60a04
[ "Apache-2.0" ]
null
null
null
src/json_sort/lib.py
cdumay/json-sort
a76fe2deaad649264e8ca0d1cc096d9741c60a04
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ .. codeauthor:: Cédric Dumay <cedric.dumay@gmail.com> """ import logging import sys, os, json from cdumay_rest_client.client import RESTClient from cdumay_rest_client.exceptions import NotFound, HTTPException class NoSuchFile(NotFound): """NoSuchFile""" def o...
23.486111
73
0.622708
204
1,691
5.078431
0.470588
0.062741
0.034749
0.03861
0.108108
0.063707
0
0
0
0
0
0.002326
0.237138
1,691
71
74
23.816901
0.800775
0.138971
0
0.181818
0
0
0.05583
0
0
0
0
0
0
1
0.113636
false
0
0.090909
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c7165074ee0affcd71c302a41edf2c2139ea9a06
4,484
py
Python
test/test_create_dataset.py
gregstarr/ttools
fc8dcbf094370e9885311126724697830167d931
[ "MIT" ]
null
null
null
test/test_create_dataset.py
gregstarr/ttools
fc8dcbf094370e9885311126724697830167d931
[ "MIT" ]
null
null
null
test/test_create_dataset.py
gregstarr/ttools
fc8dcbf094370e9885311126724697830167d931
[ "MIT" ]
null
null
null
import numpy as np import pytest import apexpy import tempfile import os import h5py from ttools import create_dataset, config, io, utils map_periods = [np.timedelta64(10, 'm'), np.timedelta64(30, 'm'), np.timedelta64(1, 'h'), np.timedelta64(2, 'h')] @pytest.fixture def times(): yield np.datetime64('2010-01-01T...
40.396396
115
0.599242
703
4,484
3.6899
0.216216
0.041635
0.049345
0.041635
0.277949
0.197764
0.173477
0.161912
0.124904
0.047803
0
0.080589
0.227922
4,484
110
116
40.763636
0.668689
0.012043
0
0.043956
0
0
0.039602
0.007468
0
0
0
0
0.285714
1
0.065934
false
0
0.076923
0.010989
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c719cc42bfa09eeceed2d7963f0cd71faeceedf7
14,277
py
Python
mdemanipulation/src/mdeoperation.py
modelia/ai-for-model-manipulation
0b15b9d59b0f6009a5709b20db4e55b7d511ac38
[ "BSD-3-Clause" ]
null
null
null
mdemanipulation/src/mdeoperation.py
modelia/ai-for-model-manipulation
0b15b9d59b0f6009a5709b20db4e55b7d511ac38
[ "BSD-3-Clause" ]
1
2022-01-10T14:16:48.000Z
2022-01-10T14:16:48.000Z
mdemanipulation/src/mdeoperation.py
modelia/ai-for-model-manipulation
0b15b9d59b0f6009a5709b20db4e55b7d511ac38
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 import math import os import random import sys import time import logging import argparse import numpy as np from six.moves import xrange import json import torch import torch.nn as nn import torch.optim as optim from torch import cuda from torch.autograd import Variable from torch.nn.utils im...
43.794479
155
0.665826
1,823
14,277
4.927592
0.134942
0.04041
0.051097
0.030391
0.397863
0.32606
0.280975
0.254592
0.189246
0.16431
0
0.010943
0.231911
14,277
325
156
43.929231
0.808225
0.062618
0
0.118577
0
0
0.141114
0.020886
0
0
0
0
0
1
0.023715
false
0
0.079051
0
0.114625
0.102767
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0