hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
6abd76a4346e864f20b87c6375cfea621f745017
1,070
py
Python
grpc_adenine/database/services_list.py
cyber-republic/elastos-smartweb-service
7bc5c7f089c5915bf0f21097f117409739016518
[ "MIT" ]
1
2019-12-20T16:04:12.000Z
2019-12-20T16:04:12.000Z
grpc_adenine/database/services_list.py
cyber-republic/gmu-master-api-service
7bc5c7f089c5915bf0f21097f117409739016518
[ "MIT" ]
70
2019-11-12T18:13:45.000Z
2020-04-23T18:06:41.000Z
grpc_adenine/database/services_list.py
cyber-republic/gmu-master-api-service
7bc5c7f089c5915bf0f21097f117409739016518
[ "MIT" ]
4
2019-10-22T18:08:21.000Z
2020-09-08T22:14:20.000Z
""" ServicesList table is mapped to the elastos_console database. It maps the User with its api key. """
38.214286
96
0.711215
from datetime import datetime from grpc_adenine.database import (connection as db) """ ServicesList table is mapped to the elastos_console database. It maps the User with its api key. """ class ServicesLists(db.Model): id = db.Column(db.Integer, primary_key=True) user_api_id = db.Column(db.Integer, db.Forei...
0
0
0
856
0
0
0
39
68
32eedf6358215bccfc227a66ce6c58817303d3dc
1,678
py
Python
Kattis/Parser.py
cadeng23/Compiler
392998435a13fe9c3d608c83a17b5f3e355d3a82
[ "MIT" ]
null
null
null
Kattis/Parser.py
cadeng23/Compiler
392998435a13fe9c3d608c83a17b5f3e355d3a82
[ "MIT" ]
null
null
null
Kattis/Parser.py
cadeng23/Compiler
392998435a13fe9c3d608c83a17b5f3e355d3a82
[ "MIT" ]
null
null
null
#the two lines below are for the final code #setarr(arr) #arr = sortlines(arr, order) main()
22.675676
57
0.434446
from sys import stdin from enum import Enum class Commands(Enum): LET = 1 IF = 2 PRINT = 3 PRINTLN = 4 #the two lines below are for the final code def setarr(arr): #for x in stdin: # arr.append(x) for a in range(1): k = input() arr.append(k) #return arr def sortlines...
0
0
0
53
0
1,345
0
0
158
920cd28da5741a35f7c8d40aca49c5196118f4d7
17,896
py
Python
lmgvp/datasets.py
ChrisAllenMing/lm-gvp
f329b9e89d95b59153f6ae5e831b480ccc9c5d71
[ "MIT-0" ]
11
2021-09-21T21:04:56.000Z
2022-03-28T17:26:35.000Z
lmgvp/datasets.py
ChrisAllenMing/lm-gvp
f329b9e89d95b59153f6ae5e831b480ccc9c5d71
[ "MIT-0" ]
1
2021-11-05T08:03:31.000Z
2021-11-05T08:03:31.000Z
lmgvp/datasets.py
ChrisAllenMing/lm-gvp
f329b9e89d95b59153f6ae5e831b480ccc9c5d71
[ "MIT-0" ]
1
2021-12-01T01:56:18.000Z
2021-12-01T01:56:18.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 """ Pytorch map style dataset classes for proteins (seq, struct, seq+struct). Modified from https://github.com/drorlab/gvp-pytorch/blob/main/gvp/data.py """ import torch import torch.utils.data as data def _normaliz...
31.900178
130
0.580409
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 """ Pytorch map style dataset classes for proteins (seq, struct, seq+struct). Modified from https://github.com/drorlab/gvp-pytorch/blob/main/gvp/data.py """ import math import tqdm import numpy as np import torch impo...
0
0
0
15,844
0
0
0
-2
291
ad55e71202dbc4b3fe7135f0f838aec3d0d5c38a
3,562
py
Python
FANS2Line.py
zz358840/Facebook-Fan-Page_Post2Line
10a267e05fb6c4632fe22617fc76105f9a1e08fd
[ "MIT" ]
null
null
null
FANS2Line.py
zz358840/Facebook-Fan-Page_Post2Line
10a267e05fb6c4632fe22617fc76105f9a1e08fd
[ "MIT" ]
null
null
null
FANS2Line.py
zz358840/Facebook-Fan-Page_Post2Line
10a267e05fb6c4632fe22617fc76105f9a1e08fd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time import requests from dateutil.parser import parse from linebot import LineBotApi from linebot.models import TextSendMessage # # http://bhan0507.logdown.com/posts/1291544-python-facebook-api # Facebook Graph API Exploertoken()2 # # http://blog.csdn.net/mochong/article/details/6087...
40.477273
150
0.510107
# -*- coding: utf-8 -*- import time import requests from dateutil.parser import parse from linebot import LineBotApi from linebot.models import TextSendMessage from linebot.exceptions import LineBotApiError # 爬蟲參考 # http://bhan0507.logdown.com/posts/1291544-python-facebook-api # 在Facebook Graph API Exploer取得token(自己新...
984
0
0
0
0
157
0
25
44
4acc673c90ce8f54cfe25dfe8629fefb72c82d7c
738
py
Python
app/core/migrations/0008_auto_20201208_1656.py
Diaga/connectu-backend
67214fdb10ea8c4e2384b2323de73b3cf85e02c9
[ "MIT" ]
null
null
null
app/core/migrations/0008_auto_20201208_1656.py
Diaga/connectu-backend
67214fdb10ea8c4e2384b2323de73b3cf85e02c9
[ "MIT" ]
null
null
null
app/core/migrations/0008_auto_20201208_1656.py
Diaga/connectu-backend
67214fdb10ea8c4e2384b2323de73b3cf85e02c9
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-08 11:56
29.52
138
0.632791
# Generated by Django 3.1.4 on 2020-12-08 11:56 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0007_appointment'), ] operations = [ migrations.AlterField( model_name='mentor', ...
0
0
0
591
0
0
0
30
68
bf9c4bb96655c0c00f31c5e5d5e5838bbb428775
13,240
py
Python
controlminus/ui/widget.py
janvrany/controlminus
27c29e6a907a540479ffffaa165483db70f1d8cc
[ "MIT" ]
null
null
null
controlminus/ui/widget.py
janvrany/controlminus
27c29e6a907a540479ffffaa165483db70f1d8cc
[ "MIT" ]
null
null
null
controlminus/ui/widget.py
janvrany/controlminus
27c29e6a907a540479ffffaa165483db70f1d8cc
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Jan Vrany <jan.vrany (a) fit.cvut.cz> # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modif...
33.434343
159
0.579003
# Copyright (c) 2020 Jan Vrany <jan.vrany (a) fit.cvut.cz> # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modif...
0
0
0
11,389
0
0
0
30
190
3105ada5a1e9bae159a1bafd4982ee857ec6a905
1,081
py
Python
src/spn/experiments/AQP/leaves/identity/InferenceRange.py
tkrons/SPFlow_topdownrules
6227fc973f4f36da7fbe25fa500d656eb7273033
[ "Apache-2.0" ]
199
2018-11-13T10:37:45.000Z
2022-02-06T17:07:28.000Z
src/spn/experiments/AQP/leaves/identity/InferenceRange.py
minimrbanana/SPFlow
32233bf29d107c62f0f727b0e64aaa74b37cfe1e
[ "Apache-2.0" ]
46
2018-11-30T13:40:38.000Z
2022-01-22T21:05:07.000Z
src/spn/experiments/AQP/leaves/identity/InferenceRange.py
minimrbanana/SPFlow
32233bf29d107c62f0f727b0e64aaa74b37cfe1e
[ "Apache-2.0" ]
78
2018-11-13T10:37:48.000Z
2022-03-14T21:34:13.000Z
""" Created on June 21, 2018 @author: Moritz """
27.717949
88
0.583719
""" Created on June 21, 2018 @author: Moritz """ import numpy as np def identity_likelihood_range(node, ranges, dtype=np.float64, **kwargs): assert len(node.scope) == 1, node.scope probs = np.zeros((ranges.shape[0], 1), dtype=dtype) ranges = ranges[:, node.scope[0]] for i, rang in enumerate(ranges...
0
0
0
0
0
987
0
-3
46
e06a48b5dd4698147061bb3c1ec2c957ac1b9dcd
768
py
Python
virtualenvmgr/utils.py
yannik-ammann/virtualenv-mgr
467d81d658098719b5bd95455f7257dbc57d6ee4
[ "BSD-3-Clause" ]
null
null
null
virtualenvmgr/utils.py
yannik-ammann/virtualenv-mgr
467d81d658098719b5bd95455f7257dbc57d6ee4
[ "BSD-3-Clause" ]
null
null
null
virtualenvmgr/utils.py
yannik-ammann/virtualenv-mgr
467d81d658098719b5bd95455f7257dbc57d6ee4
[ "BSD-3-Clause" ]
null
null
null
# print table #
34.909091
87
0.382813
# print table # def pptable(table): head = table['head'] body = table['body'] pretty_head = [ '+' + '+'.join(['{:->24}'.format('') for n in head]) + '+', '|' + '|'.join(['{:^24}'.format(str(n)[-24:]) for n in head]) + '|', '+' + '+'.join(['{:=>24...
0
0
0
0
0
730
0
0
22
4a35fd2c97ddf3142a686e3c7d8f089969c7db4a
635
py
Python
Page2/58/58.py
Tomev/Project-Euler
6591203cf6aaf27765749791585eac8d4f34c97d
[ "Unlicense" ]
null
null
null
Page2/58/58.py
Tomev/Project-Euler
6591203cf6aaf27765749791585eac8d4f34c97d
[ "Unlicense" ]
null
null
null
Page2/58/58.py
Tomev/Project-Euler
6591203cf6aaf27765749791585eac8d4f34c97d
[ "Unlicense" ]
null
null
null
from methods import is_prime from time import time elapsed_time = time() current_last = 1 side_len = 1 travel_by = 1 edges_num = 0 prime_edges_num = 0 ratio = 1 while ratio > 0.1: side_len += 2 edges_num += 4 current_last += 1 current_last += travel_by travel_by += 1 if is_prime(current_l...
16.710526
39
0.648819
from methods import is_prime from time import time elapsed_time = time() current_last = 1 side_len = 1 travel_by = 1 edges_num = 0 prime_edges_num = 0 ratio = 1 while ratio > 0.1: side_len += 2 edges_num += 4 current_last += 1 current_last += travel_by travel_by += 1 if is_prime(current_l...
0
0
0
0
0
0
0
0
0
f2180dbb2f4eb0755e7e8925426cb87c7b9f7390
762
py
Python
main.py
william-dawson/fullerene-predictor
1ce0855a0e7fc44d49d0d498ac64c44096d2d158
[ "MIT" ]
null
null
null
main.py
william-dawson/fullerene-predictor
1ce0855a0e7fc44d49d0d498ac64c44096d2d158
[ "MIT" ]
null
null
null
main.py
william-dawson/fullerene-predictor
1ce0855a0e7fc44d49d0d498ac64c44096d2d158
[ "MIT" ]
1
2021-03-26T03:30:39.000Z
2021-03-26T03:30:39.000Z
''' @package main driver for the fullerene energy computer. ''' from sys import argv from fullerene_curvature.curvature import compute_k_values, compute_g_values, compute_energy, compute_euler_characteristic from fullerene_curvature.fullerene import Fullerene if __name__ == "__main__": file_name = argv[1] try...
29.307692
79
0.734908
''' @package main driver for the fullerene energy computer. ''' from sys import argv from fullerene_curvature.curvature import compute_k_values, compute_g_values, \ compute_energy, compute_euler_characteristic from fullerene_curvature.fullerene import Fullerene if __name__ == "__main__": file_name = argv[1] ...
0
0
0
0
0
0
0
6
0
522914c145fa2be04c4ad6ca02dae1c4a6818108
4,721
py
Python
clock-tcp.py
amimoto/orangepi-ws2812
d3c56b2803453a6cd60741513a86fc60e86e166f
[ "MIT" ]
1
2022-01-22T22:39:07.000Z
2022-01-22T22:39:07.000Z
clock-tcp.py
amimoto/orangepi-ws2812
d3c56b2803453a6cd60741513a86fc60e86e166f
[ "MIT" ]
null
null
null
clock-tcp.py
amimoto/orangepi-ws2812
d3c56b2803453a6cd60741513a86fc60e86e166f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Offers support for WS2812 LED LEDs via the hardware SPI MOSI Uses py-spidev: ``` git clone https://github.com/doceme/py-spidev.git cd py-spidev make make install ``` """ import time import datetime while True: try: main() except Exception as ex: now = datetime.datetime.now() ...
25.38172
86
0.485279
#!/usr/bin/python3 """ Offers support for WS2812 LED LEDs via the hardware SPI MOSI Uses py-spidev: ``` git clone https://github.com/doceme/py-spidev.git cd py-spidev make make install ``` """ import time import datetime import socket import math import re import random from izaber import initialize, config from...
2
0
0
1,984
0
2,147
0
13
203
10c43a730e52d7fa382dca35bd26ff04c612c5ea
8,082
py
Python
CV/VehicleCounting/eval/eval.py
zhangyimi/Research
866f91d9774a38d205d6e9a3b1ee6293748261b3
[ "Apache-2.0" ]
1,319
2020-02-14T10:42:07.000Z
2022-03-31T15:42:18.000Z
CV/VehicleCounting/eval/eval.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
192
2020-02-14T02:53:34.000Z
2022-03-31T02:25:48.000Z
CV/VehicleCounting/eval/eval.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
720
2020-02-14T02:12:38.000Z
2022-03-31T12:21:15.000Z
#-*- coding:utf-8 -*- # zhangwei99@baidu.com import numpy as np import os #def parseTxt(TxtName, parseArray): # fp = open(TxtName) # lines = fp.readlines() # for line in lines: # sp = line.rstrip("\n").split(",") # fId = int(sp[1]) # if fId >= 3000: # continue # mId = ...
36.080357
224
0.530191
#-*- coding:utf-8 -*- # zhangwei99@baidu.com import openpyxl as pyxl import numpy as np import math import os from collections import OrderedDict def parseXLSX(xlsxName, parseArray): wb = pyxl.load_workbook(xlsxName) sheet_names = wb.sheetnames ws = wb[sheet_names[0]] for i in range(2, ws.max_row+1): ...
0
0
0
0
0
3,814
0
6
136
1431a57c545604d9c7de7630a7d2b730da7a79f6
9,440
py
Python
clew/engine.py
bchopson/clew
259828371bfde846e92964dbac6bc679300aa148
[ "MIT" ]
null
null
null
clew/engine.py
bchopson/clew
259828371bfde846e92964dbac6bc679300aa148
[ "MIT" ]
10
2018-01-07T17:27:17.000Z
2018-07-08T19:02:50.000Z
clew/engine.py
bchopson/clew
259828371bfde846e92964dbac6bc679300aa148
[ "MIT" ]
null
null
null
#!env/bin/python3
37.911647
89
0.548623
#!env/bin/python3 import itertools import pycosat from mongoengine import * from .models import PEOPLE, WEAPONS, ROOMS class Engine(): CARDS = PEOPLE + WEAPONS + ROOMS UNKNOWN = 'unknown' FALSE = 'false' TRUE = 'true' def __init__(self, game): self.game = game @property def ca...
0
1,186
0
8,109
0
0
0
13
113
0731c3a1f3b0d9ea00a334b0567eed21e8c15d63
3,604
py
Python
st2reactor/st2reactor/rules/engine.py
shusugmt/st2
31da26badfb4ca3fb3e8cae07cfeec4791191afd
[ "Apache-2.0" ]
1
2020-11-09T21:05:33.000Z
2020-11-09T21:05:33.000Z
st2reactor/st2reactor/rules/engine.py
ellerbrock/st2
b3a0d9f82053c1fd5adb616dc8331bad427cd11f
[ "Apache-2.0" ]
3
2021-03-26T00:29:52.000Z
2021-03-26T00:34:45.000Z
st2reactor/st2reactor/rules/engine.py
ellerbrock/st2
b3a0d9f82053c1fd5adb616dc8331bad427cd11f
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
38.752688
99
0.700055
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
0
0
0
2,364
0
0
0
160
133
207959a7e06a4f304f381a2f7593891a469539a9
4,657
py
Python
news/app.py
peterkuma/tjrapid
8813cb0a3633785754d20263f180428688bcb026
[ "MIT" ]
null
null
null
news/app.py
peterkuma/tjrapid
8813cb0a3633785754d20263f180428688bcb026
[ "MIT" ]
1
2021-05-16T16:40:00.000Z
2021-05-16T16:40:00.000Z
news/app.py
peterkuma/tjrapid
8813cb0a3633785754d20263f180428688bcb026
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2007-2012 Peter Kuma
28.224242
102
0.695512
# -*- coding: utf-8 -*- # # Copyright (c) 2007-2012 Peter Kuma import os from datetime import date from django.http import Http404 from django.core.exceptions import PermissionDenied from django.shortcuts import render from django.template import RequestContext from django.core.exceptions import ObjectDoesNotExist fr...
0
45
0
3,863
0
0
0
285
400
fadee403349544bd639d5b733dc7fbf42dca9f94
30
py
Python
comment.py
sandervalstar/autokey-scripts
01c0deb574db0b3ea76fc021ae9602a350148a22
[ "MIT" ]
1
2019-10-01T07:46:14.000Z
2019-10-01T07:46:14.000Z
comment.py
sandervalstar/autokey-scripts
01c0deb574db0b3ea76fc021ae9602a350148a22
[ "MIT" ]
null
null
null
comment.py
sandervalstar/autokey-scripts
01c0deb574db0b3ea76fc021ae9602a350148a22
[ "MIT" ]
null
null
null
keyboard.send_keys('<ctrl>+/')
30
30
0.7
keyboard.send_keys('<ctrl>+/')
0
0
0
0
0
0
0
0
0
1bfe532b47c680d0d2253ef882fcf95857dabd0b
112
py
Python
magicmirror/__version__.py
memirror/magicMirror
05ee16b44aef22c30da2bc3323c5ba593b3e53fa
[ "MIT" ]
5
2021-09-03T03:06:51.000Z
2022-03-22T07:48:22.000Z
magicmirror/__version__.py
xiaodongxiexie/magicMirror
05ee16b44aef22c30da2bc3323c5ba593b3e53fa
[ "MIT" ]
null
null
null
magicmirror/__version__.py
xiaodongxiexie/magicMirror
05ee16b44aef22c30da2bc3323c5ba593b3e53fa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: xiaodong # @Date : 2021/5/27 __author__ = "xiaodong" __version__ = "0.1.3"
16
23
0.598214
# -*- coding: utf-8 -*- # @Author: xiaodong # @Date : 2021/5/27 __author__ = "xiaodong" __version__ = "0.1.3"
0
0
0
0
0
0
0
0
0
11ee137b7115f08b688418a7aeb1cb3f6d157d0a
2,200
py
Python
rps.py
umar006/rock-paper-scissors
a77640f7ed269031a11e4b177b72106572b7776f
[ "MIT" ]
null
null
null
rps.py
umar006/rock-paper-scissors
a77640f7ed269031a11e4b177b72106572b7776f
[ "MIT" ]
null
null
null
rps.py
umar006/rock-paper-scissors
a77640f7ed269031a11e4b177b72106572b7776f
[ "MIT" ]
null
null
null
import random player = input('Enter your name: ') print(f'Hello, {player}') score = 0 rating = open('rating.txt') for rate in rating: if player in rate: score = int(rate.split()[1]) rating.close() winning_cases = { 'water' : ['scissors', 'fire', 'rock', 'hun', 'lightning', 'devil', 'dragon'], 'dr...
37.931034
82
0.543182
import random player = input('Enter your name: ') print(f'Hello, {player}') score = 0 rating = open('rating.txt') for rate in rating: if player in rate: score = int(rate.split()[1]) rating.close() winning_cases = { 'water' : ['scissors', 'fire', 'rock', 'hun', 'lightning', 'devil', 'dragon'], 'dr...
0
0
0
0
0
0
0
0
0
714f09a5747795622ec68a83aff530aed9a4fe19
19,569
py
Python
mc3/stats/stats.py
alulujasmine/mc3
d4c7581b3ce6a0009882cfb102278e15032bfcad
[ "MIT" ]
6
2019-11-20T05:32:26.000Z
2021-04-29T15:15:15.000Z
mc3/stats/stats.py
alulujasmine/mc3
d4c7581b3ce6a0009882cfb102278e15032bfcad
[ "MIT" ]
15
2019-08-30T14:47:11.000Z
2022-03-13T17:10:47.000Z
mc3/stats/stats.py
alulujasmine/mc3
d4c7581b3ce6a0009882cfb102278e15032bfcad
[ "MIT" ]
3
2020-06-13T15:32:47.000Z
2022-03-27T00:34:02.000Z
# Copyright (c) 2015-2021 Patricio Cubillos and contributors. # mc3 is open-source software under the MIT license (see LICENSE). __all__ = [ 'bin_array', 'residuals', 'chisq', 'dwt_chisq', 'log_prior', 'cred_region', 'ppf_uniform', 'ppf_gaussian', 'dwt_daub4', 'Loglike', 'Pr...
31.819512
80
0.582299
# Copyright (c) 2015-2021 Patricio Cubillos and contributors. # mc3 is open-source software under the MIT license (see LICENSE). __all__ = [ 'bin_array', 'residuals', 'chisq', 'dwt_chisq', 'log_prior', 'cred_region', 'ppf_uniform', 'ppf_gaussian', 'dwt_daub4', 'Loglike', 'Pr...
0
0
0
3,728
0
0
0
0
92
40f0c407351b60e89887d8b79f42e7c3a2dacd55
1,022
py
Python
Section_4/Exercise_11.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
null
null
null
Section_4/Exercise_11.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
null
null
null
Section_4/Exercise_11.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
1
2021-11-21T09:38:33.000Z
2021-11-21T09:38:33.000Z
""" Dwie liczby naturalne s przyjacikami jeeli zbiory cyfr z ktrych zbudowane s liczby s identyczne. Na przykad: 123 i 321, 211 i 122, 35 3553. Dana jest tablica T[N][N] wypeniona liczbami naturalnymi. Prosz napisa funkcj, ktra dla tablicy T zwraca ile elementw tablicy ssiaduje wycznie z przyjacikami. """ from random i...
32.967742
95
0.580235
""" Dwie liczby naturalne są „przyjaciółkami jeżeli zbiory cyfr z których zbudowane są liczby są identyczne. Na przykład: 123 i 321, 211 i 122, 35 3553. Dana jest tablica T[N][N] wypełniona liczbami naturalnymi. Proszę napisać funkcję, która dla tablicy T zwraca ile elementów tablicy sąsiaduje wyłącznie z przyjaciółkam...
41
0
0
0
0
542
0
0
23
c73b40855a764353e2ee52484cf55670fdc4e8f8
3,329
py
Python
bin/scarab_globals/object_manager.py
JiaoMaWHU/scarab
03f311520acdd91caafc8d59436ff4352cfb6b0c
[ "MIT" ]
null
null
null
bin/scarab_globals/object_manager.py
JiaoMaWHU/scarab
03f311520acdd91caafc8d59436ff4352cfb6b0c
[ "MIT" ]
null
null
null
bin/scarab_globals/object_manager.py
JiaoMaWHU/scarab
03f311520acdd91caafc8d59436ff4352cfb6b0c
[ "MIT" ]
null
null
null
# Copyright 2020 HPS/SAFARI Research Groups # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, ...
35.795699
103
0.734455
# Copyright 2020 HPS/SAFARI Research Groups # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, ...
0
0
0
1,223
0
0
0
15
134
99aef5ff39ffbd5a819aeb1a57fdcabc0b883d0a
235
py
Python
hedweb/constants/page_constants.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
null
null
null
hedweb/constants/page_constants.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
null
null
null
hedweb/constants/page_constants.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
2
2022-02-04T19:55:40.000Z
2022-02-04T21:36:04.000Z
EVENTS_PAGE = 'events.html' HED_TOOLS_HOME_PAGE = 'hed-tools-home.html' SCHEMA_PAGE = 'schema.html' SIDECAR_PAGE = 'sidecar.html' SPREADSHEET_PAGE = 'spreadsheet.html' STRING_PAGE = 'string.html' SERVICES_PAGE = 'services.html'
29.375
44
0.753191
EVENTS_PAGE = 'events.html' HED_TOOLS_HOME_PAGE = 'hed-tools-home.html' SCHEMA_PAGE = 'schema.html' SIDECAR_PAGE = 'sidecar.html' SPREADSHEET_PAGE = 'spreadsheet.html' STRING_PAGE = 'string.html' SERVICES_PAGE = 'services.html'
0
0
0
0
0
0
0
0
0
962dd2a2b256ba5e7fbf597c2dc06a2d2471ddeb
10,490
py
Python
tools/accuracy_checker/accuracy_checker/metrics/metric.py
APrigarina/open_model_zoo
b1ff98b64a6222cf6b5f3838dc0271422250de95
[ "Apache-2.0" ]
null
null
null
tools/accuracy_checker/accuracy_checker/metrics/metric.py
APrigarina/open_model_zoo
b1ff98b64a6222cf6b5f3838dc0271422250de95
[ "Apache-2.0" ]
null
null
null
tools/accuracy_checker/accuracy_checker/metrics/metric.py
APrigarina/open_model_zoo
b1ff98b64a6222cf6b5f3838dc0271422250de95
[ "Apache-2.0" ]
1
2021-08-12T07:26:46.000Z
2021-08-12T07:26:46.000Z
""" Copyright (c) 2018-2021 Intel Corporation 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 wri...
41.299213
120
0.660534
""" Copyright (c) 2018-2021 Intel Corporation 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 wri...
0
3,695
0
5,587
0
0
0
255
224
19bde1e738e0d353c01079874d10d6812b329a72
1,159
py
Python
setup.py
univ-of-utah-marriott-library-apple/radmind_auto_image_creator
84ede339c7e060068bba91d627d10d7d15fc743e
[ "MIT" ]
2
2015-06-25T05:33:23.000Z
2018-03-04T06:11:54.000Z
setup.py
univ-of-utah-marriott-library-apple/radmind_auto_image_creator
84ede339c7e060068bba91d627d10d7d15fc743e
[ "MIT" ]
null
null
null
setup.py
univ-of-utah-marriott-library-apple/radmind_auto_image_creator
84ede339c7e060068bba91d627d10d7d15fc743e
[ "MIT" ]
null
null
null
from distutils.core import setup from src import automagic_imaging setup( name='Automagic Imaging', version=automagic_imaging.__version__, url='https://github.com/univ-of-utah-marriott-library-apple/radmind_auto_image_creator', author='Pierce Darragh, Marriott Library IT Services', author_email='ml...
39.965517
92
0.666954
from distutils.core import setup from src import automagic_imaging setup( name='Automagic Imaging', version=automagic_imaging.__version__, url='https://github.com/univ-of-utah-marriott-library-apple/radmind_auto_image_creator', author='Pierce Darragh, Marriott Library IT Services', author_email='ml...
0
0
0
0
0
0
0
0
0
96bb75c7646b2f160a50b1b85084d20e5deaee60
2,361
py
Python
tobiko/tripleo/topology.py
4383/tobiko
f8e6916db890021fa17ddbfc5e6007a25093c8cb
[ "Apache-2.0" ]
null
null
null
tobiko/tripleo/topology.py
4383/tobiko
f8e6916db890021fa17ddbfc5e6007a25093c8cb
[ "Apache-2.0" ]
null
null
null
tobiko/tripleo/topology.py
4383/tobiko
f8e6916db890021fa17ddbfc5e6007a25093c8cb
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Red Hat # # 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 ...
37.47619
78
0.646336
# Copyright 2019 Red Hat # # 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 ...
0
0
0
1,320
0
183
0
47
113
d24a66f1db49d0875a780111a1a5041956af06f4
13,087
py
Python
GAN/acgan_features.py
wanghangpsu/acgan-ada
28cd175a38f8e9e261f9967759c12cb06760052e
[ "MIT" ]
null
null
null
GAN/acgan_features.py
wanghangpsu/acgan-ada
28cd175a38f8e9e261f9967759c12cb06760052e
[ "MIT" ]
null
null
null
GAN/acgan_features.py
wanghangpsu/acgan-ada
28cd175a38f8e9e261f9967759c12cb06760052e
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.optim as optim #g_filters = [384, 192, 96, 48, 3] #g_strids = [1, 2, 2, 2] # filters = [16, 32, 64, 128, 256, 512] # strides = [2,1,2,1,2,1]
40.391975
122
0.514709
import torch import torch.nn as nn import torch.optim as optim import os import random from CNN.resnet import BasicBlock import torch.nn.functional as F class ACGAN: def __init__(self, in_dim, class_dim, g_filters, g_strides, d_filters, d_strides, CNN, feature_size=32, feature_id=0): self.device = "cuda" i...
0
0
0
12,142
0
518
0
-7
248
5d2680ee738f9a43bbc086db3520ad8c6f98af3d
3,649
py
Python
nuitka/tools/quality/Git.py
juanfra684/Nuitka
0e276895fadabefb598232f2ccf8cc7736c9a85b
[ "Apache-2.0" ]
1
2020-04-13T18:56:02.000Z
2020-04-13T18:56:02.000Z
nuitka/tools/quality/Git.py
juanfra684/Nuitka
0e276895fadabefb598232f2ccf8cc7736c9a85b
[ "Apache-2.0" ]
1
2020-07-11T17:53:56.000Z
2020-07-11T17:53:56.000Z
nuitka/tools/quality/Git.py
juanfra684/Nuitka
0e276895fadabefb598232f2ccf8cc7736c9a85b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
30.157025
99
0.644286
# Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
0
0
0
0
330
2,130
0
-16
182
c2bf9354e3a38277ad205ed45e91ce3b6c8929c5
1,674
py
Python
src/gradelib/run_notebooks.py
phaustin/gradelib
b07ac6b09854f888cedf514905f21a83722020bb
[ "BSD-3-Clause" ]
null
null
null
src/gradelib/run_notebooks.py
phaustin/gradelib
b07ac6b09854f888cedf514905f21a83722020bb
[ "BSD-3-Clause" ]
null
null
null
src/gradelib/run_notebooks.py
phaustin/gradelib
b07ac6b09854f888cedf514905f21a83722020bb
[ "BSD-3-Clause" ]
null
null
null
""" execute a notebook file hierarchy run_notebooks orig_notebook_dir file_re run_notebooks autograded "lab_wk9*ipynb" """
31.584906
86
0.681004
""" execute a notebook file hierarchy run_notebooks orig_notebook_dir file_re run_notebooks autograded "lab_wk9*ipynb" """ from pathlib import Path import click from .utils import working_directory import shutil import nbformat from nbconvert.preprocessors import ExecutePreprocessor def run_file(notebook_file, resu...
0
936
0
0
0
402
0
29
179
4b58961cc1dedeccd7c81d4ff8ea673db0930eb8
2,751
py
Python
scraper.py
KelstonClub/quiz
5f6fca87ca21c376937f50f00e1d3ff2fbe3425a
[ "MIT" ]
null
null
null
scraper.py
KelstonClub/quiz
5f6fca87ca21c376937f50f00e1d3ff2fbe3425a
[ "MIT" ]
null
null
null
scraper.py
KelstonClub/quiz
5f6fca87ca21c376937f50f00e1d3ff2fbe3425a
[ "MIT" ]
null
null
null
import requests from urllib.parse import urljoin, urlparse from bs4 import BeautifulSoup BASE_SITE = "https://www.jetpunk.com" BASE_URL = "/tags/multiple-choice" if __name__ == "__main__": page = requests.get(BASE_SITE + BASE_URL) soup = BeautifulSoup(page.content, "html.parser") links = soup.find_al...
29.265957
79
0.608142
import requests from urllib.parse import urljoin, urlparse from bs4 import BeautifulSoup import re BASE_SITE = "https://www.jetpunk.com" BASE_URL = "/tags/multiple-choice" def get_quiz_name(content): soup = BeautifulSoup(content, "html.parser") name = soup.find("h1").text return name def get_quiz_quest...
0
0
0
0
0
1,445
0
-12
114
6a1bb4bf9167ca2668b4177d7928588a7d0bf579
2,408
py
Python
general/using-google-drive-api/search_files.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
general/using-google-drive-api/search_files.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
general/using-google-drive-api/search_files.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
# If modifying these scopes, delete the file token.pickle. SCOPES = ['https://www.googleapis.com/auth/drive.metadata'] if __name__ == '__main__': main()
35.940299
91
0.608389
import pickle import os from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from tabulate import tabulate # If modifying these scopes, delete the file token.pickle. SCOPES = ['https://www.googleapis.com/auth/drive...
0
0
0
0
0
1,948
0
72
213
7caf08dfc345501f750d7d4675408fcac19a9fbc
536
py
Python
src/tree/0543.diameter-of-binary-tree/diameter-of-binary-tree.py
lyphui/Just-Code
e0c3c3ecb67cb805080ff686e88522b2bffe7741
[ "MIT" ]
782
2019-11-19T08:20:49.000Z
2022-03-25T06:59:09.000Z
src/0543.diameter-of-binary-tree/diameter-of-binary-tree.py
Heitao5200/Just-Code
5bb3ee485a103418e693b7ec8e26dc84f3691c79
[ "MIT" ]
1
2021-03-04T12:21:01.000Z
2021-03-05T01:23:54.000Z
src/0543.diameter-of-binary-tree/diameter-of-binary-tree.py
Heitao5200/Just-Code
5bb3ee485a103418e693b7ec8e26dc84f3691c79
[ "MIT" ]
155
2019-11-20T08:20:42.000Z
2022-03-19T07:28:09.000Z
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None
26.8
58
0.514925
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def diameterOfBinaryTree(self, root: TreeNode) -> int: self.res = 0 def dfs(root): if not root: retu...
0
0
0
352
0
0
0
0
23
c40fdee8351cf5819f45e20ba177a1c08ab35198
3,646
py
Python
tests/test_utility/test_utility.py
gbarcomu/avalon
060e8bce29a6c80845e45b11dcacb936401fe031
[ "Apache-2.0" ]
null
null
null
tests/test_utility/test_utility.py
gbarcomu/avalon
060e8bce29a6c80845e45b11dcacb936401fe031
[ "Apache-2.0" ]
null
null
null
tests/test_utility/test_utility.py
gbarcomu/avalon
060e8bce29a6c80845e45b11dcacb936401fe031
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Intel Corporation # # 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 wri...
37.587629
144
0.645913
# Copyright 2019 Intel Corporation # # 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 wri...
0
0
0
2,731
0
0
0
183
68
fb209441aa00a382e422763c659baf912b850a77
931
py
Python
translation_comparator/cython/settings.py
0dminnimda/translation_comparator
387b66596fbc4a926df015eb9319d98bc63111b0
[ "MIT" ]
null
null
null
translation_comparator/cython/settings.py
0dminnimda/translation_comparator
387b66596fbc4a926df015eb9319d98bc63111b0
[ "MIT" ]
null
null
null
translation_comparator/cython/settings.py
0dminnimda/translation_comparator
387b66596fbc4a926df015eb9319d98bc63111b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from difflib import Differ from pathlib import Path from typing import Container from ..show_functions import show_via_cmd from ..typedefs import GEN_PATH_FUNC, PATH_FUNC, SHOW_FUNC from .path_builders import (build_via_suffix_change, unique_name_via_number, unique_stem_...
27.382353
76
0.728249
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from difflib import Differ from pathlib import Path from typing import Container from ..show_functions import show_via_cmd from ..typedefs import GEN_PATH_FUNC, PATH_FUNC, SHOW_FUNC from .path_builders import (build_via_suffix_change, unique_name_via_number, ...
0
0
0
0
0
0
0
28
0
bf4f12948f6216baa4f441ede5bf43cc30c9a92d
366
py
Python
vendor/mo_math/crypto.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
vendor/mo_math/crypto.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
vendor/mo_math/crypto.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
# encoding: utf-8 # # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # from __future__ import absolute_import, division, unicode_literals
21.529412
75
0.740437
# encoding: utf-8 # # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # from __future__ import absolute_import, division, unicode_literals import secrets def bytes(c...
0
0
0
0
0
34
0
-7
46
4c1cd7f4fa43a595025e25560e0a80c678ea60a1
9,799
py
Python
jet-python/build/lib.linux-x86_64-2.7/jnpr/jet/shared/ttypes.py
Juniper/vmx-docker-lwaftr
ebbedad67d8acd74f4a305a0a4ad6bf2ed716e7e
[ "Apache-2.0" ]
31
2016-11-22T06:17:37.000Z
2022-01-10T05:41:02.000Z
jet-python/build/lib.linux-x86_64-2.7/jnpr/jet/shared/ttypes.py
Juniper/vmx-docker-lwaftr
ebbedad67d8acd74f4a305a0a4ad6bf2ed716e7e
[ "Apache-2.0" ]
2
2016-12-20T13:53:57.000Z
2017-03-27T20:10:07.000Z
jet-python/lib/jnpr/jet/shared/ttypes.py
Juniper/vmx-docker-lwaftr
ebbedad67d8acd74f4a305a0a4ad6bf2ed716e7e
[ "Apache-2.0" ]
8
2017-01-31T22:18:18.000Z
2020-02-05T10:33:23.000Z
# # Autogenerated by Thrift Compiler (0.9.1) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # try: from thrift.protocol import fastbinary except: fastbinary = None
32.772575
188
0.731299
# # Autogenerated by Thrift Compiler (0.9.1) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from thrift.transport import TTransport from thrift.protocol import TBinaryProtocol, TProtocol tr...
0
0
0
9,359
0
0
0
110
114
9271808085fd4c0530debe4021f6eeca097ea08a
5,706
py
Python
samples/snippets/process_document_ocr_sample.py
LaudateCorpus1/python-documentai
1c61b737ce02185bad04c7bd58c12e6772b8569f
[ "Apache-2.0" ]
47
2020-07-04T16:50:53.000Z
2022-03-18T20:53:53.000Z
samples/snippets/process_document_ocr_sample.py
LaudateCorpus1/python-documentai
1c61b737ce02185bad04c7bd58c12e6772b8569f
[ "Apache-2.0" ]
112
2020-02-11T00:42:35.000Z
2022-03-22T14:45:35.000Z
samples/snippets/process_document_ocr_sample.py
LaudateCorpus1/python-documentai
1c61b737ce02185bad04c7bd58c12e6772b8569f
[ "Apache-2.0" ]
21
2020-02-01T00:07:12.000Z
2022-02-10T17:37:07.000Z
# Copyright 2020 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 to in writing, s...
39.902098
198
0.699614
# Copyright 2020 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 to in writing, s...
0
0
0
0
0
3,928
0
0
161
12ee24377b1a8d98a0f05be7ac2cb63fb334e8c6
1,045
py
Python
lantern/action/models.py
cecpanda/TitanLantern
55d867c45f12958927cca9dbeb4be892882a24fb
[ "MIT" ]
null
null
null
lantern/action/models.py
cecpanda/TitanLantern
55d867c45f12958927cca9dbeb4be892882a24fb
[ "MIT" ]
10
2020-06-05T18:29:46.000Z
2022-03-11T23:21:56.000Z
lantern/action/models.py
cecpanda/TitanLantern
55d867c45f12958927cca9dbeb4be892882a24fb
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model UserModel = get_user_model()
36.034483
123
0.737799
from django.db import models from django.contrib.auth import get_user_model from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey UserModel = get_user_model() class Action(models.Model): user = models.ForeignKey(UserModel, related_name='actio...
87
0
0
753
0
0
0
87
89
a73059f2fb3b675c26bf7e60cf6d8e947cb1635f
268
py
Python
Sagin Anil/saginpgm5.py
SaginAnil/hacktoberfest-2020
159b8554467b59f93fc024e00225c0a86d87208f
[ "MIT" ]
4
2020-09-25T15:52:48.000Z
2020-10-30T09:52:07.000Z
Sagin Anil/saginpgm5.py
SaginAnil/hacktoberfest-2020
159b8554467b59f93fc024e00225c0a86d87208f
[ "MIT" ]
11
2020-10-30T09:21:49.000Z
2020-10-31T05:43:33.000Z
Sagin Anil/saginpgm5.py
SaginAnil/hacktoberfest-2020
159b8554467b59f93fc024e00225c0a86d87208f
[ "MIT" ]
15
2020-09-25T16:40:50.000Z
2020-10-30T09:40:44.000Z
#program to convert km to mph # Get KM imput kilometers = float(input("Enter value in kilometers: ")) # the conversion factor conv_fac = 0.621371 # calculating miles miles = kilometers * conv_fac print('%0.2f kilometers is equal to %0.2f miles' %(kilometers,miles))
24.363636
69
0.738806
#program to convert km to mph # Get KM imput kilometers = float(input("Enter value in kilometers: ")) # the conversion factor conv_fac = 0.621371 # calculating miles miles = kilometers * conv_fac print('%0.2f kilometers is equal to %0.2f miles' %(kilometers,miles))
0
0
0
0
0
0
0
0
0
38a9adc3662792b818873119a3a854f7a217f950
65,041
py
Python
seqpos/lib/python2.7/site-packages/mercurial/scmutil.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
seqpos/lib/python2.7/site-packages/mercurial/scmutil.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
seqpos/lib/python2.7/site-packages/mercurial/scmutil.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
# scmutil.py - Mercurial core utility functions # # Copyright Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import absolute_import import errno import glob import hashlib import o...
35.993913
80
0.586399
# scmutil.py - Mercurial core utility functions # # Copyright Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import absolute_import import errno import glob import hashlib import o...
0
4,308
0
10,764
2,642
6,409
0
105
702
3f701810a5d4a036af40e80facd89ecb215436a0
35
py
Python
tests/backports/__init__.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/backports/__init__.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/backports/__init__.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The tests for the backports."""
17.5
34
0.657143
"""The tests for the backports."""
0
0
0
0
0
0
0
0
0
d627a92cb8c2dbf3d9e4a00b3e86625e7599d579
919
py
Python
unesco_reader/utils.py
lpicci96/unesco
8a7e76aa004bd0c2e3c3ba52fa6039dc44a712b0
[ "MIT" ]
3
2022-02-18T04:16:42.000Z
2022-02-24T17:48:45.000Z
unesco_reader/utils.py
lpicci96/unesco
8a7e76aa004bd0c2e3c3ba52fa6039dc44a712b0
[ "MIT" ]
null
null
null
unesco_reader/utils.py
lpicci96/unesco
8a7e76aa004bd0c2e3c3ba52fa6039dc44a712b0
[ "MIT" ]
2
2022-02-18T04:16:49.000Z
2022-02-22T11:18:58.000Z
""" Utility functions ================= Includes functions to extract data from a zipped csv without a local download """ import requests import pandas as pd import io from zipfile import ZipFile def read_zip(url: str, file_name: str) -> pd.DataFrame: """ Reads a csv from the web contained in a zip folder ...
22.414634
78
0.633297
""" Utility functions ================= Includes functions to extract data from a zipped csv without a local download """ import requests import pandas as pd import io from zipfile import ZipFile def read_zip(url: str, file_name: str) -> pd.DataFrame: """ Reads a csv from the web contained in a zip folder ...
0
0
0
0
0
0
0
0
0
f74f165671336a818822ab3f019c7925df9b6f62
9,929
py
Python
cnn/settings.py
indexing-initiative/selective-indexing
e5cff7bf8914111a991a52aecd639e51b16d7a8d
[ "BSD-3-Clause" ]
null
null
null
cnn/settings.py
indexing-initiative/selective-indexing
e5cff7bf8914111a991a52aecd639e51b16d7a8d
[ "BSD-3-Clause" ]
null
null
null
cnn/settings.py
indexing-initiative/selective-indexing
e5cff7bf8914111a991a52aecd639e51b16d7a8d
[ "BSD-3-Clause" ]
null
null
null
ENCODING = 'utf8'
31.926045
160
0.657871
import json from machine_settings import _MachineConfig import os.path as os_path ENCODING = 'utf8' def get_config(): config = Config() return config class _ConfigBase: def __init__(self, parent): self._parent = parent machine_config = _MachineConfig() self._initialize(machine_...
0
1,259
0
8,002
0
36
0
16
556
ae6294ed74cd2c37a10b01f57b5f09a70e3be75e
4,153
py
Python
vendor/github.com/elastic/beats/dev-tools/export_dashboards.py
ninjasftw/libertyproxybeat
b8acafe86ad285f091bf69b59d2ebd1da80dcf5e
[ "Apache-2.0" ]
37
2016-01-25T10:52:59.000Z
2021-05-08T11:44:39.000Z
vendor/github.com/elastic/beats/dev-tools/export_dashboards.py
ninjasftw/libertyproxybeat
b8acafe86ad285f091bf69b59d2ebd1da80dcf5e
[ "Apache-2.0" ]
35
2016-01-25T09:19:28.000Z
2017-11-20T23:29:35.000Z
vendor/github.com/elastic/beats/dev-tools/export_dashboards.py
ninjasftw/libertyproxybeat
b8acafe86ad285f091bf69b59d2ebd1da80dcf5e
[ "Apache-2.0" ]
23
2016-01-25T09:15:05.000Z
2020-12-14T06:08:31.000Z
if __name__ == "__main__": main()
30.536765
78
0.572598
from elasticsearch import Elasticsearch import argparse import os import json import re def ExportDashboards(es, beat, kibana_index, output_directory): res = es.search( index=kibana_index, doc_type="dashboard", size=1000) reg_exp = re.compile(beat + '*', re.IGNORECASE) for doc in...
0
0
0
0
0
3,882
0
-22
248
1e13d9d011c5d69caf0ac97dc78282a6a4b19a9c
9,162
py
Python
losses.py
Liut2016/ecg-supcontrast
c1155b592faa723715c0c52cee909e74e8845176
[ "BSD-2-Clause" ]
2
2021-06-13T13:48:32.000Z
2021-10-30T14:16:19.000Z
losses.py
Liut2016/ecg-supcontrast
c1155b592faa723715c0c52cee909e74e8845176
[ "BSD-2-Clause" ]
null
null
null
losses.py
Liut2016/ecg-supcontrast
c1155b592faa723715c0c52cee909e74e8845176
[ "BSD-2-Clause" ]
null
null
null
""" Author: Yonglong Tian (yonglong@mit.edu) Date: May 07, 2020 """ from __future__ import print_function import torch import torch.nn as nn import numpy as np from itertools import combinations # CLOCS loss def obtain_contrastive_loss(latent_embeddings, pids, trial): """ Calculate NCE Loss For Latent Embeddings ...
43.014085
120
0.623881
""" Author: Yonglong Tian (yonglong@mit.edu) Date: May 07, 2020 """ from __future__ import print_function import torch import torch.nn as nn import numpy as np from itertools import combinations class SupConLoss(nn.Module): """Supervised Contrastive Learning: https://arxiv.org/pdf/2004.11362.pdf. It also supp...
57
0
0
3,879
0
0
0
0
23
421c37b07a93c5710551bfb477c116bcf0d0c54f
6,371
py
Python
modules/payload/linux/mipsle/shell_bind_tcp.py
adolabsnet/HatSploit
0a08521b7623d4ef1aab8f887cd8a23f460d592c
[ "MIT" ]
2
2021-03-20T05:16:03.000Z
2021-08-11T16:40:04.000Z
modules/payload/linux/mipsle/shell_bind_tcp.py
Lencof/HatSploit
0a08521b7623d4ef1aab8f887cd8a23f460d592c
[ "MIT" ]
null
null
null
modules/payload/linux/mipsle/shell_bind_tcp.py
Lencof/HatSploit
0a08521b7623d4ef1aab8f887cd8a23f460d592c
[ "MIT" ]
2
2021-03-20T05:16:00.000Z
2021-08-23T18:20:03.000Z
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020-2021 EntySec # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to...
41.914474
113
0.513734
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020-2021 EntySec # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to...
0
0
0
5,126
0
0
0
42
69
5826039d0a434742d56688753886a77d60d57363
518
py
Python
build/lino_pid/catkin_generated/pkg.installspace.context.pc.py
dawnchen123/AutonomousCar
6595c5f64f89dcee32f84f414c54028c2da25a45
[ "BSD-2-Clause" ]
null
null
null
build/lino_pid/catkin_generated/pkg.installspace.context.pc.py
dawnchen123/AutonomousCar
6595c5f64f89dcee32f84f414c54028c2da25a45
[ "BSD-2-Clause" ]
null
null
null
build/lino_pid/catkin_generated/pkg.installspace.context.pc.py
dawnchen123/AutonomousCar
6595c5f64f89dcee32f84f414c54028c2da25a45
[ "BSD-2-Clause" ]
1
2019-10-22T05:54:23.000Z
2019-10-22T05:54:23.000Z
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/nvidia/linorobot_ws/install/include".split(';') if "/home/nvidia/linorobot_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "dynamic_reconfigure;message_runtime;roscpp;std_msgs;lino_msg...
57.555556
149
0.760618
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/nvidia/linorobot_ws/install/include".split(';') if "/home/nvidia/linorobot_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "dynamic_reconfigure;message_runtime;roscpp;std_msgs;lino_msg...
0
0
0
0
0
0
0
0
0
2d93dc40c93d4510c70b5fa4249b68229e9d37d4
21,984
py
Python
pys/build/config.py
cyjseagull/generator
1113120f47ea510195cf04015d0ecf2da3c793a8
[ "Apache-2.0" ]
null
null
null
pys/build/config.py
cyjseagull/generator
1113120f47ea510195cf04015d0ecf2da3c793a8
[ "Apache-2.0" ]
null
null
null
pys/build/config.py
cyjseagull/generator
1113120f47ea510195cf04015d0ecf2da3c793a8
[ "Apache-2.0" ]
null
null
null
"""[paser ini] Raises: MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MC...
40.711111
100
0.550491
"""[paser ini] Raises: MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MCError -- [description] MC...
0
0
0
0
0
0
0
0
0
768f33bfbbc9a8323539899a66efc418b3b0f50b
4,895
py
Python
src/kfp_deployer/main.py
reproio/kfp-deployer
504a187f010e0aa8dcc95f8520315a248eadbf35
[ "Apache-2.0" ]
2
2021-01-27T09:14:02.000Z
2021-01-27T09:17:29.000Z
src/kfp_deployer/main.py
reproio/kfp-deployer
504a187f010e0aa8dcc95f8520315a248eadbf35
[ "Apache-2.0" ]
null
null
null
src/kfp_deployer/main.py
reproio/kfp-deployer
504a187f010e0aa8dcc95f8520315a248eadbf35
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from datetime import datetime from typing import Optional import kfp from pytz import timezone KNOWN_TIMEZONE_TABLE = {"JST": "Asia/Tokyo"} def main() -> None: """Entrypoint.""" parser = _build_argparser() args = parser.parse_args() deploy_pipeline( ...
30.403727
87
0.667007
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse from datetime import datetime from typing import Iterable, NamedTuple, Optional import kfp from pytz import timezone KNOWN_TIMEZONE_TABLE = {"JST": "Asia/Tokyo"} class Pipeline(NamedTuple): """Describes a pipeline deployed on the KFP instance.""" ...
0
0
0
94
522
1,522
0
16
115
b30bba2d686d1b2dc8895d45a9b185f0468fccc3
7,305
py
Python
oi_mark_funding_discord.py
slurpxbt/btc-mark-funding-oi
6a8ab26b45bd5fae1eaec5bd1f203a3118270a68
[ "MIT" ]
7
2020-10-30T07:51:11.000Z
2022-03-24T21:29:44.000Z
oi_mark_funding_discord.py
Crypto-Currency-Projects/btc-mark-funding-oi
6a8ab26b45bd5fae1eaec5bd1f203a3118270a68
[ "MIT" ]
null
null
null
oi_mark_funding_discord.py
Crypto-Currency-Projects/btc-mark-funding-oi
6a8ab26b45bd5fae1eaec5bd1f203a3118270a68
[ "MIT" ]
5
2020-07-05T16:20:45.000Z
2021-11-02T05:31:05.000Z
# this script pulls oi,funding and mark price data from bitmex, bybit, Okex, Binance for BTC perpetual swap contracts # and aggreates data from whole market into files #TODO: change data_file_path to your own in rows 42 and 174 # --------------------------- # requirements: # pip install bybit # pip install bitmex-w...
39.486486
223
0.565914
# this script pulls oi,funding and mark price data from bitmex, bybit, Okex, Binance for BTC perpetual swap contracts # and aggreates data from whole market into files #TODO: change data_file_path to your own in rows 42 and 174 # --------------------------- # requirements: # pip install bybit # pip install bitmex-w...
0
0
0
0
0
3,102
0
7
67
10bf7eedd8216b2992256950401ee1a59419a21f
5,423
py
Python
gluonocr/model_zoo/dbnet/db_net.py
Davids929/gluon-ocr
5ac697cc030058cb9ae9f4b1f4e85f901d4d1c40
[ "Apache-2.0" ]
2
2021-07-27T23:55:39.000Z
2022-02-02T15:20:34.000Z
gluonocr/model_zoo/dbnet/db_net.py
Davids929/gluon-ocr
5ac697cc030058cb9ae9f4b1f4e85f901d4d1c40
[ "Apache-2.0" ]
null
null
null
gluonocr/model_zoo/dbnet/db_net.py
Davids929/gluon-ocr
5ac697cc030058cb9ae9f4b1f4e85f901d4d1c40
[ "Apache-2.0" ]
3
2021-05-07T03:56:13.000Z
2021-07-27T23:55:27.000Z
#coding=utf-8
44.089431
94
0.588604
#coding=utf-8 import mxnet as mx from mxnet import gluon from mxnet.gluon import nn class DBNet(gluon.HybridBlock): def __init__(self, stages, inner_channels=256, k=10, use_bias=False, adaptive=True, norm_layer=nn.BatchNorm, norm_kwargs=None, **kwargs): super(DBNet, self).__init__(**kwarg...
0
0
0
3,694
0
1,598
0
4
112
94df1d46c4cd8258960c12721669deb528530496
9,121
py
Python
models/gru2.py
tooyipjee/py-finance
a5ce70af1080cf628b40d227af4626e4d758f2ac
[ "MIT" ]
null
null
null
models/gru2.py
tooyipjee/py-finance
a5ce70af1080cf628b40d227af4626e4d758f2ac
[ "MIT" ]
null
null
null
models/gru2.py
tooyipjee/py-finance
a5ce70af1080cf628b40d227af4626e4d758f2ac
[ "MIT" ]
null
null
null
import sys import warnings if not sys.warnoptions: warnings.simplefilter('ignore')
42.226852
90
0.547747
import pandas as pd import numpy as np import sys import warnings if not sys.warnoptions: warnings.simplefilter('ignore') import tensorflow.compat.v1 as tf from datetime import timedelta from tqdm import tqdm class gru2: def __init__( self, learning_rate, num_layers, size, ...
0
0
0
8,886
0
0
0
16
133
c18cc3ef93b879f268fbcff680e00e97e2740721
516
py
Python
test/new_tests/test_predicates.py
indigo-tribe/aerospike-client-python
1526bc3e47327dfcc2eabbf8729bee0b5f66bbd9
[ "Apache-2.0" ]
105
2015-01-07T09:51:13.000Z
2022-03-24T04:23:54.000Z
test/new_tests/test_predicates.py
indigo-tribe/aerospike-client-python
1526bc3e47327dfcc2eabbf8729bee0b5f66bbd9
[ "Apache-2.0" ]
180
2015-01-01T19:29:50.000Z
2022-03-19T14:14:06.000Z
test/new_tests/test_predicates.py
indigo-tribe/aerospike-client-python
1526bc3e47327dfcc2eabbf8729bee0b5f66bbd9
[ "Apache-2.0" ]
94
2015-01-21T19:17:48.000Z
2022-01-31T07:17:47.000Z
from aerospike import predicates as as_predicates PREDICATE_METHDOS = [ as_predicates.equals, as_predicates.contains, as_predicates.between, as_predicates.range, as_predicates.geo_contains_geojson_point, as_predicates.geo_contains_point, as_predicates.geo_within_geojson_region, as_predi...
27.157895
56
0.790698
from aerospike import predicates as as_predicates import pytest PREDICATE_METHDOS = [ as_predicates.equals, as_predicates.contains, as_predicates.between, as_predicates.range, as_predicates.geo_contains_geojson_point, as_predicates.geo_contains_point, as_predicates.geo_within_geojson_region...
0
133
0
0
0
0
0
-8
45
a15989284865e10c7d8c707411c44e80e4861c86
3,062
py
Python
map_calcd_sites.py
rickdberg/global_extrapolation
f3c3c5064b2c4a6478488c7743cac851f26af928
[ "MIT" ]
null
null
null
map_calcd_sites.py
rickdberg/global_extrapolation
f3c3c5064b2c4a6478488c7743cac851f26af928
[ "MIT" ]
null
null
null
map_calcd_sites.py
rickdberg/global_extrapolation
f3c3c5064b2c4a6478488c7743cac851f26af928
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Apr 28 11:23:26 2017 @author: rickdberg Create maps """ import numpy as np import rasterio import matplotlib.pyplot as plt from site_metadata_compiler_completed import comp import cartopy.crs as ccrs import cartopy from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, L...
26.859649
107
0.69889
# -*- coding: utf-8 -*- """ Created on Fri Apr 28 11:23:26 2017 @author: rickdberg Create maps """ import numpy as np import rasterio from rasterio import Affine from rasterio.warp import reproject, Resampling import matplotlib.pyplot as plt from site_metadata_compiler_completed import comp import cartopy.crs as ...
0
0
0
0
0
0
0
61
44
cf50f60ce1398e0af4061ef19be2f37ed01a4741
1,141
py
Python
examples/api.py
JensGM/pyTurbSim
89357e94607e99e5a27e069975684fe8e6a89a9d
[ "Apache-2.0" ]
8
2017-07-24T23:01:28.000Z
2021-12-06T04:31:23.000Z
examples/api.py
camilledub/pyTurbSim
69db0d7670afe5b2b386087aa0229a7511ef070d
[ "Apache-2.0" ]
9
2015-04-06T16:01:06.000Z
2020-06-16T16:51:49.000Z
examples/api.py
camilledub/pyTurbSim
69db0d7670afe5b2b386087aa0229a7511ef070d
[ "Apache-2.0" ]
17
2015-04-22T15:27:28.000Z
2021-11-20T08:10:16.000Z
""" This script provides an example usage of the PyTurbSim API. """ # Begin by importing the PyTurbSim API: import pyts.api as pyts # Define some variables for the PyTurbSim run: refht = 10. ustar = 0.03 Uref = 3. # First we initialize a PyTurbSim 'run' object: tsr = pyts.tsrun() # Next we give this run object a gri...
28.525
71
0.727432
""" This script provides an example usage of the PyTurbSim API. """ # Begin by importing the PyTurbSim API: import pyts.api as pyts # Define some variables for the PyTurbSim run: refht = 10. ustar = 0.03 Uref = 3. # First we initialize a PyTurbSim 'run' object: tsr = pyts.tsrun() # Next we give this run object a gri...
0
0
0
0
0
0
0
0
0
c2ba5ff252268e511f692953730d43dcfe05d460
1,209
py
Python
src/cr/vision/dl/nets/cnn/inception.py
indigits/indigits-vision
317fbf70c558e8f9563c3d0ba3bebbc5f84af622
[ "Apache-2.0" ]
2
2021-11-02T10:09:47.000Z
2021-12-10T04:23:14.000Z
src/cr/vision/dl/nets/cnn/inception.py
indigits/indigits-vision
317fbf70c558e8f9563c3d0ba3bebbc5f84af622
[ "Apache-2.0" ]
null
null
null
src/cr/vision/dl/nets/cnn/inception.py
indigits/indigits-vision
317fbf70c558e8f9563c3d0ba3bebbc5f84af622
[ "Apache-2.0" ]
null
null
null
from tensorflow.keras import layers def conv2d(input, filters, rows, columns, padding='same', strides=(1,1), name='conv', data_format='channels_last', batch_normalization=True, activation='relu'): """ Constructions a convolutional layer with batch normalization """ ...
24.673469
64
0.656741
import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers, backend, models, utils from .utils import deduce_input_shape def conv2d(input, filters, rows, columns, padding='same', strides=(1,1), name='conv', data_format='channels_last', ...
0
0
0
0
0
165
0
46
112
01839639cb2fc5f1f6ffb356295df15c32158970
1,552
py
Python
final_project/machinetranslation/translator.py
ciijay99/xzceb-flask_eng_fr
82ba582dcad13d252563698c2132437551a68405
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/translator.py
ciijay99/xzceb-flask_eng_fr
82ba582dcad13d252563698c2132437551a68405
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/translator.py
ciijay99/xzceb-flask_eng_fr
82ba582dcad13d252563698c2132437551a68405
[ "Apache-2.0" ]
null
null
null
"""IBM TRANSLATOR""" import os from ibm_watson import LanguageTranslatorV3 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from dotenv import load_dotenv load_dotenv() apikey = os.environ['apikey'] url = os.environ['url'] authenticator = IAMAuthenticator(apikey) language_translator = LanguageTranslat...
29.283019
100
0.670103
"""IBM TRANSLATOR""" import os from ibm_watson import LanguageTranslatorV3 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from dotenv import load_dotenv load_dotenv() apikey = os.environ['apikey'] url = os.environ['url'] authenticator = IAMAuthenticator(apikey) language_translator = LanguageTranslat...
0
0
0
0
0
0
0
0
0
93acf787d734a8c2ecd8f406acd57d024f615bc2
5,749
py
Python
sdk/python/pulumi_aws_native/codecommit/get_repository.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/codecommit/get_repository.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/codecommit/get_repository.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime from typing import Optional from .. import _utilities __all__ = [ 'GetRepositoryResult', 'AwaitableGetRepos...
37.090323
186
0.667246
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
0
3,714
0
557
0
0
0
35
114
6f3b5d5ecbd01f43d077b61a933d9bdacee7ae0f
2,698
py
Python
dbt_sugar/core/logger.py
danieldiamond/dbt-sugar
0645722cb52cf9eb685d65b556beb9b4c2d3cbcf
[ "Apache-2.0" ]
94
2020-12-21T20:00:38.000Z
2022-03-31T13:53:00.000Z
dbt_sugar/core/logger.py
danieldiamond/dbt-sugar
0645722cb52cf9eb685d65b556beb9b4c2d3cbcf
[ "Apache-2.0" ]
410
2020-12-19T09:25:59.000Z
2022-03-23T04:20:40.000Z
dbt_sugar/core/logger.py
danieldiamond/dbt-sugar
0645722cb52cf9eb685d65b556beb9b4c2d3cbcf
[ "Apache-2.0" ]
16
2021-03-29T23:11:35.000Z
2022-03-10T11:27:26.000Z
"""Logger module contains LogManager which sets up file and stream handler + formatting.""" log_manager = LogManager() GLOBAL_LOGGER = log_manager.logger
34.589744
99
0.636027
"""Logger module contains LogManager which sets up file and stream handler + formatting.""" import logging import re from pathlib import Path import logredactor from rich.logging import RichHandler class LogManager: """Manages the logs formats and levels. We have 2 loggers one to stout and one to a logger ...
0
0
0
2,409
0
0
0
-4
135
79ff125435aa679092cd36f0fa5e87ec319a12b9
9,920
py
Python
lightstreamer_adapter/subscription.py
Lightstreamer/Lightstreamer-lib-python-adapter
95861c12276d4e905a883f390042cec3cb6169a8
[ "Apache-2.0" ]
2
2018-12-19T16:53:31.000Z
2019-11-29T06:16:45.000Z
lightstreamer_adapter/subscription.py
Lightstreamer/Lightstreamer-lib-python-adapter
95861c12276d4e905a883f390042cec3cb6169a8
[ "Apache-2.0" ]
null
null
null
lightstreamer_adapter/subscription.py
Lightstreamer/Lightstreamer-lib-python-adapter
95861c12276d4e905a883f390042cec3cb6169a8
[ "Apache-2.0" ]
3
2016-12-24T17:46:48.000Z
2019-03-29T11:54:29.000Z
""" Helper classes for the management of subscription and unsubscription of the Items handled by the Remote Data Adapter. """
37.575758
79
0.614617
""" Helper classes for the management of subscription and unsubscription of the Items handled by the Remote Data Adapter. """ from contextlib import contextmanager import threading from _collections import deque from lightstreamer_adapter.protocol import RemotingException from . import DATA_PROVIDER_LOGGER class _I...
0
615
0
8,923
0
0
0
72
181
53807789dec95b842554425578c3f1a7f037994e
15,901
py
Python
model.py
hovercraft-github/wav2letter.pytorch
e2b82b418a7854522540e0925bcf894c0ca80e6a
[ "MIT" ]
121
2019-04-10T07:14:52.000Z
2022-03-07T00:49:59.000Z
model.py
silversparro/wav2letterPytorch
71e714218b09a75aacd80c5d105ca9d89afe8647
[ "MIT" ]
14
2019-04-26T11:13:15.000Z
2021-11-22T04:52:03.000Z
model.py
silversparro/wav2letterPytorch
71e714218b09a75aacd80c5d105ca9d89afe8647
[ "MIT" ]
29
2019-05-25T22:24:53.000Z
2021-12-22T13:26:32.000Z
import torch.nn as nn if __name__ == '__main__': pass
40.771795
146
0.60883
import math from collections import OrderedDict import numpy as np import scipy.signal import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.parameter import Parameter class stft(nn.Module): def __init__(self, nfft=1024, hop_length=512, window="hanning"): super(stft, self).__ini...
0
4,109
0
10,755
0
664
0
19
292
f3c79d9b31e6fdc0d020ec29416ee55b92c5c25d
1,872
py
Python
app/internal/agenda_events.py
krauson/calendar
34f3861ec1bb69e7dd81aa10739731cc2ae6c941
[ "Apache-2.0" ]
null
null
null
app/internal/agenda_events.py
krauson/calendar
34f3861ec1bb69e7dd81aa10739731cc2ae6c941
[ "Apache-2.0" ]
null
null
null
app/internal/agenda_events.py
krauson/calendar
34f3861ec1bb69e7dd81aa10739731cc2ae6c941
[ "Apache-2.0" ]
null
null
null
from datetime import date, timedelta from typing import List, Optional, Union, Iterator import arrow from sqlalchemy.orm import Session from app.database.models import Event from app.routers.event import sort_by_date from app.routers.user import get_all_user_events def get_events_per_dates( session: Session...
26.742857
75
0.643162
from datetime import date, timedelta from typing import List, Optional, Union, Iterator import arrow from sqlalchemy.orm import Session from app.database.models import Event from app.routers.event import sort_by_date from app.routers.user import get_all_user_events def get_events_per_dates( session: Session...
0
0
0
0
242
0
0
0
23
eccf618df223cb69aa328dddc3b78dcca7aca4f0
1,140
py
Python
desicos/conecylDB/__init__.py
saullocastro/desicos
922db8ac4fb0fb4d09df18ce2a14011f207f6fa8
[ "BSD-3-Clause" ]
1
2020-10-22T22:15:24.000Z
2020-10-22T22:15:24.000Z
desicos/conecylDB/__init__.py
saullocastro/desicos
922db8ac4fb0fb4d09df18ce2a14011f207f6fa8
[ "BSD-3-Clause" ]
1
2020-10-09T12:42:02.000Z
2020-10-09T12:42:02.000Z
desicos/conecylDB/__init__.py
saullocastro/desicos
922db8ac4fb0fb4d09df18ce2a14011f207f6fa8
[ "BSD-3-Clause" ]
2
2020-07-14T07:45:31.000Z
2020-12-29T00:22:41.000Z
r""" =================================================== Cone / Cylinder DataBase (:mod:`desicos.conecylDB`) =================================================== .. currentmodule:: desicos.conecylDB The ``desicos.conecylDB`` module includes all the information about cones and cylinders required to reproduce structures...
27.804878
74
0.698246
r""" =================================================== Cone / Cylinder DataBase (:mod:`desicos.conecylDB`) =================================================== .. currentmodule:: desicos.conecylDB The ``desicos.conecylDB`` module includes all the information about cones and cylinders required to reproduce structures...
0
0
0
0
0
0
0
3
22
4595f8d361b4ba7b9e43ecae5988104a99d510ce
5,309
py
Python
src/webpy1/src/spider/threadControl.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
1
2020-02-17T08:18:29.000Z
2020-02-17T08:18:29.000Z
src/webpy1/src/spider/threadControl.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/webpy1/src/spider/threadControl.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
#coding=UTF-8 ''' Created on 2011-7-5 @author: Administrator ''' import threading import time from spider import soufang from spider import ganji from spider import tongcheng58 from spider.threadpool import ThreadPool, makeRequests import urllib2 import urllib from spider.globalvars import fetch_quere from spider.jjr...
24.353211
119
0.501601
#coding=UTF-8 ''' Created on 2011-7-5 @author: Administrator ''' import threading import time from spider import soufang from spider import ganji from spider import tongcheng58 from spider.threadpool import ThreadPool, makeRequests import urllib2 import urllib from spider.globalvars import fetch_quere from spider.jjr...
0
0
0
3,042
0
528
0
0
103
ea7599b7df0f83954a60fa34b018e98e86895e7a
329
py
Python
app/searchcom/layouts/footer.py
tg2648/cu-reports-app
851388320be9382d56c0dbdc89c26f761b4e3e7e
[ "MIT" ]
null
null
null
app/searchcom/layouts/footer.py
tg2648/cu-reports-app
851388320be9382d56c0dbdc89c26f761b4e3e7e
[ "MIT" ]
1
2021-04-20T14:56:31.000Z
2021-04-20T14:56:31.000Z
app/searchcom/layouts/footer.py
tg2648/cu-reports-app
851388320be9382d56c0dbdc89c26f761b4e3e7e
[ "MIT" ]
null
null
null
""" Layout: Footer of the dashboard """ # Third party imports import dash_html_components as html subfields = html.Div( [ html.Span('Subfields of SED data used for this department: '), html.Span(id='searchcom-search-subfields') ], id='searchcom-subfields-footer', className='mt-3 text-...
19.352941
70
0.665653
""" Layout: Footer of the dashboard """ # Third party imports import dash_html_components as html subfields = html.Div( [ html.Span('Subfields of SED data used for this department: '), html.Span(id='searchcom-search-subfields') ], id='searchcom-subfields-footer', className='mt-3 text-...
0
0
0
0
0
0
0
0
0
64e69bf81545956557da7317ae8288b5ee8b0d08
4,997
py
Python
espresso_ir/cli.py
Terrizmo/espresso-ir
8e9bc0af2c70fb5e72a037178f67a01ece660d5b
[ "MIT" ]
4
2020-12-09T09:48:57.000Z
2021-02-03T15:02:21.000Z
espresso_ir/cli.py
Terrizmo/espresso-ir
8e9bc0af2c70fb5e72a037178f67a01ece660d5b
[ "MIT" ]
null
null
null
espresso_ir/cli.py
Terrizmo/espresso-ir
8e9bc0af2c70fb5e72a037178f67a01ece660d5b
[ "MIT" ]
1
2020-12-12T22:03:49.000Z
2020-12-12T22:03:49.000Z
import time #List of args, Cases number, Region, EC2 instance ID, Dump memeory, Set up API reording, Flow logs, EC2 Snapshot, EC2 Isolation t0 = time.time() if __name__ == "__main__": cli()
31.23125
219
0.614169
import argparse import os import logging import time import espresso_ir from espresso_ir.mods import (cloudtrail_api, s3_bucket_cloudtrail, ssm_setup, s3_buckets_ir, memdump, flow_logs, get_logs, ec2_snapshot, vpc ) #List of args, Cases number, Region, EC2 instance ID, Dump memeory, Set up API ...
0
0
0
0
0
4,530
0
107
142
d64a2ac1eca06a0da8e22f6ededd84dd71e40e1d
136
py
Python
Algorithm/Implementation/minmax.py
ukirderohit/Python-Hacker-rank-solutions
de3b60b00d864c15a452977225b33ead19c878a5
[ "MIT" ]
null
null
null
Algorithm/Implementation/minmax.py
ukirderohit/Python-Hacker-rank-solutions
de3b60b00d864c15a452977225b33ead19c878a5
[ "MIT" ]
null
null
null
Algorithm/Implementation/minmax.py
ukirderohit/Python-Hacker-rank-solutions
de3b60b00d864c15a452977225b33ead19c878a5
[ "MIT" ]
null
null
null
#!/bin/python import sys totval = map(int,raw_input().split()) i=0 for val in totval: val[i:len(totval)] i = i + val print i
11.333333
37
0.617647
#!/bin/python import sys totval = map(int,raw_input().split()) i=0 for val in totval: val[i:len(totval)] i = i + val print i
0
0
0
0
0
0
0
0
0
fbfe190a80945488f501da829d48d4b159352fbb
15,755
py
Python
src/image_classification.py
jjz17/Sport-Ball-Image-Classifier
0573357f2ff053eef7b16fe1cd05d34c3f20c2a0
[ "MIT" ]
null
null
null
src/image_classification.py
jjz17/Sport-Ball-Image-Classifier
0573357f2ff053eef7b16fe1cd05d34c3f20c2a0
[ "MIT" ]
null
null
null
src/image_classification.py
jjz17/Sport-Ball-Image-Classifier
0573357f2ff053eef7b16fe1cd05d34c3f20c2a0
[ "MIT" ]
null
null
null
import pathlib import PIL import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.keras.models import Sequential sport_balls_data_url = 'https://github.com/jjz17/Sport-Ball-Image-Classifier/raw/main/data/sport_ball_ima...
35.167411
368
0.736211
import pathlib import PIL import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.keras.models import Sequential sport_balls_data_url = 'https://github.com/jjz17/Sport-Ball-Image-Classifier/raw/main/data/sport_ball_ima...
9
0
0
0
0
538
0
0
23
3334a4f07ed7039d712d2d28ac9a8e57a4dd8fe4
5,892
py
Python
src/crawler.py
tech-espm/misc-webbot
acfee1e655695835fe486ecc5ba31f9cd44c8bec
[ "MIT" ]
null
null
null
src/crawler.py
tech-espm/misc-webbot
acfee1e655695835fe486ecc5ba31f9cd44c8bec
[ "MIT" ]
null
null
null
src/crawler.py
tech-espm/misc-webbot
acfee1e655695835fe486ecc5ba31f9cd44c8bec
[ "MIT" ]
1
2019-05-21T02:32:03.000Z
2019-05-21T02:32:03.000Z
#!-*- coding: utf8 -*- if __name__ == '__main__': Message().__call__()
25.955947
122
0.562118
#!-*- coding: utf8 -*- from selenium.webdriver.common.keys import Keys from sklearn.naive_bayes import MultinomialNB from selenium import webdriver from bs4 import BeautifulSoup import pandas import time import nltk import os class Message: """This class access the whatsapp, seek for unread messages and replies ...
0
0
0
5,563
0
0
0
27
223
cc58bf85bf22d23f33231df6972c30e3476caba5
2,646
py
Python
linear_solver/tests/tests.py
tcmoore3/linear_solver
9c29e2fa0067c1105b0ae91dd16217ab2b9383bb
[ "MIT" ]
null
null
null
linear_solver/tests/tests.py
tcmoore3/linear_solver
9c29e2fa0067c1105b0ae91dd16217ab2b9383bb
[ "MIT" ]
null
null
null
linear_solver/tests/tests.py
tcmoore3/linear_solver
9c29e2fa0067c1105b0ae91dd16217ab2b9383bb
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
31.879518
70
0.559713
import numpy as np import unittest from linear_solver.core import solve_linear_system from linear_solver.utils.general import get_fn class TestSolverMethods(unittest.TestCase): def test_zero_determinant(self): x = solve_linear_system(get_fn('p1coeffs.txt')) self.assertEqual(x, None) def test_...
0
0
0
2,416
0
0
0
51
113
cdc66635e692341364bdff3a28d5c10c6de5a590
3,984
py
Python
tests/unit/test_utils.py
javier-cabezas/figplotter
7dd42274caea7fc01c4a4b97e77f7e32bc0419cc
[ "MIT" ]
2
2015-03-09T09:12:04.000Z
2015-10-09T12:39:02.000Z
tests/unit/test_utils.py
javier-cabezas/figplotter
7dd42274caea7fc01c4a4b97e77f7e32bc0419cc
[ "MIT" ]
null
null
null
tests/unit/test_utils.py
javier-cabezas/figplotter
7dd42274caea7fc01c4a4b97e77f7e32bc0419cc
[ "MIT" ]
null
null
null
''' Created on Jan 19, 2015 @author: jcabezas ''' import unittest if __name__ == "__main__": #import sys;sys.argv = ['', 'Test.testName'] unittest.main()
37.233645
88
0.472641
''' Created on Jan 19, 2015 @author: jcabezas ''' import unittest import figplotter.utils as orig import figplotter.plot.defaults as orig_defaults class Test(unittest.TestCase): def test_parameter_update(self): # Update disjoint elements p1 = orig.Parameter({'A': 1}) p2 = orig.Parameter({...
0
0
0
3,716
0
0
0
37
68
f542470b8712a2e61dc455df87989a279ffb4037
2,057
py
Python
tests/test_solvers.py
rychallener/george
98eae39ae453c31afac530c49f178f66c0013c5f
[ "MIT" ]
379
2015-01-08T15:35:31.000Z
2022-03-21T13:01:03.000Z
tests/test_solvers.py
rychallener/george
98eae39ae453c31afac530c49f178f66c0013c5f
[ "MIT" ]
136
2015-01-06T17:36:12.000Z
2022-02-08T20:12:17.000Z
tests/test_solvers.py
rychallener/george
98eae39ae453c31afac530c49f178f66c0013c5f
[ "MIT" ]
119
2015-01-06T09:27:16.000Z
2022-01-14T17:54:48.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function __all__ = ["test_trivial_solver", "test_basic_solver", "test_hodlr_solver"]
27.065789
79
0.669421
# -*- coding: utf-8 -*- from __future__ import division, print_function __all__ = ["test_trivial_solver", "test_basic_solver", "test_hodlr_solver"] import numpy as np import george from george.utils import nd_sort_samples from george import kernels from george import TrivialSolver, BasicSolver, HODLRSolver def te...
0
0
0
0
0
1,627
0
50
227
a803dcd26162ccd730c32f3e0fdfea4e7c12efc2
2,785
py
Python
tests/conftest.py
BrunoSanchez/capsule_N1
a5ee3b74afc27de1a954ae2f9f96c278a4723226
[ "BSD-3-Clause" ]
12
2017-04-13T06:49:42.000Z
2019-11-19T09:27:43.000Z
tests/conftest.py
BrunoSanchez/capsule_N1
a5ee3b74afc27de1a954ae2f9f96c278a4723226
[ "BSD-3-Clause" ]
56
2017-09-05T16:00:57.000Z
2020-11-20T18:02:58.000Z
tests/conftest.py
BrunoSanchez/capsule_N1
a5ee3b74afc27de1a954ae2f9f96c278a4723226
[ "BSD-3-Clause" ]
5
2017-10-08T16:55:40.000Z
2020-09-22T14:04:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # conftest.py # # Copyright 2020 QuatroPe # # This file is part of ProperImage (https://github.com/quatrope/ProperImage) # License: BSD-3-Clause # Full Text: https://github.com/quatrope/ProperImage/blob/master/LICENSE.txt # """ Pytest configuration Written by Bruno SA...
25.550459
79
0.472172
#!/usr/bin/env python # -*- coding: utf-8 -*- # # conftest.py # # Copyright 2020 QuatroPe # # This file is part of ProperImage (https://github.com/quatrope/ProperImage) # License: BSD-3-Clause # Full Text: https://github.com/quatrope/ProperImage/blob/master/LICENSE.txt # """ Pytest configuration Written by Bruno SA...
0
1,575
0
0
0
0
0
13
115
e6a5f147ff440a3daeccaecdee477658d01cb25a
4,044
py
Python
DBParser/DBMove.py
lelle1234/Db2Utils
55570a1afbe6d4abe61c31952bc178c2443f4e5b
[ "Apache-2.0" ]
4
2020-02-27T13:56:37.000Z
2022-02-07T23:07:24.000Z
DBParser/DBMove.py
lelle1234/Db2Utils
55570a1afbe6d4abe61c31952bc178c2443f4e5b
[ "Apache-2.0" ]
null
null
null
DBParser/DBMove.py
lelle1234/Db2Utils
55570a1afbe6d4abe61c31952bc178c2443f4e5b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import ibm_db import getopt import sys import os from toposort import toposort_flatten db = None host = "localhost" port = "50000" user = None pwd = None outfile = None targetdb = None try: opts, args = getopt.getopt(sys.argv[1:], "h:d:P:u:p:o:t:") except getopt.GetoptError: sys.exit(-1) f...
29.304348
157
0.633778
#!/usr/bin/python3 import ibm_db import getopt import sys import os from toposort import toposort_flatten db = None host = "localhost" port = "50000" user = None pwd = None outfile = None targetdb = None try: opts, args = getopt.getopt(sys.argv[1:], "h:d:P:u:p:o:t:") except getopt.GetoptError: sys.exit(-1) f...
0
0
0
0
0
0
0
0
0
1826ac1792c3f253b692b2bf7ec96c99c97e661e
3,805
py
Python
utils/img_utils.py
ashish-roopan/fsgan
1582e112d0f59cd32920ac5953baec783e088cad
[ "CC0-1.0" ]
599
2020-04-14T19:28:58.000Z
2022-03-26T11:29:37.000Z
utils/img_utils.py
ashish-roopan/fsgan
1582e112d0f59cd32920ac5953baec783e088cad
[ "CC0-1.0" ]
157
2020-04-14T21:13:43.000Z
2022-02-07T06:30:16.000Z
utils/img_utils.py
ashish-roopan/fsgan
1582e112d0f59cd32920ac5953baec783e088cad
[ "CC0-1.0" ]
150
2020-04-14T20:40:41.000Z
2022-03-30T10:50:21.000Z
""" Image utilities. """ import numpy as np import torch import torch.nn as nn import torchvision.utils import torchvision.transforms.functional as F def rgb2tensor(img, normalize=True): """ Converts a RGB image to tensor. Args: img (np.array or list of np.array): RGB image of shape (H, W, 3) or a l...
29.496124
104
0.634954
""" Image utilities. """ import numpy as np import torch import torch.nn as nn import torchvision.utils import torchvision.transforms.functional as F def rgb2tensor(img, normalize=True): """ Converts a RGB image to tensor. Args: img (np.array or list of np.array): RGB image of shape (H, W, 3) or a l...
0
0
0
0
0
0
0
0
0
b1dae4627698720b71acc66652bdcf3eedc8e82a
4,350
py
Python
test/python/WMCore_t/Services_t/Dashboard_t/reportSamples/FallbackSample.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
1
2015-02-05T13:43:46.000Z
2015-02-05T13:43:46.000Z
test/python/WMCore_t/Services_t/Dashboard_t/reportSamples/FallbackSample.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
1
2016-10-13T14:57:35.000Z
2016-10-13T14:57:35.000Z
test/python/WMCore_t/Services_t/Dashboard_t/reportSamples/FallbackSample.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __FallbackSample__ Example of a report from a job that had xrootd fallback reads """ from WMCore.Configuration import ConfigSection from WMCore.FwkJobReport.Report import Report FrameworkJobReport = ConfigSection("FrameworkJobReport") FrameworkJobReport.task = '/Run...
55.769231
198
0.844138
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __FallbackSample__ Example of a report from a job that had xrootd fallback reads """ from WMCore.Configuration import ConfigSection from WMCore.FwkJobReport.Report import Report FrameworkJobReport = ConfigSection("FrameworkJobReport") FrameworkJobReport.task = '/Run...
0
0
0
0
0
0
0
0
0
c5fcd6a2d9227ec6a94779dad8a49a3d8bb96c4b
1,273
py
Python
dns_main/src/math_calc.py
JevgenijsGalaktionovs/AntBot
e89fa811087cce6c4038329c44ffeaf26308c0e9
[ "MIT" ]
null
null
null
dns_main/src/math_calc.py
JevgenijsGalaktionovs/AntBot
e89fa811087cce6c4038329c44ffeaf26308c0e9
[ "MIT" ]
4
2019-09-10T07:14:06.000Z
2019-09-10T09:29:51.000Z
dns_main/src/math_calc.py
eugenegalaxy/DNS
e89fa811087cce6c4038329c44ffeaf26308c0e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python2
21.576271
93
0.489395
#!/usr/bin/env python2 from math import sqrt, pow def dotProduct(a, b): c = a[0] * b[0] + a[1] * b[1] + a[2] * b[2] return c def abs_dotProduct(c): if c < 0: return -c else: return c def crossProduct(a, b): cross = [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b...
0
0
0
0
0
983
0
5
252
e77f3270dd4b1d49e1c0c43bb5248333a97ef892
1,994
py
Python
tests/iotrelay_tempodb_tests.py
eman/iotrelay-tempodb
ec07b64ba42b5774aae2edf0891ae8ae11d54a7b
[ "BSD-2-Clause" ]
null
null
null
tests/iotrelay_tempodb_tests.py
eman/iotrelay-tempodb
ec07b64ba42b5774aae2edf0891ae8ae11d54a7b
[ "BSD-2-Clause" ]
null
null
null
tests/iotrelay_tempodb_tests.py
eman/iotrelay-tempodb
ec07b64ba42b5774aae2edf0891ae8ae11d54a7b
[ "BSD-2-Clause" ]
null
null
null
''' Copyright (c) 2015, Emmanuel Levijarvi All rights reserved. License BSD ''' import os from tests.tempodb_mock import Client, DataPoint import iotrelay_tempodb iotrelay_tempodb.Client = Client iotrelay_tempodb.DataPoint = DataPoint TIME_FMT = "%Y-%m-%d %H:%M:%S %z" TIME_FMT = "%Y-%m-%d %H:%M:%S" TEST_DATA = os.pat...
36.254545
78
0.657472
''' Copyright (c) 2015, Emmanuel Levijarvi All rights reserved. License BSD ''' from datetime import datetime from unittest import TestCase import csv import os from iotrelay import Reading from tests.tempodb_mock import Client, DataPoint import iotrelay_tempodb iotrelay_tempodb.Client = Client iotrelay_tempodb.DataPo...
0
0
0
1,456
0
0
0
12
111
8bef93d84a6d748b9e7bdd1bd4e8e051fe38ab94
1,905
py
Python
setup.py
robotics-4-all/tektrain-robot-sw
3a420f1c47e1cdcca76361c0a921a678f31e1ec1
[ "MIT" ]
null
null
null
setup.py
robotics-4-all/tektrain-robot-sw
3a420f1c47e1cdcca76361c0a921a678f31e1ec1
[ "MIT" ]
4
2020-01-13T11:45:20.000Z
2020-03-16T10:31:28.000Z
setup.py
robotics-4-all/tektrain-robot-sw
3a420f1c47e1cdcca76361c0a921a678f31e1ec1
[ "MIT" ]
1
2020-12-14T21:56:17.000Z
2020-12-14T21:56:17.000Z
from setuptools import setup, find_packages, Extension REQUIRES = [] NAME = "pidevices" VERSION = "0.0.1" DEPENDENCIES = ['pyalsaaudio==0.8.4', 'picamera==1.13', 'rpi-ws281x==4.2.2', 'pygame==1.9.6', 'evdev==1.2.0', 'omxplayer-wrapper==0.3.2', 'RPi.GPIO==0.7.0', 'smbu...
34.636364
80
0.617848
from setuptools import setup, find_packages, Extension REQUIRES = [] NAME = "pidevices" VERSION = "0.0.1" DEPENDENCIES = ['pyalsaaudio==0.8.4', 'picamera==1.13', 'rpi-ws281x==4.2.2', 'pygame==1.9.6', 'evdev==1.2.0', 'omxplayer-wrapper==0.3.2', 'RPi.GPIO==0.7.0', 'smbu...
0
0
0
0
0
0
0
0
0
6ee2b0a833d9c67b01bf9d63630811281da7636c
1,313
py
Python
14/14.py
stevenpclark/aoc2020
f264dae2b2bc2753a952dc3908ecea7f871a61ad
[ "MIT" ]
null
null
null
14/14.py
stevenpclark/aoc2020
f264dae2b2bc2753a952dc3908ecea7f871a61ad
[ "MIT" ]
null
null
null
14/14.py
stevenpclark/aoc2020
f264dae2b2bc2753a952dc3908ecea7f871a61ad
[ "MIT" ]
null
null
null
if __name__ == '__main__': main()
28.543478
83
0.477532
import itertools def apply_mask(v, mask): set_mask = int(mask.replace('X', '0'), 2) clear_mask = int(mask.replace('1', 'X').replace('0', '1').replace('X', '0'), 2) v |= set_mask v &= ~clear_mask return v def part1(cmds, use_direct_mode=True): arr = dict() mask = None for c, v in cmds...
0
0
0
0
0
1,185
0
-5
91
f388738bdb280f3a7a7d587dc853f1ea38a3971b
9,575
py
Python
immercv/cvgraph/models.py
11craft/immercv
79fa3723990347de291f619f0516c85188a6109b
[ "BSD-3-Clause" ]
1
2016-01-19T19:54:23.000Z
2016-01-19T19:54:23.000Z
immercv/cvgraph/models.py
11craft/immercv
79fa3723990347de291f619f0516c85188a6109b
[ "BSD-3-Clause" ]
null
null
null
immercv/cvgraph/models.py
11craft/immercv
79fa3723990347de291f619f0516c85188a6109b
[ "BSD-3-Clause" ]
null
null
null
EDITABLE_PROPERTIES = { # labels: {property-name, ...}, # Nodes ':Company': ['name'], ':CV': ['name', 'date', 'spec'], ':Experience': ['title', 'date', 'publish_date', 'summary', 'body'], ':Link': ['title', 'url', 'publish_date', 'summary'], ':Note': ['text', 'publish_date'], ':Person'...
28.079179
107
0.581619
import datetime from django.core.urlresolvers import reverse from django.utils.text import slugify from neomodel import IntegerProperty, StructuredNode, StringProperty, db, DateProperty, RelationshipFrom, \ RelationshipTo, StructuredRel, Relationship, BooleanProperty EDITABLE_PROPERTIES = { # labels: {propert...
0
354
0
7,333
0
577
0
184
457
319e0fe080ce4c688399905a37d75ccb4c5893c6
856
py
Python
cli/almond_cloud/etc/coll.py
Stanford-IoT-Lab/thingengine-platform-cloud
de8610ab21198edb16d215d611e0c0b1df302e2c
[ "Apache-2.0" ]
63
2018-07-14T12:01:45.000Z
2019-04-09T05:47:50.000Z
cli/almond_cloud/etc/coll.py
Stanford-Mobisocial-IoT-Lab/almond-cloud
de8610ab21198edb16d215d611e0c0b1df302e2c
[ "Apache-2.0" ]
227
2018-06-04T16:29:48.000Z
2019-04-10T18:22:22.000Z
cli/almond_cloud/etc/coll.py
Stanford-IoT-Lab/thingengine-platform-cloud
de8610ab21198edb16d215d611e0c0b1df302e2c
[ "Apache-2.0" ]
6
2021-11-25T13:43:57.000Z
2022-03-03T16:38:19.000Z
############################################################################## # Collection Manipulators # ============================================================================ ##############################################################################
31.703704
78
0.371495
############################################################################## # Collection Manipulators # ============================================================================ ############################################################################## from typing import Mapping, Sequence def dig(target, *...
0
0
0
0
0
531
0
15
46
4c5c6be105b1aa2d35d48c62bb0de62e1c82a571
3,427
py
Python
android/.buildozer/android/platform/build/build/python-installs/youtb_dc/youtube_dl/extractor/biqle.py
mw3tv123/youtube-dc
84cfdac4b7548285084f453f1716eee83b9288aa
[ "MIT" ]
null
null
null
android/.buildozer/android/platform/build/build/python-installs/youtb_dc/youtube_dl/extractor/biqle.py
mw3tv123/youtube-dc
84cfdac4b7548285084f453f1716eee83b9288aa
[ "MIT" ]
null
null
null
android/.buildozer/android/platform/build/build/python-installs/youtb_dc/youtube_dl/extractor/biqle.py
mw3tv123/youtube-dc
84cfdac4b7548285084f453f1716eee83b9288aa
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals
34.969388
101
0.509775
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from .vk import VKIE from ..utils import ( HEADRequest, int_or_none, ) class BIQLEIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?biqle\.(?:com|org|ru)/watch/(?P<id>-?\d+_\d+)' _TESTS = [{ # Youtube...
66
0
0
3,200
0
0
0
47
90
7cdcb99e5586b56c468c0fd7acd320da266b8e79
5,939
py
Python
Source/chrome/build/android/pylib/gtest/test_package_exe.py
yury-s/v8-inspector
0ab4779e0909d387f243f41ca2621237cdb0c7fe
[ "BSD-3-Clause" ]
20
2015-08-26T06:46:00.000Z
2019-02-27T09:05:58.000Z
Source/chrome/build/android/pylib/gtest/test_package_exe.py
yury-s/v8-inspector
0ab4779e0909d387f243f41ca2621237cdb0c7fe
[ "BSD-3-Clause" ]
null
null
null
Source/chrome/build/android/pylib/gtest/test_package_exe.py
yury-s/v8-inspector
0ab4779e0909d387f243f41ca2621237cdb0c7fe
[ "BSD-3-Clause" ]
2
2015-08-26T05:49:35.000Z
2020-02-03T20:22:43.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Defines TestPackageExecutable to help run stand-alone executables."""
37.11875
79
0.668294
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Defines TestPackageExecutable to help run stand-alone executables.""" import logging import os import posixpath import sys import tempfile from pyli...
0
1,031
0
4,358
0
0
0
42
267
af599cceb439120e8d159306a92835365189a67b
242
py
Python
scripts.py
LucasFDutra/pysls
8a31788d23a6b785def02187d43d2510f808da7f
[ "MIT" ]
1
2021-09-06T08:00:38.000Z
2021-09-06T08:00:38.000Z
scripts.py
LucasFDutra/pysls
8a31788d23a6b785def02187d43d2510f808da7f
[ "MIT" ]
6
2020-10-11T13:39:37.000Z
2020-10-24T18:13:55.000Z
scripts.py
LucasFDutra/pysls
8a31788d23a6b785def02187d43d2510f808da7f
[ "MIT" ]
null
null
null
if __name__ == "__main__": run_tests()
26.888889
57
0.681818
import os def run_tests(): os.rename('requirements.txt', 'requirements_tmp.txt') os.system('pytest --cov=./pysls --cov-report=xml') os.rename('requirements_tmp.txt', 'requirements.txt') if __name__ == "__main__": run_tests()
0
0
0
0
0
166
0
-12
45
da65a2d8f9f78bd4dbfb9ebe38ab1f04ca4a5ca6
1,228
py
Python
project/labels/tests/utils.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
31
2019-12-08T14:22:52.000Z
2021-12-27T04:58:12.000Z
project/labels/tests/utils.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
193
2019-12-07T23:27:43.000Z
2022-03-05T08:05:46.000Z
project/labels/tests/utils.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
null
null
null
# Abstract class
28.55814
78
0.618893
from abc import ABCMeta from django.urls import reverse from lib.tests.utils import ClientTest, sample_image_as_file from ..models import LabelGroup, Label # Abstract class class LabelTest(ClientTest, metaclass=ABCMeta): @classmethod def create_label_group(cls, group_name): group = LabelGroup(name=...
0
922
0
26
0
0
0
68
193
202fc69a90125dfec341399391f6c422e66020b0
669
py
Python
dpsutil/common/helper.py
connortran216/DPS_Util
8e6af59c3cc5d4addf3694ee0dfede08206ec4b3
[ "MIT" ]
1
2021-01-19T03:14:42.000Z
2021-01-19T03:14:42.000Z
dpsutil/common/helper.py
connortran216/DPS_Util
8e6af59c3cc5d4addf3694ee0dfede08206ec4b3
[ "MIT" ]
1
2021-01-27T09:50:33.000Z
2021-01-27T09:50:33.000Z
dpsutil/common/helper.py
connortran216/DPS_Util
8e6af59c3cc5d4addf3694ee0dfede08206ec4b3
[ "MIT" ]
3
2020-03-24T02:49:47.000Z
2021-02-26T04:05:06.000Z
def convert_kwargs_to_cmd_line_args(kwargs): """ Helper function to build command line arguments out of dict. """ args = [] for k in sorted(kwargs.keys()): v = kwargs[k] args.append('-{}'.format(k)) if v is not None: args.append('{}'.format(v)) return args ...
26.76
77
0.627803
def check_type_instance(_instance, _types): if not isinstance(_instance, _types): raise TypeError(f"Required {_types}. Got {type(_instance)}") return True def convert_kwargs_to_cmd_line_args(kwargs): """ Helper function to build command line arguments out of dict. """ args = [] for...
0
0
0
0
0
149
0
0
22
0ca983f19dbde49be78165ea0ce6d3661652f0f5
1,822
py
Python
backup/guitemplates/addambiencesimpledialog.py
calebtrahan/KujiIn_Python
0599d36993fa1d5988a4cf3206a12fdbe63781d8
[ "MIT" ]
null
null
null
backup/guitemplates/addambiencesimpledialog.py
calebtrahan/KujiIn_Python
0599d36993fa1d5988a4cf3206a12fdbe63781d8
[ "MIT" ]
null
null
null
backup/guitemplates/addambiencesimpledialog.py
calebtrahan/KujiIn_Python
0599d36993fa1d5988a4cf3206a12fdbe63781d8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'addambiencesimpledialog.ui' # # Created by: PyQt4 UI code generator 4.11.1 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: try: ...
40.488889
162
0.700878
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'addambiencesimpledialog.ui' # # Created by: PyQt4 UI code generator 4.11.1 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def...
0
0
0
1,131
0
200
0
0
101
cbd10e96edec126612850ecf5dbaaf9945eb383b
4,132
py
Python
epg2xml/providers/naver.py
epg2xml/epg2xml
aeec3548e6124c593ac552879dcddf94f5a7af1c
[ "BSD-3-Clause" ]
21
2021-03-07T06:12:39.000Z
2022-01-31T08:47:28.000Z
epg2xml/providers/naver.py
epg2xml/epg2xml
aeec3548e6124c593ac552879dcddf94f5a7af1c
[ "BSD-3-Clause" ]
6
2021-03-06T13:03:04.000Z
2021-12-30T05:19:54.000Z
epg2xml/providers/naver.py
epg2xml/epg2xml
aeec3548e6124c593ac552879dcddf94f5a7af1c
[ "BSD-3-Clause" ]
7
2021-07-23T14:45:53.000Z
2022-02-05T06:19:09.000Z
import logging from datetime import date log = logging.getLogger(__name__.rsplit(".", maxsplit=1)[-1].upper()) today = date.today() # TODO: better to parsing desktop page?
45.406593
115
0.46757
import logging from datetime import datetime, timedelta, date from xml.sax.saxutils import unescape from epg2xml.providers import EPGProvider, EPGProgram from epg2xml.providers import ParserBeautifulSoup as BeautifulSoup from epg2xml.utils import request_data log = logging.getLogger(__name__.rsplit(".", maxsp...
141
0
0
3,652
0
0
0
131
119
0b8c6d9aaa1c139906953bcbdff54cb52f58195e
1,767
py
Python
inClass/week3.py
jmbohan/python
8fbd8c15a94f7447b0f67b1d0db72aef39ca28a9
[ "MIT" ]
null
null
null
inClass/week3.py
jmbohan/python
8fbd8c15a94f7447b0f67b1d0db72aef39ca28a9
[ "MIT" ]
null
null
null
inClass/week3.py
jmbohan/python
8fbd8c15a94f7447b0f67b1d0db72aef39ca28a9
[ "MIT" ]
null
null
null
''' using length to validate input # ask for a six digit number and print to the console flag = True while flag == True: try: usr_num = input("Please enter a six digit number: ") if float(usr_num): if len(usr_num) > 6 : print("Number is too big!") elif len...
25.242857
60
0.579513
''' using length to validate input # ask for a six digit number and print to the console flag = True while flag == True: try: usr_num = input("Please enter a six digit number: ") if float(usr_num): if len(usr_num) > 6 : print("Number is too big!") elif len...
0
0
0
0
0
0
0
0
0
912e4c9d374501172eae3299cc0cab625cb1a9a7
3,713
py
Python
test/algorithms/pes_samplers/test_bopes_sampler.py
divshacker/qiskit-nature
08f6dcec5e4ac8c08f5b84e764ee78cc3d12facb
[ "Apache-2.0" ]
1
2021-06-20T15:31:01.000Z
2021-06-20T15:31:01.000Z
test/algorithms/pes_samplers/test_bopes_sampler.py
divshacker/qiskit-nature
08f6dcec5e4ac8c08f5b84e764ee78cc3d12facb
[ "Apache-2.0" ]
null
null
null
test/algorithms/pes_samplers/test_bopes_sampler.py
divshacker/qiskit-nature
08f6dcec5e4ac8c08f5b84e764ee78cc3d12facb
[ "Apache-2.0" ]
3
2021-07-02T06:57:58.000Z
2021-07-06T12:32:38.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
33.151786
98
0.67331
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
0
0
0
2,491
0
0
0
373
268
9306a29c98a8d123e224307638c295e2d6d794b2
208
py
Python
locallibrary/asgi.py
AJED9A1/django_local_library
ff97632b367694540587210c8e6fbb664012dbef
[ "Unlicense" ]
null
null
null
locallibrary/asgi.py
AJED9A1/django_local_library
ff97632b367694540587210c8e6fbb664012dbef
[ "Unlicense" ]
null
null
null
locallibrary/asgi.py
AJED9A1/django_local_library
ff97632b367694540587210c8e6fbb664012dbef
[ "Unlicense" ]
null
null
null
import os import django from channels.routing import get_default_application os.environ.setdefault('DJANGO_SETTINGS_MODULE','locallibrarysettings') django.setup() application = get_default_application()
17.333333
70
0.836538
import os import django from channels.routing import get_default_application os.environ.setdefault('DJANGO_SETTINGS_MODULE','locallibrarysettings') django.setup() application = get_default_application()
0
0
0
0
0
0
0
0
0
43119c3a6a04416e63549c234463f256fe04d00d
1,145
py
Python
BuscaProfundidadeBFS/GrafoDados.py
exodia-impacta-cca/AC1.1-IA-IMPACTA
4230f7f6aaed11026bef65d556292646be18f1bf
[ "MIT" ]
null
null
null
BuscaProfundidadeBFS/GrafoDados.py
exodia-impacta-cca/AC1.1-IA-IMPACTA
4230f7f6aaed11026bef65d556292646be18f1bf
[ "MIT" ]
null
null
null
BuscaProfundidadeBFS/GrafoDados.py
exodia-impacta-cca/AC1.1-IA-IMPACTA
4230f7f6aaed11026bef65d556292646be18f1bf
[ "MIT" ]
2
2021-09-05T20:02:39.000Z
2021-09-05T20:02:58.000Z
# Criar um dicionrio com todos os mapeamentos conexoes = {} conexoes ["Casa"] = ["Amador Bueno"] conexoes ["Amador Bueno"] = ["Osasco"] conexoes ["Osasco"] = ["Jlio Prestes", "Pinheiros", "Amador Bueno"] conexoes ["Jlio Prestes"] = ["Barra Funda"] conexoes ["Barra Funda"] = ["Faculdade Impacta"] conexoes ["Pinheiros"] ...
35.78125
68
0.656769
# Criar um dicionário com todos os mapeamentos conexoes = {} conexoes ["Casa"] = ["Amador Bueno"] conexoes ["Amador Bueno"] = ["Osasco"] conexoes ["Osasco"] = ["Júlio Prestes", "Pinheiros", "Amador Bueno"] conexoes ["Júlio Prestes"] = ["Barra Funda"] conexoes ["Barra Funda"] = ["Faculdade Impacta"] conexoes ["Pinheiros...
36
0
0
0
0
0
0
0
0
45e78ac4129c37d21bcd6c37b70dc2f062eb0fbf
2,256
py
Python
covid_topic_labelling_model.py
justinli930/Public-Morale-Over-Covid
36fc07e48fe5fcf11cc9c35856f3e2eedc4998ec
[ "Apache-2.0" ]
null
null
null
covid_topic_labelling_model.py
justinli930/Public-Morale-Over-Covid
36fc07e48fe5fcf11cc9c35856f3e2eedc4998ec
[ "Apache-2.0" ]
null
null
null
covid_topic_labelling_model.py
justinli930/Public-Morale-Over-Covid
36fc07e48fe5fcf11cc9c35856f3e2eedc4998ec
[ "Apache-2.0" ]
null
null
null
import pandas as pd from pandas.core.frame import DataFrame from sklearn.feature_extraction.text import CountVectorizer from sklearn.decomposition import LatentDirichletAllocation as LDA import pickle import spacy from spacy.tokens import Token from nltk.corpus import wordnet as wn def load_training_data(direc: str =...
30.90411
105
0.672872
import numpy as np import pandas as pd from pandas.core.frame import DataFrame from sklearn.feature_extraction.text import CountVectorizer from sklearn.decomposition import LatentDirichletAllocation as LDA import pickle import spacy from spacy.tokens import Token import nltk from nltk.corpus import wordnet as wn def ...
0
0
0
0
0
0
0
-13
44
0da648b1ff5cf9a5f8a6429135eb12db37a6d472
2,597
py
Python
userbot/plugins/__init__.py
Lapnl/lapanbot
db95d4654d249fac93c8e4c7483c2f86a477f9e9
[ "MIT" ]
1
2020-09-30T09:20:34.000Z
2020-09-30T09:20:34.000Z
userbot/plugins/__init__.py
sppidy/TeleBot
8a6aad339d18b64c41aeb5e8891f191c922eaf64
[ "MIT" ]
null
null
null
userbot/plugins/__init__.py
sppidy/TeleBot
8a6aad339d18b64c41aeb5e8891f191c922eaf64
[ "MIT" ]
null
null
null
# inspired by https://github.com/sandy1709/catuserbot/blob/master/userbot/plugins/__init__.py import heroku3 from heroku_config import Var Heroku = heroku3.from_key(Var.HEROKU_API_KEY) heroku_api = "https://api.heroku.com" HEROKU_APP_NAME = Var.HEROKU_APP_NAME HEROKU_API_KEY = Var.HEROKU_API_KEY # inspired by https:/...
30.552941
93
0.593377
# inspired by https://github.com/sandy1709/catuserbot/blob/master/userbot/plugins/__init__.py import os import re import time import math import heroku3 import requests from heroku_config import Var from userbot import telever from userbot.uniborgConfig import Config from telethon import events from datetime import da...
0
0
1,811
0
0
148
0
-11
245
f7b08d92fe4abda8613c1d77ced97e97703351dc
1,631
py
Python
idaes/commands/env_info.py
eslickj/idaes-pse
328ed07ffb0b4d98c03e972675ea32c41dd2531a
[ "RSA-MD" ]
1
2019-02-21T22:03:48.000Z
2019-02-21T22:03:48.000Z
idaes/commands/env_info.py
eslickj/idaes-pse
328ed07ffb0b4d98c03e972675ea32c41dd2531a
[ "RSA-MD" ]
1
2021-03-01T22:05:06.000Z
2021-03-01T22:05:06.000Z
idaes/commands/env_info.py
eslickj/idaes-pse
328ed07ffb0b4d98c03e972675ea32c41dd2531a
[ "RSA-MD" ]
1
2021-11-04T14:57:20.000Z
2021-11-04T14:57:20.000Z
############################################################################## # Institute for the Design of Advanced Energy Systems Process Systems # Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2020, by the # software owners: The Regents of the University of California, through # Lawrence Berkeley N...
34.702128
78
0.626609
############################################################################## # Institute for the Design of Advanced Energy Systems Process Systems # Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2020, by the # software owners: The Regents of the University of California, through # Lawrence Berkeley N...
0
665
0
0
0
0
0
-1
68
f6f2be0a0cb45f1b6376d3f580ba6d9e2dee40d6
3,238
py
Python
tools/data-generation/reproduction-iclr-experiment-1/create_task_structure_from_json.py
brendel-group/causal-understanding-via-visualizations
3cd1a30f4305c48b1a715da5f62a552d803fb933
[ "MIT" ]
6
2021-06-30T11:10:48.000Z
2022-01-14T11:36:14.000Z
tools/data-generation/reproduction-iclr-experiment-1/create_task_structure_from_json.py
brendel-group/causal-understanding-via-visualizations
3cd1a30f4305c48b1a715da5f62a552d803fb933
[ "MIT" ]
null
null
null
tools/data-generation/reproduction-iclr-experiment-1/create_task_structure_from_json.py
brendel-group/causal-understanding-via-visualizations
3cd1a30f4305c48b1a715da5f62a552d803fb933
[ "MIT" ]
null
null
null
import os import argparse import json import glob import sys import shutil from tqdm import tqdm parser = argparse.ArgumentParser() parser.add_argument( "-t", "--target-folder", required=True, help="Where to save the folder structure." ) parser.add_argument("-i", "--input", required=True, help="Input json structu...
32.059406
86
0.613959
import os import argparse import json import glob import sys import shutil from tqdm import tqdm parser = argparse.ArgumentParser() parser.add_argument( "-t", "--target-folder", required=True, help="Where to save the folder structure." ) parser.add_argument("-i", "--input", required=True, help="Input json structu...
0
0
0
0
0
0
0
0
0
6c78d4562f178ecc50d73ab9f49faa4ef2959969
3,411
py
Python
utils/make_rire_forFID.py
Noodles-321/RegistrationEval
3631d3d5bd65acf980fcfed803fa6125970f3e88
[ "MIT" ]
11
2021-04-02T08:42:54.000Z
2022-03-24T16:18:27.000Z
utils/make_rire_forFID.py
Noodles-321/RegistrationEval
3631d3d5bd65acf980fcfed803fa6125970f3e88
[ "MIT" ]
2
2021-05-12T05:02:59.000Z
2021-10-11T14:40:10.000Z
utils/make_rire_forFID.py
Noodles-321/RegistrationEval
3631d3d5bd65acf980fcfed803fa6125970f3e88
[ "MIT" ]
2
2021-06-29T03:34:36.000Z
2021-09-17T10:38:27.000Z
# -*- coding: utf-8 -*- # %% Helper functions # %% # %% if __name__ == '__main__': make_RIRE_forFID()
37.483516
120
0.541777
# -*- coding: utf-8 -*- import skimage.io as skio import skimage.util as sku from tqdm import tqdm from glob import glob import os import SimpleITK as sitk import numpy as np # %% Helper functions def split_rire_data(fold): if fold == 1: ids_test = {'109', '106', '003', '006'} elif fold ==...
0
0
0
0
0
3,037
0
-3
257
f8469954b04d278a8a795fa56ad3366603313b02
6,510
py
Python
hires_Spire.py
stargaser/hires
e3998fe410ee739a671da1e62412f468ae357fee
[ "BSD-3-Clause" ]
1
2017-06-14T06:33:15.000Z
2017-06-14T06:33:15.000Z
hires_Spire.py
stargaser/hires
e3998fe410ee739a671da1e62412f468ae357fee
[ "BSD-3-Clause" ]
null
null
null
hires_Spire.py
stargaser/hires
e3998fe410ee739a671da1e62412f468ae357fee
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.txt """ SPIRE-specific code for HiRes. Copyright (c) 2012-2013, California Institute of Technology Developer: David Shupe """ import hires as hires try: import astropy.io.fits as pyfits except ImportError: import pyfits import numpy import glob h...
34.812834
93
0.56467
# Licensed under a 3-clause BSD style license - see LICENSE.txt """ SPIRE-specific code for HiRes. Copyright (c) 2012-2013, California Institute of Technology Developer: David Shupe """ import hires as hires try: import astropy.io.fits as pyfits except ImportError: import pyfits import numpy import glob h...
0
0
0
0
0
0
0
0
0
c74f19d5b40b029451e65a1c3bb88ee76bcf4a6a
5,516
py
Python
tests/unit/test_diff.py
grelleum/diffsync
00891f5942ca3c4fef8e76ce47d3c226e2375cb8
[ "Apache-2.0" ]
67
2020-10-26T14:57:53.000Z
2022-03-28T20:38:03.000Z
tests/unit/test_diff.py
grelleum/diffsync
00891f5942ca3c4fef8e76ce47d3c226e2375cb8
[ "Apache-2.0" ]
47
2020-10-26T14:49:37.000Z
2022-03-04T11:32:10.000Z
tests/unit/test_diff.py
grelleum/diffsync
00891f5942ca3c4fef8e76ce47d3c226e2375cb8
[ "Apache-2.0" ]
13
2020-12-06T02:32:34.000Z
2022-03-28T16:10:02.000Z
"""Unit tests for the Diff class. Copyright (c) 2020-2021 Network To Code, LLC <info@networktocode.com> 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...
32.833333
117
0.67984
"""Unit tests for the Diff class. Copyright (c) 2020-2021 Network To Code, LLC <info@networktocode.com> 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...
0
477
0
183
0
1,582
0
0
238
266881f4b8123eeb882823bc3491f6e0fbc06cbf
768
py
Python
furl/compat.py
mattmurch/furl
c2a8f2004b55800508a2be3f7d98501769b73962
[ "Unlicense" ]
1,614
2015-01-10T09:56:48.000Z
2022-03-29T21:18:15.000Z
furl/compat.py
pythonthings/furl
fff552121d98bae3aefa177ad6ede9b1e8016ccc
[ "Unlicense" ]
107
2015-01-03T01:45:16.000Z
2022-01-02T00:34:06.000Z
furl/compat.py
pythonthings/furl
fff552121d98bae3aefa177ad6ede9b1e8016ccc
[ "Unlicense" ]
119
2015-01-13T12:58:10.000Z
2022-02-19T21:12:49.000Z
# -*- coding: utf-8 -*- # # furl - URL manipulation made simple. # # Ansgar Grunseid # grunseid.com # grunseid@gmail.com # # License: Build Amazing Things (Unlicense) # import sys if sys.version_info[0] == 2: string_types = basestring # noqa else: string_types = (str, bytes) if list(sys.version_info[:2])...
20.210526
75
0.639323
# -*- coding: utf-8 -*- # # furl - URL manipulation made simple. # # Ansgar Grunseid # grunseid.com # grunseid@gmail.com # # License: Build Amazing Things (Unlicense) # import sys if sys.version_info[0] == 2: string_types = basestring # noqa else: string_types = (str, bytes) if list(sys.version_info[:2])...
0
0
0
310
0
0
0
14
57