hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
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
125
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
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
008078a3d75d997dfdd102ff5584f36475c9ffc5
2,839
py
Python
account/views.py
algotr/qirat
7a1e2117379075726b98657ffaf3e7c897fc3bdc
[ "MIT" ]
3
2016-03-15T08:20:02.000Z
2016-03-15T08:24:07.000Z
account/views.py
algotr/qirat
7a1e2117379075726b98657ffaf3e7c897fc3bdc
[ "MIT" ]
null
null
null
account/views.py
algotr/qirat
7a1e2117379075726b98657ffaf3e7c897fc3bdc
[ "MIT" ]
null
null
null
__author__ = 'ali-pc' from django.shortcuts import render, redirect from django.contrib import auth from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from .forms import LoginForm, RegisterForm, ProfileForm @login_required()
37.355263
116
0.611835
__author__ = 'ali-pc' from django.shortcuts import render, redirect from django.contrib import auth from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from .forms import LoginForm, RegisterForm, ProfileForm def login(request): if request.user.is_authe...
2,540
0
98
20324accda9f67f2a3838e58a2c450189836ec48
521
py
Python
ubirch-ethereum-service/checksum.py
ubirch/ubirch-ethereum-service
f94dad136f7b9c1dae920e6dced0056f7fb946dd
[ "Apache-2.0" ]
null
null
null
ubirch-ethereum-service/checksum.py
ubirch/ubirch-ethereum-service
f94dad136f7b9c1dae920e6dced0056f7fb946dd
[ "Apache-2.0" ]
null
null
null
ubirch-ethereum-service/checksum.py
ubirch/ubirch-ethereum-service
f94dad136f7b9c1dae920e6dced0056f7fb946dd
[ "Apache-2.0" ]
null
null
null
from ethereum import utils print(checksum_encode(bytes.fromhex('2f6bc758319982417b01b6ff09a9860a79c14cbb')))
32.5625
81
0.633397
from ethereum import utils def checksum_encode(addr): # Takes a 20-byte binary address as input o = '' v = utils.big_endian_to_int(utils.sha3(addr.hex())) for i, c in enumerate(addr.hex()): if c in '0123456789': o += c else: o += c.upper() if (v & (2**(255 - 4*i))) e...
366
0
46
6072f0880cb9e99b0e8f423c4479a8f94d8b2984
8,446
py
Python
cnn/plotBops.py
aqui-tna/darts-UNIQ
293a27b104bc0f53c6093829d1184686b788fba9
[ "Apache-2.0" ]
6
2019-04-28T05:30:00.000Z
2020-01-21T08:16:13.000Z
cnn/plotBops.py
aqui-tna/darts-UNIQ
293a27b104bc0f53c6093829d1184686b788fba9
[ "Apache-2.0" ]
null
null
null
cnn/plotBops.py
aqui-tna/darts-UNIQ
293a27b104bc0f53c6093829d1184686b788fba9
[ "Apache-2.0" ]
5
2019-04-29T05:57:04.000Z
2021-04-21T00:19:11.000Z
from torch import load, save from os.path import dirname, isfile from os import listdir, remove from ast import literal_eval from cnn.statistics import Statistics from cnn.trainRegime.regime import TrainRegime bopsKey = 'bops' baselineKey = 'Baseline' folderName = 'FF-4' plotPath = '/home/vista/Desktop/F-BANN...
36.405172
130
0.609638
from torch import load, save from os.path import dirname, isfile from os import listdir, remove from ast import literal_eval from cnn.statistics import Statistics from cnn.trainRegime.regime import TrainRegime bopsKey = 'bops' baselineKey = 'Baseline' def plotFromFile(plotPath): baseFolder = dirname(plotPath) ...
6,470
0
138
9ff569ef18610cfc2ee76023d859e441e66a6d46
5,875
py
Python
tests/test_overlay.py
wagoodman/overlayUtils
f474ffb1393442c76a81e25c704fed91ab9721c3
[ "MIT" ]
1
2020-09-02T11:58:19.000Z
2020-09-02T11:58:19.000Z
tests/test_overlay.py
wagoodman/overlayUtils
f474ffb1393442c76a81e25c704fed91ab9721c3
[ "MIT" ]
null
null
null
tests/test_overlay.py
wagoodman/overlayUtils
f474ffb1393442c76a81e25c704fed91ab9721c3
[ "MIT" ]
null
null
null
""" tests.test_overlay ~~~~~~~~~~~~~~~~~~ Test OverlayFS and OverlayFSManager """ import fudge from nose.tools import raises from testkit import ContextUser from overlayUtils.overlay import * from .utils import verify, reset class TestOverlayMoreGeneral(GenericOverlaySetup): """This test class assumes less wit...
30.921053
90
0.676085
""" tests.test_overlay ~~~~~~~~~~~~~~~~~~ Test OverlayFS and OverlayFSManager """ import fudge from nose.tools import raises from testkit import ContextUser from overlayUtils.overlay import * from .utils import verify, reset class GenericOverlaySetup(object): def base_setup(self): # Patch all of these ob...
3,769
206
374
4b3819379e058195691e03b7930a947dae40f0d4
211
py
Python
meiduo_mall/apps/carts/urls.py
joinik/meiduo_mall
08da8e789941ee0bb4d9cd658c4faaa4f9f0f67a
[ "MIT" ]
null
null
null
meiduo_mall/apps/carts/urls.py
joinik/meiduo_mall
08da8e789941ee0bb4d9cd658c4faaa4f9f0f67a
[ "MIT" ]
null
null
null
meiduo_mall/apps/carts/urls.py
joinik/meiduo_mall
08da8e789941ee0bb4d9cd658c4faaa4f9f0f67a
[ "MIT" ]
null
null
null
from django.urls import path from apps.carts.views import CartsView, CartsSelectAllView urlpatterns = [ path('carts/', CartsView.as_view()), path('carts/selection/', CartsSelectAllView.as_view()), ]
19.181818
59
0.729858
from django.urls import path from apps.carts.views import CartsView, CartsSelectAllView urlpatterns = [ path('carts/', CartsView.as_view()), path('carts/selection/', CartsSelectAllView.as_view()), ]
0
0
0
a1de753b82e4cbc0f0fe3b10424ab5d0902046d2
727
py
Python
examples/Misc/cogs.py
sergioramalli/bioinformatics
d3428531819239ed5259421becb3f82971e22222
[ "MIT" ]
null
null
null
examples/Misc/cogs.py
sergioramalli/bioinformatics
d3428531819239ed5259421becb3f82971e22222
[ "MIT" ]
null
null
null
examples/Misc/cogs.py
sergioramalli/bioinformatics
d3428531819239ed5259421becb3f82971e22222
[ "MIT" ]
null
null
null
import os, sys, time, json, csv, hashlib from pprint import pprint #Imports configurations and add these modules to python enviroment from config import config, system_config, output_files from cogs.cognitor import cogs # Sets-up the class and creates a directory for all the temp files. cogs = cogs(output_files['c...
36.35
131
0.774415
import os, sys, time, json, csv, hashlib from pprint import pprint #Imports configurations and add these modules to python enviroment from config import config, system_config, output_files from cogs.cognitor import cogs # Sets-up the class and creates a directory for all the temp files. cogs = cogs(output_files['c...
0
0
0
195a3f8e217ef1763d92ac2383118f0343831667
328
py
Python
src/tests/serverlessparser/example_python_files/advanced/example1.py
cdev-framework/cdev-sdk
06cd7b40936ab063d1d8fd1a7d9f6882750e8a96
[ "BSD-3-Clause-Clear" ]
2
2022-02-28T02:51:59.000Z
2022-03-24T15:23:18.000Z
src/tests/serverlessparser/example_python_files/advanced/example1.py
cdev-framework/cdev-sdk
06cd7b40936ab063d1d8fd1a7d9f6882750e8a96
[ "BSD-3-Clause-Clear" ]
null
null
null
src/tests/serverlessparser/example_python_files/advanced/example1.py
cdev-framework/cdev-sdk
06cd7b40936ab063d1d8fd1a7d9f6882750e8a96
[ "BSD-3-Clause-Clear" ]
null
null
null
import os, importlib import sys as sss global x h = os.path.join(".") x = os.environ.get("lkwem") x = "Hello" y = x[0] glob = 1
10.580645
29
0.542683
import os, importlib import sys as sss global x h = os.path.join(".") x = os.environ.get("lkwem") x = "Hello" y = x[0] glob = 1 def f1(): def u(): print("wowow") return os.path.join(glob) def t_function(): print(y) t = "Hi" assert f1() == 4 print(sss) def b(): print(t_func...
124
0
69
56ca28b9c4486590a9a5035a8abf2c2307a1df1f
110
py
Python
newbee/tests.py
showurl/newbee
88be8ebc96c42ccb84ce7393fd2710027420f429
[ "MIT" ]
2
2020-09-10T15:57:19.000Z
2021-02-14T21:57:11.000Z
newbee/tests.py
showurl/newbee
88be8ebc96c42ccb84ce7393fd2710027420f429
[ "MIT" ]
1
2021-06-10T23:17:58.000Z
2021-06-10T23:17:58.000Z
newbee/tests.py
showurl/newbee
88be8ebc96c42ccb84ce7393fd2710027420f429
[ "MIT" ]
1
2022-01-16T03:48:37.000Z
2022-01-16T03:48:37.000Z
dict_ = {"a": {"b": 1}} return_data_form = dict_.get([k for k, v in dict_.items()][0]) print(return_data_form)
36.666667
62
0.654545
dict_ = {"a": {"b": 1}} return_data_form = dict_.get([k for k, v in dict_.items()][0]) print(return_data_form)
0
0
0
e550edabf3d8fe5ea977cdef7a61503d05fb423c
1,800
py
Python
curami/integration/generate_curation_rules.py
EBIBioSamples/curami-v2
671ec5f1d48b866c6ccb24fcddfb80610c377e07
[ "Apache-2.0" ]
null
null
null
curami/integration/generate_curation_rules.py
EBIBioSamples/curami-v2
671ec5f1d48b866c6ccb24fcddfb80610c377e07
[ "Apache-2.0" ]
2
2020-07-02T13:56:03.000Z
2021-06-01T23:51:49.000Z
curami/integration/generate_curation_rules.py
EBIBioSamples/curami-v2
671ec5f1d48b866c6ccb24fcddfb80610c377e07
[ "Apache-2.0" ]
null
null
null
import pandas as pd from _datetime import datetime from curami.commons import file_utils, mongo_connector if __name__ == '__main__': generate_file()
37.5
120
0.658889
import pandas as pd from _datetime import datetime from curami.commons import file_utils, mongo_connector def generate_file(): print('Generating curation rules csv file') curation_rules = [] # Basic cleanup attributes attribute_cleanup_df = pd.read_csv(file_utils.unique_attributes_file_final_diff, e...
1,596
0
46
ab398d3c99de91e1bf07768554eedf0a949e4685
7,954
py
Python
src/renderer.py
felixbmuller/nlp-commonsense
7d23a1e5f2bf7b33548ea9f5e9b89628de6c866c
[ "MIT" ]
null
null
null
src/renderer.py
felixbmuller/nlp-commonsense
7d23a1e5f2bf7b33548ea9f5e9b89628de6c866c
[ "MIT" ]
null
null
null
src/renderer.py
felixbmuller/nlp-commonsense
7d23a1e5f2bf7b33548ea9f5e9b89628de6c866c
[ "MIT" ]
null
null
null
from typing import List, Tuple from utils import ConceptNet, removeprefix def render_path_verbose(path: List[int], graph: ConceptNet): """this function gives a verbose textual representation for the given path, including all edges between the given nodes, node and label indices and label weights. Example ...
38.425121
166
0.609882
from typing import List, Tuple from utils import ConceptNet, removeprefix def render_path_verbose(path: List[int], graph: ConceptNet): """this function gives a verbose textual representation for the given path, including all edges between the given nodes, node and label indices and label weights. Example ...
0
0
0
750122e8e7ac8fd8e8d3f1961d00efde1bd26f45
14,238
py
Python
source/models/nbow.py
ucabops/robbie
f74aefbdb9069d62188d4bb820bf91fa50f73b8c
[ "OML" ]
null
null
null
source/models/nbow.py
ucabops/robbie
f74aefbdb9069d62188d4bb820bf91fa50f73b8c
[ "OML" ]
null
null
null
source/models/nbow.py
ucabops/robbie
f74aefbdb9069d62188d4bb820bf91fa50f73b8c
[ "OML" ]
null
null
null
import numpy as np import pandas as pd from tabulate import tabulate from .util import * def key_adder(w2v_model, wordpairs): """Account for as many cases of british vs. american spelling as possible in W2V vocabulary Args: w2v_model : standard Word2Vec 'KeyedVectors' data structure wordps ...
36.229008
129
0.559418
import numpy as np import pandas as pd from tabulate import tabulate from .util import * def key_adder(w2v_model, wordpairs): """Account for as many cases of british vs. american spelling as possible in W2V vocabulary Args: w2v_model : standard Word2Vec 'KeyedVectors' data structure wordps ...
0
0
0
10cfbed8136ce7a1806c292980ca4f23a4239bb1
1,578
py
Python
Think_Python_problems/chapter5/Koch_curve.py
DumiTech/Python-Projects
8a6a507865999847e8ca4f1633dcc0b35673630c
[ "MIT" ]
null
null
null
Think_Python_problems/chapter5/Koch_curve.py
DumiTech/Python-Projects
8a6a507865999847e8ca4f1633dcc0b35673630c
[ "MIT" ]
null
null
null
Think_Python_problems/chapter5/Koch_curve.py
DumiTech/Python-Projects
8a6a507865999847e8ca4f1633dcc0b35673630c
[ "MIT" ]
null
null
null
""" The Koch curve is a fractal that looks something like Figure 5.2. To draw a Koch curve with length x, all you have to do is: 1. Draw a Koch curve with length x/3. 2. Turn left 60 degrees. 3. Draw a Koch curve with length x/3. 4. Turn right 120 degrees. 5. Draw a Koch curve with length x/3. 6. Turn left 60 deg...
25.451613
116
0.697085
""" The Koch curve is a fractal that looks something like Figure 5.2. To draw a Koch curve with length x, all you have to do is: 1. Draw a Koch curve with length x/3. 2. Turn left 60 degrees. 3. Draw a Koch curve with length x/3. 4. Turn right 120 degrees. 5. Draw a Koch curve with length x/3. 6. Turn left 60 deg...
0
0
0
8054953f79102b920138637870a9bf658a7286bc
4,069
py
Python
xml2txt.py
BramVanroy/sv-order-2021
4a164d146bb02c0b45f5b9c405489c24825ce188
[ "MIT" ]
null
null
null
xml2txt.py
BramVanroy/sv-order-2021
4a164d146bb02c0b45f5b9c405489c24825ce188
[ "MIT" ]
null
null
null
xml2txt.py
BramVanroy/sv-order-2021
4a164d146bb02c0b45f5b9c405489c24825ce188
[ "MIT" ]
null
null
null
"""Get relevant data from TMX/XML and save as tab-separated file. Meant to be run on TMX files and extracting linguistic features for both French (src) and Dutch (tgt). It was used to extract linguistic features from a pre-parsed XML/TMX corpus. """ from os import PathLike from pathlib import Path from typing import G...
47.313953
123
0.646105
"""Get relevant data from TMX/XML and save as tab-separated file. Meant to be run on TMX files and extracting linguistic features for both French (src) and Dutch (tgt). It was used to extract linguistic features from a pre-parsed XML/TMX corpus. """ from os import PathLike from pathlib import Path from typing import G...
0
0
0
7098adfbbdd9edf8ed6e9bb7b0917f5ca795c066
1,496
py
Python
setup.py
BiLiangDevelop/py-go-palette
f7ed548ca9b8d224a60ee1fed08702d981144cb4
[ "MIT" ]
null
null
null
setup.py
BiLiangDevelop/py-go-palette
f7ed548ca9b8d224a60ee1fed08702d981144cb4
[ "MIT" ]
null
null
null
setup.py
BiLiangDevelop/py-go-palette
f7ed548ca9b8d224a60ee1fed08702d981144cb4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup # version info NAME = "pypalette" VERSION = "0.1.6" DESC = "Extract prominent colors from images! Python wrapper for `https://github.com/dayvonjersen/vibrant`." # requirements install_requires = [] with open('requirements.txt', "r") as fp: for line in fp: ...
30.530612
108
0.61631
# -*- coding: utf-8 -*- from setuptools import setup # version info NAME = "pypalette" VERSION = "0.1.6" DESC = "Extract prominent colors from images! Python wrapper for `https://github.com/dayvonjersen/vibrant`." # requirements install_requires = [] with open('requirements.txt', "r") as fp: for line in fp: ...
0
0
0
40be04fac4760a3886f301c4575bf2205b6aecca
566
py
Python
geni-lib/samples/vts-options.py
AERPAW-Platform-Control/gateway
a80a25bb54a7cede82673f2385bb73d5aaa4963a
[ "MIT" ]
null
null
null
geni-lib/samples/vts-options.py
AERPAW-Platform-Control/gateway
a80a25bb54a7cede82673f2385bb73d5aaa4963a
[ "MIT" ]
null
null
null
geni-lib/samples/vts-options.py
AERPAW-Platform-Control/gateway
a80a25bb54a7cede82673f2385bb73d5aaa4963a
[ "MIT" ]
null
null
null
# Copyright (c) 2013 Barnstormer Softworks, Ltd. # 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/. import json import geni.rspec.pgmanifest as PGM m = PGM.Manifest("v...
29.789474
71
0.683746
# Copyright (c) 2013 Barnstormer Softworks, Ltd. # 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/. import json import geni.rspec.pgmanifest as PGM m = PGM.Manifest("v...
0
0
0
302a3a65ac1ef62730f54a25df0e132b0766c8ce
990
py
Python
web/core/migrations/0099_sustainabilitydeclaration.py
MTES-MCT/biocarburants
ff084916e18cdbdc41400f36fa6cc76a5e05900e
[ "MIT" ]
4
2020-03-22T18:13:12.000Z
2021-01-25T10:33:31.000Z
web/core/migrations/0099_sustainabilitydeclaration.py
MTES-MCT/carbure
2876756b760ab4866fa783bb40e61a046eebb1ab
[ "MIT" ]
20
2020-07-06T14:33:14.000Z
2022-03-15T16:54:17.000Z
web/core/migrations/0099_sustainabilitydeclaration.py
MTES-MCT/biocarburants
ff084916e18cdbdc41400f36fa6cc76a5e05900e
[ "MIT" ]
4
2020-04-03T12:19:12.000Z
2021-06-15T12:20:57.000Z
# Generated by Django 3.0.7 on 2021-01-18 13:40 from django.db import migrations, models import django.db.models.deletion
33
114
0.574747
# Generated by Django 3.0.7 on 2021-01-18 13:40 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0098_auto_20210118_1404'), ] operations = [ migrations.CreateModel( name='Sustainabilit...
0
847
23
0231ae84b262b0e3c3c694a492fbc0d751a6d6fa
1,018
py
Python
Data_Conversion/Kfunc/IO/convert2vid.py
simay1224/K-project-UI
c69f83b6446052a1cd32a00700e7db197f36a1ed
[ "Apache-2.0" ]
null
null
null
Data_Conversion/Kfunc/IO/convert2vid.py
simay1224/K-project-UI
c69f83b6446052a1cd32a00700e7db197f36a1ed
[ "Apache-2.0" ]
1
2018-06-19T22:21:43.000Z
2018-06-19T22:21:43.000Z
Data_Conversion/Kfunc/IO/convert2vid.py
simay1224/K-project-UI
c69f83b6446052a1cd32a00700e7db197f36a1ed
[ "Apache-2.0" ]
3
2018-08-29T18:39:57.000Z
2020-06-05T15:29:07.000Z
# -*- coding: utf-8 -*- """ Created on Tue Nov 15 12:55:31 2016 @author: medialab """ import cv
31.8125
143
0.547151
# -*- coding: utf-8 -*- """ Created on Tue Nov 15 12:55:31 2016 @author: medialab """ import cv def convert2vid(bdjoints,fimgs,fps,Vtype=0): # Vtype : 0 : color m, 1: depth ,2: body index if Vtype == 0 : fsize = (1920,1080) extname = '' elif Vtype == 1: fsize = (512,424) ...
899
0
23
b62254ed481528855528181d9a1fc186074ffb74
3,728
py
Python
src/notedetector.py
yaatehr/ChordShed
5b04fd086792898bf41dd9a88f4ab1b1656a3f9e
[ "MIT" ]
null
null
null
src/notedetector.py
yaatehr/ChordShed
5b04fd086792898bf41dd9a88f4ab1b1656a3f9e
[ "MIT" ]
null
null
null
src/notedetector.py
yaatehr/ChordShed
5b04fd086792898bf41dd9a88f4ab1b1656a3f9e
[ "MIT" ]
null
null
null
import mido #from mido.ports import open_input from mido import Message, MidiFile, MidiTrack import numpy as np import time from src.LRUDict import LRUDict # import sys # sys.path.append('..')
36.910891
98
0.566255
import mido #from mido.ports import open_input from mido import Message, MidiFile, MidiTrack import numpy as np import time from src.LRUDict import LRUDict # import sys # sys.path.append('..') class NoteDetector(object): clock = time.clock noteTimeout = 300 noteCap = 10 def __init__(self, synth): ...
3,251
261
23
cddeeaadf56daa2f35fb29b02178cc0e05b2eb16
2,438
py
Python
automation.py
ArijitAcharjee411/Project-automation-selenium-python-
217c53e28628559d3b8cc6c82874648036d4bd3a
[ "MIT" ]
null
null
null
automation.py
ArijitAcharjee411/Project-automation-selenium-python-
217c53e28628559d3b8cc6c82874648036d4bd3a
[ "MIT" ]
null
null
null
automation.py
ArijitAcharjee411/Project-automation-selenium-python-
217c53e28628559d3b8cc6c82874648036d4bd3a
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2021 arijit <arijit@linux-inspiron-5567> # # Distributed under terms of the MIT license. from selenium import webdriver import time import subprocess repo_name = input("[+] Provide the github repository name :") descript = input("[+] Prov...
46.884615
173
0.747744
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2021 arijit <arijit@linux-inspiron-5567> # # Distributed under terms of the MIT license. from selenium import webdriver import time import subprocess repo_name = input("[+] Provide the github repository name :") descript = input("[+] Prov...
0
0
0
58d697d4d95f148a3859c95c488e1ee9acdd2077
757
py
Python
keylogger.py
yogesh7132/Keylogger
47d00c8e4f619b2877c2f7a7c467bc3be16008a8
[ "MIT" ]
2
2020-06-16T02:52:14.000Z
2020-06-16T03:00:49.000Z
keylogger.py
yogesh7132/Keylogger
47d00c8e4f619b2877c2f7a7c467bc3be16008a8
[ "MIT" ]
null
null
null
keylogger.py
yogesh7132/Keylogger
47d00c8e4f619b2877c2f7a7c467bc3be16008a8
[ "MIT" ]
null
null
null
from pynput.keyboard import Listener keyboardListener()
19.410256
52
0.562748
from pynput.keyboard import Listener def createLog(key_letter): keydata=str(key_letter) keydata=keydata.replace("'","") if keydata == "Key.space": keydata = keydata.replace("Key.space", " ") if keydata == "Key.enter": keydata = "\n" if keydata == "Key.shift_r": keydata =...
653
0
46
6a877c7c41158eaae2f42d0fd7adbfb902b13adf
1,844
py
Python
src/qutescript/utils.py
hiway/python-qutescript
5115bc85551e8d3472b308549cd7eed3cbf93e2f
[ "BSD-2-Clause" ]
72
2017-06-16T21:16:29.000Z
2022-03-11T01:16:50.000Z
src/qutescript/utils.py
hiway/python-qutescript
5115bc85551e8d3472b308549cd7eed3cbf93e2f
[ "BSD-2-Clause" ]
2
2018-08-28T00:12:21.000Z
2021-03-03T20:31:26.000Z
src/qutescript/utils.py
hiway/python-qutescript
5115bc85551e8d3472b308549cd7eed3cbf93e2f
[ "BSD-2-Clause" ]
7
2018-04-17T22:58:33.000Z
2021-03-05T13:22:57.000Z
#!/usr/bin/env python # coding=utf-8 import os import tempfile HTML_BODY = """\ <html> <head> <title>Qutescript: {prefix}</title> </head> <body> <pre>{script_path}</pre> {content} </body> """ HTML_MESSAGE_TEMPLATE = """\ <pre> {} </pre> """ log_file_path = './qutescript.log' def log_to_browser(*messages, prefix:...
25.971831
104
0.646963
#!/usr/bin/env python # coding=utf-8 import os import tempfile HTML_BODY = """\ <html> <head> <title>Qutescript: {prefix}</title> </head> <body> <pre>{script_path}</pre> {content} </body> """ HTML_MESSAGE_TEMPLATE = """\ <pre> {} </pre> """ log_file_path = './qutescript.log' def write_log(message, file_path=None, ...
952
0
69
18a83fb2a8637377992e6a739d67d1fdc65c3e0c
573
py
Python
chapter6/src/main/python/first_pipeline.py
neppel-backup/Building-Big-Data-Pipelines-with-Apache-Beam
77c86f2f983ecf55ff128bb51507802f27671d81
[ "ECL-2.0", "Apache-2.0" ]
21
2021-04-28T15:08:00.000Z
2022-03-24T07:28:59.000Z
chapter6/src/main/python/first_pipeline.py
neppel-backup/Building-Big-Data-Pipelines-with-Apache-Beam
77c86f2f983ecf55ff128bb51507802f27671d81
[ "ECL-2.0", "Apache-2.0" ]
3
2022-01-25T17:13:47.000Z
2022-03-14T07:19:15.000Z
chapter6/src/main/python/first_pipeline.py
neppel-backup/Building-Big-Data-Pipelines-with-Apache-Beam
77c86f2f983ecf55ff128bb51507802f27671d81
[ "ECL-2.0", "Apache-2.0" ]
23
2021-05-13T09:39:32.000Z
2022-03-30T23:35:38.000Z
#!/usr/bin/env python3 import re import sys import apache_beam as beam from apache_beam.options.pipeline_options import PipelineOptions if len(sys.argv) < 2: usage() input_file = sys.argv[1] with beam.Pipeline(options=PipelineOptions()) as p: (p | beam.io.ReadFromText(input_file) | "Tokenize" >> beam.FlatMa...
26.045455
79
0.687609
#!/usr/bin/env python3 import re import sys import apache_beam as beam from apache_beam.options.pipeline_options import PipelineOptions def usage(): sys.stderr.write("Usage: %s <input_file>\n" % (sys.argv[0], )) sys.exit(1) if len(sys.argv) < 2: usage() input_file = sys.argv[1] with beam.Pipeline(options=Pip...
70
0
23
1aaf226d1bbf9ecedc30fc51726524cc94eb4e83
17,131
py
Python
LoadData.py
JVuns/Driver-Log-Recorder---Final-Project
efbb2f67aee2db98fc2310617e589e845fc6c27d
[ "MIT" ]
null
null
null
LoadData.py
JVuns/Driver-Log-Recorder---Final-Project
efbb2f67aee2db98fc2310617e589e845fc6c27d
[ "MIT" ]
null
null
null
LoadData.py
JVuns/Driver-Log-Recorder---Final-Project
efbb2f67aee2db98fc2310617e589e845fc6c27d
[ "MIT" ]
null
null
null
import pandas as pd from tkinter import * import tkinter as tk import numpy as np from tkinter import messagebox from tkinter import ttk import datetime from datetime import timedelta, date import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg import re import ast def clear_da...
44.611979
147
0.625066
import pandas as pd from tkinter import * import tkinter as tk import numpy as np from tkinter import messagebox from tkinter import ttk import datetime from datetime import timedelta, date import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg import re import ast def filepath...
9,328
0
139
74d8051f7f15857a2e975a74997a6669d1e0381d
1,464
py
Python
setup.py
itztli/django-type-of-works
9a529193abaea878c5502f8a41729537e6d182a8
[ "BSD-2-Clause" ]
null
null
null
setup.py
itztli/django-type-of-works
9a529193abaea878c5502f8a41729537e6d182a8
[ "BSD-2-Clause" ]
null
null
null
setup.py
itztli/django-type-of-works
9a529193abaea878c5502f8a41729537e6d182a8
[ "BSD-2-Clause" ]
null
null
null
from __future__ import with_statement import os from setuptools import setup, find_packages from django_type_of_works import __version__ as version#fix install_requires = ["django >= 1.7, < 1.9",] try: setup( name="django-type-of-works", version=version, author="Victor De la Luz", ...
32.533333
75
0.560109
from __future__ import with_statement import os from setuptools import setup, find_packages from django_type_of_works import __version__ as version#fix install_requires = ["django >= 1.7, < 1.9",] try: setup( name="django-type-of-works", version=version, author="Victor De la Luz", ...
0
0
0
68be1acd7cf28b26b879fd19452ce4f493ca88dd
9,488
py
Python
riscemu/Tokenizer.py
jodalyst/riscemu
cede73c3c93c1d00168aa020dd9d982a213e3572
[ "MIT" ]
9
2021-07-08T11:22:55.000Z
2022-01-30T10:32:48.000Z
riscemu/Tokenizer.py
jodalyst/riscemu
cede73c3c93c1d00168aa020dd9d982a213e3572
[ "MIT" ]
8
2021-12-03T18:16:19.000Z
2022-03-31T20:49:09.000Z
riscemu/Tokenizer.py
jodalyst/riscemu
cede73c3c93c1d00168aa020dd9d982a213e3572
[ "MIT" ]
2
2022-01-16T05:50:04.000Z
2022-03-23T21:27:27.000Z
""" RiscEmu (c) 2021 Anton Lydike SPDX-License-Identifier: MIT """ import re from enum import IntEnum from typing import List from .Exceptions import ParseException PSEUDO_OPS = [ '.asciiz', '.double', '.extern', '.global', '.align', '.float', '.kdata', '.ktext', '.space', '....
29.557632
118
0.572618
""" RiscEmu (c) 2021 Anton Lydike SPDX-License-Identifier: MIT """ import re from enum import IntEnum from typing import List from .Exceptions import ParseException PSEUDO_OPS = [ '.asciiz', '.double', '.extern', '.global', '.align', '.float', '.kdata', '.ktext', '.space', '....
6,988
350
699
0621f699b3c5ffd8034797dc04889ab2aa72ee26
2,651
py
Python
src/main/test_python/test-job-config.py
all4dich/jenkins-tools
deebbdb4b2dda04dfef522142d0f0387702eaaf7
[ "MIT" ]
null
null
null
src/main/test_python/test-job-config.py
all4dich/jenkins-tools
deebbdb4b2dda04dfef522142d0f0387702eaaf7
[ "MIT" ]
null
null
null
src/main/test_python/test-job-config.py
all4dich/jenkins-tools
deebbdb4b2dda04dfef522142d0f0387702eaaf7
[ "MIT" ]
null
null
null
import re from jenkins_tools.common import Jenkins import logging from lxml import etree import xml.etree.ElementTree as ElementTree logger = logging.getLogger() # User pytest - https://docs.pytest.org/en/latest/
31.559524
78
0.650698
import re from jenkins_tools.common import Jenkins import logging from lxml import etree import xml.etree.ElementTree as ElementTree logger = logging.getLogger() # User pytest - https://docs.pytest.org/en/latest/ def test_job_not_found(): j = Jenkins('http://localhost:7070', 'admin', 'admin') try: r...
2,321
0
115
5f968e20abf0e8744ab0f764e694f9f7faacc904
3,233
py
Python
tests/unit/inference/test_utils.py
pietrolesci/pytorch-energizer
31b23347967963cda704bda8b05f3e567368c9bb
[ "MIT" ]
null
null
null
tests/unit/inference/test_utils.py
pietrolesci/pytorch-energizer
31b23347967963cda704bda8b05f3e567368c9bb
[ "MIT" ]
null
null
null
tests/unit/inference/test_utils.py
pietrolesci/pytorch-energizer
31b23347967963cda704bda8b05f3e567368c9bb
[ "MIT" ]
null
null
null
import pytest import torch from pytorch_lightning.utilities.exceptions import MisconfigurationException from energizer.inference.utils import ( AlphaDropout, Dropout, Dropout2d, Dropout3d, FeatureAlphaDropout, local_seed, patch_dropout_layers, ) from tests.utils import NUM_FEATURES def te...
32.33
110
0.695329
import pytest import torch from pytorch_lightning.utilities.exceptions import MisconfigurationException from energizer.inference.utils import ( AlphaDropout, Dropout, Dropout2d, Dropout3d, FeatureAlphaDropout, local_seed, patch_dropout_layers, ) from tests.utils import NUM_FEATURES def te...
395
0
45
bcd3e6ace8bb0b08661714bed7d480bed4837b9d
400
py
Python
configs/_base_/schedules/schedule_textvqa.py
inspur-hsslab/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
23
2021-06-26T08:45:19.000Z
2022-03-02T02:13:33.000Z
configs/_base_/schedules/schedule_textvqa.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
null
null
null
configs/_base_/schedules/schedule_textvqa.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
9
2021-06-10T02:36:20.000Z
2021-11-09T02:18:16.000Z
optimizer = dict(type='Adam', lr=1e-4, weight_decay=0, eps=1e-8, training_encoder_lr_multiply=1) optimizer_config = dict(grad_clip=dict( clip_norm_mode='all', max_grad_l2_norm=0.25, use_scale=True, )) lr_config = dict( use_warmup=True, lr_steps=[14000, 19000], lr_ratio=0.1, warmup_factor=0....
23.529412
96
0.705
optimizer = dict(type='Adam', lr=1e-4, weight_decay=0, eps=1e-8, training_encoder_lr_multiply=1) optimizer_config = dict(grad_clip=dict( clip_norm_mode='all', max_grad_l2_norm=0.25, use_scale=True, )) lr_config = dict( use_warmup=True, lr_steps=[14000, 19000], lr_ratio=0.1, warmup_factor=0....
0
0
0
dc1e0476c5beac9e82aabfed844b7b2a999505ad
517
py
Python
solutions/problem_296.py
ksvr444/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
1,921
2018-11-13T18:19:56.000Z
2021-11-15T14:25:41.000Z
solutions/problem_296.py
MohitIndian/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
2
2019-07-19T01:06:16.000Z
2019-08-01T22:21:36.000Z
solutions/problem_296.py
MohitIndian/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
1,066
2018-11-19T19:06:55.000Z
2021-11-13T12:33:56.000Z
# Tests assert get_hbal_tree([1, 2, 3, 4, 5]).val == 3 assert get_hbal_tree([1, 2, 3, 4, 5, 6]).val == 4
19.884615
65
0.547389
class Node: def __init__(self, val): self.val = val self.l = None self.r = None def __repr__(self): return "{}=[l={}, r={}]".format(self.val, self.l, self.r) def get_hbal_tree(arr): if not arr: return None mid = len(arr) // 2 node = Node(arr[mid]) node...
321
-10
98
0ac73480e8d07e08229100ba7ed5f9640337209e
7,112
py
Python
unit-tests/py/rspy/acroname.py
rocket-kaya/librealsense
4663fe85b5177b5ac19834f115400fb1d5368e14
[ "Apache-2.0" ]
1
2021-07-03T14:08:08.000Z
2021-07-03T14:08:08.000Z
unit-tests/py/rspy/acroname.py
rocket-kaya/librealsense
4663fe85b5177b5ac19834f115400fb1d5368e14
[ "Apache-2.0" ]
null
null
null
unit-tests/py/rspy/acroname.py
rocket-kaya/librealsense
4663fe85b5177b5ac19834f115400fb1d5368e14
[ "Apache-2.0" ]
1
2021-05-13T06:08:38.000Z
2021-05-13T06:08:38.000Z
""" Brainstem Acroname Hub See documentation for brainstem here: https://acroname.com/reference/python/index.html """ from rspy import log if __name__ == '__main__': import os, sys, getopt try: opts,args = getopt.getopt( sys.argv[1:], '', longopts = [ 'help', 'recycle' ]) except geto...
25.861818
97
0.574241
""" Brainstem Acroname Hub See documentation for brainstem here: https://acroname.com/reference/python/index.html """ from rspy import log if __name__ == '__main__': import os, sys, getopt def usage(): ourname = os.path.basename( sys.argv[0] ) print( 'Syntax: acroname [options]' ) pr...
900
0
144
1cd49d71d7f04efe21661c86bb6f7ce1ea285435
5,760
py
Python
users/migrations/0001_initial.py
maverick-labs-pune/wikirumours
51651aae651fd88468b54d08abb8ec28a93e65fa
[ "MIT" ]
null
null
null
users/migrations/0001_initial.py
maverick-labs-pune/wikirumours
51651aae651fd88468b54d08abb8ec28a93e65fa
[ "MIT" ]
null
null
null
users/migrations/0001_initial.py
maverick-labs-pune/wikirumours
51651aae651fd88468b54d08abb8ec28a93e65fa
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-09-03 13:33 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import users.models
68.571429
329
0.644271
# Generated by Django 3.1.4 on 2021-09-03 13:33 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import users.models class Migration(migrations.Migration): initial = True dependenci...
0
5,492
23
f3eee83f2c5e418089c32fe2fda8904e2e309510
135
py
Python
Task/admin.py
TarangRanpara/SummaryAnnotatorTool
b283c16135da331346490e65b0c2123fa852efb1
[ "MIT" ]
null
null
null
Task/admin.py
TarangRanpara/SummaryAnnotatorTool
b283c16135da331346490e65b0c2123fa852efb1
[ "MIT" ]
null
null
null
Task/admin.py
TarangRanpara/SummaryAnnotatorTool
b283c16135da331346490e65b0c2123fa852efb1
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import SummaryTask admin.site.register(SummaryTask) # Register your models here.
19.285714
33
0.777778
from django.contrib import admin from .models import SummaryTask admin.site.register(SummaryTask) # Register your models here.
0
0
0
57b7e4609bb1e6a78c10c02011813988274e496c
1,041
py
Python
code.py
cengiz1erg/code_repo
d3cfe41cf16799c1a9a708c5ea10f174a1b78ab8
[ "MIT" ]
null
null
null
code.py
cengiz1erg/code_repo
d3cfe41cf16799c1a9a708c5ea10f174a1b78ab8
[ "MIT" ]
null
null
null
code.py
cengiz1erg/code_repo
d3cfe41cf16799c1a9a708c5ea10f174a1b78ab8
[ "MIT" ]
1
2021-03-20T08:19:39.000Z
2021-03-20T08:19:39.000Z
from functools import wraps import inspect def counter(fn): """Bu fonksiyon bir 'decorator' olup çıkışa "inner" adında bir 'closure' iletir. İçerdeki inner fonksiyonu, kullanılacak asıl fonksiyonları modifiye eder. Burada modifiye olayı kullanılan fonksiyonun kaçıncı defa çağırıldığını ekrana basma'dır. "...
31.545455
130
0.710855
from functools import wraps import inspect def counter(fn): """Bu fonksiyon bir 'decorator' olup çıkışa "inner" adında bir 'closure' iletir. İçerdeki inner fonksiyonu, kullanılacak asıl fonksiyonları modifiye eder. Burada modifiye olayı kullanılan fonksiyonun kaçıncı defa çağırıldığını ekrana basma'dır. "...
350
0
70
5b97ec5f37d97f0d09f16ee7172a9a6ae8bf255b
9,691
py
Python
blimp_env/blimp_env/envs/common/utils.py
robot-perception-group/AutonomousBlimpDRL
a10a88b2e9c9f9a83435cff2e4bc7e16e83cfeee
[ "MIT" ]
8
2021-11-21T20:47:37.000Z
2022-03-15T09:50:06.000Z
blimp_env/blimp_env/envs/common/utils.py
robot-perception-group/AutonomousBlimpDRL
a10a88b2e9c9f9a83435cff2e4bc7e16e83cfeee
[ "MIT" ]
null
null
null
blimp_env/blimp_env/envs/common/utils.py
robot-perception-group/AutonomousBlimpDRL
a10a88b2e9c9f9a83435cff2e4bc7e16e83cfeee
[ "MIT" ]
null
null
null
""" env util """ import errno import functools import os import signal from functools import wraps from types import LambdaType from typing import Any, Callable, Dict, Optional, Sequence, Type, Union import gym import numpy as np import rospy from stable_baselines3.common.monitor import Monitor from stable_baselines3....
35.628676
99
0.62491
""" env util """ import errno import functools import os import signal from functools import wraps from types import LambdaType from typing import Any, Callable, Dict, Optional, Sequence, Type, Union import gym import numpy as np import rospy from stable_baselines3.common.monitor import Monitor from stable_baselines3....
3,405
18
153
af12b4c34c08158b48c85d05db85fba487fe3749
1,692
py
Python
vega/datasets/transforms/SegMapTransform.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/datasets/transforms/SegMapTransform.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/datasets/transforms/SegMapTransform.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
35.25
74
0.693853
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
0
0
0
ccdc22d4f6d65e7cbda7eb123a5c2eb5a7e57503
1,269
py
Python
app/test/unit/test_downloader.py
anderskswanson/xtensible
cd90918b2328d0402675850f83234112a1b82712
[ "MIT" ]
1
2019-05-30T13:23:54.000Z
2019-05-30T13:23:54.000Z
app/test/unit/test_downloader.py
anderskswanson/xtensible
cd90918b2328d0402675850f83234112a1b82712
[ "MIT" ]
1
2021-06-01T23:51:34.000Z
2021-06-01T23:51:34.000Z
app/test/unit/test_downloader.py
anderskswanson/xtensible
cd90918b2328d0402675850f83234112a1b82712
[ "MIT" ]
null
null
null
import unittest from app.bot.downloader import *
33.394737
75
0.644602
import unittest from app.bot.downloader import * class TestDownloader(unittest.TestCase): def test_download_requirements(self): # it should download requirements for a valid requirements file try: download_requirements('requirements.txt') except Exception: self.fai...
1,097
19
104
6906d3850d2ef7049675fa26153c5d70166dd827
1,521
py
Python
setup.py
ergo/webhelpers2_grid
6bae5c967279b620e1756e3ca50f3f2992ce5d71
[ "BSD-3-Clause" ]
2
2016-02-12T12:42:43.000Z
2016-02-12T13:03:01.000Z
setup.py
ergo/webhelpers2_grid
6bae5c967279b620e1756e3ca50f3f2992ce5d71
[ "BSD-3-Clause" ]
1
2015-06-25T21:41:18.000Z
2015-06-25T21:41:18.000Z
setup.py
ergo/webhelpers_grid2
6bae5c967279b620e1756e3ca50f3f2992ce5d71
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages from os import path from io import open here = path.abspath(path.dirname(__file__)) with open(path.join(here, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="webhelpers2_grid", version="0.9", description=""" HTML Grid renderer ...
32.361702
95
0.617357
from setuptools import setup, find_packages from os import path from io import open here = path.abspath(path.dirname(__file__)) with open(path.join(here, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="webhelpers2_grid", version="0.9", description=""" HTML Grid renderer ...
0
0
0
eb97183a84e53b75d60b4f7f92e3e16d87a48ece
2,892
py
Python
merge1/main_merge_1_.py
wangxinyufighting/hin2vec_pytorch
8c9a104e33a6c5b5f7c1077b0b81b94dfadeb3a8
[ "MIT" ]
null
null
null
merge1/main_merge_1_.py
wangxinyufighting/hin2vec_pytorch
8c9a104e33a6c5b5f7c1077b0b81b94dfadeb3a8
[ "MIT" ]
null
null
null
merge1/main_merge_1_.py
wangxinyufighting/hin2vec_pytorch
8c9a104e33a6c5b5f7c1077b0b81b94dfadeb3a8
[ "MIT" ]
null
null
null
import torch import pandas as pd import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from walker import load_a_HIN_from_pandas_neighbors, getNeighbors from merge1.model_merge_1 import NSTrainSet, HIN2vec, train # set method parameters window = 5 walk = 10 walk_length ...
30.765957
98
0.669087
import torch import pandas as pd import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from walker import load_a_HIN_from_pandas_neighbors, getNeighbors from merge1.model_merge_1 import NSTrainSet, HIN2vec, train # set method parameters window = 5 walk = 10 walk_length ...
0
0
0
67681d7ce2343bddab14d8549d6ae51fe69c0e0a
8,935
py
Python
bibliotik/models.py
MADindustries/WhatManager2
d000c53fd993cb526aee85ce2dbc957fa4070ab8
[ "MIT" ]
4
2015-08-26T05:13:58.000Z
2022-01-24T07:29:51.000Z
bibliotik/models.py
MADindustries/WhatManager2
d000c53fd993cb526aee85ce2dbc957fa4070ab8
[ "MIT" ]
21
2015-08-14T03:58:43.000Z
2019-11-14T18:25:37.000Z
bibliotik/models.py
MADindustries/WhatManager2
d000c53fd993cb526aee85ce2dbc957fa4070ab8
[ "MIT" ]
2
2015-10-28T09:02:16.000Z
2019-09-23T00:21:54.000Z
import re import time import os.path import bencode from django.db import models from django.utils import timezone from django.utils.functional import cached_property from pyquery.pyquery import PyQuery from bibliotik.settings import BIBLIOTIK_GET_TORRENT_URL from home.models import TransTorrentBase from what_transco...
39.711111
99
0.602015
import re import time import os.path import bencode from django.db import models from django.utils import timezone from django.utils.functional import cached_property from pyquery.pyquery import PyQuery from bibliotik.settings import BIBLIOTIK_GET_TORRENT_URL from home.models import TransTorrentBase from what_transco...
6,677
1,413
115
3897370d133baa37948790ad22a845edfd13a95e
527
py
Python
pytest_cases/tests/cases/issues/test_issue_142.py
AnesBenmerzoug/python-pytest-cases
8febdeeb52f6dcfcb54aa1e8e7d966427d030ad5
[ "BSD-3-Clause" ]
null
null
null
pytest_cases/tests/cases/issues/test_issue_142.py
AnesBenmerzoug/python-pytest-cases
8febdeeb52f6dcfcb54aa1e8e7d966427d030ad5
[ "BSD-3-Clause" ]
null
null
null
pytest_cases/tests/cases/issues/test_issue_142.py
AnesBenmerzoug/python-pytest-cases
8febdeeb52f6dcfcb54aa1e8e7d966427d030ad5
[ "BSD-3-Clause" ]
null
null
null
import pytest from pytest_cases import parametrize_with_cases @pytest.mark.parametrize('dummy_amount', [1, 0, -1]) @parametrize_with_cases('dummy_amount', cases=".", prefix="case_amount")
23.954545
72
0.728653
import pytest from pytest_cases import parametrize_with_cases @pytest.mark.parametrize('dummy_amount', [1, 0, -1]) def case_amount(dummy_amount): return dummy_amount @parametrize_with_cases('dummy_amount', cases=".", prefix="case_amount") def test_empty_prefix(dummy_amount): pass def test_synthesis(modul...
266
0
67
e738b5ba657e0db2c94f68da020e5fa7387b4ea9
1,140
py
Python
src/script_refresh.py
bitwolaiye/alfred-script
42116c4df7cee162cffdd46077c163ff720986ab
[ "MIT" ]
null
null
null
src/script_refresh.py
bitwolaiye/alfred-script
42116c4df7cee162cffdd46077c163ff720986ab
[ "MIT" ]
null
null
null
src/script_refresh.py
bitwolaiye/alfred-script
42116c4df7cee162cffdd46077c163ff720986ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import subprocess from workflow import Workflow, PasswordNotFound __author__ = 'zhouqi' if __name__ == '__main__': wf = Workflow() wf.cache_data('scripts', get_all_scripts()) # wf.cache_data('brew_all_formulas', get_all_packages()) # wf.cache_data('brew_installed_formulas', ...
31.666667
103
0.678947
# -*- coding: utf-8 -*- import subprocess from workflow import Workflow, PasswordNotFound __author__ = 'zhouqi' def get_all_scripts(): user, _ = subprocess.Popen(['whoami'], stdout=subprocess.PIPE).communicate() user = user.split('\n')[0] cmd, _ = subprocess.Popen(['ls', '/Users/%s/Scripts' % user], stdo...
657
0
92
d3f468d32da2c05f64bda4813075c052211b2001
15,183
py
Python
tests/test_octodns_provider_ovh.py
joejacobs/octodns
f065d435fa71df56327c8ea25aab146c8b00d32d
[ "MIT" ]
4
2019-02-13T09:36:50.000Z
2019-12-16T02:36:45.000Z
tests/test_octodns_provider_ovh.py
joejacobs/octodns
f065d435fa71df56327c8ea25aab146c8b00d32d
[ "MIT" ]
null
null
null
tests/test_octodns_provider_ovh.py
joejacobs/octodns
f065d435fa71df56327c8ea25aab146c8b00d32d
[ "MIT" ]
2
2018-08-16T23:48:35.000Z
2019-02-13T09:37:15.000Z
# # # from __future__ import absolute_import, division, print_function, \ unicode_literals from unittest import TestCase from mock import patch, call from ovh import APIError, ResourceNotFoundError, InvalidCredential from octodns.provider.ovh import OvhProvider from octodns.record import Record from octodns.zon...
33.74
79
0.47619
# # # from __future__ import absolute_import, division, print_function, \ unicode_literals from unittest import TestCase from mock import patch, call from ovh import APIError, ResourceNotFoundError, InvalidCredential from octodns.provider.ovh import OvhProvider from octodns.record import Record from octodns.zon...
7,002
7,823
23
2e9651b9b19330d164d2794fb7a438c6d6b2941b
4,162
py
Python
depreciated/sequentialCapture.py
FlantasticDan/photoPi
96dde273097d55686ad5d0a6ed848614f9b32399
[ "MIT" ]
1
2019-02-08T22:29:12.000Z
2019-02-08T22:29:12.000Z
depreciated/sequentialCapture.py
FlantasticDan/photoPi
96dde273097d55686ad5d0a6ed848614f9b32399
[ "MIT" ]
8
2019-02-14T05:28:19.000Z
2019-04-04T01:32:26.000Z
depreciated/sequentialCapture.py
FlantasticDan/photoPi
96dde273097d55686ad5d0a6ed848614f9b32399
[ "MIT" ]
null
null
null
# capture a sequence of images with constant exposure # import necessary packages import os import datetime import time import picamera # calibrate camera camera = picamera.PiCamera() camera.resolution = (3280, 2464) camera.meter_mode = 'spot' camera.image_denoise = False # sets constant exposure for the camera base...
32.771654
81
0.676598
# capture a sequence of images with constant exposure # import necessary packages import os import datetime import time import picamera # calibrate camera camera = picamera.PiCamera() camera.resolution = (3280, 2464) camera.meter_mode = 'spot' camera.image_denoise = False # sets constant exposure for the camera base...
703
0
44
0241609c8baa971e6ab6639a285cafc3bfd752f1
593
py
Python
binary_search_tree/start.py
galkinaksenia/programming-2021-19fpl
968aceddd310f59d9ee43227f4282e680845a50e
[ "MIT" ]
null
null
null
binary_search_tree/start.py
galkinaksenia/programming-2021-19fpl
968aceddd310f59d9ee43227f4282e680845a50e
[ "MIT" ]
null
null
null
binary_search_tree/start.py
galkinaksenia/programming-2021-19fpl
968aceddd310f59d9ee43227f4282e680845a50e
[ "MIT" ]
null
null
null
""" Longest common subsequence implementation starter """ from binary_search_tree.binary_search_tree import BinarySearchTree, Node if __name__ == '__main__': tree = BinarySearchTree() nodes_to_add = [Node(8), Node(4), Node(2), Node(3), Node(10), Node(16), Node(13), Node(12),Node(11)] fo...
28.238095
75
0.659359
""" Longest common subsequence implementation starter """ from binary_search_tree.binary_search_tree import BinarySearchTree, Node if __name__ == '__main__': tree = BinarySearchTree() nodes_to_add = [Node(8), Node(4), Node(2), Node(3), Node(10), Node(16), Node(13), Node(12),Node(11)] fo...
0
0
0
5aabb23f9fdb767197a6c546f1145bac00b97f86
208
py
Python
scripts/fundamentals/scrp_hello_world.py
duttashi/learnpy
c08b76b173b06d66187e51a6939d55d5dd12cb5a
[ "MIT" ]
null
null
null
scripts/fundamentals/scrp_hello_world.py
duttashi/learnpy
c08b76b173b06d66187e51a6939d55d5dd12cb5a
[ "MIT" ]
77
2019-04-20T06:54:19.000Z
2022-01-16T08:15:20.000Z
scripts/fundamentals/scrp_hello_world.py
duttashi/learnpy
c08b76b173b06d66187e51a6939d55d5dd12cb5a
[ "MIT" ]
null
null
null
print("Hello world") import math print(math.sqrt(81)) # List example days_of_the_week = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"] for i in days_of_the_week: print(i)
26
92
0.697115
print("Hello world") import math print(math.sqrt(81)) # List example days_of_the_week = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"] for i in days_of_the_week: print(i)
0
0
0
a9760c991be324c6c119964c05c6c464ed07a417
4,451
py
Python
code/node_classification/gcn.py
HenryKenlay/graph_adversarial_attack
5282d1269aa637ecafb0af239c53fa8396e5ef66
[ "MIT" ]
119
2018-06-29T10:03:41.000Z
2022-03-16T05:20:46.000Z
code/node_classification/gcn.py
HenryKenlay/graph_adversarial_attack
5282d1269aa637ecafb0af239c53fa8396e5ef66
[ "MIT" ]
6
2018-07-24T11:46:01.000Z
2021-06-25T00:00:28.000Z
code/node_classification/gcn.py
HenryKenlay/graph_adversarial_attack
5282d1269aa637ecafb0af239c53fa8396e5ef66
[ "MIT" ]
35
2018-08-21T05:54:17.000Z
2022-01-28T13:02:06.000Z
from __future__ import print_function import os import sys import numpy as np import torch import networkx as nx import random from torch.autograd import Variable from torch.nn.parameter import Parameter import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from tqdm import tqdm import cPic...
38.704348
136
0.629746
from __future__ import print_function import os import sys import numpy as np import torch import networkx as nx import random from torch.autograd import Variable from torch.nn.parameter import Parameter import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from tqdm import tqdm import cPic...
977
0
23
b9a6478a76a128bb2c927ccf10576d938d719bc0
258
py
Python
django_chunk_upload/exceptions.py
GitRon/django-chunk-upload
6946d44f9019d7528df5bf2c125ff7fe9358dbfb
[ "MIT-0" ]
7
2019-06-21T18:40:42.000Z
2021-04-01T06:12:38.000Z
django_chunk_upload/exceptions.py
GitRon/django-chunk-upload
6946d44f9019d7528df5bf2c125ff7fe9358dbfb
[ "MIT-0" ]
5
2019-06-20T20:17:11.000Z
2019-07-18T06:32:38.000Z
django_chunk_upload/exceptions.py
GitRon/django-chunk-upload
6946d44f9019d7528df5bf2c125ff7fe9358dbfb
[ "MIT-0" ]
1
2019-06-21T14:12:55.000Z
2019-06-21T14:12:55.000Z
""" Exceptions raised by django-chunk-upload. """ class ChunkUploadError(Exception): """ Exception raised if errors in the request/process. """
18.428571
54
0.639535
""" Exceptions raised by django-chunk-upload. """ class ChunkUploadError(Exception): """ Exception raised if errors in the request/process. """ def __init__(self, status, **data): self.status_code = status self.data = data
73
0
27
e290056b5a8fa420ccf7d83f6f3c858225ddf0d4
13,808
py
Python
Django/mysite/static/utils/gtfs/GTFSgeneratorEurope.py
navijo/FlOYBD
beb4fb32598e955ce3b47ad647452c15a87cfae8
[ "MIT" ]
null
null
null
Django/mysite/static/utils/gtfs/GTFSgeneratorEurope.py
navijo/FlOYBD
beb4fb32598e955ce3b47ad647452c15a87cfae8
[ "MIT" ]
7
2020-03-24T15:55:32.000Z
2021-08-23T20:43:13.000Z
Django/mysite/static/utils/gtfs/GTFSgeneratorEurope.py
navijo/FlOYBD
beb4fb32598e955ce3b47ad647452c15a87cfae8
[ "MIT" ]
3
2017-07-26T11:46:05.000Z
2018-04-29T12:07:59.000Z
import transitfeed schedule = transitfeed.Schedule() schedule.AddAgency("Europe Agency", "http://iflyagency.com", "Europe/Madrid", "Europe_Agency") service_period = schedule.GetDefaultServicePeriod() service_period.SetStartDate("20070101") service_period.SetEndDate("20190101") service_period.SetWeekdayService(True) ...
60.828194
125
0.805185
import transitfeed schedule = transitfeed.Schedule() schedule.AddAgency("Europe Agency", "http://iflyagency.com", "Europe/Madrid", "Europe_Agency") service_period = schedule.GetDefaultServicePeriod() service_period.SetStartDate("20070101") service_period.SetEndDate("20190101") service_period.SetWeekdayService(True) ...
0
0
0
34120dc0b9a7ff3143a7092fc45aa33f8bace6da
3,122
py
Python
network/network_wiznet5k.py
sipeed/MaixPy_Scripts
4bcc8cd02d637d59016300e0ef3836f420692332
[ "MIT" ]
null
null
null
network/network_wiznet5k.py
sipeed/MaixPy_Scripts
4bcc8cd02d637d59016300e0ef3836f420692332
[ "MIT" ]
null
null
null
network/network_wiznet5k.py
sipeed/MaixPy_Scripts
4bcc8cd02d637d59016300e0ef3836f420692332
[ "MIT" ]
null
null
null
import network if __name__ == '__main__': from machine import SPI from Maix import GPIO import socket, time from fpioa_manager import fm ################ config ################ local_ip = "192.168.0.117" local_netmask = "255.255.255.0" local_gateway = "255.255.255.0" local_dns_server = "8.8.8.8" ...
28.907407
146
0.548687
import network class lan: nic = None def reset(spi1, cs, force=False, reply=5): if force == False and __class__.isconnected(): return True try: # create wiznet5k nic __class__.nic = network.WIZNET5K(spi=spi1, cs=cs) # time.sleep_ms(500) # wait at ready to connect except Exc...
1,131
78
48
12e2880833ffdc4324a7f9ce1a6ea1d8cd4cf51d
898
py
Python
rplugin/python3/denite/source/git.py
zyphrus/denite-git.nvim
e41b2d161febd9bee4c1637b3cfc323477a67912
[ "MIT" ]
1
2018-05-01T04:57:48.000Z
2018-05-01T04:57:48.000Z
rplugin/python3/denite/source/git.py
zyphrus/denite-git.nvim
e41b2d161febd9bee4c1637b3cfc323477a67912
[ "MIT" ]
null
null
null
rplugin/python3/denite/source/git.py
zyphrus/denite-git.nvim
e41b2d161febd9bee4c1637b3cfc323477a67912
[ "MIT" ]
null
null
null
from .base import Base import subprocess
23.025641
85
0.545657
from .base import Base import subprocess class Source(Base): def __init__(self, vim): super().__init__(vim) self.name = 'git' self.kind = 'git' # TODO: allow this to be configuable self.__branch_cmd = ['git', 'branch', '--no-color', '--list', '--all', '-vv'] def on_i...
727
-2
131
8e3547f9f0281d03c16fa5cfb3acb40fbe5a0bb1
2,733
py
Python
examples/act_observe_vectorized.py
DLPerf/tensorforce
33a2d84fa850e8842dfe2cef3901de32cf7cd221
[ "Apache-2.0" ]
1,132
2019-01-03T14:41:04.000Z
2022-03-29T07:44:50.000Z
examples/act_observe_vectorized.py
DLPerf/tensorforce
33a2d84fa850e8842dfe2cef3901de32cf7cd221
[ "Apache-2.0" ]
353
2019-01-02T19:46:10.000Z
2022-03-30T10:38:45.000Z
examples/act_observe_vectorized.py
DLPerf/tensorforce
33a2d84fa850e8842dfe2cef3901de32cf7cd221
[ "Apache-2.0" ]
219
2019-01-03T16:55:39.000Z
2022-03-14T00:27:05.000Z
# Copyright 2020 Tensorforce Team. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
39.042857
94
0.656787
# Copyright 2020 Tensorforce Team. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
1,942
0
23
244f052ff599b1347297339dfa7fc4dfeb6673d6
1,365
py
Python
xml_to_csv.py
chandyalex/RumexClassification
60436e76eb7c54c890ed113b02abef94c1c2aa9b
[ "MIT" ]
2
2021-03-05T13:56:37.000Z
2021-05-18T10:12:21.000Z
xml_to_csv.py
chandyalex/RumexClassification
60436e76eb7c54c890ed113b02abef94c1c2aa9b
[ "MIT" ]
null
null
null
xml_to_csv.py
chandyalex/RumexClassification
60436e76eb7c54c890ed113b02abef94c1c2aa9b
[ "MIT" ]
null
null
null
import os import glob import pandas as pd import xml.etree.ElementTree as ET file_name='' new_name='' main()
32.5
91
0.539927
import os import glob import pandas as pd import xml.etree.ElementTree as ET file_name='' new_name='' def xml_to_csv(path): xml_list = [] for xml_file in glob.glob(path + '/*.xml'): tree = ET.parse(xml_file) file_name = xml_file.split('/')[5] new_name = file_name[:-4] ...
1,193
0
50
1c65ee93ea4992ced77dcfc40f84d473af555284
2,730
py
Python
setup.py
chrissimpkins/status
4e76d751c537d42dd5603779cbe893551be2b89e
[ "MIT", "Unlicense" ]
2
2017-04-10T20:17:44.000Z
2021-07-19T19:07:34.000Z
setup.py
chrissimpkins/status
4e76d751c537d42dd5603779cbe893551be2b89e
[ "MIT", "Unlicense" ]
1
2021-07-19T19:09:30.000Z
2021-07-19T19:22:36.000Z
setup.py
chrissimpkins/status
4e76d751c537d42dd5603779cbe893551be2b89e
[ "MIT", "Unlicense" ]
4
2016-12-20T19:57:07.000Z
2019-02-16T08:08:15.000Z
#!/usr/bin/env python # encoding: utf-8 import os import re from setuptools import setup, find_packages setup( name='status', version=version_read(), description='HTTP status code reporting for GET and POST requests', long_description=(docs_read('README.rst')), url='https://github.com/chrissimpk...
36.891892
106
0.610989
#!/usr/bin/env python # encoding: utf-8 import os import re from setuptools import setup, find_packages def docs_read(fname): return open(os.path.join(os.path.dirname(__file__), 'docs', fname)).read() def version_read(): settings_file = open(os.path.join(os.path.dirname(__file__), 'lib', 'status', 'settings...
914
0
46
5b3d6e12c009b47cc8e67d74d1a97c60ea53c7d4
5,639
py
Python
pybleau/app/tools/tests/test_filter_expression_manager.py
jonathanrocher/pybleau
fa6e7841a664268a4eef0ed6cc0ff7720e1113e1
[ "MIT" ]
4
2020-02-27T22:38:29.000Z
2021-05-03T05:32:11.000Z
pybleau/app/tools/tests/test_filter_expression_manager.py
jonathanrocher/pybleau
fa6e7841a664268a4eef0ed6cc0ff7720e1113e1
[ "MIT" ]
85
2020-02-04T21:57:14.000Z
2021-05-03T14:29:40.000Z
pybleau/app/tools/tests/test_filter_expression_manager.py
jonathanrocher/pybleau
fa6e7841a664268a4eef0ed6cc0ff7720e1113e1
[ "MIT" ]
1
2020-02-20T00:45:09.000Z
2020-02-20T00:45:09.000Z
from unittest import skipUnless, TestCase import os from app_common.apptools.testing_utils import temp_bringup_ui_for try: from pybleau.app.api import FilterExpression, FilterExpressionManager except ImportError: pass if os.environ.get("ETS_TOOLKIT", "qt4") == "null": ui_available = False else: ui_ava...
40.862319
78
0.687179
from unittest import skipUnless, TestCase import os from app_common.apptools.testing_utils import temp_bringup_ui_for try: from pybleau.app.api import FilterExpression, FilterExpressionManager except ImportError: pass if os.environ.get("ETS_TOOLKIT", "qt4") == "null": ui_available = False else: ui_ava...
5,016
23
211
bf6d78059c7cbe6cb47f6206218a443f6f36f3f7
3,708
py
Python
OGR_drivers.py
MartinHvidberg/kmstrans_fra_SDFE_SEQ200131
3730f49f951ec8155ade6d00a0bdfe74a65936b7
[ "0BSD" ]
null
null
null
OGR_drivers.py
MartinHvidberg/kmstrans_fra_SDFE_SEQ200131
3730f49f951ec8155ade6d00a0bdfe74a65936b7
[ "0BSD" ]
null
null
null
OGR_drivers.py
MartinHvidberg/kmstrans_fra_SDFE_SEQ200131
3730f49f951ec8155ade6d00a0bdfe74a65936b7
[ "0BSD" ]
null
null
null
########### # Translations between more friendly describtions of OGR-drivers and short codes. # adresses: TRUI issue #2 https://bitbucket.org/KMS/trui/issue/2/ogr-driver-naming # more or less taken directly from http://www.gdal.org/ogr/ogr_formats.html # simlk, march 2013 ############## # FORMAT: Long name: (shor...
41.662921
83
0.461165
########### # Translations between more friendly describtions of OGR-drivers and short codes. # adresses: TRUI issue #2 https://bitbucket.org/KMS/trui/issue/2/ogr-driver-naming # more or less taken directly from http://www.gdal.org/ogr/ogr_formats.html # simlk, march 2013 ############## # FORMAT: Long name: (shor...
0
0
0
7859eee3c1cef310c3ac9398dfb511156c1b1643
969
py
Python
.old/experiments/map_in_map/map_in_map.py
HousedHorse/COMP4906
a2ca3990797342fbf3b51564bc6c0eea686e856f
[ "MIT" ]
2
2020-04-04T21:40:36.000Z
2020-05-18T20:45:16.000Z
.old/experiments/map_in_map/map_in_map.py
HousedHorse/COMP4906
a2ca3990797342fbf3b51564bc6c0eea686e856f
[ "MIT" ]
null
null
null
.old/experiments/map_in_map/map_in_map.py
HousedHorse/COMP4906
a2ca3990797342fbf3b51564bc6c0eea686e856f
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import ctypes as ct import os from bcc import BPF from bcc.table import BPF_MAP_TYPE_HASH_OF_MAPS from bcc.libbcc import lib lib.bpf_create_map_in_map.argtypes = [ct.c_int, ct.c_char_p, ct.c_int, ct.c_int, ct.c_int, ct.c_int] # pin the inner map setup = BPF(text=""" BPF_HASH(inner_map, u64, ...
24.225
100
0.686275
#! /usr/bin/env python3 import ctypes as ct import os from bcc import BPF from bcc.table import BPF_MAP_TYPE_HASH_OF_MAPS from bcc.libbcc import lib lib.bpf_create_map_in_map.argtypes = [ct.c_int, ct.c_char_p, ct.c_int, ct.c_int, ct.c_int, ct.c_int] # pin the inner map setup = BPF(text=""" BPF_HASH(inner_map, u64, ...
77
0
23
8d436b9ecda07ef064167c71cc88f492bd13fc57
1,531
py
Python
supervised-learning/0.2 Regression.py
Cibah/machine-learning
c29e2c0347e744856d9bb3761275a99ab88c1a9c
[ "Apache-2.0" ]
null
null
null
supervised-learning/0.2 Regression.py
Cibah/machine-learning
c29e2c0347e744856d9bb3761275a99ab88c1a9c
[ "Apache-2.0" ]
null
null
null
supervised-learning/0.2 Regression.py
Cibah/machine-learning
c29e2c0347e744856d9bb3761275a99ab88c1a9c
[ "Apache-2.0" ]
1
2020-10-21T13:02:55.000Z
2020-10-21T13:02:55.000Z
# Python code to illustrate # regression using data set import matplotlib.pyplot as plt import numpy as np from sklearn import datasets, linear_model import pandas as pd # Load CSV and columns from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense df = pd.read_csv("https://raw.github...
23.19697
127
0.755062
# Python code to illustrate # regression using data set import matplotlib.pyplot as plt import numpy as np from sklearn import datasets, linear_model import pandas as pd # Load CSV and columns from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense df = pd.read_csv("https://raw.github...
0
0
0
33a9495b0f8554f06994f65a00d61e0684c904b6
41,573
py
Python
model.py
cmoimoro/gym-micropolis-ga
d105da7c624670083fc1d6e3acf265511d9e2df6
[ "MIT" ]
null
null
null
model.py
cmoimoro/gym-micropolis-ga
d105da7c624670083fc1d6e3acf265511d9e2df6
[ "MIT" ]
null
null
null
model.py
cmoimoro/gym-micropolis-ga
d105da7c624670083fc1d6e3acf265511d9e2df6
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from distributions import Categorical, Categorical2D from utils import init, init_normc_ import math import numpy as np from densenet_pytorch.densenet import DenseNet # from coord_conv_pytorch.coord_conv import nn.Conv2d, nn.Conv2dTranspose #from nn....
37.151921
133
0.539196
import torch import torch.nn as nn import torch.nn.functional as F from distributions import Categorical, Categorical2D from utils import init, init_normc_ import math import numpy as np from densenet_pytorch.densenet import DenseNet # from coord_conv_pytorch.coord_conv import nn.Conv2d, nn.Conv2dTranspose #from nn....
37,291
2,606
1,271
240e3862103c03553b6dd50484fa294b0935042d
4,341
py
Python
tests/parser/test_conditionals.py
csun-comp430-s22/lispy
03820211bd3c5a83e0de4b1ac26a864080e06aca
[ "MIT" ]
null
null
null
tests/parser/test_conditionals.py
csun-comp430-s22/lispy
03820211bd3c5a83e0de4b1ac26a864080e06aca
[ "MIT" ]
3
2022-02-23T08:12:52.000Z
2022-03-09T00:13:33.000Z
tests/parser/test_conditionals.py
csun-comp430-s22/lispy
03820211bd3c5a83e0de4b1ac26a864080e06aca
[ "MIT" ]
null
null
null
import pytest from lispyc import nodes from lispyc.exceptions import SpecialFormSyntaxError from lispyc.nodes import Branch, ComposedForm, Cond, Constant, Program, Variable from lispyc.parser import parse from .data import FORM_PROGRAMS, FORMS VALID_1_BRANCH_PROGRAMS = [ "($name$ $value$ ((x 7 y) (a b)) $default...
33.137405
98
0.699148
import pytest from lispyc import nodes from lispyc.exceptions import SpecialFormSyntaxError from lispyc.nodes import Branch, ComposedForm, Cond, Constant, Program, Variable from lispyc.parser import parse from .data import FORM_PROGRAMS, FORMS VALID_1_BRANCH_PROGRAMS = [ "($name$ $value$ ((x 7 y) (a b)) $default...
2,127
0
243
ab9369f09303abba942845a4c6914c255b09b433
1,184
py
Python
Armadillo-IoT_GW/modules/network/wireless.py
naomitodori/Azure-IoT-samples
f98ad55eaab0d3fe52a5ff17a8d312aa69df0cce
[ "MIT" ]
3
2021-08-01T00:31:50.000Z
2021-12-15T23:42:52.000Z
Armadillo-IoT_GW/modules/network/wireless.py
naomitodori/Azure-IoT-samples
f98ad55eaab0d3fe52a5ff17a8d312aa69df0cce
[ "MIT" ]
null
null
null
Armadillo-IoT_GW/modules/network/wireless.py
naomitodori/Azure-IoT-samples
f98ad55eaab0d3fe52a5ff17a8d312aa69df0cce
[ "MIT" ]
3
2021-12-07T13:18:44.000Z
2022-01-28T00:41:46.000Z
import json from modules.const import Const from modules.lib.agent_utils import run_on_bash
30.358974
79
0.574324
import json from modules.const import Const from modules.lib.agent_utils import run_on_bash class G3M1Wireless: def __parse_wireless(self, config, key): try: if config['wireless'][key] == '': return None else: return config['wireless'][key] e...
990
-2
103
1603b4f87acbb07abf4f8e278b513d88a46332c5
2,282
py
Python
products/recommendations.py
techonerd/kobbyshop
e79f009f75f576fdc2e8ac037781f5817a2e255f
[ "MIT" ]
4
2021-11-25T15:45:31.000Z
2022-01-11T21:31:56.000Z
products/recommendations.py
KwabenaYeboah/kobbyshop
850a04b24fafa8aa538fdbf039a0e8fafc3ebfc2
[ "MIT" ]
1
2021-12-30T08:18:28.000Z
2021-12-30T08:18:28.000Z
products/recommendations.py
techonerd/kobbyshop
e79f009f75f576fdc2e8ac037781f5817a2e255f
[ "MIT" ]
2
2021-12-26T05:11:00.000Z
2021-12-30T08:18:13.000Z
import redis from django.conf import settings from .models import Product # Connect to redis conn = redis.Redis(host=settings.REDIS_HOST, port=settings.REDIS_PORT, db=settings.REDIS_DB)
43.056604
88
0.626643
import redis from django.conf import settings from .models import Product # Connect to redis conn = redis.Redis(host=settings.REDIS_HOST, port=settings.REDIS_PORT, db=settings.REDIS_DB) class Recommend(object): def get_product_id(self, id): return f'product:{id...
1,906
3
147
501ed34357593bf0cb18a964f32f1d16c244c22a
4,738
py
Python
analysis.py
Pahulpreet86/Web_Analytics_Dashboard
3ba29b264cd31d5bec58f497b48ab74f84893424
[ "Apache-2.0" ]
null
null
null
analysis.py
Pahulpreet86/Web_Analytics_Dashboard
3ba29b264cd31d5bec58f497b48ab74f84893424
[ "Apache-2.0" ]
null
null
null
analysis.py
Pahulpreet86/Web_Analytics_Dashboard
3ba29b264cd31d5bec58f497b48ab74f84893424
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import ast import pickle
39.815126
192
0.704939
import pandas as pd import numpy as np import ast import pickle def total(df): #new_visitor_count df1=df.drop_duplicates("fullVisitorId") new_visit=len([ast.literal_eval(x)['newVisits'] for x in df1["totals"] if ast.literal_eval(x)['newVisits']!=None]) total_visit=len(df1["fullVisitorId"].unique())...
4,549
0
122
57eb190b7cf16ff643c559e5d409d025bba28fa6
2,476
py
Python
Problem-1/huffman_encode.py
jewelben/IC-Project
1a46072fc95c8b183fcf700182bc40ce49a47984
[ "MIT" ]
null
null
null
Problem-1/huffman_encode.py
jewelben/IC-Project
1a46072fc95c8b183fcf700182bc40ce49a47984
[ "MIT" ]
null
null
null
Problem-1/huffman_encode.py
jewelben/IC-Project
1a46072fc95c8b183fcf700182bc40ce49a47984
[ "MIT" ]
null
null
null
# Defining a class called heapnode that has stores the symbol,frequency of the symbol, pointer to each of its children # and a flag variable called "bits" which denotes if its the left child or the right child # Function that creates our huffman tree by taking our priority queue as input and outputs the root node # ...
39.935484
121
0.71042
# Defining a class called heapnode that has stores the symbol,frequency of the symbol, pointer to each of its children # and a flag variable called "bits" which denotes if its the left child or the right child class heapnode: def __init__(self,frequency,symbols,left=None,right=None): self.frequency=frequen...
1,630
-6
93
9f6a220bf0c38e129755dd430677c9b33d6bfd99
6,620
py
Python
test-runner/twin_tests.py
brycewang-microsoft/iot-sdks-e2e-fx
211c9c2615a82076bda02a27152d67366755edbf
[ "MIT" ]
12
2019-02-02T00:15:13.000Z
2022-02-08T18:20:08.000Z
test-runner/twin_tests.py
brycewang-microsoft/iot-sdks-e2e-fx
211c9c2615a82076bda02a27152d67366755edbf
[ "MIT" ]
36
2019-02-14T22:53:17.000Z
2022-03-22T22:41:38.000Z
test-runner/twin_tests.py
brycewang-microsoft/iot-sdks-e2e-fx
211c9c2615a82076bda02a27152d67366755edbf
[ "MIT" ]
12
2019-02-19T13:28:25.000Z
2022-02-08T18:20:55.000Z
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for # full license information. import pytest import asyncio import sample_content from horton_logging import logger # Amount of time to wait after updating desired properties. wait_time_for_desired_...
37.828571
88
0.632175
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for # full license information. import pytest import asyncio import sample_content from horton_logging import logger # Amount of time to wait after updating desired properties. wait_time_for_desired_...
4,333
713
69
e0ed4f61df2e7bb9be70823a0de5690fee1cb799
126
py
Python
1-python-basico (Logica de programacao)/aula09/aula9-1.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
1-python-basico (Logica de programacao)/aula09/aula9-1.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
1-python-basico (Logica de programacao)/aula09/aula9-1.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
""" Entrada de dados """ num_1 = int(input('Digite um número: ')) num_2 = int(input('Digite outro: ')) print(num_1 ** num_2)
15.75
40
0.634921
""" Entrada de dados """ num_1 = int(input('Digite um número: ')) num_2 = int(input('Digite outro: ')) print(num_1 ** num_2)
0
0
0
aa26e7d79caf83b820f899e8abd2e7e35fbe2e65
517
py
Python
app/core/migrations/0037_auto_20201205_1159.py
klmsathish/forecast_api
b0e0d343179bb17d3c3033a8bcb14d01460dd301
[ "MIT" ]
null
null
null
app/core/migrations/0037_auto_20201205_1159.py
klmsathish/forecast_api
b0e0d343179bb17d3c3033a8bcb14d01460dd301
[ "MIT" ]
null
null
null
app/core/migrations/0037_auto_20201205_1159.py
klmsathish/forecast_api
b0e0d343179bb17d3c3033a8bcb14d01460dd301
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-05 11:59 from django.db import migrations, models
22.478261
81
0.574468
# Generated by Django 3.1.4 on 2020-12-05 11:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0036_auto_20201205_1107'), ] operations = [ migrations.RemoveField( model_name='post', name='postImage', ...
0
403
23
97ecd0be8c752acae6aa535e6b640645bdff0550
1,478
py
Python
serializers/vectre_inst_def_serializer.py
d0cd/vectre-x86-disasm
098a2a67c8d588d9960150a6eda538f42694548b
[ "MIT" ]
null
null
null
serializers/vectre_inst_def_serializer.py
d0cd/vectre-x86-disasm
098a2a67c8d588d9960150a6eda538f42694548b
[ "MIT" ]
null
null
null
serializers/vectre_inst_def_serializer.py
d0cd/vectre-x86-disasm
098a2a67c8d588d9960150a6eda538f42694548b
[ "MIT" ]
null
null
null
from .aarch64_disasm_processor import AArch64DisassemblyProcessor from .amd64_disasm_processor import AMD64DisassemblyProcessor from typing import List import angr
36.95
143
0.668471
from .aarch64_disasm_processor import AArch64DisassemblyProcessor from .amd64_disasm_processor import AMD64DisassemblyProcessor from typing import List import angr class VectreInstDefSerializer: angr_projects: List[angr.Project] def __init__(self, _projects): self.angr_projects = _projects ...
1,187
101
23
8474bff298e1dbfb96aedddd4e63139ea78dd383
3,797
py
Python
core/src/zeit/cms/content/field.py
louika/vivi
3cc213b873d527127aa6f0dd3c79a542299a8a0e
[ "BSD-3-Clause" ]
null
null
null
core/src/zeit/cms/content/field.py
louika/vivi
3cc213b873d527127aa6f0dd3c79a542299a8a0e
[ "BSD-3-Clause" ]
null
null
null
core/src/zeit/cms/content/field.py
louika/vivi
3cc213b873d527127aa6f0dd3c79a542299a8a0e
[ "BSD-3-Clause" ]
null
null
null
from zeit.cms.content.util import objectify_soup_fromstring import lxml.etree import lxml.objectify import zope.interface import zope.location.location import zope.proxy import zope.schema import zope.schema.interfaces import zope.security._proxy import zope.security.checker import zope.security.proxy DEFAULT_MARKER ...
34.207207
78
0.626547
from zeit.cms.content.util import objectify_soup_fromstring import lxml.etree import lxml.objectify import zope.interface import zope.location.location import zope.proxy import zope.schema import zope.schema.interfaces import zope.security._proxy import zope.security.checker import zope.security.proxy DEFAULT_MARKER ...
1,878
47
171
af94871d4370aab81378fd29f618390568617682
1,228
py
Python
scorer/global_direction.py
Tijana37/chimera
bd496e43ba4bb8949eb593ce412b5e91aaae7023
[ "MIT" ]
125
2019-04-09T10:29:48.000Z
2022-02-24T07:57:09.000Z
scorer/global_direction.py
Tijana37/chimera
bd496e43ba4bb8949eb593ce412b5e91aaae7023
[ "MIT" ]
23
2019-04-10T08:38:40.000Z
2022-03-10T13:33:30.000Z
scorer/global_direction.py
Tijana37/chimera
bd496e43ba4bb8949eb593ce412b5e91aaae7023
[ "MIT" ]
26
2019-04-09T11:02:19.000Z
2022-03-06T06:37:30.000Z
from collections import defaultdict, Counter from typing import List from scorer.product_of_experts import Expert from scorer.scorer import get_relations
32.315789
84
0.607492
from collections import defaultdict, Counter from typing import List from scorer.product_of_experts import Expert from scorer.scorer import get_relations class GlobalDirectionExpert(Expert): def __init__(self, plans: List[str]): direction = defaultdict(Counter) for plan in plans: mat...
981
15
76
1194872b89ec39720169cdc7ae314c434c6dee8d
386
py
Python
web_app/routes/home_routes.py
zack-murray/twitoff-14
bddb76164a2c85713a81ce8a7568c57c80ac462e
[ "MIT" ]
null
null
null
web_app/routes/home_routes.py
zack-murray/twitoff-14
bddb76164a2c85713a81ce8a7568c57c80ac462e
[ "MIT" ]
3
2021-06-08T21:42:49.000Z
2022-03-12T00:37:51.000Z
web_app/routes/home_routes.py
zack-murray/twitoff-14
bddb76164a2c85713a81ce8a7568c57c80ac462e
[ "MIT" ]
null
null
null
# web_app/routes/home_routes.py from flask import Blueprint, render_template home_routes = Blueprint("home_routes", __name__) @home_routes.route("/") @home_routes.route("/hello") @home_routes.route("/about")
21.444444
51
0.673575
# web_app/routes/home_routes.py from flask import Blueprint, render_template home_routes = Blueprint("home_routes", __name__) @home_routes.route("/") def index(): return render_template("prediction_form.html") @home_routes.route("/hello") def hello(): x = 2 + 2 return f"Hello World! {x}" ...
95
0
68
7509692f06dc4bac4e260d0828df1c169a1baaff
600
py
Python
runner/action/set/continuous.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
runner/action/set/continuous.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
runner/action/set/continuous.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
import numpy as np from runner.action.set.variable import Variable class Continuous(Variable): """Continuous variable low <= variable < high Args: low (float): low boundary high (float): high boundary route (str): route to value (see Action) """
24
68
0.581667
import numpy as np from runner.action.set.variable import Variable class Continuous(Variable): """Continuous variable low <= variable < high Args: low (float): low boundary high (float): high boundary route (str): route to value (see Action) """ def ...
235
0
54
5f5dbbaf17a77c90352d1048be40aee875b9c8e0
689
py
Python
migrations/versions/64169b01290d_.py
brayest/testcode
865d31ccfaf75946620c36955cc3dcb395515796
[ "Unlicense" ]
652
2021-01-24T10:32:08.000Z
2022-02-05T09:14:10.000Z
migrations/versions/64169b01290d_.py
starhappy/Dryvo
14c549a4f2265afd515bfd6f5f477a68187ea287
[ "Unlicense" ]
1
2021-01-27T05:09:14.000Z
2021-02-01T06:21:05.000Z
migrations/versions/64169b01290d_.py
starhappy/Dryvo
14c549a4f2265afd515bfd6f5f477a68187ea287
[ "Unlicense" ]
147
2021-01-25T10:57:22.000Z
2022-02-05T09:14:12.000Z
"""empty message Revision ID: 64169b01290d Revises: 53b58719e03b Create Date: 2019-04-17 17:29:09.098849 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '64169b01290d' down_revision = '53b58719e03b' branch_labels = None depends_on = None
23.758621
106
0.702467
"""empty message Revision ID: 64169b01290d Revises: 53b58719e03b Create Date: 2019-04-17 17:29:09.098849 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '64169b01290d' down_revision = '53b58719e03b' branch_labels = None depends_on = None def upgrade(): # ...
344
0
46
116b5d321d614592ed605fa594277ec42e583750
149
py
Python
app/api/user.py
lhbyllcl2/Flask-API-Demo
cb5c43c668ad659ebb5333c54e704ae60aab7413
[ "MIT" ]
6
2019-02-01T01:48:38.000Z
2022-02-14T05:55:40.000Z
app/api/user.py
lhbyllcl2/Flask-API-Demo
cb5c43c668ad659ebb5333c54e704ae60aab7413
[ "MIT" ]
null
null
null
app/api/user.py
lhbyllcl2/Flask-API-Demo
cb5c43c668ad659ebb5333c54e704ae60aab7413
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from app.libs.redprint import Redprint api = Redprint('user') @api.route('/login', methods=['POST'])
14.9
38
0.630872
# -*- coding:utf-8 -*- from app.libs.redprint import Redprint api = Redprint('user') @api.route('/login', methods=['POST']) def login(): pass
0
0
22
801b2c945c2952179a85e5cdb96d81f0871180a4
3,941
py
Python
asap-tools/experiments/depricated/handler/tools.py
project-asap/Profiler
eaad7eafe3635a2d0881c13069a3ac632784fd3a
[ "Apache-2.0" ]
3
2017-04-18T17:09:29.000Z
2017-11-08T22:55:32.000Z
asap-tools/experiments/depricated/handler/tools.py
project-asap/Profiler
eaad7eafe3635a2d0881c13069a3ac632784fd3a
[ "Apache-2.0" ]
18
2016-11-07T10:44:58.000Z
2017-04-25T12:40:24.000Z
asap-tools/experiments/depricated/handler/tools.py
project-asap/Profiler
eaad7eafe3635a2d0881c13069a3ac632784fd3a
[ "Apache-2.0" ]
4
2015-12-09T09:09:59.000Z
2018-05-23T14:29:00.000Z
#!/usr/bin/env python __author__ = 'cmantas' import sqlite3 import matplotlib.pyplot as plt import argparse from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter import matplotlib.pyplot as plt from matplotlib.pyplot import figure, show impor...
28.15
136
0.618878
#!/usr/bin/env python __author__ = 'cmantas' import sqlite3 import matplotlib.pyplot as plt import argparse from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter import matplotlib.pyplot as plt from matplotlib.pyplot import figure, show impor...
3,248
0
230
f1b244ad40d0c0a1ef12e9c980dc4e31facbe97e
1,827
py
Python
src/utils/check.py
RausellLab/tiresias
2acca303a0f6b4b1be784f597a59c1a883dbe43d
[ "Apache-2.0" ]
6
2019-07-03T16:11:15.000Z
2021-07-12T18:42:44.000Z
src/utils/check.py
RausellLab/tiresias
2acca303a0f6b4b1be784f597a59c1a883dbe43d
[ "Apache-2.0" ]
null
null
null
src/utils/check.py
RausellLab/tiresias
2acca303a0f6b4b1be784f597a59c1a883dbe43d
[ "Apache-2.0" ]
5
2019-10-16T09:40:58.000Z
2020-01-30T20:32:49.000Z
import torch def matrix_symmetry(matrix): """Checks the symmetry of the input matrix. Parameters ---------- matrix: torch.FloatTensor The matrix to check. """ if torch.eq(matrix, matrix.t()).all().item() == 0: raise ValueError("The input matrix is not symmetrical.") def pu_l...
28.107692
91
0.634921
import torch def matrix_symmetry(matrix): """Checks the symmetry of the input matrix. Parameters ---------- matrix: torch.FloatTensor The matrix to check. """ if torch.eq(matrix, matrix.t()).all().item() == 0: raise ValueError("The input matrix is not symmetrical.") def pu_l...
0
0
0
bca0866f8e9b1548570632f81a8cdbb6451d93f0
1,905
py
Python
lang/py/cookbook/v2/source/cb2_3_7_sol_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_3_7_sol_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_3_7_sol_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
import datetime import dateutil.parser if __name__ == "__main__": tests = ( "January 3, 2003", # a string (5, "Oct", 55), # a tuple "Thursday, November 18", # longer string without year "7/24/04", ...
51.486486
79
0.476115
import datetime import dateutil.parser def tryparse(date): # dateutil.parser needs a string argument: let's make one from our # `date' argument, according to a few reasonable conventions...: kwargs = {} # assume no named-args if isinstance(date, (tuple, list)): ...
997
0
22
0ba34986f400c8428bc5bdcb04d17f35e6c7cc34
609
py
Python
src/figs/model_overview.py
nt409/HRHR
62ab397650f4e2a1b1d0e6ef289b4e73790c777e
[ "MIT" ]
null
null
null
src/figs/model_overview.py
nt409/HRHR
62ab397650f4e2a1b1d0e6ef289b4e73790c777e
[ "MIT" ]
null
null
null
src/figs/model_overview.py
nt409/HRHR
62ab397650f4e2a1b1d0e6ef289b4e73790c777e
[ "MIT" ]
null
null
null
from model.simulator import RunSingleTactic from model.config_classes import SingleConfig from plotting.paper_figs import CombinedModelPlot # config_sing = SingleConfig(10, 10**(-3), 10**(-6), 1, 1, 0.5, 0.5) config_sing = SingleConfig(10, None, None, 1, 1, 0.5, 0.5) config_sing.load_saved = False RR, RS, SR = (10**...
24.36
68
0.706076
from model.simulator import RunSingleTactic from model.config_classes import SingleConfig from plotting.paper_figs import CombinedModelPlot # config_sing = SingleConfig(10, 10**(-3), 10**(-6), 1, 1, 0.5, 0.5) config_sing = SingleConfig(10, None, None, 1, 1, 0.5, 0.5) config_sing.load_saved = False RR, RS, SR = (10**...
0
0
0
09a69c9f619fc5a2165d626313b1fe8775b396db
16,920
py
Python
Final.py
Christoph9402/CarND-Finding-Lane-Lines
445a3adec9a1ce1a5f2f9acf16b8a8193fa28608
[ "MIT" ]
null
null
null
Final.py
Christoph9402/CarND-Finding-Lane-Lines
445a3adec9a1ce1a5f2f9acf16b8a8193fa28608
[ "MIT" ]
null
null
null
Final.py
Christoph9402/CarND-Finding-Lane-Lines
445a3adec9a1ce1a5f2f9acf16b8a8193fa28608
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Self-Driving Car Engineer Nanodegree # # # ## Project: **Finding Lane Lines on the Road** # *** # In this project, you will use the tools you learned about in the lesson to identify lane lines on the road. You can develop your pipeline on a series of individual images, and...
39.53271
638
0.708511
#!/usr/bin/env python # coding: utf-8 # # Self-Driving Car Engineer Nanodegree # # # ## Project: **Finding Lane Lines on the Road** # *** # In this project, you will use the tools you learned about in the lesson to identify lane lines on the road. You can develop your pipeline on a series of individual images, and...
4,958
0
192
e61429f3eb5e06f27e74e8273539ffc8e6ed9efd
2,643
py
Python
lib/galaxy/datatypes/converters/interval_to_summary_tree_converter.py
thata/galaxy-dist
6c3ffa064faf0c500f5594ed7b58ed839b00f337
[ "CC-BY-3.0" ]
2
2016-02-23T00:09:14.000Z
2019-02-11T07:48:44.000Z
lib/galaxy/datatypes/converters/interval_to_summary_tree_converter.py
thata/galaxy-dist
6c3ffa064faf0c500f5594ed7b58ed839b00f337
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/datatypes/converters/interval_to_summary_tree_converter.py
thata/galaxy-dist
6c3ffa064faf0c500f5594ed7b58ed839b00f337
[ "CC-BY-3.0" ]
6
2015-05-27T13:09:50.000Z
2019-02-11T07:48:46.000Z
#!/usr/bin/env python """ Convert from interval file to summary tree file. Default input file format is BED (0-based, half-open intervals). usage: %prog <options> in_file out_file -c, --chr-col: chromosome column, default=1 -s, --start-col: start column, default=2 -e, --end-col: end column, default=3 ...
41.296875
127
0.620885
#!/usr/bin/env python """ Convert from interval file to summary tree file. Default input file format is BED (0-based, half-open intervals). usage: %prog <options> in_file out_file -c, --chr-col: chromosome column, default=1 -s, --start-col: start column, default=2 -e, --end-col: end column, default=3 ...
1,841
0
23
ea46ffb932c6152df9bf41f79a755d889d0e00ea
3,511
py
Python
qualitube/videos.py
ericbrasiln/qualitube
6d2c947dbfb10ec83e315cacbc8c9893988b7ff4
[ "MIT" ]
1
2021-07-19T20:32:41.000Z
2021-07-19T20:32:41.000Z
qualitube/videos.py
ericbrasiln/qualitube
6d2c947dbfb10ec83e315cacbc8c9893988b7ff4
[ "MIT" ]
1
2021-08-24T00:11:47.000Z
2021-08-24T01:27:02.000Z
qualitube/videos.py
ericbrasiln/qualitube
6d2c947dbfb10ec83e315cacbc8c9893988b7ff4
[ "MIT" ]
2
2021-08-24T00:59:28.000Z
2021-08-24T19:49:15.000Z
import requests import json import pandas as pd from configparser import ConfigParser from .log import logger from .exceptions import QualitubeException config = ConfigParser() config.read("config.ini") API_KEY = config['credentials']['api_key'] class Videos: """ Wrapper Class to the YouTube Data API v3's `...
33.759615
108
0.569069
import requests import json import pandas as pd from configparser import ConfigParser from .log import logger from .exceptions import QualitubeException config = ConfigParser() config.read("config.ini") API_KEY = config['credentials']['api_key'] class Videos: """ Wrapper Class to the YouTube Data API v3's `...
2,965
0
169
eae195d4c87c26920f8f8042c6a089fbf18dc273
894
py
Python
drivers/oneoff_drivers/get_mass_upper_limit.py
lgbouma/timmy
5ff7c0df27e22dd9343933b26b05f7f0468c00d8
[ "MIT" ]
null
null
null
drivers/oneoff_drivers/get_mass_upper_limit.py
lgbouma/timmy
5ff7c0df27e22dd9343933b26b05f7f0468c00d8
[ "MIT" ]
null
null
null
drivers/oneoff_drivers/get_mass_upper_limit.py
lgbouma/timmy
5ff7c0df27e22dd9343933b26b05f7f0468c00d8
[ "MIT" ]
1
2020-07-29T17:01:27.000Z
2020-07-29T17:01:27.000Z
import os import pandas as pd, numpy as np from astrobase.lcmath import find_lc_timegroups from numpy import array as nparr from astropy import units as u from timmy.paths import DATADIR, RESULTSDIR datestr = '20200624' postpath = os.path.join(RESULTSDIR, 'radvel_fitting', f'{datestr}_simple_p...
28.83871
61
0.670022
import os import pandas as pd, numpy as np from astrobase.lcmath import find_lc_timegroups from numpy import array as nparr from astropy import units as u from timmy.paths import DATADIR, RESULTSDIR datestr = '20200624' postpath = os.path.join(RESULTSDIR, 'radvel_fitting', f'{datestr}_simple_p...
0
0
0
5bd7b9bfa5c870629f1360316fe82967e7a01767
3,842
py
Python
translate.py
yuchenlin/ParaGEN
e6d7f3e934011f8e533ce3f0c27c2a04e199c409
[ "MIT" ]
12
2018-01-06T21:57:39.000Z
2020-06-14T18:44:21.000Z
translate.py
yuchenlin/ParaGEN
e6d7f3e934011f8e533ce3f0c27c2a04e199c409
[ "MIT" ]
null
null
null
translate.py
yuchenlin/ParaGEN
e6d7f3e934011f8e533ce3f0c27c2a04e199c409
[ "MIT" ]
4
2018-03-02T02:28:12.000Z
2020-10-25T04:56:48.000Z
#!/usr/bin/env python from __future__ import division, unicode_literals import os import argparse import math import codecs import torch from itertools import count import onmt.io import onmt.translate import onmt import onmt.ModelConstructor import onmt.modules import opts parser = argparse.ArgumentParser( des...
32.837607
74
0.579646
#!/usr/bin/env python from __future__ import division, unicode_literals import os import argparse import math import codecs import torch from itertools import count import onmt.io import onmt.translate import onmt import onmt.ModelConstructor import onmt.modules import opts parser = argparse.ArgumentParser( des...
3,284
0
23
90d832c4990e82d7b22f77770c53a88b145b012d
1,419
py
Python
utils/evaluation/__init__.py
dickie0/mflh-master
22abc61d8a84e3fadc4d96614cb41ffdf2842816
[ "MIT" ]
null
null
null
utils/evaluation/__init__.py
dickie0/mflh-master
22abc61d8a84e3fadc4d96614cb41ffdf2842816
[ "MIT" ]
null
null
null
utils/evaluation/__init__.py
dickie0/mflh-master
22abc61d8a84e3fadc4d96614cb41ffdf2842816
[ "MIT" ]
null
null
null
import numpy as np from utils.util import sign from utils.metrics.np_v import metric
34.609756
84
0.608879
import numpy as np from utils.util import sign from utils.metrics.np_v import metric class MAP: def __init__(self, num): self.num = num def map_fr(self, database, query, nums=None, dist='inner_product'): if nums is None: nums = self.num q_output = query.output db_...
1,217
-11
126
8a1951534189ffd3a9f4fda689cdf46041bd4730
4,132
py
Python
main1.py
aasworth/E06a-Bullets
13023aa422dd29aa0b84c6d8bdec02e69e6470a4
[ "MIT" ]
null
null
null
main1.py
aasworth/E06a-Bullets
13023aa422dd29aa0b84c6d8bdec02e69e6470a4
[ "MIT" ]
null
null
null
main1.py
aasworth/E06a-Bullets
13023aa422dd29aa0b84c6d8bdec02e69e6470a4
[ "MIT" ]
null
null
null
import sys, logging, os, random, math, open_color, arcade #check to make sure we are running the right version of Python version = (3,7) assert sys.version_info >= version, "This script requires at least Python {0}.{1}".format(version[0],version[1]) #turn on logging, in case we have to leave ourselves debugging messa...
29.726619
112
0.580348
import sys, logging, os, random, math, open_color, arcade #check to make sure we are running the right version of Python version = (3,7) assert sys.version_info >= version, "This script requires at least Python {0}.{1}".format(version[0],version[1]) #turn on logging, in case we have to leave ourselves debugging messa...
1,943
1,344
144
71fa5560074acadb566a8e75cbce5884d10139f9
4,373
py
Python
hyperlearn/big_data/randomized.py
danielhanchen/hiperlearn
7e2d7735bcb40854462decd5e5c8d70afd90aede
[ "BSD-3-Clause" ]
1,264
2018-08-28T03:29:22.000Z
2022-03-30T07:16:00.000Z
hyperlearn/big_data/randomized.py
danielhanchen/hiperlearn
7e2d7735bcb40854462decd5e5c8d70afd90aede
[ "BSD-3-Clause" ]
19
2018-08-28T16:32:23.000Z
2021-10-01T12:25:16.000Z
hyperlearn/big_data/randomized.py
danielhanchen/hiperlearn
7e2d7735bcb40854462decd5e5c8d70afd90aede
[ "BSD-3-Clause" ]
111
2018-08-29T13:28:54.000Z
2021-09-05T23:26:11.000Z
from ..linalg import lu, svd, qr, eig from numpy import random as _random, sqrt from numpy.linalg import norm from ..utils import _float, _svdCond, traceXTX, eig_flip, svd_flip from ..random import uniform # __all__ = ['randomizedSVD', 'randomizedEig'] def randomized_projection(X, k, solver = 'lu', max_iter = 4): ...
29.153333
93
0.694718
from ..linalg import lu, svd, qr, eig from numpy import random as _random, sqrt from numpy.linalg import norm from ..utils import _float, _svdCond, traceXTX, eig_flip, svd_flip from ..random import uniform # __all__ = ['randomizedSVD', 'randomizedEig'] def randomized_projection(X, k, solver = 'lu', max_iter = 4): ...
0
0
0
5b21b64ab646179afc1c061ed02b7cbc158b52d7
15,326
py
Python
scripts/old/principle_push2D.py
Emergent-Behaviors-in-Biology/immune-svm
4f541a989c403c72933609500758448297a9d113
[ "MIT" ]
null
null
null
scripts/old/principle_push2D.py
Emergent-Behaviors-in-Biology/immune-svm
4f541a989c403c72933609500758448297a9d113
[ "MIT" ]
null
null
null
scripts/old/principle_push2D.py
Emergent-Behaviors-in-Biology/immune-svm
4f541a989c403c72933609500758448297a9d113
[ "MIT" ]
null
null
null
#This code attempts to do a proof of principle calucation that our idea works in high dimensions #To gain some intition as to what is going on, we will do things in two dimensions first so that we can plot everything #Import standard python packages: import numpy as np import matplotlib.pyplot as plt from scipy.integ...
24.097484
169
0.598656
#This code attempts to do a proof of principle calucation that our idea works in high dimensions #To gain some intition as to what is going on, we will do things in two dimensions first so that we can plot everything #Import standard python packages: import numpy as np import matplotlib.pyplot as plt from scipy.integ...
0
0
0
8974557f45dbccb825cc687fa2e9e3d81010edaa
738
py
Python
pokeapi/api/models/pokemon.py
QU3B1M/Go-and-Python-MicroMonsters
82343456a619893fe395ba46e8dd06f1ad13b7be
[ "MIT" ]
null
null
null
pokeapi/api/models/pokemon.py
QU3B1M/Go-and-Python-MicroMonsters
82343456a619893fe395ba46e8dd06f1ad13b7be
[ "MIT" ]
null
null
null
pokeapi/api/models/pokemon.py
QU3B1M/Go-and-Python-MicroMonsters
82343456a619893fe395ba46e8dd06f1ad13b7be
[ "MIT" ]
null
null
null
from typing import List from tortoise.contrib.pydantic import pydantic_model_creator from api.database.schemas import Pokemon # Base Pokemon Pydantic Model created from the Tortoise-ORM Model. PokemonBase = pydantic_model_creator(Pokemon, name="PokemonIn", exclude_readonly=True) # Outgoing Pokemon Pydantic Model cr...
26.357143
86
0.768293
from typing import List from tortoise.contrib.pydantic import pydantic_model_creator from api.database.schemas import Pokemon # Base Pokemon Pydantic Model created from the Tortoise-ORM Model. PokemonBase = pydantic_model_creator(Pokemon, name="PokemonIn", exclude_readonly=True) # Outgoing Pokemon Pydantic Model cr...
0
0
0
235886944f694b1b406e0a3e21d24c0d5feae345
3,913
py
Python
assignment-2/802.11.py
chengluyu/SDU-Computer-Networks
643c78a7a062b59faef875cb2c9f33983c667faf
[ "MIT" ]
1
2017-04-10T08:01:15.000Z
2017-04-10T08:01:15.000Z
assignment-2/802.11.py
chengluyu/SDU-Computer-Networks
643c78a7a062b59faef875cb2c9f33983c667faf
[ "MIT" ]
null
null
null
assignment-2/802.11.py
chengluyu/SDU-Computer-Networks
643c78a7a062b59faef875cb2c9f33983c667faf
[ "MIT" ]
null
null
null
from Util import Analyzer, Plot, APlot from QueueBase import Queue from multiprocesser import Process import random import numpy if __name__ == '__main__': p = Process(8) fin = p.Exec(main, [0.01 * i + 0.3 for i in range(170)]) # print(fin) plt = APlot(fin) plt.show() # main(0.625)
31.556452
101
0.490672
from Util import Analyzer, Plot, APlot from QueueBase import Queue from multiprocesser import Process import random import numpy def main(slot=1.0, stc=1): LAMBDA = [15] * 5 MU = 100 TOTAL = 1e5 CHECK = 1e4 def l(x=None): count = sum([len(i) for i in QLlog]) if x.get('type') == 'b...
3,532
0
69
4e5252c4a03ec165c02e9d87a08bdbf700523df7
4,336
py
Python
news_search.py
sebseager/qiskit-fall-fest-2021
d3d0a7f0c4dd36c3ec6e598bcc31db1c0e1a217d
[ "Apache-2.0" ]
1
2021-11-19T02:44:27.000Z
2021-11-19T02:44:27.000Z
news_search.py
sebseager/qiskit-fall-fest-2021
d3d0a7f0c4dd36c3ec6e598bcc31db1c0e1a217d
[ "Apache-2.0" ]
null
null
null
news_search.py
sebseager/qiskit-fall-fest-2021
d3d0a7f0c4dd36c3ec6e598bcc31db1c0e1a217d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Seb Seager # 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, softw...
32.601504
84
0.655212
# Copyright 2021 Seb Seager # 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, softw...
3,330
0
135
2391dc5aa66ce8f5620c17514fefdb2169a31bec
222
py
Python
django_geosource/urls.py
Terralego/django-geosource
013afde33cfeb8a3f91b809a8f6df3ab3e4089bd
[ "MIT" ]
3
2019-08-08T15:19:19.000Z
2022-03-04T14:37:00.000Z
django_geosource/urls.py
Terralego/django-geosource
013afde33cfeb8a3f91b809a8f6df3ab3e4089bd
[ "MIT" ]
39
2019-05-22T12:03:06.000Z
2022-03-04T15:09:56.000Z
django_geosource/urls.py
Terralego/django-geosource
013afde33cfeb8a3f91b809a8f6df3ab3e4089bd
[ "MIT" ]
null
null
null
from rest_framework import routers from .views import SourceModelViewset app_name = "geosource" router = routers.SimpleRouter() router.register(r"", SourceModelViewset, basename="geosource") urlpatterns = router.urls
18.5
62
0.797297
from rest_framework import routers from .views import SourceModelViewset app_name = "geosource" router = routers.SimpleRouter() router.register(r"", SourceModelViewset, basename="geosource") urlpatterns = router.urls
0
0
0
20d94b4e9102b105d3a33c87f10bf393f2f898eb
2,928
py
Python
pyservices/store/clients/consumer.py
makkalot/eskit-example-microservice
5873ee27d1486ebb4617bf3026c2d983ff300a05
[ "BSD-2-Clause" ]
null
null
null
pyservices/store/clients/consumer.py
makkalot/eskit-example-microservice
5873ee27d1486ebb4617bf3026c2d983ff300a05
[ "BSD-2-Clause" ]
null
null
null
pyservices/store/clients/consumer.py
makkalot/eskit-example-microservice
5873ee27d1486ebb4617bf3026c2d983ff300a05
[ "BSD-2-Clause" ]
null
null
null
from typing import Callable import concurrent.futures as futures import enum import threading import pyservices.generated.eventstore.service_pb2 as es import pyservices.generated.eventstore.event_pb2 as esdata import pyservices.generated.eventstore.service_pb2_grpc as esgrpc import pyservices.generated.consumerstore.se...
33.655172
114
0.650956
from typing import Callable import concurrent.futures as futures import enum import threading import pyservices.generated.eventstore.service_pb2 as es import pyservices.generated.eventstore.event_pb2 as esdata import pyservices.generated.eventstore.service_pb2_grpc as esgrpc import pyservices.generated.consumerstore.se...
969
1,426
46
0bcae222423e3d6ff37dbb4e0ca90bf8b9c099d2
1,287
py
Python
RNAPuzzles/rnapuzzles/views/user/signup.py
whinyadventure/RNA-Puzzles
bbd147e1a0748a77b5e3424a93ad57bb430b5a0e
[ "Apache-2.0" ]
null
null
null
RNAPuzzles/rnapuzzles/views/user/signup.py
whinyadventure/RNA-Puzzles
bbd147e1a0748a77b5e3424a93ad57bb430b5a0e
[ "Apache-2.0" ]
26
2019-10-08T11:11:25.000Z
2022-03-12T00:52:30.000Z
RNAPuzzles/rnapuzzles/views/user/signup.py
whinyadventure/RNA-Puzzles
bbd147e1a0748a77b5e3424a93ad57bb430b5a0e
[ "Apache-2.0" ]
1
2020-05-11T18:51:04.000Z
2020-05-11T18:51:04.000Z
from django.contrib.messages.views import SuccessMessageMixin from django.views.generic.edit import CreateView from django.urls import reverse from django.shortcuts import render from django.utils.encoding import force_text from django.utils.http import urlsafe_base64_decode from .signupForm import SignupForm from ......
33
97
0.719503
from django.contrib.messages.views import SuccessMessageMixin from django.views.generic.edit import CreateView from django.urls import reverse from django.shortcuts import render from django.utils.encoding import force_text from django.utils.http import urlsafe_base64_decode from .signupForm import SignupForm from ......
587
280
23
42b8cf654a9b9d682a680f22593932962657a882
754
py
Python
sheet 4/Particle Mesh Force Law/pmesh.py
janosh/simulation-methods
70ed6350fee858b4e5a101b4547d8cc06bd38899
[ "MIT" ]
2
2021-04-06T08:04:12.000Z
2022-03-21T16:16:05.000Z
sheet 4/Particle Mesh Force Law/pmesh.py
janosh/simulation-methods
70ed6350fee858b4e5a101b4547d8cc06bd38899
[ "MIT" ]
null
null
null
sheet 4/Particle Mesh Force Law/pmesh.py
janosh/simulation-methods
70ed6350fee858b4e5a101b4547d8cc06bd38899
[ "MIT" ]
5
2019-06-26T06:07:38.000Z
2022-01-12T22:54:19.000Z
import matplotlib as mpl font = {'family' : 'serif', 'size' : 16} mpl.rc('font', **font) import numpy as np radii = np.fromfile('radii.dat', dtype=float, count=-1, sep='') forces = np.fromfile('forces.dat', dtype=float, count=-1, sep='') import matplotlib.pyplot as plt plt.figure() r = np.arange(min(radii)...
25.133333
67
0.644562
import matplotlib as mpl font = {'family' : 'serif', 'size' : 16} mpl.rc('font', **font) import numpy as np radii = np.fromfile('radii.dat', dtype=float, count=-1, sep='') forces = np.fromfile('forces.dat', dtype=float, count=-1, sep='') import matplotlib.pyplot as plt plt.figure() def f(r): return 2/r...
3
0
23
444f3883cb148593d2cf9d4883007b254a401e13
423
py
Python
torchsegmentor/operator/pspnet_operator.py
ouc-ocean-group/Gaussian-Dynamic-Convolution
441784cb92d1bff51950f110b9135d695d157878
[ "MIT" ]
null
null
null
torchsegmentor/operator/pspnet_operator.py
ouc-ocean-group/Gaussian-Dynamic-Convolution
441784cb92d1bff51950f110b9135d695d157878
[ "MIT" ]
null
null
null
torchsegmentor/operator/pspnet_operator.py
ouc-ocean-group/Gaussian-Dynamic-Convolution
441784cb92d1bff51950f110b9135d695d157878
[ "MIT" ]
null
null
null
import random import torch from torchsegmentor.operator.base_operator import BaseOperator from torchsegmentor.model.pspnet import make_pspnet
23.5
62
0.730496
import random import torch from torchsegmentor.operator.base_operator import BaseOperator from torchsegmentor.model.pspnet import make_pspnet class PSPNetOperator(BaseOperator): def __init__(self, cfg): self.cfg = cfg random.seed(cfg.seed) torch.manual_seed(cfg.seed) pspnet = ma...
216
14
49
ffaa9ba5f0dbb601be5454a436353360aef6aa6e
60
py
Python
tmtrader/entity/conditional_order.py
reouno/tomatorader
b781206051129fa59439a0f314f4f1ed647a6852
[ "MIT" ]
null
null
null
tmtrader/entity/conditional_order.py
reouno/tomatorader
b781206051129fa59439a0f314f4f1ed647a6852
[ "MIT" ]
null
null
null
tmtrader/entity/conditional_order.py
reouno/tomatorader
b781206051129fa59439a0f314f4f1ed647a6852
[ "MIT" ]
null
null
null
from abc import ABC
10
28
0.733333
from abc import ABC class ConditionalOrder(ABC): pass
0
16
23
2cb08a892373a270782b44f4b164bd45d6f25296
2,505
py
Python
tableauserverclient/server/server.py
reevery/server-client-python
c4ed22ebf62e74707961a77381848ad325d55850
[ "MIT" ]
null
null
null
tableauserverclient/server/server.py
reevery/server-client-python
c4ed22ebf62e74707961a77381848ad325d55850
[ "MIT" ]
null
null
null
tableauserverclient/server/server.py
reevery/server-client-python
c4ed22ebf62e74707961a77381848ad325d55850
[ "MIT" ]
1
2020-04-17T15:41:39.000Z
2020-04-17T15:41:39.000Z
from .exceptions import NotSignedInError from .endpoint import Sites, Views, Users, Groups, Workbooks, Datasources, Projects, Auth, Schedules, ServerInfo import requests
28.146067
112
0.633932
from .exceptions import NotSignedInError from .endpoint import Sites, Views, Users, Groups, Workbooks, Datasources, Projects, Auth, Schedules, ServerInfo import requests class Server(object): class PublishMode: Append = 'Append' Overwrite = 'Overwrite' CreateNew = 'CreateNew' def __i...
1,748
562
23
5dc713634f22b40c9f8fe0abd0a4e991fb8c3277
2,516
py
Python
code/analysis/Japanese/only_thesis/get_posterior_predictive_prob_of_symbol_in_word_for-Gelbart-2005.py
tkc-morita/variational_inference_DP_mix_HDP_topic_ngram
95d6c8ab2956501fc82b416bf423ee57fe77c73f
[ "MIT" ]
4
2021-03-27T18:28:23.000Z
2022-01-10T23:32:29.000Z
code/analysis/Japanese/only_thesis/get_posterior_predictive_prob_of_symbol_in_word_for-Gelbart-2005.py
stannam/variational_inference_DP_mix_HDP_topic_ngram
95d6c8ab2956501fc82b416bf423ee57fe77c73f
[ "MIT" ]
null
null
null
code/analysis/Japanese/only_thesis/get_posterior_predictive_prob_of_symbol_in_word_for-Gelbart-2005.py
stannam/variational_inference_DP_mix_HDP_topic_ngram
95d6c8ab2956501fc82b416bf423ee57fe77c73f
[ "MIT" ]
1
2022-01-10T23:45:54.000Z
2022-01-10T23:45:54.000Z
# coding: utf-8 import numpy as np import pandas as pd import scipy.misc as spm import os, sys import posterior_predictive_inferences as ppi import encode_decode as edcode if __name__=='__main__': ngram_path = sys.argv[1] n = int(ngram_path.split('gram')[0][-1]) result_dir = os.path.split(ngram_path)[0] hdf5...
35.942857
146
0.753975
# coding: utf-8 import numpy as np import pandas as pd import scipy.misc as spm import os, sys import posterior_predictive_inferences as ppi import encode_decode as edcode def normalize_over_prefix(df, log_prob='log_prob_target'): for trial_name, sub_df in df.groupby('trial_name'): log_normalizer = spm.logsumexp...
327
0
23
2e9d41f71dbdfabb08e12c1cf94ec8dc26db616b
34
py
Python
tests/import/import3a.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
692
2016-12-19T23:25:35.000Z
2022-03-31T14:20:48.000Z
tests/import/import3a.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
509
2017-03-28T19:37:18.000Z
2022-03-31T20:31:43.000Z
tests/import/import3a.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
228
2016-12-19T05:03:30.000Z
2022-03-22T18:13:00.000Z
from import1b import * print(var)
11.333333
22
0.764706
from import1b import * print(var)
0
0
0
307735d0ffd35f1d33488d89c2e3b3806b778e0a
1,062
py
Python
inmuebles/urls.py
judhenaoma/c4-p27-g3
53feed982ef1954a0347e94487fec2f8cd20e971
[ "CC0-1.0" ]
null
null
null
inmuebles/urls.py
judhenaoma/c4-p27-g3
53feed982ef1954a0347e94487fec2f8cd20e971
[ "CC0-1.0" ]
null
null
null
inmuebles/urls.py
judhenaoma/c4-p27-g3
53feed982ef1954a0347e94487fec2f8cd20e971
[ "CC0-1.0" ]
null
null
null
from django.urls import path from .views.registroUserView import registroUserView from .views.detalleUserView import detalleUserView from .views.ListaInmueblesView import ListaInmueblesView from .views.CrearInmuebleView import CrearInmuebleView from .views.EliminarInmuebleView import EliminarInmuebleView from .views.Li...
39.333333
95
0.795669
from django.urls import path from .views.registroUserView import registroUserView from .views.detalleUserView import detalleUserView from .views.ListaInmueblesView import ListaInmueblesView from .views.CrearInmuebleView import CrearInmuebleView from .views.EliminarInmuebleView import EliminarInmuebleView from .views.Li...
0
0
0
6acf04db906df46b24aea07827b6ff2ccfc08868
6,086
py
Python
mozurestsdk/commerce/orders/attributedefinition/attribute.py
Mozu/mozu-python-sdk
9cc918aca7db3639264184e5266e8e508a08a7dd
[ "Apache-2.0" ]
1
2021-03-22T12:38:42.000Z
2021-03-22T12:38:42.000Z
mozurestsdk/commerce/orders/attributedefinition/attribute.py
Mozu/mozu-python-sdk
9cc918aca7db3639264184e5266e8e508a08a7dd
[ "Apache-2.0" ]
null
null
null
mozurestsdk/commerce/orders/attributedefinition/attribute.py
Mozu/mozu-python-sdk
9cc918aca7db3639264184e5266e8e508a08a7dd
[ "Apache-2.0" ]
2
2015-09-30T19:49:00.000Z
2015-09-30T19:51:03.000Z
""" This code was generated by Codezu. Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. """ from mozurestsdk.mozuclient import default as default_client from mozurestsdk.mozuurl import MozuUrl; from mozurestsdk.urllocation import UrlLocation from mozure...
42.859155
395
0.731679
""" This code was generated by Codezu. Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. """ from mozurestsdk.mozuclient import default as default_client from mozurestsdk.mozuurl import MozuUrl; from mozurestsdk.urllocation import UrlLocation from mozure...
228
5,467
25