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
e4fbf9c4787bd6c823e79265ebbbdf508f8294f4
4,200
py
Python
src/openclimategis/util/ncconv/experimental/ocg_converter/csv_.py
Peshal1067/OpenClimateGIS
297db6ae1f6dd8459ede6bed905c8d85bd93c5d6
[ "BSD-3-Clause" ]
3
2015-04-23T09:09:04.000Z
2020-02-26T17:40:19.000Z
src/openclimategis/util/ncconv/experimental/ocg_converter/csv_.py
arthur-e/OpenClimateGIS
297db6ae1f6dd8459ede6bed905c8d85bd93c5d6
[ "BSD-3-Clause" ]
null
null
null
src/openclimategis/util/ncconv/experimental/ocg_converter/csv_.py
arthur-e/OpenClimateGIS
297db6ae1f6dd8459ede6bed905c8d85bd93c5d6
[ "BSD-3-Clause" ]
2
2017-05-30T10:27:36.000Z
2020-11-09T13:52:58.000Z
import io import zipfile import csv from util.ncconv.experimental.ocg_converter.subocg_converter import SubOcgConverter class CsvConverter(SubOcgConverter): # __headers__ = ['OCGID','GID','TIME','LEVEL','VALUE','AREA_M2','WKT','WKB'] def __init__(self,*args,**kwds): self.as_wkt = kwds.pop('as_wkt'...
37.837838
97
0.553095
492
4,200
4.534553
0.247967
0.039444
0.019722
0.028238
0.231286
0.195876
0.15688
0.15688
0.086957
0.086957
0
0.004759
0.299524
4,200
111
98
37.837838
0.753569
0.358095
0
0.112903
0
0
0.047493
0
0
0
0
0
0
1
0.080645
false
0
0.064516
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
9001723e3ad1821cbe597698ec69edc8b0731984
839
py
Python
uninas/modules/modules/cnn.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
18
2020-11-22T16:03:08.000Z
2022-03-15T12:11:46.000Z
uninas/modules/modules/cnn.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
2
2022-01-04T08:10:17.000Z
2022-01-05T08:13:14.000Z
uninas/modules/modules/cnn.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
6
2021-03-08T07:08:52.000Z
2022-02-24T12:00:43.000Z
import torch import torch.nn as nn class SqueezeModule(nn.Module): def forward(self, x: torch.Tensor) -> torch.Tensor: return x.squeeze() class GapSqueezeModule(nn.Module): """ global average pooling and squeezing """ def __init__(self): super().__init__() self.gap = nn.Adaptive...
27.064516
95
0.640048
113
839
4.575221
0.318584
0.12766
0.081238
0.087041
0.237911
0.237911
0.237911
0.237911
0.166344
0
0
0.004594
0.221692
839
30
96
27.966667
0.787136
0.042908
0
0.25
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.1
0.1
0.65
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
1
0
0
0
0
1
0
0
2
9003b0f6d049c9acbb898890fc3e7195ecd16b28
1,634
py
Python
arcade/gui/examples/anchor_widgets.py
akapkotel/arcade
6e43ec53e7bfa3dee1aa574404794e3695aad381
[ "MIT" ]
null
null
null
arcade/gui/examples/anchor_widgets.py
akapkotel/arcade
6e43ec53e7bfa3dee1aa574404794e3695aad381
[ "MIT" ]
1
2022-03-21T06:24:29.000Z
2022-03-21T06:24:29.000Z
arcade/gui/examples/anchor_widgets.py
Ibrahim2750mi/arcade
bf3229e64117931bffb8e50926a996a7a8fc9b8b
[ "MIT" ]
null
null
null
""" Example shows how to use UIAnchorWidget to position widgets on screen. Dummy widgets indicate hovered, pressed and clicked. """ import arcade from arcade.gui import UIManager from arcade.gui.widgets import UIDummy from arcade.gui.widgets.layout import UIAnchorLayout class UIMockup(arcade.Window): def __init_...
24.38806
70
0.570991
184
1,634
4.891304
0.353261
0.085556
0.124444
0.14
0.361111
0.361111
0.322222
0.24
0.24
0.24
0
0.010743
0.316401
1,634
66
71
24.757576
0.794987
0.075275
0
0.387755
0
0
0.054558
0
0
0
0
0
0
1
0.040816
false
0
0.081633
0
0.142857
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
90041b2eae192a57fb04bf6a09bec2f9aae7dce1
3,897
py
Python
tools/e2e_inference.py
nanit/deep-high-resolution-net.pytorch
17226df8effda518c47355e85f4733638c20297a
[ "MIT" ]
null
null
null
tools/e2e_inference.py
nanit/deep-high-resolution-net.pytorch
17226df8effda518c47355e85f4733638c20297a
[ "MIT" ]
2
2021-09-23T12:59:27.000Z
2021-11-01T12:21:51.000Z
tools/e2e_inference.py
nanit/deep-high-resolution-net.pytorch
17226df8effda518c47355e85f4733638c20297a
[ "MIT" ]
null
null
null
import os import glob import pickle import sys import tensorflow as tf from numba import cuda from python_tools.OSUtils import ensure_dir from offline_predict import get_boxes_from_detection_predictions_data, convert_boxes_to_bboxes, predict_on_image_list, load_skeleton_model DETECTION_RESEARCH_FOLDER = os.path.expand...
45.847059
138
0.744419
483
3,897
5.569358
0.271222
0.111524
0.036431
0.039033
0.271004
0.240149
0.139777
0.055019
0
0
0
0.00342
0.17475
3,897
84
139
46.392857
0.833022
0.020272
0
0
0
0
0.155865
0.101023
0
0
0
0
0
1
0.048387
false
0
0.145161
0
0.225806
0.064516
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
9007054fb0674671d547ac9d0adee85e1c24f33c
1,234
py
Python
analytics/extract/bare/funds-explorer/scrap_ranking.py
vicmattos/data-invest
4318a33117583bf492b45c69c957fd0ea2c455e1
[ "MIT" ]
null
null
null
analytics/extract/bare/funds-explorer/scrap_ranking.py
vicmattos/data-invest
4318a33117583bf492b45c69c957fd0ea2c455e1
[ "MIT" ]
null
null
null
analytics/extract/bare/funds-explorer/scrap_ranking.py
vicmattos/data-invest
4318a33117583bf492b45c69c957fd0ea2c455e1
[ "MIT" ]
null
null
null
#!/usr/bin/python import os import csv import time from datetime import datetime import requests from bs4 import BeautifulSoup url = 'https://www.fundsexplorer.com.br/ranking' # Data Cleansing # 'R$' => '' # '%' => '' # '.0' => '' # '.' => '' # ',' => '.' # 'N/A' => '' print("Starting...{}".format(datetime.now())...
20.915254
147
0.627229
177
1,234
4.299435
0.435028
0.036794
0.04205
0.031537
0.204993
0.204993
0.204993
0.204993
0.204993
0.204993
0
0.003784
0.143436
1,234
58
148
21.275862
0.716178
0.077796
0
0.125
0
0
0.117699
0
0
0
0
0
0
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
9009e3424db2d10a8ac51689c842cea2498a6040
14,546
py
Python
stentseg/apps/_3DPointSelector.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
1
2020-08-28T16:34:10.000Z
2020-08-28T16:34:10.000Z
stentseg/apps/_3DPointSelector.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
null
null
null
stentseg/apps/_3DPointSelector.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
1
2021-04-25T06:59:36.000Z
2021-04-25T06:59:36.000Z
""" Module 3D Point Selector Provides functionality view slices and to select points in multiplanar reconstructions. """ import os, time, sys import numpy as np import visvis as vv from visvis.utils.pypoints import Point, Pointset, Aarray import OpenGL.GL as gl import OpenGL.GLU as glu class VolViewer: ...
36.732323
110
0.564691
1,735
14,546
4.639769
0.192507
0.016522
0.01677
0.017888
0.257267
0.178137
0.157516
0.136894
0.136894
0.096398
0
0.034052
0.323663
14,546
395
111
36.825316
0.784204
0.120033
0
0.173432
0
0
0.01731
0
0
0
0
0
0
1
0.066421
false
0
0.02214
0.00369
0.121771
0.01476
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
900c0665baf28282fa05f41faa6b983f942bdbf2
343
py
Python
crossasr/estimator.py
mhilmiasyrofi/CrossASRv2
202b9a7caadf5f8d6f115f776526960af35a73a3
[ "MIT" ]
3
2021-05-12T02:48:06.000Z
2021-12-21T14:45:56.000Z
crossasr/estimator.py
mhilmiasyrofi/CrossASRv2
202b9a7caadf5f8d6f115f776526960af35a73a3
[ "MIT" ]
null
null
null
crossasr/estimator.py
mhilmiasyrofi/CrossASRv2
202b9a7caadf5f8d6f115f776526960af35a73a3
[ "MIT" ]
1
2021-06-14T11:15:35.000Z
2021-06-14T11:15:35.000Z
class Estimator: def __init__(self, name:str): self.name = name def getName(self) -> str : return self.name def setName(self, name:str): self.name = name def fit(self, X:[str], y:[int]): raise NotImplementedError() def predict(self, X:[str]): raise...
21.4375
36
0.571429
41
343
4.682927
0.414634
0.208333
0.114583
0.15625
0.270833
0.270833
0.270833
0
0
0
0
0
0.303207
343
15
37
22.866667
0.803347
0
0
0.363636
0
0
0
0
0
0
0
0
0
1
0.454545
false
0
0
0.090909
0.636364
0
0
0
0
null
1
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
1
0
0
0
0
1
0
0
3
900c0768bdb748b6c9e90f7a675de1895a6d4acc
4,386
py
Python
app/api/V1/views/auth_endpoints.py
eduhmik/Store-Manager-api
50395d39758800784fbd0b3e516b8bedc900cdeb
[ "MIT" ]
null
null
null
app/api/V1/views/auth_endpoints.py
eduhmik/Store-Manager-api
50395d39758800784fbd0b3e516b8bedc900cdeb
[ "MIT" ]
8
2018-10-24T01:33:32.000Z
2019-10-21T17:36:01.000Z
app/api/V1/views/auth_endpoints.py
eduhmik/Store-Manager-api
50395d39758800784fbd0b3e516b8bedc900cdeb
[ "MIT" ]
1
2018-10-19T21:57:48.000Z
2018-10-19T21:57:48.000Z
from flask import Flask, request, jsonify, Blueprint, json, make_response from flask_restplus import Resource, reqparse, Api, Namespace, fields from ..models.user_model import User api = Namespace('Register Endpoint', description='A collection of register endpoints for the user model') ns = Namespace('Users Endpoints...
33.227273
105
0.559052
452
4,386
5.303097
0.280973
0.045056
0.060075
0.083438
0.347101
0.27451
0.206508
0.173133
0.111389
0.057572
0
0.009015
0.317145
4,386
131
106
33.480916
0.791319
0
0
0.367925
0
0
0.196797
0
0
0
0
0
0
0
null
null
0.084906
0.028302
null
null
0.009434
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
1
0
0
1
0
0
0
0
0
2
900d82f05310f821f29ddc9642e0427552a38aae
2,687
py
Python
wolfram/wolfram.py
Wyn10/aikaterna-cogs
a7fd5930f90b4046296ce98406639219c38302a7
[ "MIT" ]
null
null
null
wolfram/wolfram.py
Wyn10/aikaterna-cogs
a7fd5930f90b4046296ce98406639219c38302a7
[ "MIT" ]
null
null
null
wolfram/wolfram.py
Wyn10/aikaterna-cogs
a7fd5930f90b4046296ce98406639219c38302a7
[ "MIT" ]
1
2019-03-30T05:18:42.000Z
2019-03-30T05:18:42.000Z
import os import aiohttp from discord.ext import commands import xml.etree.ElementTree as ET from cogs.utils.dataIO import dataIO from .utils import checks from .utils.chat_formatting import escape_mass_mentions from .utils.chat_formatting import box from __main__ import send_cmd_help class Wolfram: def __init__(...
32.373494
100
0.593971
331
2,687
4.691843
0.398792
0.030908
0.036703
0.04443
0.151964
0.079845
0
0
0
0
0
0.003646
0.285448
2,687
82
101
32.768293
0.805208
0
0
0.045455
0
0.015152
0.183886
0.030069
0
0
0
0
0
1
0.060606
false
0.030303
0.136364
0
0.212121
0.030303
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
900e83820d1dd64bbe34d301bee0ba27a36ecb07
176
py
Python
Servers/ProbabilisticServer.py
MartinHex/master-thesis
b5077d9acce60fd42467f73df6e39c61fd3e19b2
[ "MIT" ]
null
null
null
Servers/ProbabilisticServer.py
MartinHex/master-thesis
b5077d9acce60fd42467f73df6e39c61fd3e19b2
[ "MIT" ]
2
2022-02-22T11:48:21.000Z
2022-02-28T15:49:47.000Z
Servers/ProbabilisticServer.py
MartinHex/master-thesis
b5077d9acce60fd42467f73df6e39c61fd3e19b2
[ "MIT" ]
null
null
null
from abc import ABC,abstractmethod from Servers.ABCServer import ABCServer class ProbabilisticServer(ABCServer): @abstractmethod def sample_model(self): pass
19.555556
39
0.767045
19
176
7.052632
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.181818
176
8
40
22
0.930556
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.166667
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
5
900fb0840db60165c43f29441d88fb00f6f55c09
718
py
Python
fastapi_crud/fastapicrud.py
miikapo/fastapi-crud
d8517d93068b0e71fb114a695a41f48570387b9a
[ "Apache-2.0" ]
5
2021-11-02T20:13:41.000Z
2022-03-19T00:01:53.000Z
fastapi_crud/fastapicrud.py
miikapo/fastapi-crud
d8517d93068b0e71fb114a695a41f48570387b9a
[ "Apache-2.0" ]
null
null
null
fastapi_crud/fastapicrud.py
miikapo/fastapi-crud
d8517d93068b0e71fb114a695a41f48570387b9a
[ "Apache-2.0" ]
null
null
null
from fastapi import Depends from sqlalchemy.ext.asyncio import AsyncEngine from sqlalchemy.orm import sessionmaker from typing import AsyncGenerator from fastapi_crud.session import Session from fastapi_crud.router import ModelRouter from fastapi_crud.types import Model class FastapiCRUD: def __init__(self, engi...
32.636364
66
0.754875
86
718
6.127907
0.372093
0.104364
0.085389
0
0
0
0
0
0
0
0
0
0.17688
718
21
67
34.190476
0.891709
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.4375
0.0625
0.6875
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
1
0
0
0
0
1
900fd7a3396de18f3541a06d832b5444ad752082
671
py
Python
migrations/versions/98f3e3ad195c_update_blog_to_add_a_title.py
Josephat-n/myBlog
d2e3b368617cd3ca55b6bd40e6950122967e1d9f
[ "MIT" ]
null
null
null
migrations/versions/98f3e3ad195c_update_blog_to_add_a_title.py
Josephat-n/myBlog
d2e3b368617cd3ca55b6bd40e6950122967e1d9f
[ "MIT" ]
null
null
null
migrations/versions/98f3e3ad195c_update_blog_to_add_a_title.py
Josephat-n/myBlog
d2e3b368617cd3ca55b6bd40e6950122967e1d9f
[ "MIT" ]
null
null
null
"""update blog to add a title. Revision ID: 98f3e3ad195c Revises: 2d98c5165674 Create Date: 2019-12-02 22:58:10.377423 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '98f3e3ad195c' down_revision = '2d98c5165674' branch_labels = None depends_on = None def upg...
23.137931
84
0.690015
86
671
5.325581
0.616279
0.058952
0.091703
0.100437
0.19214
0.19214
0.19214
0.19214
0
0
0
0.103074
0.175857
671
28
85
23.964286
0.725136
0.460507
0
0
0
0
0.135385
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
901066d43a75d83ccca11050c805f23f07e56a57
2,691
py
Python
message/views.py
ThusharaX/mumbleapi
8435fe9d86869cce81961f42c9860fa3810c171b
[ "Apache-2.0" ]
187
2021-04-24T14:49:44.000Z
2022-03-31T14:25:22.000Z
message/views.py
ThusharaX/mumbleapi
8435fe9d86869cce81961f42c9860fa3810c171b
[ "Apache-2.0" ]
119
2021-04-24T18:08:43.000Z
2022-01-09T00:57:19.000Z
message/views.py
ThusharaX/mumbleapi
8435fe9d86869cce81961f42c9860fa3810c171b
[ "Apache-2.0" ]
174
2021-04-24T15:57:23.000Z
2022-03-11T02:09:04.000Z
from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework import status from users.models import UserProfile from .serializers import MessageSerializer , ThreadSerializer from .models import ...
39
94
0.687105
309
2,691
5.873786
0.271845
0.077135
0.057851
0.077135
0.287603
0.215978
0.176309
0.076033
0.076033
0
0
0.00141
0.209216
2,691
69
95
39
0.851504
0
0
0.338462
0
0
0.079866
0
0
0
0
0
0
1
0.061538
false
0
0.123077
0
0.338462
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
9010af2b84b0a8a7a8c133b624651330f5e4d485
3,691
py
Python
widgets/dialogs/transactions_editor.py
redstorm45/money_analyst
9ccf8aa4cd7bad7aff21a82ce4219406009f126a
[ "Apache-2.0" ]
null
null
null
widgets/dialogs/transactions_editor.py
redstorm45/money_analyst
9ccf8aa4cd7bad7aff21a82ce4219406009f126a
[ "Apache-2.0" ]
null
null
null
widgets/dialogs/transactions_editor.py
redstorm45/money_analyst
9ccf8aa4cd7bad7aff21a82ce4219406009f126a
[ "Apache-2.0" ]
null
null
null
import PyQt5.QtWidgets as Qtw import PyQt5.QtCore as QtCore from widgets.labels import LabelsWidget DATE_FORMAT = 'yyyy-MM-dd' class TransactionDialog(Qtw.QDialog): """ A dialog used to edit a transaction """ def __init__(self, parent, model_cat, desc='', category=0, amount=0, date=''): supe...
38.051546
83
0.648605
460
3,691
5
0.265217
0.107826
0.06087
0.06
0.12087
0.026087
0
0
0
0
0
0.014904
0.236521
3,691
96
84
38.447917
0.800568
0.009483
0
0.12987
0
0
0.040934
0
0
0
0
0
0
1
0.051948
false
0
0.038961
0
0.12987
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
9010dcd0fdbf2d57ab797fb8bac064a9780ede3f
20,416
py
Python
octue/cloud/pub_sub/service.py
octue/octue-sdk-python
31c6e9358d3401ca708f5b3da702bfe3be3e52ce
[ "MIT" ]
5
2020-10-01T12:43:10.000Z
2022-03-14T17:26:25.000Z
octue/cloud/pub_sub/service.py
octue/octue-sdk-python
31c6e9358d3401ca708f5b3da702bfe3be3e52ce
[ "MIT" ]
322
2020-06-24T15:55:22.000Z
2022-03-30T11:49:28.000Z
octue/cloud/pub_sub/service.py
octue/octue-sdk-python
31c6e9358d3401ca708f5b3da702bfe3be3e52ce
[ "MIT" ]
null
null
null
import base64 import concurrent.futures import json import logging import sys import time import traceback as tb import uuid from google.api_core import retry from google.cloud import pubsub_v1 import octue.exceptions import twined.exceptions from octue.cloud.credentials import GCPCredentialsManager from octue.cloud.p...
43.162791
208
0.653556
2,403
20,416
5.40283
0.161049
0.013171
0.008473
0.009859
0.257953
0.181006
0.141262
0.109066
0.097666
0.091196
0
0.003635
0.272335
20,416
472
209
43.254237
0.870288
0.309218
0
0.180851
0
0.003546
0.119457
0.018928
0
0
0
0
0
1
0.056738
false
0.003546
0.070922
0.003546
0.166667
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
90124bdf01042879c8d23bc0de43bbfc19264166
1,978
py
Python
Tareas/DistanciaGrafos.py
A01746540/SEM9Algoritmos
2aaf1a344413dfbece77022a5b34e0c5318aa5e5
[ "MIT" ]
null
null
null
Tareas/DistanciaGrafos.py
A01746540/SEM9Algoritmos
2aaf1a344413dfbece77022a5b34e0c5318aa5e5
[ "MIT" ]
null
null
null
Tareas/DistanciaGrafos.py
A01746540/SEM9Algoritmos
2aaf1a344413dfbece77022a5b34e0c5318aa5e5
[ "MIT" ]
null
null
null
from collections import defaultdict class Graph: metro = ['El Rosario', 'Instituto del Petroleo', 'Tacuba', 'Hidalgo', 'Tacubaya', 'Deportivo 18 de Marzo', 'Centro Medico', 'Mixcoac', 'Balderas', 'Bellas Artes', 'Guerrero', 'Martin Carrera', 'Zapata', 'Chabacano', 'Salto del...
25.688312
110
0.517695
289
1,978
3.529412
0.408305
0.196078
0.011765
0.021569
0
0
0
0
0
0
0
0.096154
0.290192
1,978
77
111
25.688312
0.630342
0.020222
0
0
0
0
0.183884
0
0
0
0
0
0
1
0.04918
false
0
0.016393
0
0.098361
0.065574
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
9012c72f255c969953043607b7f84aeb3ccb4764
9,807
py
Python
octopus_deploy_swagger_client/models/artifact_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
octopus_deploy_swagger_client/models/artifact_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
octopus_deploy_swagger_client/models/artifact_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Octopus Server API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a Generated by: https://github.com/swagger-api...
27.940171
207
0.597634
1,160
9,807
4.844828
0.118966
0.042705
0.156584
0.13879
0.525979
0.431495
0.414947
0.246797
0.193238
0.04911
0
0.021758
0.311104
9,807
350
208
28.02
0.810095
0.352401
0
0.077922
1
0
0.07597
0
0
0
0
0
0
1
0.168831
false
0
0.019481
0
0.311688
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9012e5a8ed3f5ec28adee161865cc14545390e2d
1,691
py
Python
lab04/submited/utils.py
Battleman/InternetAnalyticsW
005e5de6c0e591be6dc303ec46cc82249e70f666
[ "MIT" ]
null
null
null
lab04/submited/utils.py
Battleman/InternetAnalyticsW
005e5de6c0e591be6dc303ec46cc82249e70f666
[ "MIT" ]
null
null
null
lab04/submited/utils.py
Battleman/InternetAnalyticsW
005e5de6c0e591be6dc303ec46cc82249e70f666
[ "MIT" ]
null
null
null
# ###################### # Some useful utilities. # ###################### import json, os, pickle def listPrettyPrint(l, n): """Prints a list l on n columns to improve readability""" if(n == 5): for a,b,c,d,e in zip(l[::5],l[1::5],l[2::5],l[3::5],l[4::5]): print('{:<22}{:<22}{:<22}{:<22}...
25.621212
69
0.474867
286
1,691
2.793706
0.286713
0.020025
0.022528
0.020025
0.066333
0.032541
0
0
0
0
0
0.040362
0.282082
1,691
65
70
26.015385
0.617792
0.209935
0
0
0
0
0.070492
0.040984
0
0
0
0
0
1
0.147059
false
0
0.029412
0
0.235294
0.147059
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
9012f44f49fd46b9f38512bc6891494632f15f28
489
py
Python
primes/factorisation.py
miloszlakomy/algutils
f83c330a0ca31cdac536de811f447820c70ecb38
[ "MIT" ]
null
null
null
primes/factorisation.py
miloszlakomy/algutils
f83c330a0ca31cdac536de811f447820c70ecb38
[ "MIT" ]
null
null
null
primes/factorisation.py
miloszlakomy/algutils
f83c330a0ca31cdac536de811f447820c70ecb38
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from algutils.primes import cached_primes def factorise(n): if n <= 0: raise ValueError("n must be a positive integer") ps = cached_primes.get_primes_list(min_lim=int(n**.5) + 1) ret = {} for p in ps: if n == 1: break if p**2 > n: # n is prime break i...
13.971429
60
0.492843
83
489
2.843373
0.481928
0.050847
0.033898
0.033898
0.059322
0.059322
0.059322
0
0
0
0
0.039216
0.374233
489
34
61
14.382353
0.732026
0.087935
0
0.190476
0
0
0.063348
0
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.142857
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
901370bb81cfb113acd130dc5b682b50dbdb76b2
1,133
py
Python
NLP/DuSQL-Baseline/text2sql/models/grammar/__init__.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
53
2020-03-31T16:20:53.000Z
2021-11-16T11:48:38.000Z
NLP/DuSQL-Baseline/text2sql/models/grammar/__init__.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
1
2020-04-06T08:10:12.000Z
2020-04-06T08:10:12.000Z
NLP/DuSQL-Baseline/text2sql/models/grammar/__init__.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
53
2020-04-01T01:59:08.000Z
2022-03-14T07:59:58.000Z
# -*- coding:utf8 -*- # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
41.962963
103
0.770521
149
1,133
5.791946
0.637584
0.069525
0.062572
0.086906
0
0
0
0
0
0
0
0.013641
0.15887
1,133
26
104
43.576923
0.89192
0.54722
0
0
0
0
0.257606
0
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
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
1
0
0
0
0
1
9015d694e84b3f0cc392aae6d053e1e708a338df
627
py
Python
verifai/samplers/__init__.py
jst-qaml/VerifAI
d91bc1289d720c055a36fa0e1ad9f68b986ca1a4
[ "BSD-3-Clause" ]
1
2020-07-27T13:32:01.000Z
2020-07-27T13:32:01.000Z
verifai/samplers/__init__.py
shromonag/VerifAI
ace214d1c3282ed5ea63ee3f52457e35f54ebb62
[ "BSD-3-Clause" ]
null
null
null
verifai/samplers/__init__.py
shromonag/VerifAI
ace214d1c3282ed5ea63ee3f52457e35f54ebb62
[ "BSD-3-Clause" ]
null
null
null
from .domain_sampler import SamplingError, SplitSampler from .feature_sampler import FeatureSampler, LateFeatureSampler from .halton import HaltonSampler from .cross_entropy import (CrossEntropySampler, ContinuousCrossEntropySampler, DiscreteCrossEntropySampler) from .random_sampler import RandomSampler from .bayes...
36.882353
79
0.845295
63
627
8.301587
0.619048
0.099426
0
0
0
0
0
0
0
0
0
0
0.124402
627
16
80
39.1875
0.952641
0.138756
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.071429
0.642857
0
0.642857
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
1
1
1
0
0
0
0
3
90171f9ff5db50b3b195ffb3fb8c3f04d8941fed
159
py
Python
sb3_training/gym-iotmarket/setup.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
sb3_training/gym-iotmarket/setup.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
sb3_training/gym-iotmarket/setup.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='gym_iotmarket', version='0.0.1', install_requires=['gym','scipy','numpy'] # And any other dependencies )
26.5
76
0.685535
21
159
5.095238
0.857143
0
0
0
0
0
0
0
0
0
0
0.022556
0.163522
159
6
77
26.5
0.781955
0.163522
0
0
0
0
0.234848
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
901749f4d47b3e2fe3385b589ae5e10eae1bbab0
13,064
py
Python
mcd2c/cfile/__init__.py
Asdew95/mcd2c
bcec95276a45b4bfd90ece5569246bd5a247368b
[ "Zlib" ]
3
2020-08-18T19:11:39.000Z
2021-06-13T12:16:41.000Z
mcd2c/cfile/__init__.py
Asdew95/mcd2c
bcec95276a45b4bfd90ece5569246bd5a247368b
[ "Zlib" ]
null
null
null
mcd2c/cfile/__init__.py
Asdew95/mcd2c
bcec95276a45b4bfd90ece5569246bd5a247368b
[ "Zlib" ]
2
2021-06-13T12:16:47.000Z
2021-12-07T18:52:43.000Z
# Inspired by https://github.com/cogu/cfile c_indent_char = ' ' def set_indent_char(char): global c_indent_char c_indent_char = char class blank: def __init__(self, num=1): self.indent = 0 #Irrelevant, kept because it simplifies sequences self.num = num def __str__(self): #...
26.770492
79
0.606782
1,714
13,064
4.363477
0.132439
0.052146
0.038775
0.023533
0.526541
0.453403
0.407407
0.354593
0.332799
0.306324
0
0.003921
0.25819
13,064
487
80
26.825462
0.767826
0.063304
0
0.429752
0
0.002755
0.113975
0.039683
0
0
0
0
0
1
0.214876
false
0.002755
0.00551
0.066116
0.606061
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
1
0
0
0
0
0
0
0
1
90179942b479c02a62c0f83dc133fc47dd16d363
906
py
Python
typed_python/compiler/tests/subclass_of_test.py
APrioriInvestments/nativepython
94e6b09d788e49cbe34b9b0d3c948218d7a8dcc5
[ "Apache-2.0" ]
52
2019-04-12T18:07:56.000Z
2019-10-07T10:26:19.000Z
typed_python/compiler/tests/subclass_of_test.py
APrioriInvestments/nativepython
94e6b09d788e49cbe34b9b0d3c948218d7a8dcc5
[ "Apache-2.0" ]
135
2019-04-15T12:52:56.000Z
2019-10-08T18:39:58.000Z
typed_python/compiler/tests/subclass_of_test.py
APrioriInvestments/nativepython
94e6b09d788e49cbe34b9b0d3c948218d7a8dcc5
[ "Apache-2.0" ]
1
2019-04-12T13:03:38.000Z
2019-04-12T13:03:38.000Z
from typed_python import Entrypoint, SubclassOf, Class, Final, Function, ListOf class A(Class): pass class B(A): pass class C(B, Final): pass def test_can_cast_subclass_of_correctly(): @Function def f(c: SubclassOf(C)): return "C" @f.overload def f(c: SubclassOf(B)): ...
18.12
79
0.540839
123
906
3.934959
0.276423
0.020661
0.030992
0.092975
0.243802
0.243802
0
0
0
0
0
0
0.284768
906
49
80
18.489796
0.746914
0
0
0.15625
0
0
0.013245
0
0
0
0
0
0.1875
1
0.1875
false
0.09375
0.03125
0.09375
0.4375
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
1
0
0
0
0
0
1
9017a7257730a81fd99b9ead002708bc4ceba13e
1,442
py
Python
experiments/toy.py
jcrickmer/pyvision
5aea7cd9a85d7d26196c375275e7bf00c27a8ac8
[ "MIT" ]
53
2015-03-10T06:20:50.000Z
2021-06-07T07:34:02.000Z
experiments/toy.py
jcrickmer/pyvision
5aea7cd9a85d7d26196c375275e7bf00c27a8ac8
[ "MIT" ]
1
2016-11-20T14:28:38.000Z
2016-11-20T14:28:38.000Z
experiments/toy.py
jcrickmer/pyvision
5aea7cd9a85d7d26196c375275e7bf00c27a8ac8
[ "MIT" ]
56
2015-02-10T20:49:42.000Z
2021-04-03T05:41:09.000Z
from vision import * from vision.track import alearn, interpolation from vision import visualize from vision.toymaker import * import os import multiprocessing g = Geppetto() b = Rectangle() b = b.linear((300,300), 100) b = b.linear((0,300), 200) b = b.linear((300,0), 300) g.add(b) path = b.groundtruth() pathdict = d...
30.041667
71
0.585298
187
1,442
4.481283
0.438503
0.047733
0.02864
0.026253
0.059666
0.059666
0
0
0
0
0
0.047893
0.276006
1,442
47
72
30.680851
0.754789
0
0
0
0
0
0.104022
0.024965
0
0
0
0
0
0
null
null
0.025641
0.153846
null
null
0.102564
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
1
0
0
0
0
0
0
0
0
1
90192683a9596914db24fa7e2c76ff1a12788127
355
py
Python
angr/engines/soot/statements/goto.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
angr/engines/soot/statements/goto.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
angr/engines/soot/statements/goto.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
import logging from .base import SimSootStmt l = logging.getLogger('angr.engines.soot.statements.goto') class SimSootStmt_Goto(SimSootStmt): def _execute(self): jmp_target = self._get_bb_addr_from_instr(instr=self.stmt.target) self._add_jmp_target(target=jmp_target, ...
25.357143
73
0.704225
45
355
5.288889
0.622222
0.113445
0
0
0
0
0
0
0
0
0
0
0.202817
355
13
74
27.307692
0.840989
0
0
0
0
0
0.09322
0.09322
0
0
0
0
0
1
0.125
false
0
0.25
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
901943c57d651786afa2ce40b989408f3ebb4e7f
979
py
Python
game/entity/player.py
fisher60/pyweek-2021
294b45d768a7e0d85ac67dc4b12384e68fc4f399
[ "MIT" ]
8
2021-03-27T21:20:28.000Z
2021-03-31T08:09:26.000Z
game/entity/player.py
fisher60/pyweek-2021
294b45d768a7e0d85ac67dc4b12384e68fc4f399
[ "MIT" ]
49
2021-03-27T21:18:08.000Z
2021-04-03T02:53:53.000Z
game/entity/player.py
fisher60/pyweek-2021
294b45d768a7e0d85ac67dc4b12384e68fc4f399
[ "MIT" ]
1
2021-04-02T21:58:39.000Z
2021-04-02T21:58:39.000Z
import arcade from ..constants import TILE_SIZE, PLAYER_SCALING from ..utils import Vector class PlayerInventory: keys: int = 0 class Player(arcade.Sprite): def __init__(self, *args, **kwargs): super().__init__( "game/assets/sprites/square.png", PLAYER_SCALING, *args, **kwargs )...
25.763158
77
0.597549
116
979
4.844828
0.431034
0.106762
0.085409
0.080071
0.220641
0.16726
0.124555
0.124555
0.124555
0
0
0.001437
0.28907
979
37
78
26.459459
0.806034
0.051073
0
0
0
0
0.033445
0.033445
0
0
0
0
0
1
0.16
false
0
0.12
0.04
0.44
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
901a2b9dfc7f70764388119a93640679584d1a0d
112
py
Python
scikits/datasmooth/__init__.py
jjstickel/scikit-datasmooth
976ab86998d1648506684360ab9d65b8a3ccf078
[ "BSD-3-Clause" ]
7
2015-06-18T15:34:28.000Z
2021-09-14T13:04:08.000Z
scikits/datasmooth/__init__.py
jjstickel/scikit-datasmooth
976ab86998d1648506684360ab9d65b8a3ccf078
[ "BSD-3-Clause" ]
2
2018-03-10T03:46:39.000Z
2018-11-27T18:55:13.000Z
scikits/datasmooth/__init__.py
jjstickel/scikit-datasmooth
976ab86998d1648506684360ab9d65b8a3ccf078
[ "BSD-3-Clause" ]
6
2015-03-29T07:36:18.000Z
2020-09-15T16:25:06.000Z
__version__ = '0.7.1' try: from regularsmooth import * except ImportError: from .regularsmooth import *
18.666667
32
0.714286
13
112
5.846154
0.769231
0.447368
0.605263
0
0
0
0
0
0
0
0
0.033333
0.196429
112
5
33
22.4
0.811111
0
0
0
0
0
0.044643
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
6
901cb3458a6cbbc2527b80d00c06a9a4f1e903b2
2,389
py
Python
code/tfidf/tfidf.py
vadlamak/strata-teaching-the-elephant-to-read
5f3963c90c520ac1b7b41d21939230ef5df6414f
[ "Apache-2.0" ]
null
null
null
code/tfidf/tfidf.py
vadlamak/strata-teaching-the-elephant-to-read
5f3963c90c520ac1b7b41d21939230ef5df6414f
[ "Apache-2.0" ]
1
2021-03-26T00:26:00.000Z
2021-03-26T00:26:00.000Z
code/tfidf/tfidf.py
vadlamak/strata-teaching-the-elephant-to-read
5f3963c90c520ac1b7b41d21939230ef5df6414f
[ "Apache-2.0" ]
null
null
null
import math import string from itertools import groupby from operator import itemgetter from nltk.corpus import stopwords from nltk.tokenize import wordpunct_tokenize N = 10788.0 # Number of documents, in float to make division work. class TermMapper(object): def __init__(self): if 'stopwords' in self....
25.688172
72
0.612809
291
2,389
4.883162
0.309278
0.038001
0.046446
0.059113
0.120338
0.106967
0.052076
0.052076
0.052076
0
0
0.007598
0.283801
2,389
92
73
25.967391
0.822911
0.021766
0
0.144928
0
0
0.025696
0
0
0
0
0
0
1
0.173913
false
0
0.101449
0
0.391304
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
901d3f9a5542e6bed0daf35f7574ccf1740c36b8
1,046
py
Python
game-watch-api/games/admin.py
fouadsan/game_watch
ca38d283ef8f55499ea520eb52a78ebfac8a77a4
[ "MIT" ]
null
null
null
game-watch-api/games/admin.py
fouadsan/game_watch
ca38d283ef8f55499ea520eb52a78ebfac8a77a4
[ "MIT" ]
null
null
null
game-watch-api/games/admin.py
fouadsan/game_watch
ca38d283ef8f55499ea520eb52a78ebfac8a77a4
[ "MIT" ]
null
null
null
from django.contrib import admin from admin_interface.models import Theme as Th from .models import Genre, Platform, Screenshot, Artwork, Mode, PlayerPerspective, Engine, Theme, Game admin.site.unregister(Th) admin.site.register(Genre) admin.site.register(Platform) admin.site.register(Mode) admin.site.register(Playe...
32.6875
209
0.711281
129
1,046
5.658915
0.496124
0.123288
0.209589
0
0
0
0
0
0
0
0
0
0.137667
1,046
31
210
33.741935
0.809313
0
0
0
0
0
0.220841
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0.047619
0.380952
0
0
0
0
null
0
1
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
0
1
901eab214940948112dfada28e162b16759ac77e
589
py
Python
plot-wbgt.py
tanupoo/tools-pubsec
3dfea4b677226395eff89f90aebec3105ba4f4d5
[ "MIT" ]
1
2021-05-27T21:10:04.000Z
2021-05-27T21:10:04.000Z
plot-wbgt.py
tanupoo/pubsec-tools
3dfea4b677226395eff89f90aebec3105ba4f4d5
[ "MIT" ]
null
null
null
plot-wbgt.py
tanupoo/pubsec-tools
3dfea4b677226395eff89f90aebec3105ba4f4d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import json import matplotlib.pyplot as plt result = json.load(sys.stdin) x = result["hour"] y = result["wbgt"] fig = plt.figure(figsize=(8, 4)) ax1 = fig.add_subplot(1,1,1) ax1.set_xlabel("hour") ax1.set_ylabel("wbgt") ax1.set_xticks(list(range(0,24,1))) ax1.set_yticks(list(range(1...
21.035714
48
0.696095
114
589
3.517544
0.464912
0.104738
0.05985
0.089776
0.311721
0.27182
0.27182
0.147132
0.147132
0
0
0.070632
0.086587
589
27
49
21.814815
0.674721
0.033956
0
0
0
0
0.059965
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
90204f12090cacf498331393d685af08f22c49b2
1,005
py
Python
day_07/day_07.py
GuillaumeGandon/advent-of-code-2015
ff4201a9a27d1ca7f687a613eeec72dd12fe1487
[ "MIT" ]
null
null
null
day_07/day_07.py
GuillaumeGandon/advent-of-code-2015
ff4201a9a27d1ca7f687a613eeec72dd12fe1487
[ "MIT" ]
null
null
null
day_07/day_07.py
GuillaumeGandon/advent-of-code-2015
ff4201a9a27d1ca7f687a613eeec72dd12fe1487
[ "MIT" ]
null
null
null
from functools import cache def split_row(row): instructions, output = row.split(' -> ') return output, tuple(instructions.split(' ')) @cache def solve(key): if key.isdigit(): return int(key) else: instructions = circuit[key] if len(instructions) == 1: return solv...
25.769231
65
0.536318
118
1,005
4.508475
0.389831
0.067669
0.090226
0.06391
0.157895
0.097744
0.097744
0
0
0
0
0.018978
0.318408
1,005
38
66
26.447368
0.757664
0
0
0.1
0
0
0.084577
0
0
0
0
0
0
1
0.066667
false
0
0.033333
0
0.366667
0.066667
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
90215693db46543c286a97842122238df6972cc0
523
py
Python
noteout/tests/test_nb_only.py
stefanv/noteout
b76b35c675fa1221be35835d56c2937e3f56b317
[ "BSD-2-Clause" ]
3
2021-08-14T19:35:37.000Z
2021-08-23T16:53:51.000Z
noteout/tests/test_nb_only.py
stefanv/noteout
b76b35c675fa1221be35835d56c2937e3f56b317
[ "BSD-2-Clause" ]
1
2021-11-23T18:40:45.000Z
2021-11-23T20:40:48.000Z
noteout/tests/test_nb_only.py
stefanv/noteout
b76b35c675fa1221be35835d56c2937e3f56b317
[ "BSD-2-Clause" ]
1
2021-11-23T18:33:58.000Z
2021-11-23T18:33:58.000Z
""" Test nb-only filter """ from io import StringIO from noteout.nb_only import NbonlyFilter as nnbo from .tutils import (read_md, assert_json_equal, filter_doc) def test_nb_only(): content = """/ Some text [notebook only]{.nb-only}more text. ::: nb-only Only in notebook. ::: More text. """ doc = read_md...
17.433333
60
0.692161
77
523
4.493506
0.363636
0.086705
0.057803
0.098266
0
0
0
0
0
0
0
0
0.179732
523
29
61
18.034483
0.806527
0.036329
0
0.210526
0
0
0.262097
0
0
0
0
0
0.105263
1
0.052632
false
0
0.157895
0
0.210526
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
9021b355ad9a734bb50dcef4f74291f2233e5506
1,386
py
Python
spectrocrunch/utils/comparable.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
3
2018-04-16T15:51:36.000Z
2019-12-16T11:21:05.000Z
spectrocrunch/utils/comparable.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
spectrocrunch/utils/comparable.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import operator class Comparable(object): @property def _repr(self): """Unique representation of an instance""" return "{}{}".format(type(self).__name__, id(self)) def _cmpkey(self, other): return self._repr def _sortkey(self, other): return s...
23.491525
59
0.591631
170
1,386
4.5
0.270588
0.129412
0.156863
0.198693
0.386928
0.386928
0.386928
0.096732
0
0
0
0.001002
0.279942
1,386
58
60
23.896552
0.765531
0.042569
0
0.051282
0
0
0.014383
0
0
0
0
0
0
1
0.384615
false
0
0.025641
0.333333
0.846154
0
0
0
0
null
0
0
1
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
1
0
0
0
1
1
0
0
4
9021bc3863fa351375d2c840439601cf105a7273
3,241
py
Python
backend/fastspider.py
wakeblade/weiboSpiderAndCook
b5ca0708abd0a938eb0ac611d037a5d3daf9384f
[ "MIT" ]
1
2020-02-08T16:22:19.000Z
2020-02-08T16:22:19.000Z
backend/fastspider.py
wakeblade/weiboWordCount
b5ca0708abd0a938eb0ac611d037a5d3daf9384f
[ "MIT" ]
null
null
null
backend/fastspider.py
wakeblade/weiboWordCount
b5ca0708abd0a938eb0ac611d037a5d3daf9384f
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: UTF-8 -*- """ from gevent import monkey monkey.patch_all() from gevent.queue import Queue """ import requests import time import random proxies=[] with open('./ips.txt') as f: proxies = [line.split('@')[0] for line in f] def randomProxy(proxies): ip = random.choice(proxies...
28.429825
142
0.573588
393
3,241
4.641221
0.348601
0.023026
0.012061
0.017544
0.055921
0.029605
0.029605
0
0
0
0
0.012642
0.267819
3,241
114
143
28.429825
0.756005
0.05523
0
0.055556
0
0
0.085813
0
0
0
0
0
0
1
0.097222
false
0
0.041667
0.027778
0.263889
0.013889
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
9021ca74c4cfd208803fde68aec8f4729d95dd36
1,156
py
Python
setup.py
loic-simon/asyncode
5f9873acf93f1a3ae6d4ca0b3dfc55acc7598969
[ "MIT" ]
1
2021-12-22T16:09:52.000Z
2021-12-22T16:09:52.000Z
setup.py
loic-simon/asyncode
5f9873acf93f1a3ae6d4ca0b3dfc55acc7598969
[ "MIT" ]
null
null
null
setup.py
loic-simon/asyncode
5f9873acf93f1a3ae6d4ca0b3dfc55acc7598969
[ "MIT" ]
null
null
null
import setuptools version = "1.0.0" with open("README.md", "r", encoding="utf-8") as fh: readme = fh.read() setuptools.setup( name="asyncode", version=version, author="Loïc Simon", author_email="loic.simon@espci.org", description="Emulating Python's interactive interpreter in asynchronous con...
31.243243
86
0.634948
126
1,156
5.753968
0.65873
0.131034
0.172414
0.17931
0
0
0
0
0
0
0
0.019956
0.219723
1,156
36
87
32.111111
0.783814
0.046713
0
0
0
0
0.532302
0
0
0
0
0
0
1
0
false
0
0.033333
0
0.033333
0
0
0
0
null
0
0
1
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
0
1
9021dafddba10ec136860876afbe1b58c1dcc7f4
1,926
py
Python
test_image.py
GSM-Festival-2021/Prettier-photo-plus-Server
98c30d5c8379491d12a4cfd4ed880fd800c40a7c
[ "MIT" ]
null
null
null
test_image.py
GSM-Festival-2021/Prettier-photo-plus-Server
98c30d5c8379491d12a4cfd4ed880fd800c40a7c
[ "MIT" ]
null
null
null
test_image.py
GSM-Festival-2021/Prettier-photo-plus-Server
98c30d5c8379491d12a4cfd4ed880fd800c40a7c
[ "MIT" ]
null
null
null
function solution(x1, y1, x2, y2) { const x1 = 8; const y1 = 4; const x2 = 8; const y2 = 10; let soundSum = 0; // 두 스피커 사이가 가까워 음량이 5를 넘는 경우 if (Math.abs(x1 - x2) + Math.abs(y1 - y2) < 4) return -1; if (3 < x1 && x1 < 13 && 3 < x2 && x2 < 13 && 3 < y1 && y1 < 13 && 3 < y2 && y2 < 13) { ...
21.164835
91
0.450156
258
1,926
3.360465
0.306202
0.020761
0.018454
0.029988
0.239908
0.239908
0.168397
0.168397
0.168397
0.168397
0
0.107143
0.403946
1,926
91
92
21.164835
0.648084
0
0
0.311688
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
9022b8901ebe6c1ee9599a4efe5b224353a4bd15
8,328
py
Python
crops/command_line/crops-cropstr.py
jjavier-bm/crops
658a98f9c168cc27b3f967e7a60a0df896ef5ac6
[ "BSD-3-Clause" ]
null
null
null
crops/command_line/crops-cropstr.py
jjavier-bm/crops
658a98f9c168cc27b3f967e7a60a0df896ef5ac6
[ "BSD-3-Clause" ]
5
2020-07-17T08:45:22.000Z
2022-03-11T13:39:26.000Z
crops/command_line/crops-cropstr.py
jjavier-bm/crops
658a98f9c168cc27b3f967e7a60a0df896ef5ac6
[ "BSD-3-Clause" ]
1
2020-07-07T15:42:07.000Z
2020-07-07T15:42:07.000Z
"""========== This script will remove a number of residues from a sequence file in agreement to the intervals and other details supplied. """ from crops.about import __prog__, __description__, __author__, __date__, __version__ import argparse import os from crops.io import check_path from crops.io import outpathgen...
47.862069
289
0.635687
1,006
8,328
5.127237
0.241551
0.027142
0.012214
0.029081
0.257076
0.227608
0.215587
0.178945
0.142691
0.116906
0
0.009274
0.236071
8,328
173
290
48.138728
0.801478
0.035303
0
0.179856
0
0.014388
0.17257
0.007815
0
0
0
0
0
1
0.014388
false
0
0.093525
0
0.122302
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
90251fea4bf1c0681bcedcffe3e8a599e9d53e72
13,189
py
Python
DSDM_Assignment2_final.py
antonyjames1996/time-series-analysis-agrotech
1e2abfe07f0e82c7a6f5cc01a268826fb2d29635
[ "MIT" ]
null
null
null
DSDM_Assignment2_final.py
antonyjames1996/time-series-analysis-agrotech
1e2abfe07f0e82c7a6f5cc01a268826fb2d29635
[ "MIT" ]
null
null
null
DSDM_Assignment2_final.py
antonyjames1996/time-series-analysis-agrotech
1e2abfe07f0e82c7a6f5cc01a268826fb2d29635
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[95]: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt # get_ipython().run_line_magic('matplotlib', 'inline') from sklearn.neighbors import LocalOutlierFactor from sklearn.model_selection import train_test_split from sklearn.line...
26.116832
119
0.679506
1,840
13,189
4.645652
0.167391
0.012635
0.013102
0.02059
0.502223
0.433786
0.340664
0.286968
0.253276
0.219584
0
0.02066
0.163242
13,189
504
120
26.168651
0.753896
0.251801
0
0.16875
0
0
0.300638
0.008646
0
0
0
0
0
1
0
false
0
0.13125
0
0.13125
0.05
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
902524521dfdcde30b78e79a7e608392d647a998
6,127
py
Python
modules/msa/msa/contrib/uniqauth/views.py
haoyutan/MSA-Framework
7c5553b244347f26029729161e15e60b0cc805f5
[ "MIT" ]
2
2016-11-22T11:44:52.000Z
2017-08-29T02:38:01.000Z
modules/msa/msa/contrib/uniqauth/views.py
haoyutan/MSA-Framework
7c5553b244347f26029729161e15e60b0cc805f5
[ "MIT" ]
null
null
null
modules/msa/msa/contrib/uniqauth/views.py
haoyutan/MSA-Framework
7c5553b244347f26029729161e15e60b0cc805f5
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate from msa.utils.ipware import get_ip from msa.views import LoggedAPIView from rest_framework import status from rest_framework.authentication import TokenAuthentication, BasicAuthentication from rest_framework.authtoken.models import Token from rest_framework.permissions impo...
37.588957
110
0.647299
607
6,127
6.385502
0.172982
0.05805
0.04257
0.082043
0.714396
0.696078
0.623065
0.613777
0.564499
0.539474
0
0.003545
0.263261
6,127
162
111
37.820988
0.855117
0.012404
0
0.609375
0
0
0.016077
0
0
0
0
0
0
1
0.0625
false
0.148438
0.070313
0.023438
0.445313
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
1
0
0
0
0
0
1
9025967f892fe7e0100f3ff33e467fab11a11531
4,830
py
Python
dcm2niix.py
rhancockn/dcm2bids
16597eeb20edfa0ec707c9bd0bf8468d94e0c925
[ "MIT" ]
null
null
null
dcm2niix.py
rhancockn/dcm2bids
16597eeb20edfa0ec707c9bd0bf8468d94e0c925
[ "MIT" ]
null
null
null
dcm2niix.py
rhancockn/dcm2bids
16597eeb20edfa0ec707c9bd0bf8468d94e0c925
[ "MIT" ]
null
null
null
#!/use/bin/python import tempfile import os import dicom import pandas import json import numpy as np from os.path import join import glob import errno import shutil class dcm2niix(object): """A wrapper for the dcm2niix command """ def __init__(self, row, bids_dir, intent = None): self.intent = intent #Dico...
32.2
285
0.695238
702
4,830
4.65812
0.264957
0.06055
0.058716
0.06055
0.37156
0.33578
0.237615
0.184098
0.125994
0.105199
0
0.027014
0.149275
4,830
149
286
32.416107
0.7688
0.073292
0
0.098039
0
0
0.169279
0.022615
0
0
0.021944
0
0
1
0.068627
false
0.009804
0.098039
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
902da8cbd33808618399125bb013b3cfef957b80
4,479
py
Python
src/sss/genkey.py
foundriesio/plug-and-trust-ssscli
f77c65d5b3de649d7db1c023ee41d871f77cd224
[ "Apache-2.0" ]
null
null
null
src/sss/genkey.py
foundriesio/plug-and-trust-ssscli
f77c65d5b3de649d7db1c023ee41d871f77cd224
[ "Apache-2.0" ]
null
null
null
src/sss/genkey.py
foundriesio/plug-and-trust-ssscli
f77c65d5b3de649d7db1c023ee41d871f77cd224
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018-2020 NXP # SPDX-License-Identifier: Apache-2.0 # # """License text""" import logging from . import sss_api as apis from .keystore import KeyStore from .keyobject import KeyObject from .getkey import Get from .util import get_ecc_cypher_type log = logging.getLogger(__name__) class Generate: "...
33.177778
124
0.621121
607
4,479
4.319605
0.177924
0.048055
0.036613
0.02746
0.611365
0.548055
0.490465
0.490465
0.471777
0.410755
0
0.006353
0.297165
4,479
134
125
33.425373
0.826557
0.273052
0
0.433333
0
0
0.057619
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
902e9315b6728c26e93d095508b7d9dca413b5b0
979
py
Python
Python/uds/uds_client.py
kaehsu/template-bash
f8a8a4babb8537622a4e4246701761a9832d6aeb
[ "MIT" ]
null
null
null
Python/uds/uds_client.py
kaehsu/template-bash
f8a8a4babb8537622a4e4246701761a9832d6aeb
[ "MIT" ]
null
null
null
Python/uds/uds_client.py
kaehsu/template-bash
f8a8a4babb8537622a4e4246701761a9832d6aeb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # To communicate with UDS server by nc: "echo -e "string\c" | sudo nc -q 1 -U /var/run/uds_led" import socket serverAddress = '/tmp/portex_tmp' def main(): try: while True: message = input( 'Enter the message send to server ("Quit" to quit): ') ...
28.794118
95
0.507661
107
979
4.53271
0.626168
0.037113
0.049485
0
0
0
0
0
0
0
0
0.017828
0.369765
979
33
96
29.666667
0.768233
0.150153
0
0
0
0
0.188634
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.086957
0.130435
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
902fb2aef8b4515b1af62bd380980dd14457df65
502
py
Python
apps/workspaces/migrations/0007_workspacegeneralsettings_auto_map_employees.py
fylein/fyle-xero-api
ba81af058dc413fc801d4cf7d1a8961bd42df469
[ "MIT" ]
null
null
null
apps/workspaces/migrations/0007_workspacegeneralsettings_auto_map_employees.py
fylein/fyle-xero-api
ba81af058dc413fc801d4cf7d1a8961bd42df469
[ "MIT" ]
6
2020-12-24T10:24:02.000Z
2021-11-30T05:04:53.000Z
apps/workspaces/migrations/0007_workspacegeneralsettings_auto_map_employees.py
fylein/fyle-xero-api
ba81af058dc413fc801d4cf7d1a8961bd42df469
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2021-02-19 18:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workspaces', '0006_workspacegeneralsettings_import_categories'), ] operations = [ migrations.AddField( model_name='workspacegene...
26.421053
111
0.663347
55
502
5.909091
0.763636
0.043077
0.098462
0
0
0
0
0
0
0
0
0.05483
0.237052
502
18
112
27.888889
0.793734
0.089641
0
0
1
0
0.296703
0.156044
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
903025199c8cb18d7b43068916c16d96cb4139f2
2,967
py
Python
0x06-python-classes/100-singly_linked_list.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
0x06-python-classes/100-singly_linked_list.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
0x06-python-classes/100-singly_linked_list.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Module 100-singly_linked_list Defines class Node (with private data and next_node) Defines class SinglyLinkedList (with private head and public sorted_insert) """ class Node: """ class Node definition Args: data (int): private next_node : private; can be None or Node...
23.179688
78
0.532524
340
2,967
4.432353
0.202941
0.138023
0.043796
0.023889
0.272064
0.135368
0.066357
0.066357
0.066357
0.066357
0
0.002193
0.385238
2,967
127
79
23.362205
0.824013
0.343108
0
0.265306
0
0
0.035692
0
0
0
0
0
0
1
0.163265
false
0
0
0
0.326531
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
90303a8de55d76b20b74b604783236c6d15111a5
310
py
Python
BI-IOS/semester-project/webapp/beecon/campaigns/urls.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
20
2016-05-15T10:39:53.000Z
2022-03-29T00:06:06.000Z
BI-IOS/semester-project/webapp/beecon/campaigns/urls.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
3
2017-05-27T16:44:01.000Z
2019-01-02T21:02:59.000Z
BI-IOS/semester-project/webapp/beecon/campaigns/urls.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
11
2018-08-22T21:16:32.000Z
2021-04-10T22:42:34.000Z
from django.conf.urls import url from . import views app_name = 'campaigns' urlpatterns = [ url( r'^$', views.JsonView.response, name='index' ), url( r'^(?P<app_code>[a-zA-Z0-9]+)/info/$', views.info, name='info' ), url( r'^(?P<app_code>[a-zA-Z0-9]+)/services/$', views.services, name='services' ), ]
25.833333
84
0.632258
48
310
4.020833
0.479167
0.062176
0.051813
0.082902
0.186529
0.186529
0.186529
0.186529
0.186529
0
0
0.01476
0.125806
310
11
85
28.181818
0.697417
0
0
0
0
0
0.322581
0.232258
0
0
0
0
0
1
0
false
0
0.25
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
9032381dcc04f711d03772a06dc91a54a4d1b366
5,802
py
Python
models/joint_representation.py
ybCliff/VideoCaptioning
93fc3b095c970e51e1e24909163a827df98d6ef3
[ "MIT" ]
3
2020-05-16T23:59:57.000Z
2021-06-14T01:59:41.000Z
models/joint_representation.py
ybCliff/VideoCaptioning
93fc3b095c970e51e1e24909163a827df98d6ef3
[ "MIT" ]
null
null
null
models/joint_representation.py
ybCliff/VideoCaptioning
93fc3b095c970e51e1e24909163a827df98d6ef3
[ "MIT" ]
3
2020-05-17T00:01:01.000Z
2020-07-28T18:04:05.000Z
import torch import torch.nn as nn class Gated_Sum(nn.Module): def __init__(self, opt): super(Gated_Sum, self).__init__() hidden_size = opt['dim_hidden'] nf = opt.get('num_factor', 512) self.hidden_size = hidden_size self.num_feats = len(opt['modality']) - sum(opt['skip_in...
39.739726
146
0.601344
771
5,802
4.30869
0.178988
0.109573
0.054184
0.028898
0.276039
0.219446
0.173691
0.159843
0.083082
0.083082
0
0.012114
0.274388
5,802
146
147
39.739726
0.77696
0.13909
0
0.06383
0
0
0.034545
0.005824
0
0
0
0
0.042553
1
0.06383
false
0
0.031915
0
0.148936
0.021277
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
9034fc76134be07855830d17f0d402a691811b26
2,489
py
Python
scream/monorepo.py
r-kells/scream
3f5d325cd05a0f3eccc4b579b4929be49029ab09
[ "MIT" ]
26
2018-11-29T13:33:25.000Z
2021-11-22T18:45:19.000Z
scream/monorepo.py
r-kells/scream
3f5d325cd05a0f3eccc4b579b4929be49029ab09
[ "MIT" ]
14
2019-01-20T00:07:13.000Z
2020-07-15T13:19:29.000Z
scream/monorepo.py
r-kells/scream
3f5d325cd05a0f3eccc4b579b4929be49029ab09
[ "MIT" ]
2
2019-02-25T17:31:47.000Z
2020-01-22T22:10:41.000Z
import collections from scream.files import Docs, Scream, Tox class Monorepo(object): def __init__(self, root_dir): self.root_dir = root_dir self.config = Scream(self.root_dir) def sync(self): """Used internally ensure monorepo maintains certain standards. """ self.co...
34.09589
107
0.627561
280
2,489
5.335714
0.282143
0.096386
0.044177
0.02008
0.323963
0.311914
0.147256
0.064257
0.064257
0.064257
0
0.004469
0.280836
2,489
72
108
34.569444
0.830168
0.024106
0
0.232143
0
0
0.057581
0
0
0
0
0
0
1
0.142857
false
0
0.035714
0
0.267857
0.017857
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
9036fe41e979c0dcc374002d6e7021871b3e9ae0
9,837
py
Python
src/oddball/oddball.py
stillarrow/NetworkAnomalyDetection
f41fd6b6d7cb302dc2eaa4c0f8d7b04b7ed4fd3c
[ "MIT" ]
1
2021-05-12T09:37:47.000Z
2021-05-12T09:37:47.000Z
src/oddball/oddball.py
stillarrow/NetworkAnomalyDetection
f41fd6b6d7cb302dc2eaa4c0f8d7b04b7ed4fd3c
[ "MIT" ]
null
null
null
src/oddball/oddball.py
stillarrow/NetworkAnomalyDetection
f41fd6b6d7cb302dc2eaa4c0f8d7b04b7ed4fd3c
[ "MIT" ]
null
null
null
''' Python3 implementation of oddball @author: Tao Yu (gloooryyt@gmail.com) ''' import numpy as np from sklearn.linear_model import LinearRegression from sklearn.neighbors import LocalOutlierFactor # feature dictionary which format is {node i's id:Ni, Ei, Wi, λw,i} def star_or_clique(featureDict): N = [] ...
31.630225
125
0.620718
1,395
9,837
4.27957
0.099642
0.042211
0.022613
0.047739
0.937186
0.937186
0.937186
0.927806
0.927806
0.927806
0
0.015835
0.242452
9,837
310
126
31.732258
0.785293
0.149537
0
0.935065
0
0
0.012499
0
0
0
0
0
0
1
0.025974
false
0
0.012987
0
0.064935
0.038961
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
9037bc76d22fa05dd0f3bfed5e08c4fd3d0cc516
538
py
Python
tbase/common/logger.py
iminders/TradeBaselines
26eb87f2bcd5f6ff479149219b38b17002be6a40
[ "MIT" ]
16
2020-03-19T15:12:28.000Z
2021-12-20T06:02:32.000Z
tbase/common/logger.py
iminders/TradeBaselines
26eb87f2bcd5f6ff479149219b38b17002be6a40
[ "MIT" ]
14
2020-03-23T03:57:00.000Z
2021-12-20T05:53:33.000Z
tbase/common/logger.py
iminders/TradeBaselines
26eb87f2bcd5f6ff479149219b38b17002be6a40
[ "MIT" ]
7
2020-03-25T00:30:18.000Z
2021-01-31T18:45:09.000Z
import logging import os logging.basicConfig( level=logging.INFO, format='%(asctime)s %(filename)s[%(lineno)d] %(levelname)s %(message)s') logger = logging.getLogger() dir_name = os.path.join("/tmp", "tbase") if not os.path.exists(dir_name): os.makedirs(dir_name) handler = logging.FileHandler(os.path.jo...
26.9
76
0.723048
74
538
5.202703
0.445946
0.072727
0.083117
0.088312
0.218182
0.218182
0.218182
0.218182
0.218182
0.218182
0
0
0.10223
538
19
77
28.315789
0.797101
0
0
0
0
0.133333
0.263941
0.089219
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
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
9037ec295216061bb4362e12f89dff7a2894c6f3
3,125
py
Python
profesionales/migrations/0005_auto_20190928_2338.py
cluster311/ggg
262173c66fe40ada30083d439a79f16f841f5772
[ "BSD-3-Clause" ]
6
2020-03-16T02:51:16.000Z
2020-11-10T00:58:01.000Z
profesionales/migrations/0005_auto_20190928_2338.py
cluster311/ggg
262173c66fe40ada30083d439a79f16f841f5772
[ "BSD-3-Clause" ]
204
2019-09-19T02:00:57.000Z
2022-02-10T10:48:52.000Z
profesionales/migrations/0005_auto_20190928_2338.py
cluster311/ggg
262173c66fe40ada30083d439a79f16f841f5772
[ "BSD-3-Clause" ]
3
2019-09-16T22:59:24.000Z
2022-03-21T22:52:44.000Z
# Generated by Django 2.2.4 on 2019-09-28 23:38 import address.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('address', '0002_auto_20160213_1726'), ('profesionales', '0004_auto_20190927_0004'), ] ...
38.580247
377
0.57824
276
3,125
6.42029
0.387681
0.11851
0.146727
0.176072
0.360609
0.327878
0.056433
0.056433
0
0
0
0.025945
0.27232
3,125
80
378
39.0625
0.753298
0.0144
0
0.540541
1
0
0.260234
0.014945
0
0
0
0
0
1
0
false
0
0.040541
0
0.081081
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
903b18672626ab4ad3a5e3aded8aea7688abd5d5
757
py
Python
standards/tests/models.py
GROCCAD/groccad
1d461043030bebe277d74b1c9df9877436baa270
[ "MIT" ]
1
2022-03-05T03:11:51.000Z
2022-03-05T03:11:51.000Z
standards/tests/models.py
rocdata/rocserver
1d461043030bebe277d74b1c9df9877436baa270
[ "MIT" ]
null
null
null
standards/tests/models.py
rocdata/rocserver
1d461043030bebe277d74b1c9df9877436baa270
[ "MIT" ]
null
null
null
from functools import partial from django.db import models from standards.fields import CharIdField # MODEL FIXTURES ################################################################################ class CharIdModel(models.Model): field = CharIdField() class CharIdModelWithPrefix(models.Model): field = C...
23.65625
80
0.698811
70
757
7.528571
0.514286
0.104364
0.091082
0.1537
0
0
0
0
0
0
0
0.002999
0.11889
757
31
81
24.419355
0.787106
0.018494
0
0.117647
0
0
0.034796
0.03177
0
0
0
0
0
1
0
false
0.117647
0.176471
0
0.882353
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
1
0
0
0
0
0
1
903bd4a9af5949595a7b7528cd44f5048565dedd
10,070
py
Python
torchsrc/models/fcn32s_BN.py
yuankaihuo/MedPhysics
94d8c5357b76658b9b161b541a1f195c6550ce55
[ "Apache-2.0" ]
null
null
null
torchsrc/models/fcn32s_BN.py
yuankaihuo/MedPhysics
94d8c5357b76658b9b161b541a1f195c6550ce55
[ "Apache-2.0" ]
null
null
null
torchsrc/models/fcn32s_BN.py
yuankaihuo/MedPhysics
94d8c5357b76658b9b161b541a1f195c6550ce55
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F # https://github.com/shelhamer/fcn.berkeleyvision.org/blob/master/surgery.py def get_upsample_filter(size): """Make a 2D bilinear kernel suitable for upsampling""" factor = (size + 1) // 2 if size % 2 == 1: ...
36.751825
101
0.523932
1,279
10,070
4.061767
0.139171
0.065448
0.085082
0.060635
0.47719
0.362079
0.350529
0.350529
0.344562
0.344562
0
0.092868
0.331678
10,070
273
102
36.886447
0.679049
0.090765
0
0.325123
0
0
0
0
0
0
0
0
0.009852
1
0.024631
false
0
0.019704
0
0.059113
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
903c7397f31fe34f15318c7f6541642d7c880c26
1,067
py
Python
src/schema/models.py
prashant0079/metabolic_assignment
9660ef06e6015833e3c64de9c3fe34927c85ba49
[ "MIT" ]
null
null
null
src/schema/models.py
prashant0079/metabolic_assignment
9660ef06e6015833e3c64de9c3fe34927c85ba49
[ "MIT" ]
1
2021-09-05T15:39:56.000Z
2021-09-05T20:26:39.000Z
src/schema/models.py
prashant0079/metabolic_assignment
9660ef06e6015833e3c64de9c3fe34927c85ba49
[ "MIT" ]
null
null
null
from pydantic import BaseModel from typing import List # The models used in this module are being used by the API # for type validation using Pydantic as FastAPI is reliant # on pydantic for Data validation class GeographySchema(BaseModel): id: int short_name: str name: str class EntrySchema(BaseModel)...
17.209677
58
0.68135
129
1,067
5.55814
0.403101
0.048815
0.078103
0.100418
0.152022
0.121339
0.083682
0
0
0
0
0
0.266167
1,067
61
59
17.491803
0.915709
0.135895
0
0.512195
0
0
0
0
0
0
0
0
0
1
0
false
0
0.04878
0
0.902439
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
903c8cc3beaefd54c725e04177cee3cf91f69504
348
py
Python
myproject/myapp/admin.py
wasit7/cs459_2018
78243bbc939fcc2ed7528df8c14ad75e4b78d9a2
[ "BSD-2-Clause" ]
null
null
null
myproject/myapp/admin.py
wasit7/cs459_2018
78243bbc939fcc2ed7528df8c14ad75e4b78d9a2
[ "BSD-2-Clause" ]
null
null
null
myproject/myapp/admin.py
wasit7/cs459_2018
78243bbc939fcc2ed7528df8c14ad75e4b78d9a2
[ "BSD-2-Clause" ]
null
null
null
from django.contrib import admin from .models import Product class ProductAdmin(admin.ModelAdmin): fields = ('name', 'price', 'category', 'image') list_display = ('name', 'price', 'category', 'image') list_filter = ('category', 'price', ) list_editable = ('price', 'category', 'image', ) admin.site.reg...
34.8
57
0.678161
38
348
6.131579
0.552632
0.167382
0.23176
0.188841
0.223176
0
0
0
0
0
0
0
0.149425
348
10
58
34.8
0.787162
0
0
0
0
0
0.2149
0
0
0
0
0
0
1
0
false
0
0.25
0
0.875
0
0
0
0
null
0
1
1
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
1
0
0
3
903de14b44d3f2b0857467165c0169f5dac5d5b8
404
py
Python
app.py
923310233/APk-Down-Load
e7c3e4fdfbf9f7d8398d91ce0c5c028dfc685f3a
[ "MIT" ]
2
2021-07-28T07:06:55.000Z
2021-07-28T07:08:19.000Z
app.py
923310233/APk-Down-Load
e7c3e4fdfbf9f7d8398d91ce0c5c028dfc685f3a
[ "MIT" ]
null
null
null
app.py
923310233/APk-Down-Load
e7c3e4fdfbf9f7d8398d91ce0c5c028dfc685f3a
[ "MIT" ]
null
null
null
import subprocess f = open("app_list.csv","r") lines = f.readlines() for line in lines: print(line.strip()) command = "node app.js " + line.strip(); display = subprocess.run(command, stdout=subprocess.PIPE, shell=True) # display = subprocess.run(["sudo","-u",username,"tshark", "-r", pcapname, "-Y", disp...
31.076923
126
0.680693
55
404
4.927273
0.6
0.066421
0.147601
0
0
0
0
0
0
0
0
0
0.133663
404
13
127
31.076923
0.774286
0.408416
0
0
0
0
0.105485
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
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
903e7c7c7eb9a7d02da0c1871291e12b6246e93e
20,260
py
Python
shoptimizer_api/optimizers_builtin/title_word_order_optimizer_test.py
astivi/shoptimizer
e9e415650b2b8fc07e4ae68c741e692b538e4a2c
[ "Apache-2.0" ]
null
null
null
shoptimizer_api/optimizers_builtin/title_word_order_optimizer_test.py
astivi/shoptimizer
e9e415650b2b8fc07e4ae68c741e692b538e4a2c
[ "Apache-2.0" ]
null
null
null
shoptimizer_api/optimizers_builtin/title_word_order_optimizer_test.py
astivi/shoptimizer
e9e415650b2b8fc07e4ae68c741e692b538e4a2c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
40.846774
123
0.696249
2,332
20,260
5.610206
0.116638
0.043721
0.024612
0.039746
0.856761
0.834059
0.826798
0.800963
0.751051
0.740503
0
0.007007
0.211106
20,260
495
124
40.929293
0.810236
0.031984
0
0.720874
0
0
0.258397
0.121286
0.002427
0
0
0
0.084951
1
0.050971
false
0
0.014563
0
0.067961
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
903ed7280655c7a88f5f5eb4e9a427e26a17d12e
4,035
py
Python
contracts/models.py
sivanagarajumolabanti/IPFS
9ae01ce09c97660ca312aad7d612bbc8eb8146e7
[ "MIT" ]
1
2019-08-27T04:20:06.000Z
2019-08-27T04:20:06.000Z
contracts/models.py
sivanagarajumolabanti/IPFS
9ae01ce09c97660ca312aad7d612bbc8eb8146e7
[ "MIT" ]
null
null
null
contracts/models.py
sivanagarajumolabanti/IPFS
9ae01ce09c97660ca312aad7d612bbc8eb8146e7
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from django.utils.timezone import now class Vendor(models.Model): user = models.ManyToManyField(User) name = models.CharField(max_length=30, null=True) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.Date...
36.351351
102
0.691698
510
4,035
5.292157
0.172549
0.065209
0.073361
0.097814
0.727677
0.67877
0.596147
0.513524
0.482401
0.426454
0
0.017841
0.180421
4,035
110
103
36.681818
0.798307
0
0
0.430233
0
0
0.033457
0
0
0
0
0
0
1
0.093023
false
0
0.034884
0.093023
0.883721
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
903f6e6ec0a321ed686c231ab9ebc657c40c7407
1,500
py
Python
models/DenseNet.py
Apollo1840/DeepECG
5132b5fc8f6b40c4b2f175cd5e56c4aec128ab3e
[ "MIT" ]
2
2020-11-16T10:50:56.000Z
2020-11-23T12:31:30.000Z
models/DenseNet.py
Apollo1840/DeepECG
5132b5fc8f6b40c4b2f175cd5e56c4aec128ab3e
[ "MIT" ]
null
null
null
models/DenseNet.py
Apollo1840/DeepECG
5132b5fc8f6b40c4b2f175cd5e56c4aec128ab3e
[ "MIT" ]
1
2020-08-05T00:23:54.000Z
2020-08-05T00:23:54.000Z
from keras.models import Sequential from keras.layers import Dense, Dropout def denseNet(input_dim, output_dim=4): model = Sequential() model.add(Dense(1024, input_shape=(input_dim,), kernel_initializer='normal', activation='relu')) model.add(Dense(1024, kernel_initializer='normal', activation='relu')) ...
41.666667
100
0.719333
192
1,500
5.515625
0.203125
0.151086
0.17186
0.436261
0.78187
0.745042
0.745042
0.745042
0.745042
0.745042
0
0.040632
0.114
1,500
35
101
42.857143
0.756208
0
0
0.692308
0
0
0.119333
0.016
0
0
0
0
0
1
0.038462
false
0
0.076923
0
0.153846
0
0
0
0
null
0
0
1
0
1
1
1
1
1
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
0
6
9040b2be08c9dcba639583373b5f0c4c01de3091
13,242
py
Python
openstackclient/tests/unit/volume/v3/fakes.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
262
2015-01-29T20:10:49.000Z
2022-03-23T01:59:23.000Z
openstackclient/tests/unit/volume/v3/fakes.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
5
2015-01-21T02:37:35.000Z
2021-11-23T02:26:00.000Z
openstackclient/tests/unit/volume/v3/fakes.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
194
2015-01-08T07:39:27.000Z
2022-03-30T13:51:23.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
33.953846
79
0.614258
1,493
13,242
5.320831
0.170127
0.026057
0.034743
0.02719
0.530841
0.468907
0.364552
0.300101
0.260196
0.201158
0
0.017726
0.292781
13,242
389
80
34.041131
0.830539
0.280849
0
0.232143
0
0
0.138629
0.049956
0
0
0
0.002571
0
1
0.0625
false
0.004464
0.040179
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9040cb412be761146b6669d9fd4eade5a3ac0512
12,287
py
Python
gammapy/cube/tests/test_core.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
3
2019-01-28T12:21:14.000Z
2019-02-10T19:58:07.000Z
gammapy/cube/tests/test_core.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
gammapy/cube/tests/test_core.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from numpy.testing import assert_allclose from astropy.coordinates import Angle from astropy.tests.helper import pytest, assert_quantity_allclose from ast...
39.763754
90
0.657524
1,631
12,287
4.786021
0.195586
0.050218
0.040866
0.025109
0.425826
0.358698
0.328593
0.298232
0.272483
0.248655
0
0.049698
0.231952
12,287
308
91
39.892857
0.777472
0.198258
0
0.343284
0
0
0.051192
0.012644
0
0
0
0.006494
0.179104
1
0.084577
false
0
0.064677
0
0.159204
0.004975
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
90429ee16f26834b4fd4e1ca6831ceabda97033d
298
py
Python
api/applications/migrations/0042_merge_20201213_0228.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/applications/migrations/0042_merge_20201213_0228.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/applications/migrations/0042_merge_20201213_0228.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
# Generated by Django 2.2.16 on 2020-12-13 02:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("applications", "0041_goodonapplication_is_precedent"), ("applications", "0041_goodonapplicationdocument"), ] operations = []
21.285714
64
0.694631
31
298
6.548387
0.806452
0.157635
0
0
0
0
0
0
0
0
0
0.1
0.194631
298
13
65
22.923077
0.745833
0.154362
0
0
1
0
0.356
0.26
0
0
0
0
0
1
0
false
0
0.142857
0
0.571429
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
90459d8bfe26d007178d66a09649931906768496
5,829
py
Python
web_app/ca_modules/make_utils.py
Lockers13/codagio
cfe9325cb3c207f7728db3c287439ce761ffea14
[ "MIT" ]
2
2021-01-16T13:42:14.000Z
2021-03-03T19:36:47.000Z
web_app/ca_modules/make_utils.py
Lockers13/codagio
cfe9325cb3c207f7728db3c287439ce761ffea14
[ "MIT" ]
null
null
null
web_app/ca_modules/make_utils.py
Lockers13/codagio
cfe9325cb3c207f7728db3c287439ce761ffea14
[ "MIT" ]
null
null
null
### A module containing various utilities used at various points throughout the processes of submitting and analyzing problems ### import os import json import subprocess import hashlib import sys import random import string from .output_processor import process_output from . import code_templates def make_file(path,...
40.2
198
0.632699
754
5,829
4.667109
0.274536
0.031827
0.018755
0.024155
0.247798
0.22819
0.212276
0.186132
0.123615
0.103723
0
0.009729
0.259393
5,829
145
199
40.2
0.80542
0.164522
0
0.09009
0
0
0.09338
0.023034
0
0
0
0
0
1
0.081081
false
0.009009
0.09009
0
0.225225
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
904821f621f97dceeec43eb063d81e21fa90c37c
21,136
py
Python
wazimap/data/utils.py
AssembleOnline/wazimap
1b8b68fb231b768047eee1b20ed180e4820a2890
[ "MIT" ]
1
2019-01-14T15:37:03.000Z
2019-01-14T15:37:03.000Z
wazimap/data/utils.py
Bhanditz/wazimap
fde22a0874020cf0ae013aeec7ab55b7c5a70b27
[ "MIT" ]
null
null
null
wazimap/data/utils.py
Bhanditz/wazimap
fde22a0874020cf0ae013aeec7ab55b7c5a70b27
[ "MIT" ]
null
null
null
from __future__ import division from collections import OrderedDict from sqlalchemy import create_engine, MetaData, func from sqlalchemy.orm import sessionmaker, class_mapper from django.conf import settings from django.db.backends.base.creation import TEST_DATABASE_PREFIX from django.db import connection if settin...
36.758261
138
0.607116
2,761
21,136
4.519377
0.159725
0.01154
0.007213
0.005289
0.148341
0.115403
0.09673
0.070284
0.057702
0.052412
0
0.005025
0.303321
21,136
574
139
36.8223
0.842377
0.277016
0
0.180516
0
0
0.094829
0.011686
0
0
0
0.001742
0
1
0.051576
false
0.002865
0.028653
0.005731
0.137536
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
9048acfcee11de068839ac11bcc199658e3bb1fe
9,913
py
Python
ovis/analysis/gradients.py
vlievin/ovis
71f05a5f5219b2df66a9cdbd5a5339e0e179597b
[ "MIT" ]
10
2020-08-06T22:25:11.000Z
2022-03-07T13:10:15.000Z
ovis/analysis/gradients.py
vlievin/ovis
71f05a5f5219b2df66a9cdbd5a5339e0e179597b
[ "MIT" ]
2
2021-06-08T22:15:24.000Z
2022-03-12T00:45:59.000Z
ovis/analysis/gradients.py
vlievin/ovis
71f05a5f5219b2df66a9cdbd5a5339e0e179597b
[ "MIT" ]
null
null
null
from time import time from typing import * import torch from booster import Diagnostic from torch import Tensor from tqdm import tqdm from .utils import cosine, percentile, RunningMean, RunningVariance from ..estimators import GradientEstimator from ..models import TemplateModel def get_grads_from_tensor(model: Tem...
42.545064
125
0.611924
1,260
9,913
4.684127
0.21746
0.016266
0.017791
0.016096
0.147069
0.076415
0.072857
0.052525
0.042697
0.011183
0
0.009255
0.291536
9,913
232
126
42.728448
0.831126
0.382528
0
0.094828
0
0
0.070229
0.003902
0
0
0
0
0.025862
1
0.025862
false
0
0.077586
0
0.12931
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
904a907ab750687eb1de030da0541431f23b5d88
1,081
py
Python
Sem-09-T1-Q5.py
daianasousa/Semana-09
decfc9b47931ae4f5a4f30a0d26b931ecd548f59
[ "MIT" ]
null
null
null
Sem-09-T1-Q5.py
daianasousa/Semana-09
decfc9b47931ae4f5a4f30a0d26b931ecd548f59
[ "MIT" ]
null
null
null
Sem-09-T1-Q5.py
daianasousa/Semana-09
decfc9b47931ae4f5a4f30a0d26b931ecd548f59
[ "MIT" ]
null
null
null
def carrega_cidades(): resultado = [] with open('cidades.csv', 'r', encoding='utf-8') as arquivo: for linha in arquivo: uf, ibge, nome, dia, mes, pop = linha.split(';') resultado.append( (uf, int(ibge), nome, int(dia), int(mes), int(pop)) ) arquivo...
30.885714
138
0.543941
134
1,081
4.313433
0.507463
0.048443
0.031142
0
0
0
0
0
0
0
0
0.01423
0.284921
1,081
35
139
30.885714
0.733506
0
0
0
0
0.037037
0.259704
0.021257
0
0
0
0
0
1
0.074074
false
0
0
0
0.111111
0.074074
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
5f3a8ec38dd614e2783df50d617c5b8f3ca8b0f8
1,428
py
Python
data_split.py
CodeDogandCat/ChineseGrammarErrorDiagnose
4e1ec745ae938f742c6afb0e88b08ea50c6028cb
[ "Apache-2.0" ]
null
null
null
data_split.py
CodeDogandCat/ChineseGrammarErrorDiagnose
4e1ec745ae938f742c6afb0e88b08ea50c6028cb
[ "Apache-2.0" ]
null
null
null
data_split.py
CodeDogandCat/ChineseGrammarErrorDiagnose
4e1ec745ae938f742c6afb0e88b08ea50c6028cb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re # from pyltp import Segmentor import jieba.posseg as pseg import jieba import os import sys import json import math # import kenlm import nltk from collections import Counter def dataSplit(inputpath, count): (filepath, tempfilename) = os.path.split(inputpath) (filename, exten...
28
81
0.621148
178
1,428
4.977528
0.421348
0.022573
0.063205
0.076749
0.214447
0.214447
0.214447
0.214447
0.214447
0.214447
0
0.01184
0.231092
1,428
50
82
28.56
0.795082
0.081933
0
0.146341
0
0
0.111877
0
0
0
0
0
0
1
0.02439
false
0
0.219512
0
0.243902
0.219512
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
5f3bba72b50ee67716dbeda71e53db5b079da28f
2,435
py
Python
Code/Python/pract_fund1_sol.py
kunal-mulki/Materials
b76bba123002972e4063b9b24cd5dc3d980e16e9
[ "MIT" ]
27
2016-12-07T17:38:41.000Z
2021-06-28T06:19:49.000Z
Code/Python/pract_fund1_sol.py
kunal-mulki/Materials
b76bba123002972e4063b9b24cd5dc3d980e16e9
[ "MIT" ]
27
2016-05-28T21:32:24.000Z
2016-12-08T16:47:09.000Z
Code/Python/pract_fund1_sol.py
NYUDataBootcamp/Materials
b76bba123002972e4063b9b24cd5dc3d980e16e9
[ "MIT" ]
50
2016-10-12T11:04:50.000Z
2021-06-01T23:24:45.000Z
""" Practice problems, Python fundamentals 1 -- Solutions @authors: Balint Szoke, Daniel Csaba @date: 06/02/2017 """ #------------------------------------------------------- # 1) Solution good_string = "Sarah's code" #or good_string = """Sarah's code""" #------------------------------------------------------- ...
21.936937
62
0.433265
252
2,435
4.111111
0.40873
0.007722
0.026062
0.030888
0.03861
0
0
0
0
0
0
0.034275
0.113347
2,435
110
63
22.136364
0.445577
0.465708
0
0.111111
0
0
0.128674
0
0
0
0
0
0
1
0
false
0
0
0
0
0.277778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f3df5f78e78d0ee2fc42ec4cf3a85208b508f67
7,178
py
Python
eos/old_scott_ANEOS_conversion.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
eos/old_scott_ANEOS_conversion.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
eos/old_scott_ANEOS_conversion.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
""" This is a python script that converts u(rho, T), P(rho, T), Cs(rho,T), S(rho, T) to T(rho, u), P(rho, u), Cs(rho, u), S(rho, u), which is more useful for SPH calculations """ import matplotlib.pyplot as plt from collections import OrderedDict import numpy as np import pandas as pd import csv import sys from scipy...
34.344498
146
0.636389
1,013
7,178
4.363277
0.174729
0.036199
0.01629
0.01267
0.345475
0.280995
0.254525
0.201584
0.137104
0.083258
0
0.022692
0.195737
7,178
208
147
34.509615
0.742941
0.478406
0
0.120482
0
0
0.085888
0
0
0
0
0
0
1
0.048193
false
0
0.096386
0
0.216867
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
5f3f44af77a5d9949e7fe7c6858624af3b7fa923
346
py
Python
scheduler/post_scheduler/urls.py
Awinja-j/Social-Media-post-Scheduler
4f95b4bb2ca3f890d3e22bcda859b94ebc483b87
[ "MIT" ]
1
2021-05-08T08:21:06.000Z
2021-05-08T08:21:06.000Z
scheduler/post_scheduler/urls.py
Awinja-j/Social-Media-post-Scheduler
4f95b4bb2ca3f890d3e22bcda859b94ebc483b87
[ "MIT" ]
null
null
null
scheduler/post_scheduler/urls.py
Awinja-j/Social-Media-post-Scheduler
4f95b4bb2ca3f890d3e22bcda859b94ebc483b87
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('post_posts', views.post_posts), path('fetch_posts', views.get_posts), path('fetch_post/<pk>', views.get_post), path('delete_post/<pk>', views.delete_post), path('edit_post/<pk>', views.edit_post), path('search_for_a_post', v...
28.833333
54
0.699422
52
346
4.346154
0.326923
0.079646
0.146018
0.123894
0
0
0
0
0
0
0
0
0.141619
346
12
55
28.833333
0.760943
0
0
0
0
0
0.239193
0
0
0
0
0
0
1
0
false
0
0.2
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
5f3fad78b868dac1b90ecb78a5594353e0e31396
506
py
Python
dato-graphlab/src/config.py
warreee/apache-flink_vs_dato-graphlab
cd01cee208461479d3f27489ab45df439b8b9820
[ "Apache-2.0" ]
null
null
null
dato-graphlab/src/config.py
warreee/apache-flink_vs_dato-graphlab
cd01cee208461479d3f27489ab45df439b8b9820
[ "Apache-2.0" ]
null
null
null
dato-graphlab/src/config.py
warreee/apache-flink_vs_dato-graphlab
cd01cee208461479d3f27489ab45df439b8b9820
[ "Apache-2.0" ]
null
null
null
import os def getDataPath(): return os.getcwd().replace("dato-graphlab/src", "data/") def getSmall(): return getDataPath() + "sample-small.txt" def getMedium(): return getDataPath() + "sample-medium.txt" def getLarge(): return getDataPath() + "sample-large.txt" def getGoogle(): return getDa...
16.322581
63
0.666008
57
506
5.912281
0.45614
0.252226
0.204748
0.124629
0.21365
0.21365
0.21365
0
0
0
0
0
0.167984
506
30
64
16.866667
0.800475
0
0
0
0
0
0.25
0
0
0
0
0
0
1
0.466667
true
0
0.066667
0.466667
1
0
0
0
0
null
1
1
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
1
1
0
0
1
1
0
0
6
5f42caff296a8e9070523febb1d633e533ecbfff
950
py
Python
tools.py
chougousui/keyboard_layout_for_mobile
3bb59169f10ac56fb82cb62be07f821f1ecac22e
[ "MIT" ]
5
2019-06-12T09:29:06.000Z
2020-12-31T08:53:19.000Z
tools.py
chougousui/keyboard_layout_for_mobile
3bb59169f10ac56fb82cb62be07f821f1ecac22e
[ "MIT" ]
null
null
null
tools.py
chougousui/keyboard_layout_for_mobile
3bb59169f10ac56fb82cb62be07f821f1ecac22e
[ "MIT" ]
null
null
null
import numpy as np def generate_cost_dict(): def inner_func(i, j): x1 = i % 10 y1 = i // 10 x2 = j % 10 y2 = j // 10 alpha = 5 x_center = 5.5 x_radius = 7.5 y_center = 1 y_radius = 4.5 dist = np.sqrt(47 * 47 * np.square(x1 - x2) + 7...
29.6875
119
0.489474
144
950
3.076389
0.305556
0.110609
0.045147
0.049661
0.34763
0.34763
0.34763
0.248307
0.117381
0
0
0.095
0.368421
950
31
120
30.645161
0.643333
0
0
0.08
1
0
0
0
0
0
0
0
0
1
0.08
false
0
0.04
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f43a06d91c00b879b94bd9ca11de4d7d8fcab07
377
py
Python
full-stack/backend/django-app/django-jwt-app/settings/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
null
null
null
full-stack/backend/django-app/django-jwt-app/settings/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
23
2020-08-15T15:18:32.000Z
2022-02-26T13:49:05.000Z
full-stack/backend/django-app/django-jwt-app/settings/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from rest_framework_jwt.views import ( obtain_jwt_token, refresh_jwt_token, ) urlpatterns = [ path('admin/', admin.site.urls), path('token-auth/', obtain_jwt_token), path('token-refresh/', refresh_jwt_token), path('employ...
22.176471
70
0.710875
48
377
5.375
0.416667
0.124031
0.108527
0
0
0
0
0
0
0
0
0
0.153846
377
16
71
23.5625
0.808777
0
0
0
0
0
0.161804
0
0
0
0
0
0
1
0
false
0
0.25
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
5f45037068a6ca19658fc2ba430b609e4386fc29
15,989
py
Python
models/train_classifier.py
tarcisobraz/disaster-message-clf
22de03350a0f993005564a1d07a43da6bd989e67
[ "DOC" ]
null
null
null
models/train_classifier.py
tarcisobraz/disaster-message-clf
22de03350a0f993005564a1d07a43da6bd989e67
[ "DOC" ]
null
null
null
models/train_classifier.py
tarcisobraz/disaster-message-clf
22de03350a0f993005564a1d07a43da6bd989e67
[ "DOC" ]
null
null
null
#General libs import sys import os import json from datetime import datetime import time #Data wrangling libs import pandas as pd import numpy as np #DB related libs from sqlalchemy import create_engine #ML models related libs from sklearn.pipeline import Pipeline, FeatureUnion from sklearn.metrics import confusion_...
37.888626
117
0.659704
1,896
15,989
5.327532
0.179852
0.01881
0.009801
0.008316
0.306108
0.244431
0.226314
0.208692
0.184536
0.111276
0
0.005528
0.264557
15,989
421
118
37.978622
0.853474
0.272625
0
0.144144
0
0
0.135254
0.015976
0
0
0
0
0
1
0.045045
false
0
0.103604
0
0.18018
0.103604
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
5f468ef647d08df9b7e435bbbbaaf01ef4277cf4
148
py
Python
src/cortexpy/test/constants.py
karljohanw/cortexpy
70dcce771136f98edb5250ad8abd2a46bda7f0a6
[ "Apache-2.0" ]
2
2020-04-08T15:31:12.000Z
2020-07-01T11:04:47.000Z
src/cortexpy/test/constants.py
karljohanw/cortexpy
70dcce771136f98edb5250ad8abd2a46bda7f0a6
[ "Apache-2.0" ]
9
2018-09-12T09:29:43.000Z
2020-03-15T09:11:25.000Z
src/cortexpy/test/constants.py
karljohanw/cortexpy
70dcce771136f98edb5250ad8abd2a46bda7f0a6
[ "Apache-2.0" ]
1
2019-03-29T10:59:13.000Z
2019-03-29T10:59:13.000Z
import struct MAX_UINT = 2 ** (struct.calcsize('I') * 8) - 1 MAX_ULONG = 2 ** (struct.calcsize('L') * 8) - 1 UINT8_T = 1 UINT32_T = 4 UINT64_T = 8
18.5
47
0.614865
27
148
3.185185
0.592593
0.162791
0.348837
0
0
0
0
0
0
0
0
0.118644
0.202703
148
7
48
21.142857
0.610169
0
0
0
0
0
0.013514
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
5f47bfe261a0653163329656400b45e38dc2e334
2,103
py
Python
tests/functional_tests/authors/test_authors_login.py
Kaique425/recipes
ab188dbe1ca3891160f65a7858613b8750faa721
[ "MIT" ]
null
null
null
tests/functional_tests/authors/test_authors_login.py
Kaique425/recipes
ab188dbe1ca3891160f65a7858613b8750faa721
[ "MIT" ]
null
null
null
tests/functional_tests/authors/test_authors_login.py
Kaique425/recipes
ab188dbe1ca3891160f65a7858613b8750faa721
[ "MIT" ]
null
null
null
import pytest from django.contrib.auth.models import User from django.urls import reverse from selenium.webdriver.common.by import By from .base import AuthorBaseFunctionalTest @pytest.mark.functional_test class AuthorLoginTest(AuthorBaseFunctionalTest): def test_user_valid_data_can_login_successfully(self): ...
37.553571
85
0.661912
269
2,103
4.94052
0.256506
0.066215
0.040632
0.049661
0.576373
0.532731
0.498119
0.498119
0.422122
0.363431
0
0.004266
0.219686
2,103
55
86
38.236364
0.805606
0
0
0.375
0
0
0.152639
0.036139
0
0
0
0
0.0625
1
0.0625
false
0.1875
0.104167
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5f483bb62aff2e6859980fe0b75abe98dd22d479
3,873
py
Python
fixture/contact.py
piersto/python_training
a5e323f62177e97d31e39449d675192354ec70ed
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
piersto/python_training
a5e323f62177e97d31e39449d675192354ec70ed
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
piersto/python_training
a5e323f62177e97d31e39449d675192354ec70ed
[ "Apache-2.0" ]
null
null
null
class ContactHelper: def __init__(self, app): self.app = app def submit_specified_user(self): wd = self.app.wd wd.find_element_by_xpath("(//input[@name='submit'])[2]").click() def add_user(self, add_new_contact): wd = self.app.wd wd.find_element_by_...
60.515625
110
0.674154
536
3,873
4.408582
0.11194
0.137114
0.29708
0.342785
0.869234
0.727042
0.289463
0.022006
0
0
0
0.002576
0.198296
3,873
64
111
60.515625
0.758454
0
0
0.163934
0
0
0.08983
0.007228
0
0
0
0
0
1
0.04918
false
0
0
0
0.065574
0
0
0
0
null
0
1
1
1
1
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
0
4
5f4b11817e6c6f5664fb7eebcff8bd3df9ed5773
42
py
Python
varex/__init__.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
varex/__init__.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
varex/__init__.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
from .commons import VCFEntry, LabeledMat
21
41
0.833333
5
42
7
1
0
0
0
0
0
0
0
0
0
0
0
0.119048
42
1
42
42
0.945946
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
5f4ba7ea00a9b4ae2bec68e16163449e185187d1
2,612
py
Python
simulation/battery/base_battery.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
8
2020-03-29T01:44:16.000Z
2022-03-26T23:15:34.000Z
simulation/battery/base_battery.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
60
2020-02-08T22:07:16.000Z
2022-03-26T23:51:55.000Z
simulation/battery/base_battery.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
1
2021-10-20T20:07:06.000Z
2021-10-20T20:07:06.000Z
from simulation.common import Storage from simulation.common import BatteryEmptyError class BaseBattery(Storage): def __init__(self, initial_energy, max_current_capacity, max_energy_capacity, max_voltage, min_voltage, voltage, state_of_charge): super().__init__() # Constants ...
39.575758
116
0.61562
312
2,612
4.945513
0.272436
0.085548
0.075826
0.04407
0.201555
0
0
0
0
0
0
0.006201
0.320827
2,612
65
117
40.184615
0.863585
0.220138
0
0.113636
0
0
0.086548
0.034619
0
0
0
0.015385
0
1
0.204545
false
0
0.045455
0.113636
0.409091
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
1
0
0
1
0
0
0
1
0
0
0
3
5f501af017d1618fd9d8ac7f58bef0af07c22038
2,757
py
Python
MLP/Detectar cancer de mama/Cancer_mama_simples.py
alex7alves/Deep-Learning
7843629d5367f3ea8b15915a7ba3667cf7a65587
[ "Apache-2.0" ]
null
null
null
MLP/Detectar cancer de mama/Cancer_mama_simples.py
alex7alves/Deep-Learning
7843629d5367f3ea8b15915a7ba3667cf7a65587
[ "Apache-2.0" ]
null
null
null
MLP/Detectar cancer de mama/Cancer_mama_simples.py
alex7alves/Deep-Learning
7843629d5367f3ea8b15915a7ba3667cf7a65587
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Oct 17 21:04:48 2018 @author: Alex Alves Programa para determinar se um tumor de mama é benigno (saida 0) ou maligno (saida 1) """ import pandas as pa # Importação para poder dividir os dados entre treinamento da rede e testes de validação from skl...
33.216867
114
0.791077
406
2,757
5.251232
0.448276
0.078799
0.023921
0.030957
0.149625
0.136961
0.06848
0.06848
0.06848
0.06848
0
0.030826
0.117519
2,757
82
115
33.621951
0.845458
0.478781
0
0
0
0
0.080657
0
0
0
0
0
0
1
0
false
0
0.25
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
5f50dd9219cff3c1253c4849dd5381638d312cc3
1,214
py
Python
py/py_0736_paths_to_equality.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0736_paths_to_equality.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0736_paths_to_equality.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 736: Paths to Equality # https://projecteuler.net/problem=736 # # Define two functions on lattice points:$r(x,y) = (x+1,2y)$$s(x,y) = # (2x,y+1)$A path to equality of length $n$ for a pair $(a,b)$ is a sequence # $\Big((a_1,b_1),(a_2,b_2),\ldots,(a_n,b_n)\Big)$, where:$(a_1,b_1...
40.466667
213
0.651565
237
1,214
3.202532
0.409283
0.065876
0.073781
0.01581
0.096179
0.071146
0
0
0
0
0
0.112195
0.155684
1,214
29
214
41.862069
0.628293
0.846787
0
0
0
0
0.047619
0
0
0
0
0
0
1
0.125
false
0.125
0.125
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
5f548523f9dcf1f62a0e2fe0f345f22d699939d1
1,728
py
Python
codejam/2020-qualification/d.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
codejam/2020-qualification/d.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
codejam/2020-qualification/d.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
#!/usr/bin/env python3 # https://codingcompetitions.withgoogle.com/codejam/round/000000000019fd27/0000000000209a9e t, b = map(int, input().split()) for _ in range(t): xs = [None] * b q, k, k1, k2 = 0, 0, None, None def query(k): global q q += 1 print(k) r = int(input()) ...
27
91
0.358218
217
1,728
2.847926
0.262673
0.02589
0.038835
0.048544
0.168285
0.153722
0.153722
0
0
0
0
0.114833
0.516204
1,728
63
92
27.428571
0.624402
0.064236
0
0.263158
0
0
0.000619
0
0
0
0
0
0.017544
1
0.052632
false
0.017544
0
0
0.070175
0.035088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
0
1
5f54a49151f01f5e6cf35cf93d8091376f6fa1d7
431
py
Python
doping_test/Standard.py
Biewer/Doping-Tests-for-Cyber-Physical-Systems-Tool
eb359ba618f0022dcd403edc99904f3ef2940e65
[ "MIT" ]
null
null
null
doping_test/Standard.py
Biewer/Doping-Tests-for-Cyber-Physical-Systems-Tool
eb359ba618f0022dcd403edc99904f3ef2940e65
[ "MIT" ]
null
null
null
doping_test/Standard.py
Biewer/Doping-Tests-for-Cyber-Physical-Systems-Tool
eb359ba618f0022dcd403edc99904f3ef2940e65
[ "MIT" ]
null
null
null
class Standard(object): """Abstract class for representation of Standard LTS""" def __init__(self): super(Standard, self).__init__() def get_any_trace(self, boundary): # Return any of the traces of standard LTS S raise NotImplementedError('Abstract method not implemented!') def get_traces(self, boundary): ...
30.785714
63
0.756381
56
431
5.625
0.517857
0.063492
0.08254
0.24127
0.330159
0.330159
0
0
0
0
0
0
0.150812
431
13
64
33.153846
0.860656
0.313225
0
0.285714
0
0
0.222222
0
0
0
0
0
0
1
0.428571
false
0
0
0
0.571429
0
0
0
0
null
0
0
1
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
1
0
0
0
0
0
0
0
2
5f587bf36e711ee18aa81e26269a6338ac9328eb
1,388
py
Python
Stephanie/updater.py
JeremyARussell/stephanie-va
acc894fa69b4e5559308067d525f71f951ecc258
[ "MIT" ]
866
2017-06-10T19:25:28.000Z
2022-01-06T18:29:36.000Z
Stephanie/updater.py
JeremyARussell/stephanie-va
acc894fa69b4e5559308067d525f71f951ecc258
[ "MIT" ]
54
2017-06-11T06:41:19.000Z
2022-01-10T23:06:03.000Z
Stephanie/updater.py
JeremyARussell/stephanie-va
acc894fa69b4e5559308067d525f71f951ecc258
[ "MIT" ]
167
2017-06-10T19:32:54.000Z
2022-01-03T07:01:39.000Z
import requests from Stephanie.configurer import config class Updater: def __init__(self, speaker): self.speaker = speaker self.c = config self.current_version = self.c.config.get("APPLICATION", "version") self.update_url = "https://raw.githubusercontent.com/SlapBot/va-version-check/master/version.json" se...
34.7
142
0.730548
195
1,388
5.097436
0.379487
0.080483
0.054326
0.044266
0.088531
0
0
0
0
0
0
0
0.146974
1,388
39
143
35.589744
0.839527
0
0
0.176471
0
0.058824
0.366715
0.041066
0
0
0
0
0
1
0.088235
false
0
0.058824
0
0.264706
0.176471
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
5f591fe59a581e7f936f818cedb0f094b131b698
24,533
py
Python
WORC/featureprocessing/ComBat.py
MStarmans91/WORC
b6b8fc2ccb7d443a69b5ca20b1d6efb65b3f0fc7
[ "ECL-2.0", "Apache-2.0" ]
47
2018-01-28T14:08:15.000Z
2022-03-24T16:10:07.000Z
WORC/featureprocessing/ComBat.py
JZK00/WORC
14e8099835eccb35d49b52b97c0be64ecca3809c
[ "ECL-2.0", "Apache-2.0" ]
13
2018-08-28T13:32:57.000Z
2020-10-26T16:35:59.000Z
WORC/featureprocessing/ComBat.py
JZK00/WORC
14e8099835eccb35d49b52b97c0be64ecca3809c
[ "ECL-2.0", "Apache-2.0" ]
16
2017-11-13T10:53:36.000Z
2022-03-18T17:02:04.000Z
#!/usr/bin/env python # Copyright 2020 Biomedical Imaging Group Rotterdam, Departments of # Medical Informatics and Radiology, Erasmus MC, Rotterdam, The Netherlands # # 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...
40.684909
161
0.604329
2,968
24,533
4.798854
0.152628
0.055676
0.03665
0.028646
0.441831
0.35105
0.290739
0.246367
0.205294
0.186407
0
0.013316
0.292871
24,533
602
162
40.752492
0.807701
0.134309
0
0.252451
0
0.002451
0.103574
0.012325
0
0
0
0.001661
0
1
0.009804
false
0.004902
0.041667
0
0.056373
0.066176
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
5f59e320e469d3924b3247fe49f94eea11acee62
727
py
Python
setup.py
mariocesar/pg-worker
d79c6daa8825226c754330c21150e4e416b09005
[ "MIT" ]
1
2020-06-03T21:21:03.000Z
2020-06-03T21:21:03.000Z
setup.py
mariocesar/pg-worker
d79c6daa8825226c754330c21150e4e416b09005
[ "MIT" ]
null
null
null
setup.py
mariocesar/pg-worker
d79c6daa8825226c754330c21150e4e416b09005
[ "MIT" ]
null
null
null
import os import sys from setuptools import setup, find_packages ROOT = os.path.realpath(os.path.join(os.path.dirname( sys.modules['__main__'].__file__))) sys.path.insert(0, os.path.join(ROOT, 'src')) setup( name='pgworker', packages=find_packages('src'), package_dir={'': 'src'}, classifiers=[ ...
24.233333
53
0.603851
77
727
5.532468
0.571429
0.056338
0.176056
0.122066
0
0
0
0
0
0
0
0.010929
0.244842
727
29
54
25.068966
0.765027
0
0
0
0
0
0.394773
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
5f5a0eafce7a5f076591e84cd9440a10e1d4e795
2,040
py
Python
PyBank/main.py
gentikosumi/python-challenge
e6532bf1033f5272616d4f8a1cf623bbafe1a1c2
[ "ADSL" ]
null
null
null
PyBank/main.py
gentikosumi/python-challenge
e6532bf1033f5272616d4f8a1cf623bbafe1a1c2
[ "ADSL" ]
null
null
null
PyBank/main.py
gentikosumi/python-challenge
e6532bf1033f5272616d4f8a1cf623bbafe1a1c2
[ "ADSL" ]
null
null
null
import os import csv path = '/Users/kevinkosumi12345/Genti/python-challenge/PyBank/Resources/budget_data.csv' budget_csv=os.path.join("../Resources", "budget_data.csv") csvfile = open(path, newline="") reader=csv.reader(csvfile, delimiter=",") header = next(reader) # print(header) # the columns we have to convert ...
30.909091
129
0.702451
278
2,040
5.082734
0.320144
0.076433
0.067941
0.031139
0.154282
0.096249
0.096249
0.050955
0
0
0
0.00791
0.132353
2,040
66
130
30.909091
0.790395
0.32549
0
0
0
0
0.243382
0.077206
0.068966
0
0
0
0
1
0
false
0
0.068966
0
0.068966
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
5f5b2c35892025ff370debbb01a9bff69a798ad0
1,516
py
Python
models/python/hypothalamus/dynamical/old/simple.py
ABRG-Models/MammalBot
0b153232b94197c7a65156c1c3451ab2b9f725ae
[ "MIT" ]
null
null
null
models/python/hypothalamus/dynamical/old/simple.py
ABRG-Models/MammalBot
0b153232b94197c7a65156c1c3451ab2b9f725ae
[ "MIT" ]
null
null
null
models/python/hypothalamus/dynamical/old/simple.py
ABRG-Models/MammalBot
0b153232b94197c7a65156c1c3451ab2b9f725ae
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt T = 30000 # v = 0.02906 # v = 0.617085 v = 0.99 h = 0.01 a = 0.5 b = 0.5 epsilon = 0.05 c = 0.4 eta = lambda rho: np.exp(-(rho)**2/(2*c**2)) nrho = lambda rho, v: -2.0*(rho**3 + (rho-1.0)*v/2.0 - rho)/(rho + 1.0) nu = lambda rho: (b - eta(rho+1))/a u = np.zeros(T) ...
28.603774
85
0.529024
357
1,516
2.232493
0.22409
0.041405
0.043915
0.022585
0.136763
0.102886
0.080301
0
0
0
0
0.126603
0.176781
1,516
53
86
28.603774
0.512019
0.168865
0
0
0
0
0.029624
0
0
0
0
0
0
1
0
false
0
0.05
0
0.05
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
5f5c0b0acb48624cb76c04ec88d096e81b40a0f1
176
py
Python
test_script.py
SamPurle/DE17_Flask
a6462b85854f7bd72c80ebcc555d50488ef17e67
[ "MIT" ]
null
null
null
test_script.py
SamPurle/DE17_Flask
a6462b85854f7bd72c80ebcc555d50488ef17e67
[ "MIT" ]
null
null
null
test_script.py
SamPurle/DE17_Flask
a6462b85854f7bd72c80ebcc555d50488ef17e67
[ "MIT" ]
null
null
null
import numpy as np import os my_array = np.zeros(10) print(my_array) os.system('pip freeze > requirements.txt') my_list = [1,2,3,4,5] for item in my_list: print(item)
12.571429
42
0.693182
34
176
3.470588
0.705882
0.118644
0
0
0
0
0
0
0
0
0
0.048276
0.176136
176
13
43
13.538462
0.765517
0
0
0
0
0
0.164773
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
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
5f5ebabcae4886b932638d5f3ecd10d1eb595d7b
6,058
py
Python
lib/blastin.py
zbwrnz/blastdbm
ee694c01ebb00779623702738a9c958fd496a080
[ "Unlicense" ]
1
2018-03-22T10:34:20.000Z
2018-03-22T10:34:20.000Z
lib/blastin.py
arendsee/blastdbm
ee694c01ebb00779623702738a9c958fd496a080
[ "Unlicense" ]
null
null
null
lib/blastin.py
arendsee/blastdbm
ee694c01ebb00779623702738a9c958fd496a080
[ "Unlicense" ]
null
null
null
#! /usr/bin/python3 import argparse import os import re import sqlite3 as sql import sys import xml.etree.cElementTree as et import traceback import lib.initialize as initialize import lib.sqlite_interface as misc import lib.meta as meta # ================== # EXPORTED FUNCTIONS # ================== def parse(pare...
31.552083
83
0.530538
733
6,058
4.249659
0.268759
0.038202
0.020867
0.019262
0.083467
0.05618
0.023756
0.023756
0.023756
0
0
0.002925
0.322879
6,058
191
84
31.717277
0.75646
0.05794
0
0.155844
0
0
0.124955
0
0
0
0
0
0
1
0.084416
false
0.025974
0.064935
0
0.168831
0.006494
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
5f63c4934790515bb6fc74d4d7ecc9a70d977a36
646
py
Python
tests/test_get_image.py
kortizceballos/codeastro-group6
9f0ceb8a0fca3e619dbabe97105a3f283e59fa04
[ "BSD-3-Clause" ]
1
2021-06-25T21:20:42.000Z
2021-06-25T21:20:42.000Z
tests/test_get_image.py
kortizceballos/codeastro-group6
9f0ceb8a0fca3e619dbabe97105a3f283e59fa04
[ "BSD-3-Clause" ]
null
null
null
tests/test_get_image.py
kortizceballos/codeastro-group6
9f0ceb8a0fca3e619dbabe97105a3f283e59fa04
[ "BSD-3-Clause" ]
null
null
null
from matplotlib.pyplot import get import pyhips from pyhips import get_image def test_get_image(): """ Tests the get_image() function to make sure no errors are thrown. """ assert get_image("Vega", frame="ICRS", survey="DSS", cmap="plasma") == 0 assert get_image("notanid", frame="ICRS", survey="D...
35.888889
83
0.662539
89
646
4.595506
0.404494
0.176039
0.171149
0.176039
0.493888
0.493888
0.457213
0.457213
0.457213
0.342298
0
0.009294
0.167183
646
18
84
35.888889
0.750929
0.100619
0
0
0
0
0.201413
0
0
0
0
0
0.454545
1
0.090909
true
0
0.272727
0
0.363636
0
0
0
0
null
0
0
1
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
1
0
0
1
0
0
0
0
0
0
3
5f65055d81665e397feccfc78dd6d2f299634b64
138
py
Python
cumulus2/template.py
peterkh/cumulus2
11352ce469acb0c319ba9cfb8691d80f4ae5048e
[ "Apache-2.0" ]
1
2016-02-12T11:54:07.000Z
2016-02-12T11:54:07.000Z
cumulus2/template.py
peterkh/cumulus2
11352ce469acb0c319ba9cfb8691d80f4ae5048e
[ "Apache-2.0" ]
null
null
null
cumulus2/template.py
peterkh/cumulus2
11352ce469acb0c319ba9cfb8691d80f4ae5048e
[ "Apache-2.0" ]
null
null
null
""" Template module for cumulus. template class for reading yaml tempalte and creating data_source objects to retrieve external data. """
23
76
0.797101
19
138
5.736842
0.842105
0
0
0
0
0
0
0
0
0
0
0
0.144928
138
5
77
27.6
0.923729
0.934783
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
5f67096a7114362044846dbb3a2978d1562f88ac
700
py
Python
Python-AI-Algorithms/Bubble_sort.py
screadore/Artificial-Intelligence-Sorting-Algorithms
d69f34dbd02556c6a7bbb8e0dee45ab7fdb4b12c
[ "MIT" ]
null
null
null
Python-AI-Algorithms/Bubble_sort.py
screadore/Artificial-Intelligence-Sorting-Algorithms
d69f34dbd02556c6a7bbb8e0dee45ab7fdb4b12c
[ "MIT" ]
null
null
null
Python-AI-Algorithms/Bubble_sort.py
screadore/Artificial-Intelligence-Sorting-Algorithms
d69f34dbd02556c6a7bbb8e0dee45ab7fdb4b12c
[ "MIT" ]
null
null
null
# Bubble sort steps through the list and compares adjacent pairs of elements. The elements are swapped if they are in the wrong order. The pass through the unsorted portion of the list is repeated until the list is sorted. Because Bubble sort repeatedly passes through the unsorted part of the list, it has a worst case...
36.842105
342
0.591429
111
700
3.720721
0.477477
0.067797
0.087167
0
0
0
0
0
0
0
0
0.012848
0.332857
700
19
343
36.842105
0.87152
0.482857
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.214286
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
5f670af72f12c73cbff679c29371d4269f74b778
551
py
Python
Practice/Python/Strings/the_minion_game.py
nifannn/HackerRank
b05318251226704b1fb949c29aa49493d6ced44b
[ "MIT" ]
7
2019-02-22T10:34:26.000Z
2021-07-13T01:51:48.000Z
Practice/Python/Strings/the_minion_game.py
nifannn/HackerRank
b05318251226704b1fb949c29aa49493d6ced44b
[ "MIT" ]
null
null
null
Practice/Python/Strings/the_minion_game.py
nifannn/HackerRank
b05318251226704b1fb949c29aa49493d6ced44b
[ "MIT" ]
7
2018-11-09T13:52:34.000Z
2021-03-18T20:36:22.000Z
def minion_game(string): # Stuart score s_idx = [i for i, c in enumerate(string) if c not in 'AEIOU'] s_score = sum([len(string)-i for i in s_idx]) # Kevin score k_idx = [i for i, c in enumerate(string) if c in 'AEIOU'] k_score = sum([len(string)-i for i in k_idx]) # final result if k_sc...
30.611111
65
0.604356
91
551
3.417582
0.351648
0.051447
0.064309
0.051447
0.450161
0.340836
0.340836
0.340836
0.186495
0.186495
0
0
0.255898
551
17
66
32.411765
0.758537
0.067151
0
0
0
0
0.107843
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0.230769
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
5f6e27388481683369aca2bd805d2c503d7286e8
189
py
Python
deep_learning_zero/ch5/sample.py
kaito0223/shakyou
8d901b4da24fbf0c708e3eb429a57d194e9857c1
[ "MIT" ]
null
null
null
deep_learning_zero/ch5/sample.py
kaito0223/shakyou
8d901b4da24fbf0c708e3eb429a57d194e9857c1
[ "MIT" ]
null
null
null
deep_learning_zero/ch5/sample.py
kaito0223/shakyou
8d901b4da24fbf0c708e3eb429a57d194e9857c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np X = np.random.rand(2) #input W = np.random.rand(2,3) #weight B = np.random.rand(3) #bias print(X) print(W) print(B) Y=np.dot(X,W)+B print(Y)
11.8125
31
0.613757
40
189
2.9
0.5
0.206897
0.310345
0.224138
0
0
0
0
0
0
0
0.031646
0.164021
189
15
32
12.6
0.702532
0.190476
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.444444
0
0
0
null
1
1
1
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
1
0
4
5f71554b9254c1a62eba83f18f61c6f664cfe709
2,485
py
Python
bdd/contact_stepts.py
LukinVV/python_training
9e6eb57fe9527fd591d563b4219c19e49188c4de
[ "Apache-2.0" ]
null
null
null
bdd/contact_stepts.py
LukinVV/python_training
9e6eb57fe9527fd591d563b4219c19e49188c4de
[ "Apache-2.0" ]
null
null
null
bdd/contact_stepts.py
LukinVV/python_training
9e6eb57fe9527fd591d563b4219c19e49188c4de
[ "Apache-2.0" ]
null
null
null
from pytest_bdd import given, when, then from model.contact import Contact import random @given('a contact list') def contact_list(orm): return orm.get_contact_list() @given('a contact with <firstname>, <lastname> and <address>') def new_contact(firstname, lastname, address): return Contact(firstname=firstnam...
42.118644
101
0.781087
382
2,485
4.793194
0.149215
0.150191
0.07373
0.093392
0.480612
0.449481
0.407974
0.345713
0.345713
0.345713
0
0.000462
0.12837
2,485
59
102
42.118644
0.844875
0
0
0.244898
0
0
0.184634
0
0
0
0
0
0.061224
1
0.204082
false
0
0.061224
0.061224
0.346939
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
1
0
0
0
0
0
0
0
1
5f72286dd657c066d24e11dfe7993aa6f68aabbc
769
py
Python
FigureMaker.py
space-physics/histfeas
caa0100087d8c2b8711c1c3cb60c322379ef5431
[ "MIT" ]
null
null
null
FigureMaker.py
space-physics/histfeas
caa0100087d8c2b8711c1c3cb60c322379ef5431
[ "MIT" ]
null
null
null
FigureMaker.py
space-physics/histfeas
caa0100087d8c2b8711c1c3cb60c322379ef5431
[ "MIT" ]
1
2015-05-22T23:51:58.000Z
2015-05-22T23:51:58.000Z
#!/usr/bin/env python """ Figures generated by HiST program intended for use with in/ files including: *_flame.ini *_impulse.ini *_trans.ini Flaming Aurora 2 cameras: ./FigureMaker.py in/2cam_flame.ini Translating Aurora 2 cameras: ./FigureMaker.py in/2cam_trans.ini Impulse Aurora (for testing): ./FigureMaker.py in...
20.783784
55
0.758127
116
769
4.948276
0.543103
0.11324
0.10453
0.099303
0.114983
0.114983
0.114983
0
0
0
0
0.028571
0.135241
769
36
56
21.361111
0.834586
0.721717
0
0
1
0
0.019608
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f72433b75556b159f57faa7593653f49eb2cb21
3,557
py
Python
T53/webapp/accounts/models.py
DevelopAppWithMe/Hackathon_5.0
6af503a995721c04986931d6a29d8f946ceaa067
[ "MIT" ]
null
null
null
T53/webapp/accounts/models.py
DevelopAppWithMe/Hackathon_5.0
6af503a995721c04986931d6a29d8f946ceaa067
[ "MIT" ]
null
null
null
T53/webapp/accounts/models.py
DevelopAppWithMe/Hackathon_5.0
6af503a995721c04986931d6a29d8f946ceaa067
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from django.contrib.auth.models import ( AbstractBaseUser, BaseUserManager, PermissionsMixin, ) from django.core.validators import RegexValidator from django.db import models class UserManager(BaseUserManager): def create_user(self, phone_numb...
32.336364
104
0.687939
448
3,557
5.285714
0.261161
0.092905
0.035473
0.048142
0.420186
0.377956
0.295608
0.271115
0.22973
0.22973
0
0.023214
0.21282
3,557
109
105
32.633028
0.8225
0.080967
0
0.307692
0
0
0.128449
0.006438
0
0
0
0
0
1
0.076923
false
0.076923
0.051282
0.051282
0.564103
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
1
0
0
1
0
0
2
5f72dad431a7abe4ecae9aa703b14fc2183ff13a
2,998
py
Python
pyv6m/ha/v6m.py
dubnom/pyv6m
d56bf3f3d39b7c2f747b08bc1974dc3dbe6ccff8
[ "MIT" ]
1
2020-02-16T00:42:17.000Z
2020-02-16T00:42:17.000Z
pyv6m/ha/v6m.py
dubnom/pyv6m
d56bf3f3d39b7c2f747b08bc1974dc3dbe6ccff8
[ "MIT" ]
null
null
null
pyv6m/ha/v6m.py
dubnom/pyv6m
d56bf3f3d39b7c2f747b08bc1974dc3dbe6ccff8
[ "MIT" ]
null
null
null
"""Component to control v6m relays and sensors. For more details about this component, please refer to the documentation at https://home-assistant.io/components/v6m/ """ import logging import voluptuous as vol from homeassistant.const import ( EVENT_HOMEASSISTANT_STOP, CONF_HOST, CONF_PORT, CONF_NAME) import homea...
28.552381
75
0.615744
361
2,998
4.900277
0.304709
0.027134
0.022046
0.025438
0.134539
0.134539
0.105144
0.105144
0.062182
0.062182
0
0.008272
0.274183
2,998
104
76
28.826923
0.804688
0.166111
0
0.047619
0
0
0.006165
0
0
0
0
0
0
1
0.206349
false
0
0.079365
0
0.380952
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
1
0
0
0
0
0
0
0
1
5f7622df0a14efca2dcdfe048326621ae11f4cbc
550
py
Python
blog/models.py
Happy-Project-Foundation/HappyProject
86e9fa7633e68c026e0003f8494df0226fa0dfcf
[ "Apache-2.0" ]
3
2021-12-04T15:00:54.000Z
2021-12-08T16:07:35.000Z
blog/models.py
BirnadinErick/HappyProject
4993a2d966d9c1458ce0e29e72c3a758a7a4ef54
[ "Apache-2.0" ]
3
2021-12-15T00:49:01.000Z
2021-12-16T00:46:14.000Z
blog/models.py
Happy-Project-Foundation/HappyProject
86e9fa7633e68c026e0003f8494df0226fa0dfcf
[ "Apache-2.0" ]
3
2021-12-04T14:18:15.000Z
2021-12-05T08:40:13.000Z
import uuid from django.db import models from django.db.models.fields import TextField class Blog(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) title = models.CharField(verbose_name="Title", max_length=150, default="Happy Blog", blank=False) content = models.T...
32.352941
109
0.736364
74
550
5.324324
0.5
0.083756
0.060914
0.13198
0
0
0
0
0
0
0
0.021322
0.147273
550
16
110
34.375
0.818763
0
0
0
0
0
0.078182
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0.090909
0.909091
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