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
6c1ff08cd085c626e8f3f1328f189116ff83820d
4,650
py
Python
app/main.py
govdirectory/health-check-service
c32e1055e1c755fdb03e2786dc0a157697250421
[ "CC0-1.0" ]
1
2021-09-28T00:09:18.000Z
2021-09-28T00:09:18.000Z
app/main.py
govdirectory/health-check-service
c32e1055e1c755fdb03e2786dc0a157697250421
[ "CC0-1.0" ]
null
null
null
app/main.py
govdirectory/health-check-service
c32e1055e1c755fdb03e2786dc0a157697250421
[ "CC0-1.0" ]
null
null
null
import requests from typing import List from fastapi import FastAPI, Path from pydantic import BaseModel, HttpUrl from fastapi.middleware.cors import CORSMiddleware cors_origins = [ 'https://www.govdirectory.org', 'https://www.wikidata.org', ] user_agent_external = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; r...
29.807692
170
0.543871
494
4,650
5.006073
0.350202
0.058229
0.075617
0.064699
0.202992
0.182774
0.182774
0.182774
0.182774
0.182774
0
0.030546
0.303011
4,650
155
171
30
0.73249
0.017419
0
0.173913
0
0.007246
0.336837
0
0
0
0
0
0
1
0.007246
false
0
0.036232
0
0.101449
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
6c21574006d86d8b50934be4fe7a2c2e0d87d074
5,933
py
Python
src/szz/manipulate_sql_tables/add_depth_to_BTE_table.py
dSar-UVA/repoMiner
8f75074e388ff13419a0a37b4337c0cdcb459f74
[ "BSD-3-Clause" ]
9
2017-10-21T13:29:46.000Z
2022-01-10T23:49:54.000Z
src/szz/manipulate_sql_tables/add_depth_to_BTE_table.py
dSar-UVA/repoMiner
8f75074e388ff13419a0a37b4337c0cdcb459f74
[ "BSD-3-Clause" ]
3
2018-01-09T11:28:55.000Z
2019-01-20T08:45:18.000Z
src/szz/manipulate_sql_tables/add_depth_to_BTE_table.py
dSar-UVA/repoMiner
8f75074e388ff13419a0a37b4337c0cdcb459f74
[ "BSD-3-Clause" ]
1
2020-12-29T05:10:31.000Z
2020-12-29T05:10:31.000Z
""" This script adds a specific column to the `bug_type_entropy_projectname_old` tables. The added column contains the nesting depth (>=0) of each line. """ import os, sys, psycopg2, ntpath, traceback, subprocess from pprint import pprint #-------------------------------------------------------------------------------...
40.917241
148
0.539019
696
5,933
4.268678
0.232759
0.081791
0.056883
0.062942
0.490744
0.396163
0.382026
0.33625
0.271962
0.271962
0
0.005709
0.261925
5,933
144
149
41.201389
0.672756
0.199393
0
0.44898
0
0.020408
0.354259
0.037201
0
0
0
0
0
1
0.030612
false
0
0.020408
0
0.061224
0.132653
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
6c21d95c779b91777f1c1e4c2f9a294fa6bd8d6e
10,862
py
Python
tools/ProjectionTools/Lidar2RGB/lib/utils.py
ladt/SeeingThroughFog
c714a4c3e8f8e604494b1db6e9eef529b0326405
[ "MIT" ]
null
null
null
tools/ProjectionTools/Lidar2RGB/lib/utils.py
ladt/SeeingThroughFog
c714a4c3e8f8e604494b1db6e9eef529b0326405
[ "MIT" ]
null
null
null
tools/ProjectionTools/Lidar2RGB/lib/utils.py
ladt/SeeingThroughFog
c714a4c3e8f8e604494b1db6e9eef529b0326405
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import cv2 import scipy.spatial from sklearn.linear_model import RANSACRegressor import os import sys import inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, parent...
39.498182
147
0.612042
1,595
10,862
3.987461
0.201881
0.050157
0.032704
0.00566
0.194497
0.161321
0.114151
0.102516
0.059591
0.038365
0
0.048682
0.249217
10,862
274
148
39.642336
0.731208
0.194531
0
0.085714
0
0
0.003372
0
0
0
0
0.00365
0
1
0.062857
false
0
0.062857
0
0.194286
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
6c239288cab4c6c0e0a6b09c9cc9d94248d11f8f
20,757
py
Python
main.py
AniruddhaGawali/Hand_Cricket
71fcf5ffa49dbfcfdfceba9784d88c5adfd0fccb
[ "Apache-2.0" ]
1
2020-11-08T07:38:58.000Z
2020-11-08T07:38:58.000Z
main.py
AniruddhaGawali/Hand_Cricket
71fcf5ffa49dbfcfdfceba9784d88c5adfd0fccb
[ "Apache-2.0" ]
null
null
null
main.py
AniruddhaGawali/Hand_Cricket
71fcf5ffa49dbfcfdfceba9784d88c5adfd0fccb
[ "Apache-2.0" ]
null
null
null
# ---------------------------------------------------------------ALL REQUIRD FILES------------------------------------------------------------- from tkinter import * import tkinter.ttk as ttk import tkinter.messagebox as msg import tkinter.filedialog as tf from ttkthemes import ThemedStyle from PIL import Image, Image...
36.803191
158
0.620321
2,870
20,757
4.280836
0.110801
0.02222
0.029057
0.04615
0.657985
0.598405
0.509035
0.42642
0.40827
0.395735
0
0.025789
0.191116
20,757
564
159
36.803191
0.705956
0.055788
0
0.468182
0
0.013636
0.184389
0.030783
0
0
0
0
0
1
0.043182
false
0.002273
0.015909
0
0.059091
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
6c26670f1bac191aee07007494c6fa726372a36b
11,451
py
Python
Game/game_functions.py
Gabriel-limadev/Alien-Invasion
1b8b1ad7dfe9cf5cd99ff0595eedf3eb78953eaf
[ "MIT" ]
3
2021-09-11T16:35:20.000Z
2021-09-25T02:42:04.000Z
Game/game_functions.py
Gabriel-limadev/Invasao-Alienigena
1b8b1ad7dfe9cf5cd99ff0595eedf3eb78953eaf
[ "MIT" ]
null
null
null
Game/game_functions.py
Gabriel-limadev/Invasao-Alienigena
1b8b1ad7dfe9cf5cd99ff0595eedf3eb78953eaf
[ "MIT" ]
1
2022-02-28T01:06:15.000Z
2022-02-28T01:06:15.000Z
import sys #Fornece funções e variáveis para manipular partes do ambiente de tempo de execução do Python from time import sleep import pygame from settings import Settings from game_stats import GameStats from bullet import Bullet from alien import Alien def check_keydown_events(event, ai_settings, screen, stats, sb...
36.352381
117
0.687189
1,639
11,451
4.632093
0.18975
0.061907
0.065332
0.03754
0.458641
0.392782
0.333114
0.290701
0.258035
0.249473
0
0.003599
0.223561
11,451
314
118
36.468153
0.850298
0.296306
0
0.276471
0
0
0.007476
0.002914
0
0
0
0.003185
0
1
0.129412
false
0
0.041176
0
0.182353
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
6c2ea613a50a1e1e9624048d804bb8ed4e0017dd
3,276
py
Python
herbstluftwm/hl_panel_content.py
FAUSheppy/config
998e13f71a4b48c60f645470631cf937586be2fd
[ "Unlicense" ]
1
2019-05-07T13:03:10.000Z
2019-05-07T13:03:10.000Z
herbstluftwm/hl_panel_content.py
FAUSheppy/config
998e13f71a4b48c60f645470631cf937586be2fd
[ "Unlicense" ]
null
null
null
herbstluftwm/hl_panel_content.py
FAUSheppy/config
998e13f71a4b48c60f645470631cf937586be2fd
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 import hl_utils from hl_constants import * import string import re from datetime import datetime def guthaben(): guthaben = '' if hl_utils.is_cip(): raw = "" with open(hl_utils.hlpath(PRINT_LOG)) as f: raw = f.read(); ...
31.2
100
0.501832
396
3,276
3.989899
0.290404
0.11962
0.068354
0.096835
0.420253
0.275949
0.146835
0.113924
0.113924
0.113924
0
0.017944
0.370574
3,276
104
101
31.5
0.748303
0.005189
0
0.355556
0
0.011111
0.074586
0.015654
0
0
0
0
0
1
0.111111
false
0
0.055556
0.011111
0.377778
0.011111
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
6c2eba18adaa6d56cede8b191f75d6ce31f0cf4f
1,368
py
Python
views.py
vigilcommunity/mega-project
09a44c76170c71ee4c1d206fb0942b72c65ff45f
[ "MIT" ]
null
null
null
views.py
vigilcommunity/mega-project
09a44c76170c71ee4c1d206fb0942b72c65ff45f
[ "MIT" ]
null
null
null
views.py
vigilcommunity/mega-project
09a44c76170c71ee4c1d206fb0942b72c65ff45f
[ "MIT" ]
null
null
null
import datetime from django.contrib import messages from django.contrib.auth import authenticate, login, logout from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from vigil_ctf_app.EmailBackEnd import EmailBackEnd #Authentication views ONLY...
29.106383
120
0.710526
155
1,368
6.232258
0.380645
0.05176
0.059006
0.080745
0.082816
0
0
0
0
0
0
0.002681
0.182018
1,368
46
121
29.73913
0.86059
0.02193
0
0.151515
0
0
0.133234
0.038922
0
0
0
0
0
1
0.181818
false
0.030303
0.212121
0.090909
0.666667
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
6c2f5071a275540f672417776634a7f3cf12f94d
19,223
py
Python
graph-measures/features_algorithms/vertices/motifs.py
Unknown-Data/QGCN
e074ada31c13b6de6eabba2b2ebce90e88fdfdbf
[ "MIT" ]
3
2021-04-21T16:06:51.000Z
2022-03-31T12:09:01.000Z
graph-measures/features_algorithms/vertices/motifs.py
Unknown-Data/QGCN
e074ada31c13b6de6eabba2b2ebce90e88fdfdbf
[ "MIT" ]
1
2021-02-04T07:48:16.000Z
2021-02-24T23:01:41.000Z
graph-measures/features_algorithms/vertices/motifs.py
Unknown-Data/QGCN
e074ada31c13b6de6eabba2b2ebce90e88fdfdbf
[ "MIT" ]
null
null
null
import os import pickle from functools import partial from itertools import permutations, combinations import networkx as nx import numpy as np from bitstring import BitArray from collections import Counter try: from graph_measures.features_infra.feature_calculators import NodeFeatureCalculator, Featur...
41.78913
121
0.572179
2,314
19,223
4.497407
0.133535
0.026232
0.025944
0.013068
0.438263
0.352839
0.294417
0.232824
0.205054
0.190257
0
0.020746
0.33049
19,223
459
122
41.880174
0.787879
0.308173
0
0.306773
0
0
0.028864
0
0
0
0
0.002179
0.003984
1
0.087649
false
0.01992
0.043825
0.01992
0.195219
0.059761
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
6c31ccf0bc17c144c7bcad4490fb8229ffccbad2
4,954
py
Python
sigpy/mri/rf/sim.py
jonbmartin/sigpy-rf-staging
1be409a1ce0799574f1a979044b02fe21a19bf5d
[ "BSD-3-Clause" ]
null
null
null
sigpy/mri/rf/sim.py
jonbmartin/sigpy-rf-staging
1be409a1ce0799574f1a979044b02fe21a19bf5d
[ "BSD-3-Clause" ]
null
null
null
sigpy/mri/rf/sim.py
jonbmartin/sigpy-rf-staging
1be409a1ce0799574f1a979044b02fe21a19bf5d
[ "BSD-3-Clause" ]
null
null
null
"""RF Pulse Simulation Functions. """ from sigpy import backend __all__ = ['abrm', 'abrm_nd', 'abrm_hp'] def abrm(rf, x, balanced=False): r"""1D RF pulse simulation, with simultaneous RF + gradient rotations. Args: rf (array): rf waveform input. x (array): spatial locations. bala...
30.207317
79
0.489705
689
4,954
3.502177
0.219158
0.013262
0.016577
0.018649
0.668877
0.632408
0.58765
0.58765
0.547037
0.524658
0
0.028371
0.366774
4,954
163
80
30.392638
0.740835
0.400484
0
0.415584
0
0
0.006519
0
0
0
0
0
0
1
0.038961
false
0
0.012987
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
6c35a72377a5c784fe27610ba9ce572e4beeb277
1,171
py
Python
main.py
Yash7689/copy-data-from-1-txt-to-another
1ab88c89209088b04c2105c5db4342029a079219
[ "Apache-2.0" ]
null
null
null
main.py
Yash7689/copy-data-from-1-txt-to-another
1ab88c89209088b04c2105c5db4342029a079219
[ "Apache-2.0" ]
null
null
null
main.py
Yash7689/copy-data-from-1-txt-to-another
1ab88c89209088b04c2105c5db4342029a079219
[ "Apache-2.0" ]
null
null
null
# @Copyright [2021] [Yash Bajaj] import fileinput as fi # This module replaces the word <|SPACE|> with a new line (code line 18) def writer(): with open("c:/PycharmProjects/copy_data_from_1_file_to_another/input.txt", "w") as writer: data = input("Whatever you will write will be present in input.txt - ") ...
37.774194
123
0.681469
183
1,171
4.185792
0.393443
0.052219
0.078329
0.125326
0.29765
0.29765
0.29765
0.29765
0.29765
0.29765
0
0.012821
0.200683
1,171
30
124
39.033333
0.805556
0.325363
0
0
0
0
0.408685
0.316731
0
0
0
0
0
1
0.157895
false
0
0.052632
0
0.210526
0.052632
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
6c3666e9b94187f8c2b912f96ab0492447c6ab94
16,981
py
Python
torchfurnace/engine.py
tianyu-su/torchfurnace
2f4a9a0655a8d3c3e231c86611085f834e03c2f8
[ "MIT" ]
8
2020-03-20T13:49:30.000Z
2021-12-04T07:41:27.000Z
torchfurnace/engine.py
tianyu-su/torchfurnace
2f4a9a0655a8d3c3e231c86611085f834e03c2f8
[ "MIT" ]
null
null
null
torchfurnace/engine.py
tianyu-su/torchfurnace
2f4a9a0655a8d3c3e231c86611085f834e03c2f8
[ "MIT" ]
1
2020-04-01T11:01:09.000Z
2020-04-01T11:01:09.000Z
# -*- coding: utf-8 -*- # Date: 2020/3/17 12:16 """ an engine for deep learning task """ __author__ = 'tianyu' import abc import random import time import warnings import numpy as np import torch.backends.cudnn import torch.nn.functional as F import torch.utils.data from torch.optim.lr_scheduler import StepLR from ....
39.955294
149
0.572876
1,993
16,981
4.636227
0.168088
0.04329
0.017316
0.016558
0.338203
0.277381
0.247619
0.227814
0.210498
0.173593
0
0.011981
0.316766
16,981
424
150
40.049528
0.784434
0.136741
0
0.241877
0
0.00722
0.104505
0.01427
0
0
0
0
0.00361
1
0.086643
false
0.021661
0.050542
0.01083
0.191336
0.021661
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
6c36c7337778993804185f55e34f582ccb3e038c
3,736
py
Python
tests/test_ninjadog.py
knowsuchagency/ninjadog
54f0c98da1006d97b6e39d39d0e4e056288f52d0
[ "MIT" ]
26
2017-06-23T02:18:54.000Z
2022-02-19T08:45:11.000Z
tests/test_ninjadog.py
knowsuchagency/ninjadog
54f0c98da1006d97b6e39d39d0e4e056288f52d0
[ "MIT" ]
21
2017-06-22T07:30:20.000Z
2022-03-26T02:23:24.000Z
tests/test_ninjadog.py
knowsuchagency/ninjadog
54f0c98da1006d97b6e39d39d0e4e056288f52d0
[ "MIT" ]
2
2018-06-20T01:16:27.000Z
2020-07-14T19:55:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `ninjadog` package.""" # TODO: test raises ValueError when pug cli can't be found and not passed explicitly to renderer def test_npm_installed(): from subprocess import Popen assert Popen(('which', 'npm')).wait() == 0, 'npm must be installed' def...
27.470588
112
0.635974
490
3,736
4.759184
0.222449
0.045026
0.027015
0.051458
0.328473
0.259005
0.150086
0.110635
0.062607
0.062607
0
0.016775
0.218148
3,736
135
113
27.674074
0.781582
0.0447
0
0.276596
0
0
0.318169
0.024712
0
0
0
0.007407
0.148936
1
0.117021
false
0
0.202128
0
0.319149
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
6c3ca74700c452639c1abd59ef05386a970cf094
1,095
py
Python
src/detect_utils.py
iglaweb/HippoYD
da2c40be8017c43a7b7b6c029e2df30cf7d54932
[ "Apache-2.0" ]
7
2021-07-02T03:57:20.000Z
2022-03-20T13:23:32.000Z
src/detect_utils.py
filipul1s/HippoYD
da2c40be8017c43a7b7b6c029e2df30cf7d54932
[ "Apache-2.0" ]
null
null
null
src/detect_utils.py
filipul1s/HippoYD
da2c40be8017c43a7b7b6c029e2df30cf7d54932
[ "Apache-2.0" ]
3
2021-07-02T16:07:28.000Z
2022-03-20T13:23:33.000Z
import cv2 from scipy.spatial import distance as dist def mouth_aspect_ratio(mouth) -> float: # compute the euclidean distances between the two sets of # vertical mouth landmarks (x, y)-coordinates A = dist.euclidean(mouth[2], mouth[10]) # 51, 59 B = dist.euclidean(mouth[4], mouth[8]) # 53, 57 ...
36.5
117
0.675799
157
1,095
4.579618
0.452229
0.108484
0.075104
0.072323
0.080668
0
0
0
0
0
0
0.029656
0.230137
1,095
29
118
37.758621
0.82325
0.286758
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
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
6c3cce245cb8dd51640bae04fe6b64d1a7249903
3,626
py
Python
rna_format.py
thedinak/Genetics-to-Therapuetics
f38cc76ceb8b9217b3f4b19f985a255c1c1dd98d
[ "MIT" ]
null
null
null
rna_format.py
thedinak/Genetics-to-Therapuetics
f38cc76ceb8b9217b3f4b19f985a255c1c1dd98d
[ "MIT" ]
null
null
null
rna_format.py
thedinak/Genetics-to-Therapuetics
f38cc76ceb8b9217b3f4b19f985a255c1c1dd98d
[ "MIT" ]
null
null
null
import pandas as pd import os import tarfile import glob import json def unzip_rna_seq_data(file_name, desired_folder_name): ''' Downloaded RNA files are tarfiles, this unzips them''' if 'tar' in file_name: open_tar = tarfile.open(file_name) open_tar.extractall(f'{desired_folder_name}') ...
39.413043
79
0.619967
473
3,626
4.501057
0.346723
0.031
0.032879
0.022546
0.024425
0.024425
0
0
0
0
0
0.003795
0.273304
3,626
91
80
39.846154
0.804175
0.163265
0
0
0
0
0.071022
0.007035
0
0
0
0
0
1
0.092308
false
0
0.076923
0
0.246154
0.015385
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
6c3cdcc2642ae1e7ae2f269889189d138f16d4af
7,268
py
Python
fasturl/fasturl.py
evite/django-fasturls
52e397c5f4b4b2b7d6c5cd2bf9cc8cac1b4efa9b
[ "MIT" ]
null
null
null
fasturl/fasturl.py
evite/django-fasturls
52e397c5f4b4b2b7d6c5cd2bf9cc8cac1b4efa9b
[ "MIT" ]
null
null
null
fasturl/fasturl.py
evite/django-fasturls
52e397c5f4b4b2b7d6c5cd2bf9cc8cac1b4efa9b
[ "MIT" ]
null
null
null
import re from collections import OrderedDict from django.conf.urls import url as django_url, include from django.core.urlresolvers import RegexURLResolver, RegexURLPattern from django.utils.encoding import force_text import logging # Using FastUrl has a couple of caveats: # 1. FastUrl tries to keep the resolution ord...
35.627451
128
0.589158
918
7,268
4.498911
0.230937
0.017433
0.013559
0.020339
0.146005
0.112107
0.083777
0.05569
0.05569
0.05569
0
0.010342
0.3082
7,268
203
129
35.802956
0.811058
0.164007
0
0.189189
0
0
0.039066
0
0
0
0
0
0
1
0.074324
false
0.027027
0.040541
0
0.202703
0.047297
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
6c3d59a46c15d1afca1d52fd4d95d34b6fd700b1
6,679
py
Python
experiments/2_training.py
helenacuesta/multif0-estimation-polyvocals
4960f5415f8a170f2ff8d5b776bfd4cb5576d3ba
[ "MIT" ]
36
2020-09-13T12:30:41.000Z
2022-02-15T08:52:58.000Z
experiments/2_training.py
helenacuesta/multif0-estimation-polyvocals
4960f5415f8a170f2ff8d5b776bfd4cb5576d3ba
[ "MIT" ]
6
2020-09-04T11:14:14.000Z
2022-02-09T23:49:59.000Z
experiments/2_training.py
helenacuesta/multif0-estimation-polyvocals
4960f5415f8a170f2ff8d5b776bfd4cb5576d3ba
[ "MIT" ]
null
null
null
import os import json import keras import numpy as np import csv from experiments import config import utils import utils_train import models import argparse class Data(object): """Class that deals with all the data mess """ def __init__(self, data_splits_path, data_path, input_patch_size, batch_size, ...
28.421277
104
0.658332
855
6,679
4.818713
0.214035
0.065534
0.034709
0.026214
0.313107
0.279369
0.279369
0.240291
0.190534
0.16966
0
0.007176
0.24884
6,679
234
105
28.542735
0.814032
0.053301
0
0.107914
0
0
0.092308
0.004632
0
0
0
0
0
1
0.079137
false
0
0.071942
0
0.208633
0.05036
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
6c3f1a1b4560f11557e8a7fa31b050b56c6becc0
6,666
py
Python
backend/validators/models.py
Cryptorubic/rubic-validator
88fd90d15da1fad538667c375189e2625d045ab0
[ "MIT" ]
null
null
null
backend/validators/models.py
Cryptorubic/rubic-validator
88fd90d15da1fad538667c375189e2625d045ab0
[ "MIT" ]
null
null
null
backend/validators/models.py
Cryptorubic/rubic-validator
88fd90d15da1fad538667c375189e2625d045ab0
[ "MIT" ]
null
null
null
from logging import exception, info from requests import post as request_post from requests.exceptions import RequestException from typing import Union from uuid import UUID from django.conf import settings from django.db.models import ( CASCADE, CharField, ForeignKey, OneToOneField, ) from web3.types ...
29.495575
79
0.611461
661
6,666
5.912254
0.252648
0.047851
0.026868
0.027636
0.163255
0.13869
0.13869
0.120266
0.120266
0.120266
0
0.005635
0.307831
6,666
225
80
29.626667
0.841352
0.124062
0
0.070064
0
0
0.096571
0.030266
0
0
0
0
0
1
0.025478
false
0.012739
0.089172
0.012739
0.216561
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
6c40a91da29b8a959cf350b71661cacacc596d6d
494
py
Python
practise/remove_zero.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
practise/remove_zero.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
practise/remove_zero.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution(object): def moveZeroes(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ n = 0 k = len(nums) for i in range(k-n): if nums[i]==0: while k-1-n >= i or nums[k-...
27.444444
74
0.465587
72
494
3.083333
0.472222
0.036036
0.054054
0.094595
0.081081
0
0
0
0
0
0
0.029316
0.378543
494
18
75
27.444444
0.693811
0.178138
0
0
0
0
0.021333
0
0
0
0
0
0
1
0.076923
false
0
0
0
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
6c42601ba0916dd0c025e30a21fda4322eb4b154
2,838
py
Python
scripts/train_agent.py
weepingwillowben/reward-surfaces
f27211faf3784df3305972b7cad65002fd57d7bf
[ "MIT" ]
null
null
null
scripts/train_agent.py
weepingwillowben/reward-surfaces
f27211faf3784df3305972b7cad65002fd57d7bf
[ "MIT" ]
null
null
null
scripts/train_agent.py
weepingwillowben/reward-surfaces
f27211faf3784df3305972b7cad65002fd57d7bf
[ "MIT" ]
2
2021-10-03T14:51:38.000Z
2021-11-10T02:54:26.000Z
import argparse from reward_surfaces.agents.make_agent import make_agent import torch import json import os from glob import glob def main(): parser = argparse.ArgumentParser(description='Train an agent and keep track of important information.') parser.add_argument('save_dir', type=str, help="Directory where ...
41.130435
174
0.65821
368
2,838
4.880435
0.388587
0.03118
0.066258
0.026726
0.044543
0.034521
0.034521
0.034521
0.034521
0.034521
0
0.009821
0.210712
2,838
68
175
41.735294
0.791964
0.044045
0
0
0
0.017857
0.247879
0
0
0
0
0
0.017857
1
0.017857
false
0
0.125
0
0.142857
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
6c44a6f087fd346f5832a3d385363862360f4ae8
447
py
Python
opencypher/tests/ast/test_ordering.py
globality-corp/opencypher
b60bf526fb6d5ea6c731aab867f714f3e10f629b
[ "Apache-2.0" ]
6
2019-01-31T18:55:46.000Z
2020-12-02T14:53:45.000Z
opencypher/tests/ast/test_ordering.py
globality-corp/opencypher
b60bf526fb6d5ea6c731aab867f714f3e10f629b
[ "Apache-2.0" ]
1
2020-12-04T00:18:20.000Z
2020-12-04T00:18:20.000Z
opencypher/tests/ast/test_ordering.py
globality-corp/opencypher
b60bf526fb6d5ea6c731aab867f714f3e10f629b
[ "Apache-2.0" ]
1
2019-03-17T03:46:26.000Z
2019-03-17T03:46:26.000Z
from hamcrest import assert_that, equal_to, is_ from opencypher.ast import Expression, NonEmptySequence, Order, SortItem, SortOrder def test_order(): ast = Order( items=NonEmptySequence[SortItem]( SortItem( expression=Expression("foo"), order=SortOrder.DESCENDI...
23.526316
83
0.590604
43
447
5.976744
0.511628
0.077821
0
0
0
0
0
0
0
0
0
0
0.313199
447
18
84
24.833333
0.837134
0
0
0.133333
0
0
0.058166
0
0
0
0
0
0.133333
1
0.066667
false
0
0.133333
0
0.2
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
6c489fd8b4623ac06e1c59f92467d3fce08e9f03
1,742
py
Python
cricdb_data.py
ravi2013167/coursera-site
e78f10c9fa941a834f83853479ea3ee67eeacc64
[ "MIT" ]
null
null
null
cricdb_data.py
ravi2013167/coursera-site
e78f10c9fa941a834f83853479ea3ee67eeacc64
[ "MIT" ]
null
null
null
cricdb_data.py
ravi2013167/coursera-site
e78f10c9fa941a834f83853479ea3ee67eeacc64
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from cricdb_setup import Team, Player, Base, Batsman, Bowler, Fielder, PlayerStrength, PlayerWeakness, PlayerMoment, Video engine = create_engine('sqlite:///cricdb.db') # Bind the engine to the metadata of the Base class so that the #...
40.511628
308
0.74225
253
1,742
5.067194
0.545455
0.050702
0.028081
0.017161
0
0
0
0
0
0
0
0.017808
0.161883
1,742
42
309
41.47619
0.860274
0.32434
0
0.190476
0
0.047619
0.287622
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.047619
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
6c4921ee958b3c93f23ee76186c1ec8331428083
1,006
py
Python
catalog/bindings/gmd/dq_evaluation_method_type_code_property_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/dq_evaluation_method_type_code_property_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/dq_evaluation_method_type_code_property_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional, Union from bindings.gmd.dq_evaluation_method_type_code import DqEvaluationMethodTypeCode from bindings.gmd.nil_reason_enumeration_value import NilReasonEnumerationValue __NAMESPACE__ = "http://www.isotc211.org/2005/gmd" @dataclass class DqEvaluati...
32.451613
82
0.667992
94
1,006
6.946809
0.489362
0.059724
0.073507
0.11026
0.316998
0.151608
0.104135
0
0
0
0
0.028133
0.222664
1,006
30
83
33.533333
0.806905
0
0
0.153846
0
0
0.239563
0.0666
0
0
0
0
0
1
0
false
0
0.153846
0
0.307692
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
6c4c00831838cc942a656d3b8ca70c1fdf886a13
3,964
py
Python
spark/ReqTwisted.py
wensheng/spark
ab47107d000f0670f4cfe131637f72471a04cfb2
[ "MIT" ]
null
null
null
spark/ReqTwisted.py
wensheng/spark
ab47107d000f0670f4cfe131637f72471a04cfb2
[ "MIT" ]
null
null
null
spark/ReqTwisted.py
wensheng/spark
ab47107d000f0670f4cfe131637f72471a04cfb2
[ "MIT" ]
null
null
null
#import time from spark.ReqBase import ReqBase class ReqTwisted(ReqBase): """ specialized on Twisted requests """ def __init__(self, req, reactor, properties={}): self.twistedreq = req self.http_accept_language = self.twistedreq.getHeader('Accept-Language') #cookie give me major problem! self.saved_cookies={...
29.362963
89
0.688951
546
3,964
4.8663
0.274725
0.142266
0.026346
0.027098
0.16146
0.114791
0.106887
0.085811
0.085811
0.085811
0
0.007494
0.158426
3,964
134
90
29.58209
0.788969
0.139506
0
0.102041
0
0
0.052926
0.016466
0
0
0
0
0
1
0.153061
false
0.010204
0.010204
0.010204
0.22449
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
6c4cbca2cb07bcccddf7a558df7b93567d90c79c
11,093
py
Python
alpha_transform/AlphaTransformUtility.py
michaelriedl/alpha-transform
add5818b168551cb0c2138c65101c9cdac2bf3d9
[ "MIT" ]
13
2016-12-21T03:25:57.000Z
2022-03-15T03:25:04.000Z
alpha_transform/AlphaTransformUtility.py
michaelriedl/alpha-transform
add5818b168551cb0c2138c65101c9cdac2bf3d9
[ "MIT" ]
4
2020-07-11T09:49:51.000Z
2021-12-03T07:07:34.000Z
alpha_transform/AlphaTransformUtility.py
michaelriedl/alpha-transform
add5818b168551cb0c2138c65101c9cdac2bf3d9
[ "MIT" ]
7
2018-09-23T10:58:24.000Z
2021-09-05T01:13:57.000Z
r""" This module contains several utility functions which can be used e.g. for thresholding the alpha-shearlet coefficients or for using the alpha-shearlet transform for denoising. Finally, it also contains the functions :func:`my_ravel` and :func:`my_unravel` which can be used to convert the alpha-shearlet coefficien...
34.557632
79
0.63166
1,474
11,093
4.683853
0.244912
0.007242
0.017236
0.020278
0.148175
0.11066
0.090238
0.058082
0.045771
0.017092
0
0.006473
0.261877
11,093
320
80
34.665625
0.836712
0.694041
0
0.056338
0
0
0.102374
0
0
0
0
0
0
1
0.112676
false
0
0.070423
0
0.267606
0.028169
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
6c50ce676f3a6dc75c4d1900f6d996ce7fd69ed7
2,692
py
Python
tests/provider/dwd/radar/test_api_latest.py
waltherg/wetterdienst
3c5c63b5b8d3e19511ad789bb499bdaa9b1976d9
[ "MIT" ]
1
2021-09-01T12:53:09.000Z
2021-09-01T12:53:09.000Z
tests/provider/dwd/radar/test_api_latest.py
waltherg/wetterdienst
3c5c63b5b8d3e19511ad789bb499bdaa9b1976d9
[ "MIT" ]
null
null
null
tests/provider/dwd/radar/test_api_latest.py
waltherg/wetterdienst
3c5c63b5b8d3e19511ad789bb499bdaa9b1976d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018-2021, earthobservations developers. # Distributed under the MIT License. See LICENSE for more info. import re from datetime import datetime import pytest from tests.provider.dwd.radar import station_reference_pattern_unsorted from wetterdienst.provider.dwd.radar import Dwd...
30.247191
108
0.69688
324
2,692
5.657407
0.385802
0.02946
0.016367
0.017458
0.588652
0.322968
0.267321
0.267321
0.231315
0.195854
0
0.051942
0.177563
2,692
88
109
30.590909
0.775971
0.120357
0
0.425926
0
0.018519
0.16789
0.088045
0
0
0
0
0.055556
1
0.055556
false
0
0.148148
0
0.203704
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
6c5274b4da8bf2db8410e4efcd81dcd874ad4000
710
py
Python
tests/conftest.py
transferwise/cloudflare-exporter
d5efd4e9068bf9896a16ec6913d3345e3754d7c8
[ "Apache-2.0" ]
1
2021-08-06T15:09:26.000Z
2021-08-06T15:09:26.000Z
tests/conftest.py
transferwise/cloudflare-exporter
d5efd4e9068bf9896a16ec6913d3345e3754d7c8
[ "Apache-2.0" ]
16
2021-09-20T04:10:29.000Z
2022-03-14T04:26:01.000Z
tests/conftest.py
transferwise/cloudflare-exporter
d5efd4e9068bf9896a16ec6913d3345e3754d7c8
[ "Apache-2.0" ]
2
2021-08-21T18:48:15.000Z
2021-11-19T16:52:25.000Z
# -*- coding: utf-8 -*- import pytest import json from pathlib import Path @pytest.fixture def accounts_httpRequests1hGroupsFixture(scope="session"): with open("tests/data/accounts/httpRequests1hGroups.json") as data: res = json.load(data) return res @pytest.fixture def zones_httpRequests1hGroupsFix...
26.296296
87
0.712676
86
710
5.837209
0.44186
0.077689
0.095618
0.119522
0.501992
0.501992
0.501992
0.278884
0.278884
0.278884
0
0.010152
0.167606
710
26
88
27.307692
0.839256
0.057746
0
0.388889
0
0
0.253754
0.222222
0
0
0
0
0
1
0.166667
false
0
0.166667
0
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
6c5353e05ae0337f97754129d22ee251e890227f
4,529
py
Python
scripts/delay_analysis.py
welvin21/pysimt
6250b33dc518b3195da4fc9cc8d32ba7ada958c0
[ "MIT" ]
34
2020-09-21T10:49:57.000Z
2022-01-08T04:50:42.000Z
scripts/delay_analysis.py
welvin21/pysimt
6250b33dc518b3195da4fc9cc8d32ba7ada958c0
[ "MIT" ]
2
2021-01-08T03:52:51.000Z
2021-09-10T07:45:05.000Z
scripts/delay_analysis.py
welvin21/pysimt
6250b33dc518b3195da4fc9cc8d32ba7ada958c0
[ "MIT" ]
5
2021-04-23T09:30:51.000Z
2022-01-09T08:40:45.000Z
#!/usr/bin/env python import os import sys import glob import argparse from pathlib import Path from collections import defaultdict from hashlib import sha1 import numpy as np import sacrebleu import tabulate from pysimt.metrics.simnmt import AVPScorer, AVLScorer, CWMScorer, CWXScorer """This script should be run ...
34.310606
97
0.59108
600
4,529
4.345
0.31
0.034906
0.013809
0.021481
0.070963
0.070963
0.050249
0
0
0
0
0.007643
0.277766
4,529
131
98
34.572519
0.789361
0.095827
0
0.068182
0
0
0.103743
0.042452
0
0
0
0
0
1
0.022727
false
0
0.125
0
0.181818
0.011364
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
6c56a8517956b8fdd74335b60fe24a921ed77b5c
3,713
py
Python
canvas_course_site_wizard/views.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
null
null
null
canvas_course_site_wizard/views.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
5
2018-05-10T19:49:43.000Z
2021-01-29T19:39:34.000Z
canvas_course_site_wizard/views.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
null
null
null
import logging from django.views.generic.base import TemplateView from django.views.generic.detail import DetailView from django.shortcuts import redirect from .controller import ( create_canvas_course, start_course_template_copy, finalize_new_canvas_course, get_canvas_course_url ) from .mixins import C...
51.569444
121
0.736062
447
3,713
5.897092
0.369128
0.063733
0.022762
0.016692
0.088771
0.068285
0.042489
0
0
0
0
0.002028
0.20307
3,713
71
122
52.295775
0.888814
0.25882
0
0
0
0
0.085416
0.038046
0
0
0
0
0
1
0.042553
false
0
0.212766
0
0.468085
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
6c58884fde7690dcd1123dcef567073872ba2ad9
7,389
py
Python
brie/utils/count.py
huangyh09/brie
59563baafcdb95d1d75a81203e5cc29983f66c2f
[ "Apache-2.0" ]
38
2017-01-06T00:18:46.000Z
2022-01-25T19:44:10.000Z
brie/utils/count.py
huangyh09/brie
59563baafcdb95d1d75a81203e5cc29983f66c2f
[ "Apache-2.0" ]
28
2017-01-11T09:12:57.000Z
2022-02-14T14:53:48.000Z
brie/utils/count.py
huangyh09/brie
59563baafcdb95d1d75a81203e5cc29983f66c2f
[ "Apache-2.0" ]
12
2018-02-13T20:23:00.000Z
2022-01-05T18:39:19.000Z
import sys import numpy as np from .sam_utils import load_samfile, fetch_reads def _check_SE_event(gene): """Check SE event""" if (len(gene.trans) != 2 or gene.trans[0].exons.shape[0] != 3 or gene.trans[1].exons.shape[0] != 2 or np.mean(gene.trans[0].exons[[0, 2], :] == ...
35.354067
79
0.603194
1,100
7,389
3.881818
0.167273
0.048712
0.033724
0.044965
0.568852
0.532084
0.48103
0.458548
0.418735
0.362529
0
0.046395
0.27365
7,389
208
80
35.524038
0.749208
0.278116
0
0.224299
0
0
0.040522
0
0
0
0
0.004808
0
1
0.065421
false
0
0.028037
0
0.17757
0.028037
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
6c5c369d85c41ace1c62ddc67471055b462a3df1
1,527
py
Python
ledshimdemo/display_options.py
RatJuggler/led-shim-effects
3c63f5f2ce3f35f52e784489deb9212757c18cd2
[ "MIT" ]
1
2021-04-17T16:18:14.000Z
2021-04-17T16:18:14.000Z
ledshimdemo/display_options.py
RatJuggler/led-shim-effects
3c63f5f2ce3f35f52e784489deb9212757c18cd2
[ "MIT" ]
12
2019-07-26T18:01:56.000Z
2019-08-31T15:35:17.000Z
ledshimdemo/display_options.py
RatJuggler/led-shim-demo
3c63f5f2ce3f35f52e784489deb9212757c18cd2
[ "MIT" ]
null
null
null
import click from typing import Callable, List from .effect_parade import AbstractEffectParade DISPLAY_OPTIONS = [ click.option('-p', '--parade', type=click.Choice(AbstractEffectParade.get_parade_options()), help="How the effects are displayed.", default=AbstractEffectParade.get_default_option()...
41.27027
114
0.64833
194
1,527
5.020619
0.371134
0.067762
0.061602
0.082136
0.106776
0
0
0
0
0
0
0.022053
0.227898
1,527
36
115
42.416667
0.804071
0.172888
0
0
0
0
0.224167
0
0
0
0
0
0
1
0.095238
false
0
0.142857
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
6c5e382a6852be827146dfca1422cff18cd4ad2e
587
py
Python
download_data_folder.py
MelvinYin/Defined_Proteins
75da20be82a47d85d27176db29580ab87d52b670
[ "BSD-3-Clause" ]
2
2021-01-05T02:55:57.000Z
2021-04-16T15:49:08.000Z
download_data_folder.py
MelvinYin/Defined_Proteins
75da20be82a47d85d27176db29580ab87d52b670
[ "BSD-3-Clause" ]
null
null
null
download_data_folder.py
MelvinYin/Defined_Proteins
75da20be82a47d85d27176db29580ab87d52b670
[ "BSD-3-Clause" ]
1
2021-01-05T08:12:38.000Z
2021-01-05T08:12:38.000Z
import boto3 import os import tarfile if __name__ == "__main__": s3 = boto3.client('s3', aws_access_key_id="AKIAY6UR252SQUQ3OSWZ", aws_secret_access_key="08LQj" "+ryk9SMojG18vERXKKzhNSYk5pLhAjrIAVX") output_path = "./data.tar.gz" with open(o...
34.529412
82
0.626917
68
587
5.117647
0.558824
0.143678
0.051724
0
0
0
0
0
0
0
0
0.036446
0.252129
587
17
83
34.529412
0.756264
0
0
0
0
0
0.22619
0.059524
0
0
0
0
0.0625
1
0
false
0
0.1875
0
0.1875
0.0625
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
6c600ba2b9e8dfbbc98654347a117e7d18a03ded
8,247
py
Python
splotch/utils_visium.py
adaly/cSplotch
c79a5cbd155f2cd5bcc1d8b04b1824923feb1442
[ "BSD-3-Clause" ]
1
2021-12-20T16:13:16.000Z
2021-12-20T16:13:16.000Z
splotch/utils_visium.py
adaly/cSplotch
c79a5cbd155f2cd5bcc1d8b04b1824923feb1442
[ "BSD-3-Clause" ]
null
null
null
splotch/utils_visium.py
adaly/cSplotch
c79a5cbd155f2cd5bcc1d8b04b1824923feb1442
[ "BSD-3-Clause" ]
null
null
null
import os, sys import logging import numpy as np import pandas as pd from matplotlib import pyplot as plt from scipy.ndimage import label from .utils import watershed_tissue_sections, get_spot_adjacency_matrix # Read in a series of Loupe annotation files and return the set of all unique categories. # NOTE: "Undefine...
36.0131
122
0.751789
1,328
8,247
4.447289
0.222139
0.052828
0.03742
0.004064
0.186082
0.160515
0.110735
0.099898
0.086014
0.074501
0
0.020147
0.139323
8,247
228
123
36.171053
0.811919
0.191464
0
0.030075
0
0.007519
0.068472
0.02675
0
0
0
0
0
1
0.075188
false
0
0.075188
0
0.233083
0.007519
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
6c609ad8257f94c3be0be69725b48962c792c7f1
1,729
py
Python
floa/routes.py
rsutton/loa
31ca8cc3f7be011b21f22ed2ce509d135a4b866b
[ "MIT" ]
null
null
null
floa/routes.py
rsutton/loa
31ca8cc3f7be011b21f22ed2ce509d135a4b866b
[ "MIT" ]
null
null
null
floa/routes.py
rsutton/loa
31ca8cc3f7be011b21f22ed2ce509d135a4b866b
[ "MIT" ]
null
null
null
from flask import ( Blueprint, render_template, request, session, current_app as app ) from flask_login import current_user from floa.extensions import loa from floa.models.library import Library bp = Blueprint( name='home', import_name=__name__, url_prefix="/" ) @app.errorhandler...
24.7
79
0.657606
206
1,729
5.330097
0.320388
0.140255
0.076503
0.068306
0.163934
0.067395
0
0
0
0
0
0.018018
0.229612
1,729
69
80
25.057971
0.806306
0.043378
0
0.071429
0
0
0.064809
0
0
0
0
0
0
1
0.089286
false
0
0.089286
0.035714
0.267857
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
6c619fe8bbdf105e5a1586be4e70bb3d3697916a
3,496
py
Python
api/async/__init__.py
lampwins/orangengine-ui
8c864cd297176aa0ff9ead9682f2085f9fd3f1c0
[ "MIT" ]
1
2017-10-28T00:21:43.000Z
2017-10-28T00:21:43.000Z
api/async/__init__.py
lampwins/orangengine-ui
8c864cd297176aa0ff9ead9682f2085f9fd3f1c0
[ "MIT" ]
null
null
null
api/async/__init__.py
lampwins/orangengine-ui
8c864cd297176aa0ff9ead9682f2085f9fd3f1c0
[ "MIT" ]
4
2017-01-26T23:31:32.000Z
2019-04-17T14:02:00.000Z
import logging import orangengine from api.models import Device as DeviceModel from celery.utils.log import get_task_logger from api import debug celery_logger = get_task_logger(__name__) if debug: celery_logger.setLevel(logging.DEBUG) celery_logger.debug('Enabled Debug mode') class OEDeviceFactory(object...
33.615385
92
0.663043
410
3,496
5.412195
0.239024
0.12393
0.057684
0.028391
0.073907
0.032447
0
0
0
0
0
0
0.251144
3,496
103
93
33.941748
0.847594
0.224828
0
0.1
0
0
0.051048
0.011429
0
0
0
0
0
1
0.15
false
0.016667
0.083333
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
6c6938ad771712cddf43056b1ad20a6d5a62ca66
4,240
py
Python
yolov3/utils/checkpoint.py
hysts/pytorch_yolov3
6d4c7a1e42d366894effac8ca52f7116f891b5ab
[ "MIT" ]
13
2019-03-22T15:22:22.000Z
2021-09-30T21:15:37.000Z
yolov3/utils/checkpoint.py
hysts/pytorch_yolov3
6d4c7a1e42d366894effac8ca52f7116f891b5ab
[ "MIT" ]
null
null
null
yolov3/utils/checkpoint.py
hysts/pytorch_yolov3
6d4c7a1e42d366894effac8ca52f7116f891b5ab
[ "MIT" ]
null
null
null
import copy import logging import pathlib import torch import torch.nn as nn from yolov3.config import get_default_config from yolov3.utils.config_node import ConfigNode class CheckPointer: def __init__( self, model, optimizer=None, scheduler=None, che...
36.551724
79
0.624764
479
4,240
5.356994
0.192067
0.055729
0.053001
0.05378
0.287997
0.193297
0.144193
0.109119
0.053001
0
0
0.001645
0.283019
4,240
115
80
36.869565
0.842434
0
0
0.131313
0
0
0.082075
0
0
0
0
0
0
1
0.080808
false
0
0.070707
0.010101
0.222222
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
6c6f498aea5f5f14a181bf4e682dea6414249ebe
1,749
py
Python
gaussian_filter.py
baiching/Paper-Implementations
56136a88a64885270adbefd6999815a1ad6f56a2
[ "MIT" ]
null
null
null
gaussian_filter.py
baiching/Paper-Implementations
56136a88a64885270adbefd6999815a1ad6f56a2
[ "MIT" ]
null
null
null
gaussian_filter.py
baiching/Paper-Implementations
56136a88a64885270adbefd6999815a1ad6f56a2
[ "MIT" ]
null
null
null
import math import numbers import torch from torch import nn from torch.nn import functional as F def gaussian_filter(in_channel, out_channel, kernel_size=15, sigma=3): """ This method returns 2d gaussian filter input : in_channel : Number of input channels out_channel : Expected number of output ...
34.98
83
0.675815
243
1,749
4.666667
0.345679
0.114638
0.056437
0.070547
0
0
0
0
0
0
0
0.017306
0.240137
1,749
50
84
34.98
0.835967
0.311607
0
0
0
0
0
0
0
0
0
0
0
1
0.04
false
0
0.2
0
0.28
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
6c72586f407f6e08ecae9c71f47245060e33b3dd
28,356
py
Python
widgets/RichTextCtrl.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
3
2018-03-19T07:57:10.000Z
2021-07-05T08:55:14.000Z
widgets/RichTextCtrl.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
6
2020-03-24T15:40:18.000Z
2021-12-13T19:46:09.000Z
widgets/RichTextCtrl.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
4
2018-03-29T21:59:55.000Z
2019-12-16T14:56:38.000Z
#!/usr/bin/env python from six import BytesIO import wx import wx.richtext as rt import images #---------------------------------------------------------------------- class RichTextFrame(wx.Frame): def __init__(self, *args, **kw): wx.Frame.__init__(self, *args, **kw) self.MakeMenuBar() ...
38.684857
302
0.608513
3,125
28,356
5.46336
0.1888
0.091021
0.050606
0.032683
0.522052
0.446729
0.370644
0.351198
0.300533
0.275347
0
0.009543
0.268268
28,356
732
303
38.737705
0.813292
0.046198
0
0.417582
0
0.018315
0.141752
0.004441
0
0
0
0
0
1
0.069597
false
0
0.012821
0
0.095238
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
6c768de90390e5fd0ea2640bab37a8869d234309
1,784
py
Python
lcd/nodemcu_gpio_lcd_test.py
petrkr/python_lcd
92e5d0211e5cef4dcc9078905f4bd53dc2cc78b4
[ "MIT" ]
237
2015-07-19T21:33:01.000Z
2022-03-30T00:19:46.000Z
lcd/nodemcu_gpio_lcd_test.py
petrkr/python_lcd
92e5d0211e5cef4dcc9078905f4bd53dc2cc78b4
[ "MIT" ]
25
2015-07-19T20:44:31.000Z
2022-01-26T10:42:07.000Z
lcd/nodemcu_gpio_lcd_test.py
petrkr/python_lcd
92e5d0211e5cef4dcc9078905f4bd53dc2cc78b4
[ "MIT" ]
107
2015-09-05T12:54:55.000Z
2022-03-28T15:36:13.000Z
"""Implements a HD44780 character LCD connected via NodeMCU GPIO pins.""" from machine import Pin from utime import sleep, ticks_ms from nodemcu_gpio_lcd import GpioLcd # Wiring used for this example: # # 1 - Vss (aka Ground) - Connect to one of the ground pins on you NodeMCU board. # 2 - VDD - Connect to 3V # 3 -...
34.307692
81
0.627242
283
1,784
3.90106
0.45583
0.089674
0.048913
0.059783
0.097826
0
0
0
0
0
0
0.064566
0.27074
1,784
51
82
34.980392
0.784012
0.622758
0
0
0
0
0.065728
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.190476
0.047619
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
6c77d3d22c710ab0e8e3582be4b79df9edb68531
11,579
py
Python
apps/life_sci/examples/reaction_prediction/rexgen_direct/utils.py
LunaBlack/dgl
bd1e48a51e348b0e8e25622325adeb5ddea1c0ea
[ "Apache-2.0" ]
2
2021-12-09T12:36:13.000Z
2022-03-01T21:22:36.000Z
apps/life_sci/examples/reaction_prediction/rexgen_direct/utils.py
sherry-1001/dgl
60d2e7d3c928d43bbb18e7ab17c066451c49f649
[ "Apache-2.0" ]
null
null
null
apps/life_sci/examples/reaction_prediction/rexgen_direct/utils.py
sherry-1001/dgl
60d2e7d3c928d43bbb18e7ab17c066451c49f649
[ "Apache-2.0" ]
2
2020-12-07T09:34:01.000Z
2020-12-13T06:18:58.000Z
import dgl import errno import numpy as np import os import random import torch from collections import defaultdict from rdkit import Chem def mkdir_p(path): """Create a folder for the given path. Parameters ---------- path: str Folder to create """ try: os.makedirs(path) ...
37.112179
97
0.648847
1,566
11,579
4.597063
0.192848
0.056397
0.03431
0.024309
0.415197
0.363939
0.348243
0.322128
0.291013
0.277677
0
0.007952
0.261508
11,579
311
98
37.231511
0.833938
0.350289
0
0.287671
0
0
0.038527
0
0
0
0
0
0.006849
1
0.054795
false
0
0.054795
0
0.143836
0.013699
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
6c79a93effba00b7b6196ac9c718d0c037c656b9
5,168
py
Python
src/figures/violin_plot_sp_performance.py
espottesmith/hydrobench
e117774c94cff11debd764d231757174ec211e99
[ "MIT" ]
1
2022-03-16T19:19:15.000Z
2022-03-16T19:19:15.000Z
src/figures/violin_plot_sp_performance.py
espottesmith/hydrobench
e117774c94cff11debd764d231757174ec211e99
[ "MIT" ]
null
null
null
src/figures/violin_plot_sp_performance.py
espottesmith/hydrobench
e117774c94cff11debd764d231757174ec211e99
[ "MIT" ]
null
null
null
import csv import os import difflib import statistics import numpy as np import matplotlib.pyplot as plt SMALL_SIZE = 12 MEDIUM_SIZE = 14 LARGE_SIZE = 18 plt.rc('font', size=SMALL_SIZE) # controls default text sizes # plt.rc('title', titlesize=MEDIUM_SIZE) # fontsize of the axes title plt.rc('axes', lab...
32.917197
186
0.572175
746
5,168
3.880697
0.270777
0.01658
0.02487
0.023489
0.402073
0.387219
0.387219
0.356131
0.316062
0.316062
0
0.050547
0.257353
5,168
157
187
32.917197
0.703752
0.239358
0
0.241379
0
0
0.150618
0.022657
0
0
0
0
0
1
0.011494
false
0
0.068966
0
0.091954
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
6c7aa53b02ade1969b440eeb2dca4bdd3802359c
205
py
Python
submissions/abc083/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/abc083/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/abc083/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
# sys.stdin.readline() import sys input = sys.stdin.readline a, b, c, d = map(int, input().split()) if a+b > c+d: ans = 'Left' elif a+b == c+d: ans = 'Balanced' else: ans = 'Right' print(ans)
15.769231
38
0.57561
36
205
3.277778
0.555556
0.050847
0.076271
0.101695
0.118644
0
0
0
0
0
0
0
0.22439
205
12
39
17.083333
0.742138
0.097561
0
0
0
0
0.092896
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.1
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
6c7b5575e035c24915e3b04e46105e06901e65b5
255
py
Python
tensorstream/helpers/flatten.py
clems4ever/tensorstream
61bff14f65f71bdd4ab58aefbd6eda79ec5863cb
[ "Apache-2.0" ]
5
2019-04-10T03:51:13.000Z
2020-07-12T10:50:24.000Z
tensorstream/helpers/flatten.py
clems4ever/tensorstream
61bff14f65f71bdd4ab58aefbd6eda79ec5863cb
[ "Apache-2.0" ]
null
null
null
tensorstream/helpers/flatten.py
clems4ever/tensorstream
61bff14f65f71bdd4ab58aefbd6eda79ec5863cb
[ "Apache-2.0" ]
null
null
null
def flatten(elems): stack = [] if isinstance(elems, (list, tuple)): for x in elems: stack += flatten(x) elif isinstance(elems, (dict)): for x in elems.values(): stack += flatten(x) else: stack.append(elems) return stack
19.615385
38
0.603922
34
255
4.529412
0.5
0.12987
0.077922
0.142857
0
0
0
0
0
0
0
0
0.254902
255
12
39
21.25
0.810526
0
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
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
6c7c6ab3c977d309a6e23ab36c08b279c63de1a3
3,822
py
Python
src/po_utils/common_actions/element_interactions.py
matthew-bahloul/browser-utils
22372d1a6718d8a7fd4eebf116c728aaa06e68ee
[ "MIT" ]
null
null
null
src/po_utils/common_actions/element_interactions.py
matthew-bahloul/browser-utils
22372d1a6718d8a7fd4eebf116c728aaa06e68ee
[ "MIT" ]
null
null
null
src/po_utils/common_actions/element_interactions.py
matthew-bahloul/browser-utils
22372d1a6718d8a7fd4eebf116c728aaa06e68ee
[ "MIT" ]
null
null
null
""" by_locator : tuple --> (<selenium By object>, <selector string>) x_offset : int --> integer value of x offset in pixels y_offset : int --> integer value of y offset in pixels x_destination : int --> integer value of x location on page y_desitination : int ...
53.083333
205
0.75641
541
3,822
4.985213
0.207024
0.100111
0.059696
0.070078
0.578791
0.506118
0.378569
0.378569
0.350389
0.3363
0
0.003033
0.137363
3,822
71
206
53.830986
0.814983
0.179487
0
0.333333
0
0.020833
0.062419
0.037193
0
0
0
0
0
1
0.104167
false
0
0.104167
0
0.208333
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
6c7e366d11f836cc2b4028018db9d96639fae992
174
py
Python
Topics/Custom generators/Even numbers/main.py
valenciarichards/hypernews-portal
0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3
[ "MIT" ]
1
2021-07-26T03:06:14.000Z
2021-07-26T03:06:14.000Z
Topics/Custom generators/Even numbers/main.py
valenciarichards/hypernews-portal
0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3
[ "MIT" ]
null
null
null
Topics/Custom generators/Even numbers/main.py
valenciarichards/hypernews-portal
0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3
[ "MIT" ]
null
null
null
n = int(input()) def even(x): yield x * 2 for number in range(n): print(next(even(number))) # Don't forget to print out the first n numbers one by one here
13.384615
63
0.62069
32
174
3.375
0.78125
0
0
0
0
0
0
0
0
0
0
0.007813
0.264368
174
12
64
14.5
0.835938
0.350575
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.2
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
6c7f914b76e891552a3b496827a2a433ae7084c1
2,096
py
Python
cronman/cron_jobs/run_cron_tasks.py
ryancheley/django-cronman
5be5d9d5eecba0f110808c9e7a97ef89ef620ade
[ "BSD-3-Clause" ]
17
2018-09-25T16:28:36.000Z
2022-01-31T14:43:24.000Z
cronman/cron_jobs/run_cron_tasks.py
ryancheley/django-cronman
5be5d9d5eecba0f110808c9e7a97ef89ef620ade
[ "BSD-3-Clause" ]
14
2018-11-04T14:45:14.000Z
2022-02-01T04:02:47.000Z
cronman/cron_jobs/run_cron_tasks.py
ryancheley/django-cronman
5be5d9d5eecba0f110808c9e7a97ef89ef620ade
[ "BSD-3-Clause" ]
3
2018-09-25T16:28:44.000Z
2022-02-01T04:08:23.000Z
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 from __future__ import unicode_literals from django.db import connections from django.utils import timezone from django.utils.functional import cached_property from cronman.config import app_settings from cronman.job import BaseCronJob from cronman.models import Cro...
31.757576
74
0.648378
257
2,096
5.019455
0.392996
0.076744
0.023256
0.031008
0
0
0
0
0
0
0
0.004545
0.265267
2,096
65
75
32.246154
0.833117
0.116889
0
0
0
0
0.055678
0
0
0
0
0
0
1
0.086957
false
0
0.195652
0
0.413043
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
6c8301238acf3bc4525ac9e26175e629b0f3e112
2,893
py
Python
day23.py
alexa-infra/advent-of-code-2018
f14e8c87b655c479097ae713572bb0260ec993fc
[ "MIT" ]
null
null
null
day23.py
alexa-infra/advent-of-code-2018
f14e8c87b655c479097ae713572bb0260ec993fc
[ "MIT" ]
null
null
null
day23.py
alexa-infra/advent-of-code-2018
f14e8c87b655c479097ae713572bb0260ec993fc
[ "MIT" ]
null
null
null
import re parse_re = re.compile( r'pos\=\<(?P<x>-?\d+),(?P<y>-?\d+),(?P<z>-?\d+)\>, r\=(?P<r>\d+)' ) def parse(text): m = parse_re.match(text) d = m.groupdict() pos = int(d['x']), int(d['y']), int(d['z']) r = int(d['r']) return pos, r def dist(a, b): return sum(abs(x1-x2) for x1, x2 in zi...
27.037383
69
0.412375
446
2,893
2.652466
0.215247
0.011834
0.01268
0.017751
0.218935
0.148774
0.079459
0
0
0
0
0.063879
0.40477
2,893
106
70
27.292453
0.623113
0
0
0.113402
0
0.010309
0.123747
0.016592
0
0
0
0
0.020619
1
0.072165
false
0
0.010309
0.010309
0.123711
0.020619
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
6c85751be92171445c98d3494d9be709e143efc5
1,526
py
Python
examples/intro-example/dags/tutorial.py
rfim/QoalaMoviesKaggle
3cf5486f012487c5585bbe86d3a2bc1c58979bac
[ "MIT" ]
null
null
null
examples/intro-example/dags/tutorial.py
rfim/QoalaMoviesKaggle
3cf5486f012487c5585bbe86d3a2bc1c58979bac
[ "MIT" ]
null
null
null
examples/intro-example/dags/tutorial.py
rfim/QoalaMoviesKaggle
3cf5486f012487c5585bbe86d3a2bc1c58979bac
[ "MIT" ]
null
null
null
tot_name = os.path.join(os.path.dirname(__file__),'src/data', file_name) # open the json datafile and read it in with open(tot_name, 'r') as inputfile: doc = json.load(inputfile) # transform the data to the correct types and convert temp to celsius id_movie = int(doc['id']) movie_name = str(doc['origi...
40.157895
92
0.671035
215
1,526
4.525581
0.418605
0.018499
0.024666
0.028777
0.323741
0.281603
0.281603
0.178828
0.178828
0.168551
0
0.004878
0.193971
1,526
37
93
41.243243
0.786179
0.194626
0
0
0
0.041667
0.408681
0
0
0
0
0
0
1
0
false
0
0
0
0
0.041667
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
6c8601c43b4ff494fe3c99410a606a7250f4d9f9
20,189
py
Python
hclf/multiclass.py
tfmortie/hclf
68bdb61c12c4b8fefbb94f1ac8aa30baed8077c5
[ "MIT" ]
null
null
null
hclf/multiclass.py
tfmortie/hclf
68bdb61c12c4b8fefbb94f1ac8aa30baed8077c5
[ "MIT" ]
null
null
null
hclf/multiclass.py
tfmortie/hclf
68bdb61c12c4b8fefbb94f1ac8aa30baed8077c5
[ "MIT" ]
null
null
null
""" Code for hierarchical multi-class classifiers. Author: Thomas Mortier Date: Feb. 2021 TODO: * Add option for set-valued prediction * Feature: allow tree structures with non-unique node labels (currently, warning is thrown) """ import time import warnings import numpy as np from .utils import HLabelEncod...
42.864119
182
0.553668
2,460
20,189
4.393902
0.14187
0.027385
0.019983
0.007216
0.450365
0.395504
0.369969
0.346933
0.314368
0.301786
0
0.005626
0.357323
20,189
470
183
42.955319
0.827437
0.272871
0
0.392727
0
0
0.051273
0
0
0
0
0.002128
0
1
0.04
false
0
0.04
0
0.12
0.021818
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
6c86a8871548627b9a0755d57d564bc3d174dbdd
2,649
py
Python
imports/language_check.py
ahmed-amr1/schtabtag
d5f1e550fccaf58cbcf9fac39528b921659cec7c
[ "MIT" ]
null
null
null
imports/language_check.py
ahmed-amr1/schtabtag
d5f1e550fccaf58cbcf9fac39528b921659cec7c
[ "MIT" ]
null
null
null
imports/language_check.py
ahmed-amr1/schtabtag
d5f1e550fccaf58cbcf9fac39528b921659cec7c
[ "MIT" ]
null
null
null
def Check(src): lang = None if src == "auto": lang = "Auto detect language" if src == "en": lang = "English - English" if src == "de": lang = "German - Deutsch" if src == "ar": lang = "Arabic - عربي" if src == "es": lang = "Spanish - español, castellano" if src == "ru": lang = "Ru...
23.442478
42
0.495659
363
2,649
3.666667
0.192837
0.135237
0.036063
0.058603
0.558978
0.204358
0.048084
0.048084
0.048084
0.048084
0
0
0.309928
2,649
113
43
23.442478
0.718271
0
0
0
0
0
0.377258
0
0
0
0
0
0
1
0.025641
false
0
0
0
0.051282
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
6c86adac816e4b256e05f833e885292823f8146c
1,003
py
Python
puppo/decorator_functions/display_decorators.py
JHowell45/Pupper
5c863eba8651a5b1130c04321cc6cefacb71c7b2
[ "MIT" ]
null
null
null
puppo/decorator_functions/display_decorators.py
JHowell45/Pupper
5c863eba8651a5b1130c04321cc6cefacb71c7b2
[ "MIT" ]
1
2021-06-01T21:54:15.000Z
2021-06-01T21:54:15.000Z
puppo/decorator_functions/display_decorators.py
JHowell45/Pupper
5c863eba8651a5b1130c04321cc6cefacb71c7b2
[ "MIT" ]
null
null
null
"""Decorator unctions for displaying commands.""" from functools import wraps from shutil import get_terminal_size import click def command_handler(command_title, colour='green'): """Use this decorator for surrounding the functions with banners.""" def decorator(function): """Nested decorator functio...
34.586207
72
0.617149
109
1,003
5.53211
0.422018
0.064677
0.049751
0
0
0
0
0
0
0
0
0.008
0.252243
1,003
28
73
35.821429
0.796
0.157527
0
0
0
0
0.031553
0
0
0
0
0
0
1
0.15
false
0
0.15
0
0.45
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
6c8c154f105569426c30727bc7ab8defbef28f73
1,051
py
Python
scripts/undeploy_service.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
6
2016-10-10T09:26:07.000Z
2018-09-20T08:59:42.000Z
scripts/undeploy_service.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
11
2016-10-10T12:11:07.000Z
2018-05-09T22:11:02.000Z
scripts/undeploy_service.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
16
2016-09-28T16:00:58.000Z
2019-02-25T16:52:12.000Z
#!/usr/bin/env python import argparse import consulate class Options(object): pass options = Options() parser = argparse.ArgumentParser() parser.add_argument('-n', '--name', required=True, help='service name') parser.add_argument('-s', '--slice', help='slice name (optional)') parser.add_argument('-r', '--role',...
30.911765
124
0.713606
140
1,051
5.285714
0.385714
0.048649
0.091892
0.056757
0.208108
0.208108
0.208108
0.108108
0
0
0
0.007447
0.105614
1,051
33
125
31.848485
0.779787
0.01903
0
0
0
0
0.281553
0.07767
0
0
0
0
0
1
0
false
0.043478
0.086957
0
0.130435
0.26087
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
6c8e315e18d51be8398247d53085f6019815be6e
2,717
py
Python
tests/functional/conftest.py
charmed-kubernetes/ceph-csi-operator
06a6a9fed6055e3f0e0bfde835d7f607febcf6ea
[ "Apache-2.0" ]
null
null
null
tests/functional/conftest.py
charmed-kubernetes/ceph-csi-operator
06a6a9fed6055e3f0e0bfde835d7f607febcf6ea
[ "Apache-2.0" ]
null
null
null
tests/functional/conftest.py
charmed-kubernetes/ceph-csi-operator
06a6a9fed6055e3f0e0bfde835d7f607febcf6ea
[ "Apache-2.0" ]
1
2022-03-24T19:17:47.000Z
2022-03-24T19:17:47.000Z
# Copyright 2021 Martin Kalcok # See LICENSE file for licensing details. """Pytest fixtures for functional tests.""" # pylint: disable=W0621 import logging import tempfile from pathlib import Path import pytest from kubernetes import client, config from pytest_operator.plugin import OpsTest logger = logging.getLogg...
36.226667
98
0.670593
344
2,717
5.104651
0.392442
0.051253
0.023918
0.014806
0.142369
0.085421
0.085421
0.085421
0.085421
0.085421
0
0.010572
0.234082
2,717
74
99
36.716216
0.833253
0.104527
0
0.163265
0
0
0.105551
0.019108
0
0
0
0
0.020408
1
0.020408
false
0
0.122449
0
0.163265
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
6657771a019db8ff3764b551b4d27a9c8de3eee0
3,922
py
Python
caronte/allauth/utils.py
simodalla/django-caronte
e47175849605924c26441c3a3d6d94f4340b9df7
[ "BSD-3-Clause" ]
null
null
null
caronte/allauth/utils.py
simodalla/django-caronte
e47175849605924c26441c3a3d6d94f4340b9df7
[ "BSD-3-Clause" ]
null
null
null
caronte/allauth/utils.py
simodalla/django-caronte
e47175849605924c26441c3a3d6d94f4340b9df7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from django.contrib.auth import get_user_model from django.contrib.admin.templatetags.admin_urls import admin_urlname from django.core.mail import mail_admins from django.core.urlresolvers import reverse from django.shortcuts import redir...
35.017857
79
0.624936
418
3,922
5.665072
0.289474
0.054054
0.02027
0.022804
0.182432
0.142736
0.142736
0.142736
0.142736
0.142736
0
0.000718
0.289648
3,922
112
80
35.017857
0.849246
0.027027
0
0.255556
0
0
0.063672
0.030383
0
0
0
0
0
1
0.122222
false
0.011111
0.111111
0.011111
0.366667
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
665885ddd8b1d1e99097726c1613e0a5986ad3d5
15,918
py
Python
Task/data.py
sndnyang/GMMC
e9cd85c9d55a7de411daad490c8db84dfe9c0455
[ "Apache-2.0" ]
4
2021-05-09T16:00:12.000Z
2021-12-16T12:31:25.000Z
Task/data.py
sndnyang/GMMC
e9cd85c9d55a7de411daad490c8db84dfe9c0455
[ "Apache-2.0" ]
null
null
null
Task/data.py
sndnyang/GMMC
e9cd85c9d55a7de411daad490c8db84dfe9c0455
[ "Apache-2.0" ]
null
null
null
from tensorflow.python.platform import flags from tensorflow.contrib.data.python.ops import batching import tensorflow as tf import json from torch.utils.data import Dataset import pickle import os.path as osp import os import numpy as np import time from scipy.misc import imread, imresize from torchvision.datasets imp...
33.441176
102
0.537379
1,982
15,918
4.168012
0.12109
0.035952
0.018642
0.028326
0.581165
0.548602
0.515555
0.475245
0.434814
0.403462
0
0.040527
0.32724
15,918
475
103
33.511579
0.730881
0.038824
0
0.479893
0
0
0.078302
0.011709
0
0
0
0
0
1
0.069705
false
0
0.040214
0.018767
0.184987
0.002681
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
66595693a0bfed64682ff38551b196526a22e500
981
py
Python
Collection/ms/01 Arrays/07_valid_paranthesis.py
kmanadkat/leetcode-101
8a9db22d98692d634a497ba76c7e9f792bb1f1bc
[ "MIT" ]
null
null
null
Collection/ms/01 Arrays/07_valid_paranthesis.py
kmanadkat/leetcode-101
8a9db22d98692d634a497ba76c7e9f792bb1f1bc
[ "MIT" ]
null
null
null
Collection/ms/01 Arrays/07_valid_paranthesis.py
kmanadkat/leetcode-101
8a9db22d98692d634a497ba76c7e9f792bb1f1bc
[ "MIT" ]
1
2021-09-15T11:17:36.000Z
2021-09-15T11:17:36.000Z
class Solution: def isValid(self, s: str) -> bool: # String should have even length if len(s) % 2 != 0: return False # Use list as Stack DS bracStack = [] # If Bracket open add in Stack else Pop & Check for ele in s: if ele in ['(', '{', '[']...
29.727273
86
0.459735
100
981
4.51
0.49
0.121951
0.119734
0.159645
0.210643
0.210643
0.210643
0.210643
0.210643
0.210643
0
0.009058
0.437309
981
32
87
30.65625
0.807971
0.204893
0
0.263158
0
0
0.015504
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.421053
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
665bab55df7c6bcde1b85c9c43014205b79501eb
2,984
py
Python
pybf/image_settings.py
Sergio5714/pybf
bf56b353cd715c1bdb16d6cbb79aef44e3ef49bc
[ "Apache-2.0" ]
1
2021-11-02T09:54:41.000Z
2021-11-02T09:54:41.000Z
pybf/image_settings.py
Sergio5714/pybf
bf56b353cd715c1bdb16d6cbb79aef44e3ef49bc
[ "Apache-2.0" ]
null
null
null
pybf/image_settings.py
Sergio5714/pybf
bf56b353cd715c1bdb16d6cbb79aef44e3ef49bc
[ "Apache-2.0" ]
2
2020-04-17T10:50:06.000Z
2021-11-02T09:54:47.000Z
""" Copyright (C) 2020 ETH Zurich. All rights reserved. Author: Sergei Vostrikov, 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.org/licenses/LI...
31.410526
101
0.655831
438
2,984
4.086758
0.296804
0.12067
0.094413
0.054749
0.212849
0.163128
0.139106
0.050279
0
0
0
0.016136
0.273123
2,984
95
102
31.410526
0.809129
0.282172
0
0.108696
0
0
0.020048
0
0
0
0
0
0
1
0.086957
false
0
0.021739
0
0.217391
0.021739
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
665e40e33fdd973b30b29de0d4999dd092a29402
681
py
Python
calc.py
fja05680/calc
6959bdd740722c7e3024f4e5a9a21607ad5ffccf
[ "MIT" ]
null
null
null
calc.py
fja05680/calc
6959bdd740722c7e3024f4e5a9a21607ad5ffccf
[ "MIT" ]
null
null
null
calc.py
fja05680/calc
6959bdd740722c7e3024f4e5a9a21607ad5ffccf
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import calc def main(): try: while True: try: expression = input('calc> ') # Parse the expression. lexer = calc.Lexer(expression) tokens = lexer.parse() print(tokens) parser = ca...
23.482759
46
0.444934
58
681
5.086207
0.5
0.088136
0
0
0
0
0
0
0
0
0
0.00271
0.45815
681
28
47
24.321429
0.796748
0.093979
0
0.1
0
0
0.04886
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.1
0.2
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
666446282fcb45a4a20b926c54fc47be65a01ac8
8,534
py
Python
aiida_environ/workflows/pw/grandcanonical.py
environ-developers/aiida-environ
c39ac70227a41e084b74df630c3cb4b4caa27094
[ "MIT" ]
null
null
null
aiida_environ/workflows/pw/grandcanonical.py
environ-developers/aiida-environ
c39ac70227a41e084b74df630c3cb4b4caa27094
[ "MIT" ]
1
2021-12-07T17:03:44.000Z
2021-12-07T17:03:44.000Z
aiida_environ/workflows/pw/grandcanonical.py
environ-developers/aiida-environ
c39ac70227a41e084b74df630c3cb4b4caa27094
[ "MIT" ]
null
null
null
import numpy as np from aiida.common import AttributeDict from aiida.engine import WorkChain, append_ from aiida.orm import Dict, List, StructureData from aiida.orm.nodes.data.upf import get_pseudos_from_structure from aiida.orm.utils import load_node from aiida.plugins import WorkflowFactory from aiida_quantumespresso...
44.915789
88
0.664284
923
8,534
5.937161
0.192849
0.031934
0.052555
0.036496
0.511679
0.408029
0.353832
0.341423
0.239051
0.239051
0
0.005537
0.238106
8,534
189
89
45.153439
0.837281
0.033747
0
0.275
0
0
0.12714
0.032058
0
0
0
0.005291
0
1
0.03125
false
0
0.08125
0
0.11875
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
6664aaeb4a16b83003b59cd285e9bdc4f631fdb5
6,481
py
Python
tabnet/utils.py
huangyz0918/tabnet
a93d52c6f33e9ea8ad0f152cdaf5a0cabec8e6d4
[ "MIT" ]
1
2021-06-17T04:47:41.000Z
2021-06-17T04:47:41.000Z
tabnet/utils.py
huangyz0918/tabnet
a93d52c6f33e9ea8ad0f152cdaf5a0cabec8e6d4
[ "MIT" ]
null
null
null
tabnet/utils.py
huangyz0918/tabnet
a93d52c6f33e9ea8ad0f152cdaf5a0cabec8e6d4
[ "MIT" ]
null
null
null
import torch import numpy as np import pandas as pd from collections import OrderedDict class TrainingDataset(torch.utils.data.Dataset): is_categorical = False def __init__( self, X, y, output_mapping=None, categorical_mapping=None, columns=None, device...
33.755208
91
0.577843
779
6,481
4.620026
0.183569
0.01945
0.026674
0.025007
0.500417
0.440122
0.428452
0.413448
0.413448
0.413448
0
0.011677
0.299645
6,481
191
92
33.931937
0.781229
0.043358
0
0.394737
0
0
0.023331
0
0
0
0
0
0
1
0.092105
false
0
0.026316
0.026316
0.230263
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
66654d5cfc565e697020cd64524f69662efe7ca5
312
py
Python
urls.py
stephenmcd/gamblor
a12f43339e2a6d34e4ed5ea3d02a3629ed5b8616
[ "BSD-2-Clause" ]
12
2015-06-09T02:31:43.000Z
2021-12-11T21:35:38.000Z
urls.py
binarygrrl/gamblor
a12f43339e2a6d34e4ed5ea3d02a3629ed5b8616
[ "BSD-2-Clause" ]
null
null
null
urls.py
binarygrrl/gamblor
a12f43339e2a6d34e4ed5ea3d02a3629ed5b8616
[ "BSD-2-Clause" ]
9
2016-11-14T23:56:51.000Z
2021-04-14T07:47:44.000Z
from django.conf.urls.defaults import patterns, include, url from django.contrib import admin from core import game admin.autodiscover() game.autodiscover() urlpatterns = patterns("", ("^admin/", include(admin.site.urls)), url("", include("social_auth.urls")), url("", include("core.urls")), )
18.352941
60
0.692308
38
312
5.657895
0.473684
0.093023
0.130233
0
0
0
0
0
0
0
0
0
0.141026
312
16
61
19.5
0.802239
0
0
0
0
0
0.102894
0
0
0
0
0
0
1
0
false
0
0.3
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
666552755de681921ce121bf7878b38237804c08
3,258
py
Python
DCGAN/train.py
drone911/Mnist-GANs
6b5ffc6ecf5070522ebcb6a41374cfffd674b684
[ "MIT" ]
null
null
null
DCGAN/train.py
drone911/Mnist-GANs
6b5ffc6ecf5070522ebcb6a41374cfffd674b684
[ "MIT" ]
null
null
null
DCGAN/train.py
drone911/Mnist-GANs
6b5ffc6ecf5070522ebcb6a41374cfffd674b684
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Sep 13 20:11:22 2019 @author: drone911 """ from helper import * from models import * import numpy as np from keras.datasets import mnist from tqdm import tqdm import warnings def train(train_images, generator, discriminator, gan, num_classes=120, random_dim=128, epochs=100,...
41.240506
116
0.612339
430
3,258
4.32093
0.276744
0.082885
0.034446
0.038751
0.248654
0.191604
0.123789
0.061356
0.047363
0.047363
0
0.037338
0.243708
3,258
78
117
41.769231
0.716721
0.023634
0
0.033898
0
0
0.07879
0.051371
0
0
0
0
0
1
0.016949
false
0
0.101695
0
0.118644
0.084746
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
6667684709a7e3192cfea4fd79e3ee7e997e694d
2,418
py
Python
Model/predictor-dl-model/tests/experiments/7day_variance_uckey_weight_in_slotid.py
rangaswamymr/blue-marlin
2ab39a6af01e14f40386f640fe087aeb284b5524
[ "Apache-2.0" ]
null
null
null
Model/predictor-dl-model/tests/experiments/7day_variance_uckey_weight_in_slotid.py
rangaswamymr/blue-marlin
2ab39a6af01e14f40386f640fe087aeb284b5524
[ "Apache-2.0" ]
null
null
null
Model/predictor-dl-model/tests/experiments/7day_variance_uckey_weight_in_slotid.py
rangaswamymr/blue-marlin
2ab39a6af01e14f40386f640fe087aeb284b5524
[ "Apache-2.0" ]
null
null
null
from pyspark import SparkContext, SparkConf, SQLContext from pyspark.sql.functions import count, lit, col, udf, expr, collect_list, explode from pyspark.sql.types import IntegerType, StringType, MapType, ArrayType, BooleanType, FloatType from pyspark.sql import HiveContext from datetime import datetime, timedelta from ...
37.78125
158
0.706369
377
2,418
4.34748
0.278515
0.060403
0.034167
0.028066
0.118365
0.082977
0.058572
0.058572
0.058572
0
0
0.040414
0.119934
2,418
63
159
38.380952
0.729793
0.013234
0
0
0
0.023256
0.177013
0.047399
0
0
0
0
0
1
0.069767
false
0
0.139535
0
0.27907
0.023256
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
66698ee5453f94b084a237ee9ea9e607d1b0395c
9,922
py
Python
main_fed.py
berserkersss/FL_CNN_Diff_Acc
f78651b426ff700108b62f2afbd99134b30af1e6
[ "MIT" ]
null
null
null
main_fed.py
berserkersss/FL_CNN_Diff_Acc
f78651b426ff700108b62f2afbd99134b30af1e6
[ "MIT" ]
null
null
null
main_fed.py
berserkersss/FL_CNN_Diff_Acc
f78651b426ff700108b62f2afbd99134b30af1e6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import copy import numpy as np from torchvision import datasets, transforms import torch import math from utils.sampling import mnist_iid, mnist_noniid, cifar_iid from utils.opti...
36.884758
141
0.651078
1,469
9,922
4.121852
0.167461
0.024277
0.013377
0.013873
0.402312
0.329315
0.252519
0.196862
0.163501
0.144674
0
0.016144
0.213364
9,922
268
142
37.022388
0.759641
0.089397
0
0.192893
0
0
0.078268
0.003674
0
0
0
0
0
1
0
false
0
0.071066
0
0.071066
0.055838
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
6670c507913d776c7f3759690ef2c0ab2aa02880
591
py
Python
ex078.py
raquelEllem/exerciciosPython
489c2360de84c69dbe9da7710660fb064cd605fa
[ "MIT" ]
null
null
null
ex078.py
raquelEllem/exerciciosPython
489c2360de84c69dbe9da7710660fb064cd605fa
[ "MIT" ]
null
null
null
ex078.py
raquelEllem/exerciciosPython
489c2360de84c69dbe9da7710660fb064cd605fa
[ "MIT" ]
null
null
null
lista = [] for n in range(0, 5): lista.append(int(input(f'Digite um valor para a posição {n}: '))) print('=-=' * 10) print(f'Você digitou os valores {lista}') maior = lista[0] menor = lista[0] for n in lista: if maior < n: maior = n if menor > n: menor = n print(f'O maior valor digitado foi...
26.863636
69
0.575296
97
591
3.505155
0.360825
0.088235
0.035294
0.1
0.223529
0.223529
0.223529
0.223529
0.223529
0.223529
0
0.013393
0.241963
591
22
70
26.863636
0.745536
0
0
0.190476
0
0
0.300676
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
6674228e20201842275a8416c646d65895ba336f
6,461
py
Python
chb/x86/opcodes/X86RotateLeftCF.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
chb/x86/opcodes/X86RotateLeftCF.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
chb/x86/opcodes/X86RotateLeftCF.py
kestreltechnology/CodeHawk-Binary
aa0b2534e0318e5fb3770ec7b4d78feb0feb2394
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # CodeHawk Binary Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2020 Kestrel Technology LLC # Copyright (c) 2020 Henny Si...
40.130435
80
0.629005
829
6,461
4.864897
0.332931
0.015621
0.012398
0.015621
0.048599
0.024795
0.024795
0.024795
0.024795
0
0
0.024113
0.236186
6,461
160
81
40.38125
0.79311
0.531806
0
0.048387
0
0
0.021717
0
0
0
0
0
0
1
0.129032
false
0
0.209677
0.080645
0.451613
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
667689203557923536a76893ffda9eef2e58e85a
2,135
py
Python
test_challenges.py
UPstartDeveloper/Graph-Applications
45a3fa83f9e3fff243be35dd169edfcfd020f1a1
[ "MIT" ]
null
null
null
test_challenges.py
UPstartDeveloper/Graph-Applications
45a3fa83f9e3fff243be35dd169edfcfd020f1a1
[ "MIT" ]
null
null
null
test_challenges.py
UPstartDeveloper/Graph-Applications
45a3fa83f9e3fff243be35dd169edfcfd020f1a1
[ "MIT" ]
null
null
null
import challenges import unittest class RottingOrangesTests(unittest.TestCase): def test_time_to_rot(self): """ Graph BFS problem. Tells the time taken for oranges to all rot. Test cases from LeetCode. """ # Test Cases oranges1 = [ [2,1,1], [1...
26.6875
79
0.516628
261
2,135
4.111111
0.325671
0.033551
0.036347
0.033551
0.136999
0.091333
0.024231
0.014911
0
0
0
0.075199
0.352225
2,135
80
80
26.6875
0.700651
0.158782
0
0.098039
0
0
0.018835
0
0
0
0
0
0.156863
1
0.078431
false
0
0.039216
0
0.196078
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
66769c379769d62d8db4f6ca3c7ed84d674f3460
1,293
py
Python
2020-08-month-long-challenge/day06.py
jkbockstael/leetcode
8ef5c907fb153c37dc97f6524493ceca2044ea38
[ "Unlicense" ]
null
null
null
2020-08-month-long-challenge/day06.py
jkbockstael/leetcode
8ef5c907fb153c37dc97f6524493ceca2044ea38
[ "Unlicense" ]
null
null
null
2020-08-month-long-challenge/day06.py
jkbockstael/leetcode
8ef5c907fb153c37dc97f6524493ceca2044ea38
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # Day 6: Find All Duplicates in an Array # # Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements # appear twice and others appear once. # Find all the elements that appear twice in this array. # Could you do it without extra space and in O(n) runtime? class Solution: ...
40.40625
79
0.608662
207
1,293
3.826087
0.512077
0.010101
0.022727
0
0
0
0
0
0
0
0
0.021372
0.312452
1,293
31
80
41.709677
0.863892
0.600928
0
0
0
0
0
0
0
0
0
0
0.083333
1
0.083333
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
6683c0d1956dae22490efd4a21cbb16c9e118a7c
339
py
Python
tf_prac.py
akapoorx00/machinelearning-stuff
53184019b77d3387fd15b13d3bfa75529b8ed003
[ "Apache-2.0" ]
null
null
null
tf_prac.py
akapoorx00/machinelearning-stuff
53184019b77d3387fd15b13d3bfa75529b8ed003
[ "Apache-2.0" ]
null
null
null
tf_prac.py
akapoorx00/machinelearning-stuff
53184019b77d3387fd15b13d3bfa75529b8ed003
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf x = tf.constant(35, name='x') print(x) y = tf.Variable(x+5, name='y') with tf.Session() as session: merged = tf.summary.merge_all() writer = tf.summary.FileWriter("output", session.graph) model = tf.global_variables_initializer() session.run(model) print (session.run(y)) ...
21.1875
59
0.672566
50
339
4.5
0.56
0.08
0
0
0
0
0
0
0
0
0
0.010714
0.174041
339
15
60
22.6
0.792857
0
0
0
0
0
0.023669
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.181818
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
668cea27bdbc4f6209d2380260dbf5312ca4bad1
2,944
py
Python
Dorta/sales_modification/wizard/sale_order_popup.py
aaparicio87/Odoo12
25cfc349b2e85fa1b5f5846ffe693029f77b3b7d
[ "MIT" ]
null
null
null
Dorta/sales_modification/wizard/sale_order_popup.py
aaparicio87/Odoo12
25cfc349b2e85fa1b5f5846ffe693029f77b3b7d
[ "MIT" ]
null
null
null
Dorta/sales_modification/wizard/sale_order_popup.py
aaparicio87/Odoo12
25cfc349b2e85fa1b5f5846ffe693029f77b3b7d
[ "MIT" ]
null
null
null
from odoo import fields, models, api, _ from odoo.exceptions import UserError class SaleOrderPopup(models.TransientModel): _name = 'sale.order.popup' @api.multi def popup_button(self): for rec in self.env['sale.order'].browse(self._context.get('active_id')): if rec._get_forbidden_stat...
42.057143
116
0.567935
326
2,944
4.846626
0.361963
0.044304
0.027848
0.024684
0.144304
0.110127
0.110127
0.070886
0.070886
0.070886
0
0.001986
0.315897
2,944
70
117
42.057143
0.782522
0
0
0.16129
0
0
0.216299
0.051613
0
0
0
0
0
1
0.032258
false
0
0.032258
0
0.177419
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
668da6a3dfe98b38ca927b8c9945a7980761c6b8
830
py
Python
tyson-py/udp-echo.py
asheraryam/tyson
44317a4e3367ef4958c3bb8d3ad538a3908a4566
[ "MIT" ]
null
null
null
tyson-py/udp-echo.py
asheraryam/tyson
44317a4e3367ef4958c3bb8d3ad538a3908a4566
[ "MIT" ]
null
null
null
tyson-py/udp-echo.py
asheraryam/tyson
44317a4e3367ef4958c3bb8d3ad538a3908a4566
[ "MIT" ]
null
null
null
"""UDP hole punching server.""" from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor import sys DEFAULT_PORT = 4000 class ServerProtocol(DatagramProtocol): def datagramReceived(self, datagram, address): """Handle incoming datagram messages.""" print(datagram...
28.62069
73
0.631325
100
830
5.11
0.61
0.043053
0.074364
0
0
0
0
0
0
0
0
0.017378
0.237349
830
29
74
28.62069
0.789889
0.16747
0
0
0
0
0.070692
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.263158
0.157895
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
668e417b3a6306ecd6bbd0fcf013eefd855c3921
12,972
py
Python
src/fhir_types/FHIR_StructureMap_Source.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
2
2022-02-03T00:51:30.000Z
2022-02-03T18:42:43.000Z
src/fhir_types/FHIR_StructureMap_Source.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
src/fhir_types/FHIR_StructureMap_Source.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
from typing import Any, List, Literal, TypedDict from .FHIR_Address import FHIR_Address from .FHIR_Age import FHIR_Age from .FHIR_Annotation import FHIR_Annotation from .FHIR_Attachment import FHIR_Attachment from .FHIR_CodeableConcept import FHIR_CodeableConcept from .FHIR_Coding import FHIR_Coding from .FHIR_Contact...
56.4
836
0.712458
1,657
12,972
5.471334
0.145444
0.041694
0.044121
0.060666
0.402603
0.402603
0.402603
0.402603
0.402603
0.392897
0
0.000709
0.238822
12,972
229
837
56.646288
0.91746
0.503315
0
0
0
0
0.252008
0.104426
0
0
0
0
0
1
0
false
0
0.268657
0
0.268657
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
668f3e390bdd48e5a8dc955598a92ec70a35392d
2,484
py
Python
ip/ip/ecommerce/views.py
SuryaVamsiKrishna/Inner-Pieces
deb9e83af891dac58966230446a5a32fe10e86f2
[ "MIT" ]
1
2021-02-17T06:06:50.000Z
2021-02-17T06:06:50.000Z
ip/ip/ecommerce/views.py
SuryaVamsiKrishna/Inner-Pieces
deb9e83af891dac58966230446a5a32fe10e86f2
[ "MIT" ]
null
null
null
ip/ip/ecommerce/views.py
SuryaVamsiKrishna/Inner-Pieces
deb9e83af891dac58966230446a5a32fe10e86f2
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth.decorators import login_required from .models import * from .forms import address_form from django.http import JsonResponse from .utils import cartData,guestobj import json,datetime def store(request): items = item.objects.all() data = cartData(reque...
28.883721
84
0.67029
298
2,484
5.47651
0.271812
0.088235
0.052083
0.036765
0.377451
0.348039
0.348039
0.278799
0.251225
0.251225
0
0.001513
0.201691
2,484
86
85
28.883721
0.821483
0
0
0.276923
0
0
0.109054
0
0
0
0
0
0
1
0.076923
false
0
0.107692
0
0.261538
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
66941e3ed65b1efe5312473285b552d665a56ecc
29,897
py
Python
lpjguesstools/lgt_createinput/main.py
lukasbaumbach/lpjguesstools
f7cc14c2931b4ac9a3b8dddc89c469b8fedd42e3
[ "BSD-3-Clause" ]
2
2020-08-03T11:33:00.000Z
2021-07-05T21:00:46.000Z
lpjguesstools/lgt_createinput/main.py
lukasbaumbach/lpjguesstools
f7cc14c2931b4ac9a3b8dddc89c469b8fedd42e3
[ "BSD-3-Clause" ]
8
2020-08-03T12:45:31.000Z
2021-02-23T19:51:32.000Z
lpjguesstools/lgt_createinput/main.py
lukasbaumbach/lpjguesstools
f7cc14c2931b4ac9a3b8dddc89c469b8fedd42e3
[ "BSD-3-Clause" ]
2
2020-08-03T12:11:43.000Z
2022-01-29T10:59:00.000Z
"""FILE lgt_createinput.main.py This script creates condensed LPJ netcdf files for landforms and soil properties landforms.nc: - lfcnt (landid) number of landforms in cell - frac (landid, lfid/ standid) area fraction this landform represents - slope (landid, lfid/ standid) - elevation (landid, lfid/ standid) avg...
36.282767
135
0.596247
4,142
29,897
4.104056
0.138098
0.014589
0.010589
0.013001
0.259133
0.164245
0.128949
0.109771
0.084476
0.065651
0
0.015101
0.271265
29,897
823
136
36.326853
0.765135
0.155835
0
0.179389
0
0
0.104742
0.003595
0
0
0
0.00243
0
1
0.043893
false
0.001908
0.030534
0
0.124046
0.009542
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
66942000229050463aff5906c4c70265c74740a1
4,379
py
Python
html_parsing/www_dns_shop_ru/check_update_price_date__QWebEnginePage_bs4.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
html_parsing/www_dns_shop_ru/check_update_price_date__QWebEnginePage_bs4.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
html_parsing/www_dns_shop_ru/check_update_price_date__QWebEnginePage_bs4.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' """Скрипт проверяет дату обновления прайса на сайте http://www.dns-shop.ru/""" # # Основа взята из http://stackoverflow.com/a/37755811/5909792 # def get_html(url, check_content_func=None): # # from PyQt5.QtCore import QUrl # # from PyQt...
26.70122
78
0.58575
503
4,379
4.952286
0.308151
0.04175
0.017664
0.016861
0.431152
0.354075
0.307507
0.307507
0.307507
0.307507
0
0.017425
0.292304
4,379
163
79
26.865031
0.786383
0.633021
0
0.057143
0
0
0.076596
0.030496
0
0
0
0
0
1
0.028571
false
0
0.228571
0
0.314286
0.028571
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
6696f698bff747564601f269987739a28d5abfe1
12,918
py
Python
tests/test_adapters.py
Shelestova-Anastasia/cutadapt
6e239b3b8e20d17fdec041dc1d967ec2a3cfe770
[ "MIT" ]
null
null
null
tests/test_adapters.py
Shelestova-Anastasia/cutadapt
6e239b3b8e20d17fdec041dc1d967ec2a3cfe770
[ "MIT" ]
null
null
null
tests/test_adapters.py
Shelestova-Anastasia/cutadapt
6e239b3b8e20d17fdec041dc1d967ec2a3cfe770
[ "MIT" ]
null
null
null
import pytest from dnaio import Sequence from cutadapt.adapters import ( RemoveAfterMatch, RemoveBeforeMatch, FrontAdapter, BackAdapter, PrefixAdapter, SuffixAdapter, LinkedAdapter, MultipleAdapters, IndexedPrefixAdapters, IndexedSuffixAdapters, ) def test_back_adapter_absolut...
27.780645
88
0.618517
1,562
12,918
4.941741
0.179898
0.025392
0.019433
0.0114
0.432439
0.389558
0.350564
0.283716
0.269335
0.249126
0
0.040202
0.264437
12,918
464
89
27.840517
0.772153
0.06967
0
0.402817
0
0
0.059459
0.008053
0
0
0
0
0.180282
1
0.078873
false
0
0.008451
0
0.087324
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
66992cf30daf9b3de5a678f20db0b9dc5b3fafdf
7,561
py
Python
archABM/event_model.py
vishalbelsare/ArchABM
4a5ed9506ba96c38e1f3d7f53d6e469f28fe6873
[ "MIT" ]
8
2021-07-19T11:54:00.000Z
2022-03-29T01:45:07.000Z
archABM/event_model.py
vishalbelsare/ArchABM
4a5ed9506ba96c38e1f3d7f53d6e469f28fe6873
[ "MIT" ]
null
null
null
archABM/event_model.py
vishalbelsare/ArchABM
4a5ed9506ba96c38e1f3d7f53d6e469f28fe6873
[ "MIT" ]
1
2021-08-19T23:56:56.000Z
2021-08-19T23:56:56.000Z
import copy import random from .parameters import Parameters class EventModel: """Defines an event model, also called "activity" An event model is defined by these parameters: * Activity name: :obj:`str` * Schedule: :obj:`list` of :obj:`tuple` (in minutes :obj:`int`) * Repetitions range: min...
33.455752
112
0.547943
947
7,561
4.341077
0.232313
0.043785
0.046704
0.036974
0.35782
0.314522
0.252493
0.239358
0.164437
0.123571
0
0.022554
0.308028
7,561
225
113
33.604444
0.763188
0.578098
0
0.25
0
0
0
0
0
0
0
0.008889
0
1
0.152778
false
0
0.041667
0
0.430556
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
669c4ded1d39066ae7e38bea807e79c4ad3272ab
2,764
py
Python
parse_json_script/lib_parse_json.py
amane-uehara/fitbit-fetcher
2a949016933dbcac5f949c8b552c7998b2aadd8c
[ "MIT" ]
null
null
null
parse_json_script/lib_parse_json.py
amane-uehara/fitbit-fetcher
2a949016933dbcac5f949c8b552c7998b2aadd8c
[ "MIT" ]
null
null
null
parse_json_script/lib_parse_json.py
amane-uehara/fitbit-fetcher
2a949016933dbcac5f949c8b552c7998b2aadd8c
[ "MIT" ]
null
null
null
import os import sys import json def detail_base_item_list(): return [ 'distance', 'elevation', 'floors', 'heart', 'minutesFairlyActive', 'minutesLightlyActive', 'minutesSedentary', 'minutesVeryActive', 'steps' ] def read_json_file(filename): if not os.path.isfile(filename):...
23.827586
102
0.599132
378
2,764
4.269841
0.240741
0.02974
0.037175
0.037175
0.325898
0.255266
0.23544
0.140025
0.094176
0
0
0.018131
0.22178
2,764
115
103
24.034783
0.732218
0.004703
0
0.255814
0
0
0.166606
0
0
0
0
0
0
1
0.081395
false
0
0.034884
0.011628
0.197674
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
669d3d5f4966f2fc9848beb0d7bd023a928904e0
4,251
py
Python
utils/tfds_preprocess.py
chansoopark98/tf_keras-Unknown-grasping
be0f68280ba0b293940a08732fd4a31e89a272cd
[ "MIT" ]
null
null
null
utils/tfds_preprocess.py
chansoopark98/tf_keras-Unknown-grasping
be0f68280ba0b293940a08732fd4a31e89a272cd
[ "MIT" ]
null
null
null
utils/tfds_preprocess.py
chansoopark98/tf_keras-Unknown-grasping
be0f68280ba0b293940a08732fd4a31e89a272cd
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow_datasets as tfds import numpy as np import random from utils.dataset_processing import grasp, image import matplotlib.pyplot as plt dataset_path = './tfds/' train_data, meta = tfds.load('Jacquard', split='train', with_info=True, shuffle_files=False) BATCH_SIZE = 1 number_trai...
26.735849
139
0.604799
623
4,251
3.895666
0.216693
0.046148
0.053564
0.070045
0.254223
0.196951
0.153688
0.117841
0.073754
0.045735
0
0.03432
0.252882
4,251
159
140
26.735849
0.729849
0.256881
0
0.037975
0
0
0.026906
0
0
0
0
0
0
1
0.025316
false
0
0.075949
0
0.126582
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
669ffe2b5e6215275de00b66a4a28e352cc9a091
2,063
py
Python
ch16_ex.py
DexHunter/Think-Python-book-exercise-solutions
d0abae261eda1dca99043e17e8a1e614caad2140
[ "CC-BY-4.0" ]
24
2019-05-07T15:11:28.000Z
2022-03-02T04:50:28.000Z
ch16_ex.py
Dekzu/Think-Python-book-exercise-solutions
d0abae261eda1dca99043e17e8a1e614caad2140
[ "CC-BY-4.0" ]
null
null
null
ch16_ex.py
Dekzu/Think-Python-book-exercise-solutions
d0abae261eda1dca99043e17e8a1e614caad2140
[ "CC-BY-4.0" ]
19
2019-08-05T20:59:04.000Z
2022-03-07T05:13:32.000Z
class Time: '''Represents the time of day. attributes: hour, minute, second ''' def print_time(t): print ('(%.2d:%.2d:%.2d)' % (t.hour, t.minute, t.second)) def is_after(t1, t2): return (t1.hour, t1.minute, t1.second) > (t2.hour, t2.minute, t2.second) def mul_time(t, n): '''Multiple time t by n n: int ...
20.838384
248
0.652448
344
2,063
3.825581
0.296512
0.022796
0.015198
0.021277
0.042553
0
0
0
0
0
0
0.040398
0.220068
2,063
99
249
20.838384
0.777502
0.27872
0
0
0
0
0.016795
0
0
0
0
0
0
1
0.122807
false
0
0
0.017544
0.245614
0.105263
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
66a1405cb275e20463fb6f972194333959f1c8d7
1,449
py
Python
src/DataParser/odmdata/variable.py
UCHIC/iUTAHData
4ffab29ad6b3313416bb2a8b98acf0b2e02c8cab
[ "Unlicense" ]
2
2015-02-25T01:12:51.000Z
2017-02-08T22:54:41.000Z
src/DataParser/odmdata/variable.py
UCHIC/iUTAHData
4ffab29ad6b3313416bb2a8b98acf0b2e02c8cab
[ "Unlicense" ]
48
2015-01-12T18:01:56.000Z
2021-06-10T20:05:26.000Z
src/DataParser/odmdata/variable.py
UCHIC/iUTAHData
4ffab29ad6b3313416bb2a8b98acf0b2e02c8cab
[ "Unlicense" ]
null
null
null
from sqlalchemy import * from sqlalchemy.orm import relationship from base import Base from unit import Unit class Variable(Base): __tablename__ = 'Variables' id = Column('VariableID', Integer, primary_key=True) code = Column('VariableCode', String(255), nullable=False) name = Column('VariableName',...
45.28125
102
0.718427
170
1,449
5.964706
0.382353
0.153846
0.117357
0.151874
0.171598
0.171598
0.088757
0
0
0
0
0.016949
0.144928
1,449
31
103
46.741935
0.801453
0.046929
0
0
0
0
0.197388
0.046444
0
0
0
0
0
1
0.041667
false
0
0.166667
0.041667
0.958333
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
66a4535ff16536c58c62bd0252d04c6087d6613d
7,751
py
Python
pandas/pandastypes.py
pyxll/pyxll-examples
e8a1cba1ffdb346191f0c80bea6877cbe0291957
[ "Unlicense" ]
93
2015-04-27T14:44:02.000Z
2022-03-03T13:14:49.000Z
pandas/pandastypes.py
samuelpedrini/pyxll-examples
ce7f839b4ff4f4032b78dffff2357f3feaadc3a1
[ "Unlicense" ]
4
2019-12-13T11:32:17.000Z
2022-03-03T14:07:02.000Z
pandas/pandastypes.py
samuelpedrini/pyxll-examples
ce7f839b4ff4f4032b78dffff2357f3feaadc3a1
[ "Unlicense" ]
53
2015-04-27T14:44:14.000Z
2022-01-23T05:26:52.000Z
""" Custom excel types for pandas objects (eg dataframes). For information about custom types in PyXLL see: https://www.pyxll.com/docs/udfs.html#custom-types For information about pandas see: http://pandas.pydata.org/ Including this module in your pyxll config adds the following custom types that can be used as retu...
31.897119
95
0.632047
1,134
7,751
4.237213
0.193122
0.03205
0.016025
0.027471
0.418522
0.387305
0.365661
0.365661
0.334235
0.288866
0
0.010513
0.263708
7,751
242
96
32.028926
0.831435
0.338021
0
0.362903
0
0
0.059713
0
0
0
0
0
0
1
0.080645
false
0
0.056452
0
0.282258
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
66a463bd296e2375b0d9a6abd3ff5e747d929dcd
10,912
py
Python
liveDataApp/views.py
subahanii/COVID19-tracker
b7d30ff996974755e78393f0777d6cf623c4d654
[ "MIT" ]
7
2020-04-28T12:34:42.000Z
2021-05-17T06:20:51.000Z
liveDataApp/views.py
subahanii/COVID19-tracker
b7d30ff996974755e78393f0777d6cf623c4d654
[ "MIT" ]
1
2020-07-09T18:17:32.000Z
2020-07-10T13:56:01.000Z
liveDataApp/views.py
subahanii/COVID19-tracker
b7d30ff996974755e78393f0777d6cf623c4d654
[ "MIT" ]
null
null
null
from django.shortcuts import render import requests from bs4 import BeautifulSoup import re from collections import defaultdict as dfd from .models import * from datetime import date from datetime import timedelta from django.db.models import Sum from django.db.models import Count from django.db.models.functions impor...
26.421308
129
0.640121
1,174
10,912
5.922487
0.291312
0.008629
0.010355
0.012225
0.157055
0.093341
0.072631
0.036819
0.017834
0.017834
0
0.038249
0.154234
10,912
413
130
26.421308
0.715137
0.185759
0
0.024194
0
0
0.171879
0.007931
0
0
0
0
0
1
0.032258
false
0
0.044355
0
0.108871
0.008065
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
66aa16869b2a00e5d9cde4a253891d698c5527b2
2,437
py
Python
src/observers/simple_observer.py
ChenyangTang/bark-ml
1d2ab1957bf49929e27d718dd4bd3912162197b8
[ "MIT" ]
null
null
null
src/observers/simple_observer.py
ChenyangTang/bark-ml
1d2ab1957bf49929e27d718dd4bd3912162197b8
[ "MIT" ]
null
null
null
src/observers/simple_observer.py
ChenyangTang/bark-ml
1d2ab1957bf49929e27d718dd4bd3912162197b8
[ "MIT" ]
null
null
null
from gym import spaces import numpy as np from bark.models.dynamic import StateDefinition from modules.runtime.commons.parameters import ParameterServer import math import operator from src.commons.spaces import BoundedContinuous, Discrete from src.observers.observer import StateObserver class SimpleObserver(StateO...
30.848101
77
0.672959
278
2,437
5.557554
0.298561
0.097087
0.046602
0.046602
0.184466
0.121036
0.121036
0.093204
0
0
0
0.002707
0.242101
2,437
78
78
31.24359
0.833785
0.005745
0
0.196721
0
0
0
0
0
0
0
0
0
1
0.114754
false
0
0.131148
0.032787
0.360656
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
66aa1e9b55b1f6a0fc3a8c730d67ac565985ed59
9,610
py
Python
cosilico/base/scatter.py
cosilico/cosilico
983373139aeaf459271c559a47a6439939ec93a5
[ "MIT" ]
null
null
null
cosilico/base/scatter.py
cosilico/cosilico
983373139aeaf459271c559a47a6439939ec93a5
[ "MIT" ]
null
null
null
cosilico/base/scatter.py
cosilico/cosilico
983373139aeaf459271c559a47a6439939ec93a5
[ "MIT" ]
null
null
null
import altair as alt import pandas as pd def scatterplot(x, y, data, hue=None, color=None, opacity=1., x_autoscale=True, y_autoscale=True): """Display a basic scatterplot. Parameters ---------- x : str Column in data to be used for x-axis y : str Column in data to be used ...
29.478528
87
0.591467
1,273
9,610
4.344069
0.148468
0.02387
0.01953
0.014467
0.715913
0.693128
0.612839
0.541049
0.512116
0.512116
0
0.008567
0.295525
9,610
325
88
29.569231
0.808272
0.381165
0
0.538961
0
0
0.041091
0
0
0
0
0
0
1
0.019481
false
0
0.012987
0
0.071429
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
66abb66cbd60706f6fbdf7789edf198d10295b85
12,103
py
Python
flappy_env.py
timlaroche/FlapPyBird
cffc7bb76daad67957a8b5778c1f2c7d82da1514
[ "MIT" ]
null
null
null
flappy_env.py
timlaroche/FlapPyBird
cffc7bb76daad67957a8b5778c1f2c7d82da1514
[ "MIT" ]
null
null
null
flappy_env.py
timlaroche/FlapPyBird
cffc7bb76daad67957a8b5778c1f2c7d82da1514
[ "MIT" ]
null
null
null
import gym from gym import spaces from itertools import cycle import random import sys import os import pygame from pygame.locals import * import flappy import numpy as np import cv2 # GLOBALS FPS = 30 SCREENWIDTH = 288 SCREENHEIGHT = 512 PIPEGAPSIZE = 100 # gap between upper and lower part of pipe BASEY ...
32.799458
130
0.673635
1,652
12,103
4.891041
0.214891
0.025866
0.035272
0.033787
0.260644
0.170916
0.155941
0.115347
0.037748
0.025124
0
0.0233
0.170206
12,103
369
131
32.799458
0.781241
0.138891
0
0.110266
0
0
0.090487
0.023202
0
0
0
0
0
1
0.041825
false
0
0.041825
0
0.136882
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
66aded0365be403ed572fa925d74446e3fe43e79
4,587
py
Python
vkmini/group/group_longpoll.py
Elchinchel/vkmini
378ee3893c5826563a19198fd532df47aaa03350
[ "MIT" ]
2
2021-08-12T20:22:40.000Z
2022-02-06T18:13:38.000Z
vkmini/group/group_longpoll.py
Elchinchel/vkmini
378ee3893c5826563a19198fd532df47aaa03350
[ "MIT" ]
null
null
null
vkmini/group/group_longpoll.py
Elchinchel/vkmini
378ee3893c5826563a19198fd532df47aaa03350
[ "MIT" ]
3
2020-07-31T17:19:20.000Z
2021-12-11T11:38:23.000Z
from typing import AsyncGenerator, List, Union, Any from aiohttp.client import ClientSession from vkmini.utils import AbstractLogger from vkmini.request import longpoll_get, default_session from vkmini.exceptions import TokenInvalid from vkmini import VkApi class Update: # TODO ну тут без комментариев class...
28.849057
79
0.58535
536
4,587
4.833955
0.330224
0.027789
0.028946
0.030876
0.046314
0.037051
0.026245
0
0
0
0
0.001921
0.318945
4,587
158
80
29.031646
0.827465
0.197951
0
0.09901
0
0
0.064312
0.026988
0
0
0
0.006329
0
1
0.039604
false
0
0.069307
0.009901
0.326733
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
66af18eea69ccb8397ca09f7ca83656cd98f0584
1,162
py
Python
aswan/tests/unit/test_migrations.py
papsebestyen/aswan
ed1b2a3dae6a8b7de355edd75de8d4ad577c97cd
[ "MIT" ]
1
2021-04-28T23:08:07.000Z
2021-04-28T23:08:07.000Z
aswan/tests/unit/test_migrations.py
papsebestyen/aswan
ed1b2a3dae6a8b7de355edd75de8d4ad577c97cd
[ "MIT" ]
1
2022-01-22T22:02:55.000Z
2022-01-22T22:02:55.000Z
aswan/tests/unit/test_migrations.py
papsebestyen/aswan
ed1b2a3dae6a8b7de355edd75de8d4ad577c97cd
[ "MIT" ]
2
2022-01-05T10:01:22.000Z
2022-02-16T10:58:46.000Z
import tarfile import pandas as pd import sqlalchemy as db from aswan import AswanConfig, ProdConfig, Project from aswan.migrate import pull, push from aswan.models import Base from aswan.object_store import get_object_store def test_push_pull(tmp_path): conf = ProdConfig.from_dir(tmp_path / "cfg") Base.me...
24.723404
62
0.683305
167
1,162
4.580838
0.401198
0.054902
0.036601
0.039216
0.115033
0.070588
0
0
0
0
0
0.011677
0.189329
1,162
46
63
25.26087
0.800425
0
0
0
0
0
0.041308
0
0
0
0
0
0.090909
1
0.060606
false
0
0.212121
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
66b23735ac5dd60f24c047d430921a774e2c8f6b
1,055
py
Python
booking.py
kurkurzz/AdminDashboard-BookingWithTimeslot
aa34fef7bc0e1f8cabb602adc6d69af925436e5d
[ "MIT" ]
null
null
null
booking.py
kurkurzz/AdminDashboard-BookingWithTimeslot
aa34fef7bc0e1f8cabb602adc6d69af925436e5d
[ "MIT" ]
null
null
null
booking.py
kurkurzz/AdminDashboard-BookingWithTimeslot
aa34fef7bc0e1f8cabb602adc6d69af925436e5d
[ "MIT" ]
null
null
null
import datetime as dt class Booking: def __init__(self): self.user_id = '' self.name ='' self.pet_name = '' self.time_slot = 0 self.id = '' self.phone_number = '' def to_dict(self): return { 'name' : self.name, 'petname' : self.pe...
31.029412
118
0.559242
129
1,055
4.364341
0.317829
0.085258
0.078153
0.079929
0
0
0
0
0
0
0
0.001377
0.311848
1,055
34
118
31.029412
0.774105
0.027488
0
0
0
0.034483
0.175439
0.044834
0
0
0
0
0
1
0.137931
false
0
0.034483
0.034483
0.310345
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
66b517ab0ecf7dee82c7b5fd1f3ac99536fb011e
1,927
py
Python
launch_notebooks.py
srivnamrata/openvino
aea76984a731fa3e81be9633dc8ffc702fb4e207
[ "Apache-2.0" ]
null
null
null
launch_notebooks.py
srivnamrata/openvino
aea76984a731fa3e81be9633dc8ffc702fb4e207
[ "Apache-2.0" ]
null
null
null
launch_notebooks.py
srivnamrata/openvino
aea76984a731fa3e81be9633dc8ffc702fb4e207
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import subprocess import sys from pathlib import Path import os pythonpath = sys.executable curdir = Path(__file__).parent.resolve() parentdir = curdir.parent # If openvino_env is already activated, launch jupyter lab # This will also start if openvino_env_2 is activated instead of openvino_env...
39.326531
82
0.632071
225
1,927
5.328889
0.422222
0.082569
0.043369
0.06005
0.226022
0.226022
0.190158
0.190158
0.12844
0.12844
0
0.002878
0.278672
1,927
48
83
40.145833
0.859712
0.172289
0
0.282051
0
0
0.414097
0.041536
0
0
0
0
0
1
0
false
0
0.102564
0
0.102564
0.051282
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
66b64a14727f525c1e5bbd7f0c1785592ad8eed7
1,143
py
Python
update_last_date.py
ankschoubey/testblog
f74e93f0f85edaee9c5adbe402e8e4a5252cc64d
[ "Apache-2.0" ]
1
2021-07-26T00:58:53.000Z
2021-07-26T00:58:53.000Z
update_last_date.py
ankschoubey/testblog
f74e93f0f85edaee9c5adbe402e8e4a5252cc64d
[ "Apache-2.0" ]
15
2020-03-28T05:27:53.000Z
2022-01-07T17:44:08.000Z
update_last_date.py
ankschoubey/testblog
f74e93f0f85edaee9c5adbe402e8e4a5252cc64d
[ "Apache-2.0" ]
3
2021-05-08T19:59:02.000Z
2021-05-11T17:14:45.000Z
import os.path, os, time from datetime import datetime def getLastUpdatedTime(file: str): return datetime.fromtimestamp(os.path.getmtime(file)).isoformat() def updatePost(postUrl: str) -> None: lastUpdatedTime = getLastUpdatedTime(postUrl) prefix = "last_modified_at" string = f"{prefix}: {lastUpdated...
30.078947
69
0.601925
132
1,143
5.189394
0.416667
0.026277
0.070073
0.052555
0
0
0
0
0
0
0
0.007203
0.271216
1,143
38
70
30.078947
0.815126
0.047244
0
0
0
0
0.069982
0
0
0
0
0
0
1
0.074074
false
0
0.148148
0.037037
0.296296
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
66baa831bc3a0b5f4c002eec9ab7e86c9dd317b9
4,578
py
Python
PythonCodes/ScientificPlotting/FigGen_Py_wolfel/Fig3.py
Nicolucas/C-Scripts
2608df5c2e635ad16f422877ff440af69f98f960
[ "MIT" ]
null
null
null
PythonCodes/ScientificPlotting/FigGen_Py_wolfel/Fig3.py
Nicolucas/C-Scripts
2608df5c2e635ad16f422877ff440af69f98f960
[ "MIT" ]
null
null
null
PythonCodes/ScientificPlotting/FigGen_Py_wolfel/Fig3.py
Nicolucas/C-Scripts
2608df5c2e635ad16f422877ff440af69f98f960
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt plt.style.use('science') import os, sys, time sys.path.insert(0,"/import/freenas-m-03-geodynamics/jhayek/petsc-3.12.5/lib/petsc/bin/") sys.path.insert(0,"/import/freenas-m-03-geodynamics/jhayek/TEAR/se2wave/utils/python") sys.path.insert(0,"/import/freenas-m-03-geod...
41.243243
159
0.68851
568
4,578
5.454225
0.382042
0.054874
0.036152
0.041317
0.420917
0.394448
0.229826
0.197224
0.162363
0.137831
0
0.053301
0.106597
4,578
111
160
41.243243
0.704156
0.042377
0
0.029851
0
0.089552
0.347431
0.310794
0
0
0
0
0
1
0
false
0
0.283582
0
0.283582
0.014925
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
66bba8495cc9b2de4fa5d89e4f271bf43563f4b0
3,560
py
Python
setup.py
fkie/rosrepo
13cdf89e32f0c370d106a61540b0cd102675daf9
[ "Apache-2.0" ]
5
2016-09-06T08:02:10.000Z
2018-06-10T20:45:21.000Z
setup.py
fkie/rosrepo
13cdf89e32f0c370d106a61540b0cd102675daf9
[ "Apache-2.0" ]
2
2019-03-11T21:44:50.000Z
2020-03-17T09:20:47.000Z
setup.py
fkie/rosrepo
13cdf89e32f0c370d106a61540b0cd102675daf9
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # # ROSREPO # Manage ROS workspaces with multiple Gitlab repositories # # Author: Timo Röhling # # Copyright 2016 Fraunhofer FKIE # # 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 a...
40
129
0.692416
455
3,560
5.30989
0.47033
0.017384
0.034768
0.01904
0.10596
0.083609
0.083609
0.083609
0.054636
0.054636
0
0.014721
0.198596
3,560
88
130
40.454545
0.832107
0.343258
0
0.057692
0
0
0.324078
0.03731
0
0
0
0
0.019231
1
0
false
0
0.115385
0
0.115385
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
66bcb0ae9b3366b6b0c297fee8c32430261239e3
2,948
py
Python
structural/decorator_and_proxy/example/proxy.py
BruceWW/python_designer_pattern
c5f8b5ee32c8984401b4a217fa35364170331063
[ "Apache-2.0" ]
1
2020-08-29T09:17:12.000Z
2020-08-29T09:17:12.000Z
structural/decorator_and_proxy/example/proxy.py
BruceWW/python_design_pattern
c5f8b5ee32c8984401b4a217fa35364170331063
[ "Apache-2.0" ]
null
null
null
structural/decorator_and_proxy/example/proxy.py
BruceWW/python_design_pattern
c5f8b5ee32c8984401b4a217fa35364170331063
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # @Date : 2020/8/30 # @Author : Bruce Liu /Lin Luo # @Mail : 15869300264@163.com class Card(object): """ 卡片类 """ def __init__(self, name: str, limited: bool = False, limited_num: int = 100000, surplus: int = 0): """ 初始化一张卡 :param li...
27.045872
129
0.587517
352
2,948
4.698864
0.272727
0.079807
0.054414
0.055623
0.340387
0.157195
0.120919
0.120919
0.120919
0.073761
0
0.062317
0.303256
2,948
108
130
27.296296
0.742941
0.190638
0
0.255319
0
0
0.189016
0.038444
0
0
0
0
0
1
0.085106
false
0
0
0
0.191489
0.212766
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
66bd2091216a58b01f3847f7b8145c69c89e49b7
13,057
py
Python
macro_benchmark/SegLink/seglink/unit_tests.py
songhappy/ai-matrix
901078e480c094235c721c49f8141aec7a84e70e
[ "Apache-2.0" ]
180
2018-09-20T07:27:40.000Z
2022-03-19T07:55:42.000Z
macro_benchmark/SegLink/seglink/unit_tests.py
songhappy/ai-matrix
901078e480c094235c721c49f8141aec7a84e70e
[ "Apache-2.0" ]
80
2018-09-26T18:55:56.000Z
2022-02-10T02:03:26.000Z
macro_benchmark/SegLink/seglink/unit_tests.py
songhappy/ai-matrix
901078e480c094235c721c49f8141aec7a84e70e
[ "Apache-2.0" ]
72
2018-08-30T00:49:15.000Z
2022-02-15T23:22:40.000Z
import math import os import tensorflow as tf import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import ops import utils import model_fctd import data import config import visualizations as vis FLAGS = tf.app.flags.FLAGS def test_encode_decode_synth_data(): batch_size = 50...
34.726064
103
0.635138
1,943
13,057
3.978899
0.156459
0.02975
0.00996
0.011383
0.372914
0.328289
0.266848
0.220929
0.194671
0.170871
0
0.027797
0.234051
13,057
375
104
34.818667
0.745225
0.10324
0
0.249097
0
0
0.06608
0.004055
0
0
0
0.002667
0
1
0.039711
false
0.00361
0.046931
0
0.093863
0.025271
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
66bff38e64bc42b7572591b13e17cd3a431e4073
1,007
py
Python
SoftLayer/CLI/file/duplicate_convert_status.py
ko101/softlayer-python
f4cc9fa2eb01d97c0e890907ef6735390f1a5b10
[ "MIT" ]
null
null
null
SoftLayer/CLI/file/duplicate_convert_status.py
ko101/softlayer-python
f4cc9fa2eb01d97c0e890907ef6735390f1a5b10
[ "MIT" ]
null
null
null
SoftLayer/CLI/file/duplicate_convert_status.py
ko101/softlayer-python
f4cc9fa2eb01d97c0e890907ef6735390f1a5b10
[ "MIT" ]
null
null
null
"""Get status for split or move completed percentage of a given file duplicate volume.""" # :license: MIT, see LICENSE for more details. import click import SoftLayer from SoftLayer.CLI import environment from SoftLayer.CLI import formatting @click.command(cls=SoftLayer.CLI.command.SLCommand, epilog="...
32.483871
112
0.713009
119
1,007
5.966387
0.445378
0.107042
0.050704
0.071831
0.291549
0.291549
0.291549
0.291549
0.291549
0.291549
0
0
0.191658
1,007
30
113
33.566667
0.872236
0.211519
0
0
0
0
0.284802
0.07152
0
0
0
0
0
1
0.05
false
0.05
0.2
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
66c4abe639069bea0f557f4dba81d69a1839cf18
392
py
Python
apps/saas/forms.py
lucaslucyk/sigec
cdf65868e2f8ead35b005603611fcd20446633c7
[ "MIT" ]
null
null
null
apps/saas/forms.py
lucaslucyk/sigec
cdf65868e2f8ead35b005603611fcd20446633c7
[ "MIT" ]
7
2020-02-12T03:10:01.000Z
2021-06-10T19:30:50.000Z
apps/saas/forms.py
lucaslucyk/sigec
cdf65868e2f8ead35b005603611fcd20446633c7
[ "MIT" ]
null
null
null
from django import forms #from pagedown.widgets import PagedownWidget from apps.saas.models import Offer class OfferForm(forms.ModelForm): #content= forms.CharField(widget=PagedownWidget(show_preview=False)) #publish= forms.DateField(widget=forms.SelectDateWidget) class Meta: model = Offer fields= [ "tipo_...
21.777778
69
0.742347
44
392
6.568182
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.145408
392
18
70
21.777778
0.862687
0.420918
0
0
0
0
0.191111
0
0
0
0
0
0
1
0
false
0
0.166667
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
66c7e494275971e9a3a3aa777ced7402edea752a
1,237
py
Python
src/test.py
williamyang1991/TET-GAN
bdfca141fc14c5917fd9be8d2bc23870f9ad3288
[ "MIT" ]
86
2019-01-02T06:20:09.000Z
2022-03-23T01:16:32.000Z
src/test.py
williamyang1991/TET-GAN
bdfca141fc14c5917fd9be8d2bc23870f9ad3288
[ "MIT" ]
5
2019-01-22T06:18:26.000Z
2021-12-16T02:01:34.000Z
src/test.py
williamyang1991/TET-GAN
bdfca141fc14c5917fd9be8d2bc23870f9ad3288
[ "MIT" ]
24
2019-01-03T09:36:54.000Z
2021-12-14T10:04:11.000Z
from options import TestOptions import torch from models import TETGAN from utils import load_image, to_data, to_var, visualize, save_image import os #os.environ["CUDA_VISIBLE_DEVICES"] = "0" def main(): # parse options parser = TestOptions() opts = parser.parse() # data loader print('--- load dat...
25.770833
68
0.609539
161
1,237
4.490683
0.329193
0.049793
0.049793
0.055325
0
0
0
0
0
0
0
0.010881
0.257074
1,237
47
69
26.319149
0.775843
0.066289
0
0.166667
0
0
0.06087
0
0
0
0
0
0
1
0.027778
false
0
0.138889
0
0.166667
0.111111
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
66ce81273371c8d4fdeb7dac39c7d81c55ecac89
5,962
py
Python
EQUATIONS/FOR_RESOLUTION_STUDY/BuoyancyResolutionStudy.py
mmicromegas/ransX
2faaa786e00cfd14dce0e18f0793cd0252428d2a
[ "BSD-2-Clause" ]
4
2019-04-22T11:43:47.000Z
2020-09-16T00:28:15.000Z
EQUATIONS/FOR_RESOLUTION_STUDY/BuoyancyResolutionStudy.py
mmicromegas/ransX
2faaa786e00cfd14dce0e18f0793cd0252428d2a
[ "BSD-2-Clause" ]
34
2019-07-01T09:11:00.000Z
2022-03-30T13:35:43.000Z
EQUATIONS/FOR_RESOLUTION_STUDY/BuoyancyResolutionStudy.py
mmicromegas/ransX
2faaa786e00cfd14dce0e18f0793cd0252428d2a
[ "BSD-2-Clause" ]
1
2020-09-16T00:28:17.000Z
2020-09-16T00:28:17.000Z
import numpy as np from scipy import integrate import matplotlib.pyplot as plt from UTILS.Calculus import Calculus from UTILS.SetAxisLimit import SetAxisLimit from UTILS.Tools import Tools from UTILS.Errors import Errors import sys # Theoretical background https://arxiv.org/abs/1401.5176 # Mocak, Meakin, Viallet, Ar...
32.939227
122
0.548306
767
5,962
4.219035
0.324641
0.016069
0.050989
0.061187
0.226823
0.203956
0.174289
0.073548
0.073548
0.073548
0
0.028919
0.309795
5,962
180
123
33.122222
0.757473
0.176954
0
0.110092
0
0
0.058944
0.012939
0
0
0
0
0
1
0.027523
false
0
0.073395
0
0.119266
0.018349
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
66d42f1fdcd91d122cd938babcc3fe924510d04e
2,147
py
Python
src/admin/godmode/actions/base.py
aimanow/sft
dce87ffe395ae4bd08b47f28e07594e1889da819
[ "Apache-2.0" ]
280
2016-07-19T09:59:02.000Z
2022-03-05T19:02:48.000Z
godmode/actions/base.py
YAR-SEN/GodMode2
d8a79b45c6d8b94f3d2af3113428a87d148d20d0
[ "WTFPL" ]
3
2016-07-20T05:36:49.000Z
2018-12-10T16:16:19.000Z
godmode/actions/base.py
YAR-SEN/GodMode2
d8a79b45c6d8b94f3d2af3113428a87d148d20d0
[ "WTFPL" ]
20
2016-07-20T10:51:34.000Z
2022-01-12T23:15:22.000Z
import json from flask import g, request, render_template from flask.views import View from godmode import logging from godmode.acl import ACL from godmode.audit_log import audit_log from godmode.exceptions import AccessDenied log = logging.getLogger(__name__) class BaseAction(View): name = None title = No...
26.182927
98
0.583605
268
2,147
4.481343
0.324627
0.058285
0.046628
0.02831
0.084929
0.043297
0
0
0
0
0
0
0.305077
2,147
81
99
26.506173
0.80496
0
0
0.063492
0
0
0.058221
0.01211
0
0
0
0
0
1
0.095238
false
0
0.111111
0.031746
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
66d880a9b64fd73b407a720c9fa6817d2609e5bf
16,001
py
Python
forever/Warframe.py
dss285/4ever
bd6f70f92d76d43342da401562f2c504adaf3867
[ "MIT" ]
null
null
null
forever/Warframe.py
dss285/4ever
bd6f70f92d76d43342da401562f2c504adaf3867
[ "MIT" ]
null
null
null
forever/Warframe.py
dss285/4ever
bd6f70f92d76d43342da401562f2c504adaf3867
[ "MIT" ]
null
null
null
import discord import asyncio import time import aiohttp import re import pathlib import os import json from bs4 import BeautifulSoup from datetime import datetime from models.UpdatedMessage import UpdatedMessage from models.EmbedTemplate import EmbedTemplate from models.BotMention import BotMention from f...
41.778068
159
0.645272
2,026
16,001
4.965943
0.15153
0.021867
0.017493
0.009741
0.302356
0.258026
0.215088
0.161515
0.134082
0.114999
0
0.013417
0.1988
16,001
382
160
41.887435
0.771373
0.001562
0
0.244624
0
0.021505
0.194086
0.055481
0
0
0
0
0
1
0.086022
false
0
0.037634
0.010753
0.206989
0.008065
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