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
72addc3d77cd51c58c7cbe4624841c6fe3dfe60e
37,926
py
Python
pysnmp/Juniper-ACCOUNTING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/Juniper-ACCOUNTING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/Juniper-ACCOUNTING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module Juniper-ACCOUNTING-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-ACCOUNTING-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:50:51 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
149.905138
8,112
0.774587
# # PySNMP MIB module Juniper-ACCOUNTING-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-ACCOUNTING-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:50:51 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
0
0
0
831fb8be89c2533fc255f20c58535db4f6957e7e
32,732
py
Python
hydra_python_core/doc_writer.py
king-11/hydra-python-core
3795cb0bd8eeb0f310febf17090ca3bdb1b1d135
[ "MIT" ]
null
null
null
hydra_python_core/doc_writer.py
king-11/hydra-python-core
3795cb0bd8eeb0f310febf17090ca3bdb1b1d135
[ "MIT" ]
null
null
null
hydra_python_core/doc_writer.py
king-11/hydra-python-core
3795cb0bd8eeb0f310febf17090ca3bdb1b1d135
[ "MIT" ]
null
null
null
"""API Doc templates generator.""" from typing import Any, Dict, List, Optional, Union from urllib.parse import quote, urljoin class HydraDoc: """Class for an API Doc.""" def __init__(self, API: str, title: str, desc: str, entrypoint: str, base_url: str, doc_name: str) -> None: """In...
38.781991
118
0.528901
"""API Doc templates generator.""" from typing import Any, Dict, List, Optional, Union from urllib.parse import quote, urljoin class HydraDoc: """Class for an API Doc.""" def __init__(self, API: str, title: str, desc: str, entrypoint: str, base_url: str, doc_name: str) -> None: """In...
702
36
77
c959fa1876b26e72056c0237c0b65d604f5ebd0c
4,962
py
Python
grafana_script/opennms_functions.py
pkremser/cmdbToGrafana
056e872a26c3578562546aa94a7d71bd6e78d7a2
[ "MIT" ]
1
2018-09-21T12:29:00.000Z
2018-09-21T12:29:00.000Z
grafana_script/opennms_functions.py
pkremser/cmdbToGrafana
056e872a26c3578562546aa94a7d71bd6e78d7a2
[ "MIT" ]
null
null
null
grafana_script/opennms_functions.py
pkremser/cmdbToGrafana
056e872a26c3578562546aa94a7d71bd6e78d7a2
[ "MIT" ]
null
null
null
""" Grafana-Script functions module This is the functions module of Grafana-Script :license: MIT, see LICENSE for more details :copyright: (c) 2020 by NETHINKS GmbH, see AUTHORS for more details """ import xml.etree.ElementTree as ET import requests from grafana_script.config import ScriptConfig CONF = ScriptConfig()...
44.303571
142
0.621322
""" Grafana-Script functions module This is the functions module of Grafana-Script :license: MIT, see LICENSE for more details :copyright: (c) 2020 by NETHINKS GmbH, see AUTHORS for more details """ import xml.etree.ElementTree as ET import requests from grafana_script.config import ScriptConfig CONF = ScriptConfig()...
0
0
0
026a11d51959d6a84d26a17356e4207fda55e4b7
394
py
Python
maxibonkata/chat.py
nando/MaxibonKataPython
2754e3a2b52fac41752df70ab614e7a28a90811b
[ "Apache-2.0" ]
null
null
null
maxibonkata/chat.py
nando/MaxibonKataPython
2754e3a2b52fac41752df70ab614e7a28a90811b
[ "Apache-2.0" ]
null
null
null
maxibonkata/chat.py
nando/MaxibonKataPython
2754e3a2b52fac41752df70ab614e7a28a90811b
[ "Apache-2.0" ]
null
null
null
"""maxibonkata.chat This module contains the Chat class implementation. :copyright: 2019, Karumi & The Cocktail :license: Apache License. See LICENSE.txt file for further details. """
20.736842
67
0.690355
"""maxibonkata.chat This module contains the Chat class implementation. :copyright: 2019, Karumi & The Cocktail :license: Apache License. See LICENSE.txt file for further details. """ class Chat: def __init__( self ): self.messageSent = None def messageSent( self ): return self.messageSent ...
114
-10
103
fd6fe915bf587870c4656cdcce6cd4b5cd6b6465
1,627
py
Python
tests/test_model.py
kartik4949/detectia
e62165372b2abac63239d540dfa8c3ee0eafd75c
[ "Apache-2.0" ]
3
2021-02-02T10:59:26.000Z
2021-11-20T07:56:29.000Z
tests/test_model.py
kartik4949/detectia
e62165372b2abac63239d540dfa8c3ee0eafd75c
[ "Apache-2.0" ]
null
null
null
tests/test_model.py
kartik4949/detectia
e62165372b2abac63239d540dfa8c3ee0eafd75c
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Kartik Sharma. 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 law o...
33.204082
83
0.685925
# Copyright 2021 Kartik Sharma. 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 law o...
423
0
22
eb30a14bc7368d14ee55eab684b7975c1c964890
7,971
py
Python
RoteamentoTCC/nsga/population.py
Luc4s99/Trabalho-de-Conclusao-de-Curso
028adb1ffe38601b0f227b3f1ef0731615af2f14
[ "MIT" ]
null
null
null
RoteamentoTCC/nsga/population.py
Luc4s99/Trabalho-de-Conclusao-de-Curso
028adb1ffe38601b0f227b3f1ef0731615af2f14
[ "MIT" ]
null
null
null
RoteamentoTCC/nsga/population.py
Luc4s99/Trabalho-de-Conclusao-de-Curso
028adb1ffe38601b0f227b3f1ef0731615af2f14
[ "MIT" ]
null
null
null
""" Este código possui partes desenvolvidas ou baseadas em código desenvolvido por Thales Otávio Link do GitHub: https://github.com/thalesorp/NSGA-II """ import sys import random from .individual import Individual class Population: """Class of population of indiviuals, used by NSGA-II""" def initiate(sel...
30.54023
105
0.611592
""" Este código possui partes desenvolvidas ou baseadas em código desenvolvido por Thales Otávio Link do GitHub: https://github.com/thalesorp/NSGA-II """ import sys import random from .individual import Individual class Population: """Class of population of indiviuals, used by NSGA-II""" def __init__(sel...
435
0
27
9f20483121ab46476d8b550dd2402a354ae30acc
10,822
py
Python
src/olympia/blocklist/admin.py
ruchikabgosain/addons-server
96d6626881df90b6d14902d7f0d480382a90ea16
[ "BSD-3-Clause" ]
null
null
null
src/olympia/blocklist/admin.py
ruchikabgosain/addons-server
96d6626881df90b6d14902d7f0d480382a90ea16
[ "BSD-3-Clause" ]
null
null
null
src/olympia/blocklist/admin.py
ruchikabgosain/addons-server
96d6626881df90b6d14902d7f0d480382a90ea16
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.forms.fields import ChoiceField from django.shortcuts import redirect from django.template.response import TemplateResponse from django.urls import path from django.utils.html import format_html, conditional_escape from django.utils.safestring import mark_safe from django.ut...
35.953488
79
0.564868
from django.contrib import admin from django.forms.fields import ChoiceField from django.shortcuts import redirect from django.template.response import TemplateResponse from django.urls import path from django.utils.html import format_html, conditional_escape from django.utils.safestring import mark_safe from django.ut...
8,134
2,046
68
8d5e55c8f7b610aaf289ad4c50b7ae54fc3bfc7f
4,261
py
Python
metafilter/rescan_folder.py
exhuma/metafilter
dfbc01877a3020f7fe58b9fda3e14ed073684f25
[ "BSD-3-Clause" ]
null
null
null
metafilter/rescan_folder.py
exhuma/metafilter
dfbc01877a3020f7fe58b9fda3e14ed073684f25
[ "BSD-3-Clause" ]
null
null
null
metafilter/rescan_folder.py
exhuma/metafilter
dfbc01877a3020f7fe58b9fda3e14ed073684f25
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python from os.path import expanduser, dirname, exists from os import makedirs import sys from datetime import datetime from optparse import OptionParser import logging import logging.handlers from config_resolver import Config LOG = logging.getLogger(__name__) LOG.setLevel(logging.DEBUG) FORMATTER = logg...
42.188119
272
0.681295
#!/usr/bin/python from os.path import expanduser, dirname, exists from os import makedirs import sys from datetime import datetime from optparse import OptionParser import logging import logging.handlers from config_resolver import Config LOG = logging.getLogger(__name__) LOG.setLevel(logging.DEBUG) FORMATTER = logg...
2,943
0
23
7ee947ca4dc0f1a2497ac3e702c394e0205b73ac
4,638
py
Python
PY_Debug_Investigations/PY27_UEE_UDE/script/event_v3.py
TheMitchWorksPro/DataTech_Playground
d62266d21762315f431fb4f707940095901b85e6
[ "MIT" ]
null
null
null
PY_Debug_Investigations/PY27_UEE_UDE/script/event_v3.py
TheMitchWorksPro/DataTech_Playground
d62266d21762315f431fb4f707940095901b85e6
[ "MIT" ]
null
null
null
PY_Debug_Investigations/PY27_UEE_UDE/script/event_v3.py
TheMitchWorksPro/DataTech_Playground
d62266d21762315f431fb4f707940095901b85e6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Draft Version ... presented to illustrate how the problem shifts and how later solutions address this # * In this version, several solutions from Stack Overflow are added into the code. # * the result is that one encode error is solved but another one shifts to a d...
44.596154
122
0.59379
#!/usr/bin/env python # -*- coding: utf-8 -*- # Draft Version ... presented to illustrate how the problem shifts and how later solutions address this # * In this version, several solutions from Stack Overflow are added into the code. # * the result is that one encode error is solved but another one shifts to a d...
2,969
-1
173
851d39d178b6d5c7322e6b780351297f5faed31a
4,063
py
Python
agents/dqn/q7.py
caoxuwen/bitgym
0a6796a039290122430ebc13c8d7ad9ff741921a
[ "MIT" ]
1
2018-09-07T10:10:29.000Z
2018-09-07T10:10:29.000Z
agents/dqn/q7.py
caoxuwen/bitgym
0a6796a039290122430ebc13c8d7ad9ff741921a
[ "MIT" ]
null
null
null
agents/dqn/q7.py
caoxuwen/bitgym
0a6796a039290122430ebc13c8d7ad9ff741921a
[ "MIT" ]
null
null
null
import gym import tensorflow as tf import tensorflow.contrib.layers as layers from utils.general import get_logger from q1_schedule import LinearExploration, LinearSchedule from q2_linear import Linear from configs.q7 import config import pandas as pd import trading_env class MyDQNCNN(Linear): ...
35.640351
105
0.603741
import gym import tensorflow as tf import tensorflow.contrib.layers as layers from utils.general import get_logger from q1_schedule import LinearExploration, LinearSchedule from q2_linear import Linear from configs.q7 import config import pandas as pd import trading_env class MyDQN(Linear): de...
0
1,140
25
2a31d48cbaad733480f4137aa10dc88cb3e10947
2,105
py
Python
lib/lurker.py
eur0pa/giveawaybot
a636c952c34fd145549c4db39fa2145ddc340c8f
[ "MIT" ]
1
2021-01-02T18:15:21.000Z
2021-01-02T18:15:21.000Z
lib/lurker.py
eur0pa/giveawaybot
a636c952c34fd145549c4db39fa2145ddc340c8f
[ "MIT" ]
null
null
null
lib/lurker.py
eur0pa/giveawaybot
a636c952c34fd145549c4db39fa2145ddc340c8f
[ "MIT" ]
null
null
null
import time import threading import praw import common
36.293103
93
0.55772
import time import threading import praw import common class Lurk(threading.Thread): def __init__(self, irc_thread): self.thread = threading.Thread.__init__(self) self._stop = threading.Event() self.irc = irc_thread self.r = praw.Reddit('Diochan PRAW Test') def run(self): ...
1,883
8
157
7255ae01d8acdfeb355f9adff31646a370a340fa
329
py
Python
pybytecode/fibonacci.py
Risto-Stevcev/python-bytecode
67f4c56ff838b74e5f81cfd09b41d27c202c9ad2
[ "BSD-3-Clause" ]
19
2016-12-16T09:27:03.000Z
2022-01-26T11:54:11.000Z
pybytecode/fibonacci.py
Risto-Stevcev/python-bytecode
67f4c56ff838b74e5f81cfd09b41d27c202c9ad2
[ "BSD-3-Clause" ]
null
null
null
pybytecode/fibonacci.py
Risto-Stevcev/python-bytecode
67f4c56ff838b74e5f81cfd09b41d27c202c9ad2
[ "BSD-3-Clause" ]
3
2017-11-07T12:25:03.000Z
2022-02-04T02:00:19.000Z
import sys if __name__ == '__main__': if len(sys.argv) != 2: print('Usage: %s [length]' % sys.argv[0]) sys.exit(1) print( fibonacci( int(sys.argv[1]) ) )
19.352941
50
0.507599
import sys def fibonacci(n): if n == 0: return 0 elif n == 1: return 1 else: return fibonacci(n - 1) + fibonacci(n - 2) if __name__ == '__main__': if len(sys.argv) != 2: print('Usage: %s [length]' % sys.argv[0]) sys.exit(1) print( fibonacci( int(sys.argv...
126
0
23
9026187c921a854d6c5d36e2aa15c0a6ed78a5db
2,830
py
Python
tests/test_assistant.py
jun-harashima/paper
4fe211fd16f17cd3cfba7c55647d4e3306fa39b3
[ "MIT" ]
1
2018-03-09T03:44:24.000Z
2018-03-09T03:44:24.000Z
tests/test_assistant.py
jun-harashima/paper
4fe211fd16f17cd3cfba7c55647d4e3306fa39b3
[ "MIT" ]
24
2018-03-20T05:33:00.000Z
2018-04-27T02:04:53.000Z
tests/test_assistant.py
jun-harashima/pott
4fe211fd16f17cd3cfba7c55647d4e3306fa39b3
[ "MIT" ]
2
2018-03-09T03:47:20.000Z
2018-03-21T09:03:54.000Z
import unittest from unittest.mock import patch from pott.option import Option from pott.paper import Paper from pott.yaml import Yaml from pott.assistants.assistant import Assistant from pott.assistants.global_assistant import GlobalAssistant from pott.assistants.local_assistant import LocalAssistant if __name__ ==...
41.014493
78
0.710954
import unittest from unittest.mock import patch from pott.option import Option from pott.paper import Paper from pott.yaml import Yaml from pott.assistants.assistant import Assistant from pott.assistants.global_assistant import GlobalAssistant from pott.assistants.local_assistant import LocalAssistant class TestAssis...
2,200
254
23
4837c22434df76c42e5dbcae0cac35c1519de4a9
13,287
py
Python
scripts/social_media.py
akosednar/congress-legislators
f36c1db486b5cecaa6e57bb0d6ac440997d3b58e
[ "CC0-1.0" ]
1
2019-06-09T23:46:31.000Z
2019-06-09T23:46:31.000Z
scripts/social_media.py
akosednar/congress-legislators
f36c1db486b5cecaa6e57bb0d6ac440997d3b58e
[ "CC0-1.0" ]
null
null
null
scripts/social_media.py
akosednar/congress-legislators
f36c1db486b5cecaa6e57bb0d6ac440997d3b58e
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # run with --sweep (or by default): # given a service, looks through current members for those missing an account on that service, # and checks that member's official website's source code for mentions of that service. # A CSV of "leads" is produced for manual review. # # run with --update:...
34.333333
141
0.600361
#!/usr/bin/env python # run with --sweep (or by default): # given a service, looks through current members for those missing an account on that service, # and checks that member's official website's source code for mentions of that service. # A CSV of "leads" is produced for manual review. # # run with --update:...
12,026
0
23
5bcfe23d839533d6e7085bbaf860586fddc81725
8,277
py
Python
main.py
elg3a/signalbot
6bffaa7d1dff877784347b1287bd2e271af45a43
[ "MIT" ]
null
null
null
main.py
elg3a/signalbot
6bffaa7d1dff877784347b1287bd2e271af45a43
[ "MIT" ]
null
null
null
main.py
elg3a/signalbot
6bffaa7d1dff877784347b1287bd2e271af45a43
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding:utf8 """An extensible, command based bot interface for the Signal Messenger. """ import functools import json import logging import os import random import time import uuid import wikipedia from datetime import datetime, timedelta from mysignald import MySignal from pymongo import Mon...
32.715415
77
0.595264
#!/usr/bin/env python3 # encoding:utf8 """An extensible, command based bot interface for the Signal Messenger. """ import functools import json import logging import os import random import time import uuid import wikipedia from datetime import datetime, timedelta from mysignald import MySignal from pymongo import Mon...
5,589
0
291
bb4912230759f477eb8c26dbee51d9a3770f3e0c
2,410
py
Python
assets/sender.py
smallkirby/lysithea
4e70fb15bee8bb4a5c83ba680fc4386c64edf730
[ "MIT" ]
11
2021-11-12T11:53:45.000Z
2022-03-28T03:40:54.000Z
assets/sender.py
smallkirby/lysithea
4e70fb15bee8bb4a5c83ba680fc4386c64edf730
[ "MIT" ]
9
2021-12-02T08:26:31.000Z
2021-12-12T05:34:40.000Z
assets/sender.py
smallkirby/lysithea
4e70fb15bee8bb4a5c83ba680fc4386c64edf730
[ "MIT" ]
null
null
null
#!/usr/bin/env python #encoding: utf-8; from pwn import * import sys,os hosts = ("","localhost","localhost") ports = (0,12300,23947) rhp1 = {'host':hosts[0],'port':ports[0]} #for actual server rhp2 = {'host':hosts[1],'port':ports[1]} #for localhost rhp3 = {'host':hosts[2],'port':ports[2]} #for localhost runn...
26.777778
103
0.573444
#!/usr/bin/env python #encoding: utf-8; from pwn import * import sys,os hosts = ("","localhost","localhost") ports = (0,12300,23947) rhp1 = {'host':hosts[0],'port':ports[0]} #for actual server rhp2 = {'host':hosts[1],'port':ports[1]} #for localhost rhp3 = {'host':hosts[2],'port':ports[2]} #for localhost runn...
1,332
0
46
3238a85ee5269e34b56d49d596c5d29cf3fdbaf9
7,093
py
Python
brb_topology/topology_brb.py
ashhadsheikh/ebpf_turtle
459c0571d299a34583285a2f3aebf217071b5e36
[ "Apache-2.0" ]
7
2016-01-02T11:52:07.000Z
2020-08-06T17:09:19.000Z
helpful_code/brb_topology/topology_brb.py
ZirakZaheer/ZeroTrust-Ebpf
b0f1968e5c9fa307a84b62a76f02847845a458db
[ "Apache-2.0" ]
null
null
null
helpful_code/brb_topology/topology_brb.py
ZirakZaheer/ZeroTrust-Ebpf
b0f1968e5c9fa307a84b62a76f02847845a458db
[ "Apache-2.0" ]
3
2016-06-19T20:41:45.000Z
2020-05-20T19:28:27.000Z
#!/usr/bin/env python # Copyright (c) PLUMgrid, Inc. # Licensed under the Apache License, Version 2.0 (the "License") from bcc import BPF from builtins import input from ctypes import c_uint,c_int, c_ulong from pyroute2 import IPRoute, IPDB, NSPopen from simulation import Simulation from netaddr import IPAddress impor...
44.610063
120
0.613563
#!/usr/bin/env python # Copyright (c) PLUMgrid, Inc. # Licensed under the Apache License, Version 2.0 (the "License") from bcc import BPF from builtins import input from ctypes import c_uint,c_int, c_ulong from pyroute2 import IPRoute, IPDB, NSPopen from simulation import Simulation from netaddr import IPAddress impor...
6,155
14
130
473a28922b23983ad2500a9df169177eda0dfd8e
475
py
Python
exe3/Moto.py
neitan666/algoritmos2
c9fd141bead0cd171f6b2f5d209833da085a1992
[ "MIT" ]
null
null
null
exe3/Moto.py
neitan666/algoritmos2
c9fd141bead0cd171f6b2f5d209833da085a1992
[ "MIT" ]
null
null
null
exe3/Moto.py
neitan666/algoritmos2
c9fd141bead0cd171f6b2f5d209833da085a1992
[ "MIT" ]
null
null
null
from Automovel import Automovel
33.928571
86
0.652632
from Automovel import Automovel class Moto(Automovel): def __init__(self, marca, qtdRodas, modelo, velocidade, potencia,partidaEletrica): super().__init__(marca, qtdRodas, modelo, velocidade, potencia) self.partidaEletrica = partidaEletrica def Imprimir(self): super().Imprimir() ...
362
1
83
d4adf62f9a66b1940ad64782484f42b787ddb8b4
2,223
py
Python
tests/test_db.py
cguardia/Dallinger
92360c6ce29a0b71660ce4567d45af624f3180c3
[ "MIT" ]
1
2020-11-29T02:25:13.000Z
2020-11-29T02:25:13.000Z
tests/test_db.py
cguardia/Dallinger
92360c6ce29a0b71660ce4567d45af624f3180c3
[ "MIT" ]
null
null
null
tests/test_db.py
cguardia/Dallinger
92360c6ce29a0b71660ce4567d45af624f3180c3
[ "MIT" ]
1
2020-11-28T16:22:48.000Z
2020-11-28T16:22:48.000Z
import mock
29.64
86
0.641026
import mock def test_redis(): from dallinger.db import redis_conn assert redis_conn.ping() def test_serialized(db_session): from dallinger.db import serialized from dallinger.models import Participant counts = [] # Define a function which adds a new participant # with an id based on a...
2,139
0
69
c2cedd1e75611d95f872be5fe836a7b46ad9e7de
979
py
Python
justonecilck.py
caterpillar0111/automodeltrain
f393009c3975d4c8b0e9d33f8172669f0938a307
[ "Apache-2.0" ]
null
null
null
justonecilck.py
caterpillar0111/automodeltrain
f393009c3975d4c8b0e9d33f8172669f0938a307
[ "Apache-2.0" ]
null
null
null
justonecilck.py
caterpillar0111/automodeltrain
f393009c3975d4c8b0e9d33f8172669f0938a307
[ "Apache-2.0" ]
null
null
null
from sklearn.externals import joblib from sklearn.linear_model import LogisticRegression from sklearn.datasets import load_iris from sklearn.model_selection import train_test_split import os.path import gzip import os data = load_iris() Xtrain, Xtest, Ytrain, Ytest = train_test_split(data.data, da...
33.758621
104
0.656793
from sklearn.externals import joblib from sklearn.linear_model import LogisticRegression from sklearn.datasets import load_iris from sklearn.model_selection import train_test_split import os.path import gzip import os data = load_iris() Xtrain, Xtest, Ytrain, Ytest = train_test_split(data.data, da...
0
0
0
e61936d2bab22caa1012de227dd18a344b8b8ef6
1,244
py
Python
control_nodes/src/cmd2thruster.py
EEEManchester/MallARD_Sim_2
961e1fbe2cf549953a6ce1d0b7a594f14d2fb6f9
[ "BSD-3-Clause" ]
null
null
null
control_nodes/src/cmd2thruster.py
EEEManchester/MallARD_Sim_2
961e1fbe2cf549953a6ce1d0b7a594f14d2fb6f9
[ "BSD-3-Clause" ]
null
null
null
control_nodes/src/cmd2thruster.py
EEEManchester/MallARD_Sim_2
961e1fbe2cf549953a6ce1d0b7a594f14d2fb6f9
[ "BSD-3-Clause" ]
1
2022-02-19T13:11:40.000Z
2022-02-19T13:11:40.000Z
#!/usr/bin/env python import rospy import numpy as np from sensor_msgs.msg import Joy from geometry_msgs.msg import Twist from sensor_msgs.msg import JointState # build inverted matrix # A is control allocation matrix # 0.2075 and 0.2375 are moment arms measured from the centre of Mallard, i.e. half the distance b...
25.387755
113
0.676849
#!/usr/bin/env python import rospy import numpy as np from sensor_msgs.msg import Joy from geometry_msgs.msg import Twist from sensor_msgs.msg import JointState # build inverted matrix # A is control allocation matrix # 0.2075 and 0.2375 are moment arms measured from the centre of Mallard, i.e. half the distance b...
626
0
46
bc0b626283c19004a2566df5576f607ceae7ba5c
6,704
py
Python
pypy/module/_cffi_backend/wrapper.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
333
2015-08-08T18:03:38.000Z
2022-03-22T18:13:12.000Z
pypy/module/_cffi_backend/wrapper.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
7
2020-02-16T16:49:05.000Z
2021-11-26T09:00:56.000Z
pypy/module/_cffi_backend/wrapper.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
from pypy.interpreter.error import oefmt from pypy.interpreter.baseobjspace import W_Root from pypy.interpreter.typedef import TypeDef, interp_attrproperty from pypy.interpreter.typedef import GetSetProperty from pypy.interpreter.gateway import interp2app from rpython.rlib import jit from pypy.module._cffi_backend.cda...
44.693333
96
0.643049
from pypy.interpreter.error import oefmt from pypy.interpreter.baseobjspace import W_Root from pypy.interpreter.typedef import TypeDef, interp_attrproperty from pypy.interpreter.typedef import GetSetProperty from pypy.interpreter.gateway import interp2app from rpython.rlib import jit from pypy.module._cffi_backend.cda...
4,615
0
184
318f8944fd083de1e65c7061f4f87a373ce28977
86
py
Python
labels/admin.py
label-quest/backend
ff2ae40abeee3d85c2379fea71056cb857c0197b
[ "MIT" ]
null
null
null
labels/admin.py
label-quest/backend
ff2ae40abeee3d85c2379fea71056cb857c0197b
[ "MIT" ]
11
2018-11-22T12:03:55.000Z
2019-01-24T13:30:38.000Z
labels/admin.py
label-quest/backend
ff2ae40abeee3d85c2379fea71056cb857c0197b
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Label admin.site.register(Label)
21.5
32
0.825581
from django.contrib import admin from .models import Label admin.site.register(Label)
0
0
0
a1901f2b1ead24aeea163aecfff5481d43d54a8a
7,014
py
Python
tni.py
MetroSTL/TitleVI-Analysis
33a22b9574aa9d383e84c198dd2c8090a6f8ed5f
[ "MIT" ]
null
null
null
tni.py
MetroSTL/TitleVI-Analysis
33a22b9574aa9d383e84c198dd2c8090a6f8ed5f
[ "MIT" ]
null
null
null
tni.py
MetroSTL/TitleVI-Analysis
33a22b9574aa9d383e84c198dd2c8090a6f8ed5f
[ "MIT" ]
1
2021-03-17T13:50:24.000Z
2021-03-17T13:50:24.000Z
# ! are the imports needed if they are defined in main? import arcpy import os import shutil from helpers import * # ! are we using tni at all? EHHHH NOT REALLY # Compute Transit Need Index (TNI) based on the 2003 service standards for each census blockgroup. # Use the minority, income, age and car ownership data co...
64.944444
244
0.754919
# ! are the imports needed if they are defined in main? import arcpy import os import shutil from helpers import * # ! are we using tni at all? EHHHH NOT REALLY # Compute Transit Need Index (TNI) based on the 2003 service standards for each census blockgroup. # Use the minority, income, age and car ownership data co...
6,554
0
22
2c649497655dade83c9dbd44ab84dc35d96a400e
917
py
Python
dawg/mkiconv.py
selavy/studies
e17b91ffab193e46fec00cf2b8070dbf1f2c39e3
[ "MIT" ]
null
null
null
dawg/mkiconv.py
selavy/studies
e17b91ffab193e46fec00cf2b8070dbf1f2c39e3
[ "MIT" ]
null
null
null
dawg/mkiconv.py
selavy/studies
e17b91ffab193e46fec00cf2b8070dbf1f2c39e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python N = 128 vals = [-1]*N for i in range(N): ch = chr(i) if 'A' <= ch <= 'Z': vals[i] = i - ord('A') elif 'a' <= ch <= 'z': vals[i] = i - ord('a') groupsz = 16 grps = [] grp = [] for v in vals: if len(grp) >= groupsz: grps.append(fmtgrp(grp)) grp = ...
17.301887
62
0.536532
#!/usr/bin/env python N = 128 vals = [-1]*N for i in range(N): ch = chr(i) if 'A' <= ch <= 'Z': vals[i] = i - ord('A') elif 'a' <= ch <= 'z': vals[i] = i - ord('a') def fmtgrp(grp): return [f"{g:2d}" for g in grp] groupsz = 16 grps = [] grp = [] for v in vals: if len(grp) >= gr...
31
0
23
2ac64db0efddfc6cf23a9db4d2775fd100a34b55
681
py
Python
ckanext/scheming/tests/test_dataset_logic.py
TomeCirun/ckanext-scheming
79270b11f2e9b3e2ef23b19c93eb47d1cddd3016
[ "MIT" ]
52
2016-01-19T16:42:12.000Z
2022-03-15T20:44:27.000Z
ckanext/scheming/tests/test_dataset_logic.py
TomeCirun/ckanext-scheming
79270b11f2e9b3e2ef23b19c93eb47d1cddd3016
[ "MIT" ]
165
2015-12-04T13:05:43.000Z
2022-03-18T00:06:29.000Z
ckanext/scheming/tests/test_dataset_logic.py
TomeCirun/ckanext-scheming
79270b11f2e9b3e2ef23b19c93eb47d1cddd3016
[ "MIT" ]
118
2015-12-04T13:12:12.000Z
2022-03-04T22:05:30.000Z
import pytest from ckanapi import LocalCKAN, NotFound
32.428571
75
0.700441
import pytest from ckanapi import LocalCKAN, NotFound class TestDatasetSchemaLists(object): def test_dataset_schema_list(self): lc = LocalCKAN("visitor") dataset_schemas = lc.action.scheming_dataset_schema_list() assert "test-schema" in dataset_schemas def test_dataset_schema_show(se...
506
16
103
6181de7c3fbf5c1fd462f71bade799193208229d
7,371
py
Python
tools/translate.py
philbudne/tmg
7c003d7928b729a9154aac4396efa7c2aa31c799
[ "BSD-2-Clause" ]
41
2019-11-01T07:02:17.000Z
2022-03-27T17:54:38.000Z
tools/translate.py
philbudne/tmg
7c003d7928b729a9154aac4396efa7c2aa31c799
[ "BSD-2-Clause" ]
1
2020-05-31T07:01:08.000Z
2020-06-01T09:24:05.000Z
tools/translate.py
philbudne/tmg
7c003d7928b729a9154aac4396efa7c2aa31c799
[ "BSD-2-Clause" ]
4
2019-12-08T23:07:20.000Z
2021-08-21T17:38:35.000Z
#!/usr/bin/env python3 ''' Translates Unix TMG driving table from PDP-11 assembly to C arrays. Assumptions: - string literals are single line - byte directive has two octal values ''' from sys import argv if __name__=='__main__': t = Translator() t.start() for s in file_statements(argv[1]): t....
32.471366
120
0.439696
#!/usr/bin/env python3 ''' Translates Unix TMG driving table from PDP-11 assembly to C arrays. Assumptions: - string literals are single line - byte directive has two octal values ''' from sys import argv def line_statements(line, cnt): line = line.lstrip() while line: if line and line[0]=='<': ...
6,128
829
69
05546aa98f87a37a848e92fb7d15d9dab1ecc3bc
154
py
Python
parseCISAURL.py
cyberphreek/Python-Scripts
316f49cdd9d1ccf81e5289522098f2a4ede4bb55
[ "MIT" ]
null
null
null
parseCISAURL.py
cyberphreek/Python-Scripts
316f49cdd9d1ccf81e5289522098f2a4ede4bb55
[ "MIT" ]
null
null
null
parseCISAURL.py
cyberphreek/Python-Scripts
316f49cdd9d1ccf81e5289522098f2a4ede4bb55
[ "MIT" ]
null
null
null
url='https://us-cert.cisa.gov/ics/advisories/icsa-21-154-01' advisory=url.replace('https://us-cert.cisa.gov/ics/advisories/','') print(advisory)
22
68
0.694805
url='https://us-cert.cisa.gov/ics/advisories/icsa-21-154-01' advisory=url.replace('https://us-cert.cisa.gov/ics/advisories/','') print(advisory)
0
0
0
98a17a788a8a9257fdfe6f262d240e0944cf15c5
62
py
Python
venv/lib/python3.5/site-packages/tests/operators/__init__.py
mesodiar/bello-airflow
afede57f214774b50e6a4c083ca096ca2c060d31
[ "MIT" ]
1
2021-04-05T11:25:36.000Z
2021-04-05T11:25:36.000Z
tests/operators/__init__.py
fvlankvelt/airflow
6cbe4a475f773bf32e1d7743718f7ae1a7dd9c91
[ "Apache-2.0" ]
null
null
null
tests/operators/__init__.py
fvlankvelt/airflow
6cbe4a475f773bf32e1d7743718f7ae1a7dd9c91
[ "Apache-2.0" ]
1
2019-12-12T06:44:14.000Z
2019-12-12T06:44:14.000Z
from .docker_operator import * from .subdag_operator import *
20.666667
30
0.806452
from .docker_operator import * from .subdag_operator import *
0
0
0
bfc230d190f8f8ade9adbdd5980f7166d648d6d4
9,521
py
Python
LightPipes/sources.py
opticspy/lightpipes-python
dbd66e46ca8263a6e9bf7690e5f2b2551f93f4cb
[ "BSD-3-Clause" ]
null
null
null
LightPipes/sources.py
opticspy/lightpipes-python
dbd66e46ca8263a6e9bf7690e5f2b2551f93f4cb
[ "BSD-3-Clause" ]
null
null
null
LightPipes/sources.py
opticspy/lightpipes-python
dbd66e46ca8263a6e9bf7690e5f2b2551f93f4cb
[ "BSD-3-Clause" ]
null
null
null
from .field import Field from scipy import special from .core import BeamMix, Phase, MultPhase, IntAttenuator, CircAperture, GaussHermite, GaussLaguerre, Interpol from .misc import PI,Tilt, backward_compatible import numpy as _np def AiryBeam1D(Fin, x0 = 0.001, a = 100): """ *Creates a 1D nonspreading Airy bea...
35.394052
159
0.542905
from .field import Field from scipy import special from .core import BeamMix, Phase, MultPhase, IntAttenuator, CircAperture, GaussHermite, GaussLaguerre, Interpol from .misc import PI,Tilt, backward_compatible import numpy as _np def AiryBeam1D(Fin, x0 = 0.001, a = 100): """ *Creates a 1D nonspreading Airy bea...
0
0
0
8aa0c1c3692a9e66840729c139f65257517dd257
511
py
Python
preprocess_web/code/ravens_metadata_apps/content_pages/urls.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
null
null
null
preprocess_web/code/ravens_metadata_apps/content_pages/urls.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
103
2018-03-13T20:43:59.000Z
2021-02-06T19:27:16.000Z
preprocess_web/code/ravens_metadata_apps/content_pages/urls.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
1
2019-09-11T22:36:14.000Z
2019-09-11T22:36:14.000Z
from django.urls import path from ravens_metadata_apps.content_pages import views urlpatterns = ( path('monitoring/alive', views.view_monitoring_alive, name='view_monitoring_alive'), path('test/err-500', views.view_err_500_test, name='view_err_500_test'), path('test/e...
21.291667
52
0.634051
from django.urls import path from ravens_metadata_apps.content_pages import views urlpatterns = ( path('monitoring/alive', views.view_monitoring_alive, name='view_monitoring_alive'), path('test/err-500', views.view_err_500_test, name='view_err_500_test'), path('test/e...
0
0
0
c3285441eba7c33d7dd08b88c473fff45ed93128
2,080
py
Python
src/s3_client_deeposm.py
dbdean/DeepOSM
4361273723ba271105e2401ecc1707556816f20c
[ "MIT" ]
1,365
2016-05-05T05:34:44.000Z
2022-01-20T21:20:54.000Z
src/s3_client_deeposm.py
dbdean/DeepOSM
4361273723ba271105e2401ecc1707556816f20c
[ "MIT" ]
53
2016-05-08T21:10:14.000Z
2018-06-22T00:31:45.000Z
src/s3_client_deeposm.py
dbdean/DeepOSM
4361273723ba271105e2401ecc1707556816f20c
[ "MIT" ]
215
2016-05-08T15:56:37.000Z
2021-11-26T00:51:25.000Z
"""Post data to S3.""" import boto3 import os import pickle from src.config import CACHE_PATH, FINDINGS_S3_BUCKET from src.single_layer_network import list_findings from src.training_data import load_all_training_tiles, tag_with_locations from src.training_visualization import render_results_for_analysis def post_f...
42.44898
99
0.65625
"""Post data to S3.""" import boto3 import os import pickle from src.config import CACHE_PATH, FINDINGS_S3_BUCKET from src.single_layer_network import list_findings from src.training_data import load_all_training_tiles, tag_with_locations from src.training_visualization import render_results_for_analysis def post_f...
0
0
0
59c929c8dc4930c9159d681841443544f7ecdb5e
692
py
Python
utils.py
Ximpatico/NabotPythonAPI
c536c07b2f6c11e9dc5b340d259dd71794310e1c
[ "MIT" ]
6
2021-02-10T18:31:06.000Z
2021-08-02T19:05:36.000Z
utils.py
Ximpatico/NabotPythonAPI
c536c07b2f6c11e9dc5b340d259dd71794310e1c
[ "MIT" ]
null
null
null
utils.py
Ximpatico/NabotPythonAPI
c536c07b2f6c11e9dc5b340d259dd71794310e1c
[ "MIT" ]
2
2021-02-10T18:31:09.000Z
2021-02-13T08:38:53.000Z
import numpy as np import matplotlib.pyplot as plt import math cmap = plt.cm.viridis
27.68
125
0.657514
import numpy as np import matplotlib.pyplot as plt import math cmap = plt.cm.viridis def parse_command(): import argparse parser.add_argument('--gpu', default='0', type=str, metavar='N', help="gpu id") parser.add_argument('-m', '--model', default='resnet', type=str, help="name of the model to use: resne...
559
0
46
1ca2a50df59c9538971321f9adafc5055071ff00
1,376
py
Python
pruebas_estadisticas/main.py
binary-hideout/modelado-simulacion
f35d823716f6c033dde3252d63c3c692ef4f9d0f
[ "Unlicense" ]
1
2020-02-11T18:22:27.000Z
2020-02-11T18:22:27.000Z
pruebas_estadisticas/main.py
binary-hideout/modelado-simulacion
f35d823716f6c033dde3252d63c3c692ef4f9d0f
[ "Unlicense" ]
1
2020-02-26T05:29:47.000Z
2020-02-26T19:34:49.000Z
pruebas_estadisticas/main.py
binary-hideout/modelado-simulacion
f35d823716f6c033dde3252d63c3c692ef4f9d0f
[ "Unlicense" ]
null
null
null
''' Módulo para mandar a llamar las funciones de la tarea de Pruebas estadísticas. ''' import os import pathlib from questionary import text, select, Choice from validaciones import is_valid_chi import abajo_arriba import frecuencias from ruta import get_file_path def read_chi(): ''' Pide al usuario ingresa...
22.933333
113
0.615552
''' Módulo para mandar a llamar las funciones de la tarea de Pruebas estadísticas. ''' import os import pathlib from questionary import text, select, Choice from validaciones import is_valid_chi import abajo_arriba import frecuencias from ruta import get_file_path def read_chi(): ''' Pide al usuario ingresa...
0
0
0
576986df33f1d25e274acc767cd7258931f7e0b1
448
py
Python
mtslib/update_gs_range.py
John-Ingles-gitH/Media-To-Sheets
fd31c1dd2be0aa050a0ec8adc89dc2ac0bdea075
[ "MIT" ]
null
null
null
mtslib/update_gs_range.py
John-Ingles-gitH/Media-To-Sheets
fd31c1dd2be0aa050a0ec8adc89dc2ac0bdea075
[ "MIT" ]
7
2021-03-30T13:46:08.000Z
2021-12-13T20:44:32.000Z
mtslib/update_gs_range.py
John-Ingles-gitH/Media-To-Sheets
fd31c1dd2be0aa050a0ec8adc89dc2ac0bdea075
[ "MIT" ]
null
null
null
def update_gs_range(vals, sheet, cell_range): """Update range of cells in a google sheets sheet Args: vals (list:list:str): List of lists of movie attributes [[title,year,cover_url],...] sheet (<class Sheet>): Google Sheets sheet object cell_range (str): cell range in [A-Z][int]:[A-Z][int] style """ sheet.sp...
37.333333
86
0.683036
def update_gs_range(vals, sheet, cell_range): """Update range of cells in a google sheets sheet Args: vals (list:list:str): List of lists of movie attributes [[title,year,cover_url],...] sheet (<class Sheet>): Google Sheets sheet object cell_range (str): cell range in [A-Z][int]:[A-Z][int] style """ sheet.sp...
0
0
0
5ca054c595fbd5c2952ccc6f88eaae5857b4d711
536
py
Python
app/feedreader/management/commands/update_unread_count.py
jawsper/feedreader
b2b4d8151a786c822e1b59e93d2d8e8959cd210d
[ "MIT" ]
null
null
null
app/feedreader/management/commands/update_unread_count.py
jawsper/feedreader
b2b4d8151a786c822e1b59e93d2d8e8959cd210d
[ "MIT" ]
28
2017-03-16T14:39:53.000Z
2022-02-10T09:52:58.000Z
app/feedreader/management/commands/update_unread_count.py
jawsper/feedreader
b2b4d8151a786c822e1b59e93d2d8e8959cd210d
[ "MIT" ]
null
null
null
import logging from django.core.management.base import BaseCommand from feedreader.models import Outline from feedreader.functions import get_unread_count logger = logging.getLogger(__name__)
28.210526
83
0.677239
import logging from django.core.management.base import BaseCommand from feedreader.models import Outline from feedreader.functions import get_unread_count logger = logging.getLogger(__name__) class Command(BaseCommand): def handle(self, *args, **options): for outline in Outline.objects.all(): ...
285
6
49
a9f390e503027c156211efcadb03fa21690a2ea5
721
py
Python
case1130/graph6.py
xierensong/learnPython
33f9891d8a8ed39772ff9bcbeb1e5cff6f3b5455
[ "MIT" ]
null
null
null
case1130/graph6.py
xierensong/learnPython
33f9891d8a8ed39772ff9bcbeb1e5cff6f3b5455
[ "MIT" ]
null
null
null
case1130/graph6.py
xierensong/learnPython
33f9891d8a8ed39772ff9bcbeb1e5cff6f3b5455
[ "MIT" ]
1
2018-10-11T08:20:44.000Z
2018-10-11T08:20:44.000Z
import matplotlib.pyplot as plt import networkx as nx import pydot from networkx.drawing.nx_pydot import graphviz_layout G = nx.path_graph(8) nx.draw(G) plt.show() G = nx.cycle_graph(24) pos = nx.spring_layout(G, iterations=200) nx.draw(G, pos, node_color=range(24), node_size=800, cmap=plt.cm.Blues) plt.show() G = ...
25.75
78
0.723994
import matplotlib.pyplot as plt import networkx as nx import pydot from networkx.drawing.nx_pydot import graphviz_layout G = nx.path_graph(8) nx.draw(G) plt.show() G = nx.cycle_graph(24) pos = nx.spring_layout(G, iterations=200) nx.draw(G, pos, node_color=range(24), node_size=800, cmap=plt.cm.Blues) plt.show() G = ...
0
0
0
40f1bc620cdc59e4699b119985884fafcd6c1ce3
169
py
Python
power_of_two.py
aditya270520/100Daysofpython
a70d72bb8663947ccad1cc0cb6252f3d3624fb44
[ "MIT" ]
4
2020-12-12T11:49:02.000Z
2021-02-09T14:10:17.000Z
power_of_two.py
aditya270520/100Daysofpython
a70d72bb8663947ccad1cc0cb6252f3d3624fb44
[ "MIT" ]
null
null
null
power_of_two.py
aditya270520/100Daysofpython
a70d72bb8663947ccad1cc0cb6252f3d3624fb44
[ "MIT" ]
null
null
null
terms = 11 result = list(map(lambda x: 2 ** x, range(terms))) print("The total terms are:",terms) for i in range(terms): print("2 raised to power",i,"is",result[i])
24.142857
50
0.650888
terms = 11 result = list(map(lambda x: 2 ** x, range(terms))) print("The total terms are:",terms) for i in range(terms): print("2 raised to power",i,"is",result[i])
0
0
0
982c00a9ef69397991f6db148bb00b24263469dc
1,679
py
Python
SC_format.py
Offensive-Panda/ALL_SHELLCODE_FORMAT_COVERTOR
216446b612f046de13320c59e7dfcbd974a0ca24
[ "MIT" ]
1
2022-03-25T02:38:34.000Z
2022-03-25T02:38:34.000Z
SC_format.py
Offensive-Panda/ALL_SHELLCODE_FORMAT_COVERTOR
216446b612f046de13320c59e7dfcbd974a0ca24
[ "MIT" ]
null
null
null
SC_format.py
Offensive-Panda/ALL_SHELLCODE_FORMAT_COVERTOR
216446b612f046de13320c59e7dfcbd974a0ca24
[ "MIT" ]
null
null
null
#Cyber Security Engineer #Offensive Specialist import base64 import os import sys #The commented one is bash script to convert shellcode into raw binary formate. #You just need to change the input file and then run second command to convert into binary form. #This script will run on linux distributions. ...
31.679245
143
0.645622
#Cyber Security Engineer #Offensive Specialist import base64 import os import sys #The commented one is bash script to convert shellcode into raw binary formate. #You just need to change the input file and then run second command to convert into binary form. #This script will run on linux distributions. ...
0
0
0
d49554c4ffb998e7c89d8f294a4bda9e5ec1180f
2,623
py
Python
app.py
pastewka/token-generator-ldap
d12fbca42b3277f4a11c55f899dca221f2a4c4a9
[ "MIT" ]
null
null
null
app.py
pastewka/token-generator-ldap
d12fbca42b3277f4a11c55f899dca221f2a4c4a9
[ "MIT" ]
1
2020-05-19T08:50:11.000Z
2020-05-27T12:31:27.000Z
app.py
pastewka/token-generator-ldap
d12fbca42b3277f4a11c55f899dca221f2a4c4a9
[ "MIT" ]
3
2020-03-17T04:32:19.000Z
2021-08-15T12:13:57.000Z
import os import click from flask import Flask, abort, jsonify, request from flask_cors import CORS from flask_jwt_extended import JWTManager, create_access_token from flask_ldap3_login import LDAP3LoginManager app = Flask(__name__) CORS(app) app.config.from_envvar("FLASK_CONFIG_FILE") app.config.from_object(Con...
26.23
78
0.671369
import os import click from flask import Flask, abort, jsonify, request from flask_cors import CORS from flask_jwt_extended import JWTManager, create_access_token from flask_ldap3_login import LDAP3LoginManager def get_file_content(key, default=""): file_path = os.environ.get(key, "") if os.path.isfile(file...
842
250
112
84051b95518369d12ed964967101af5c9db4e6e2
2,473
py
Python
rbm_reconstruction.py
gugarosa/synthetic_rbms
a86c323e165a893810ac5bf79213f603ed86a8b3
[ "MIT" ]
null
null
null
rbm_reconstruction.py
gugarosa/synthetic_rbms
a86c323e165a893810ac5bf79213f603ed86a8b3
[ "MIT" ]
null
null
null
rbm_reconstruction.py
gugarosa/synthetic_rbms
a86c323e165a893810ac5bf79213f603ed86a8b3
[ "MIT" ]
null
null
null
import argparse import numpy as np import torch import utils.stream as s def get_arguments(): """Gets arguments from the command line. Returns: A parser with the input arguments. """ # Creates the ArgumentParser parser = argparse.ArgumentParser( usage='Reconstructs an RBM with...
31.705128
117
0.682976
import argparse import numpy as np import torch import utils.stream as s def get_arguments(): """Gets arguments from the command line. Returns: A parser with the input arguments. """ # Creates the ArgumentParser parser = argparse.ArgumentParser( usage='Reconstructs an RBM with...
0
0
0
fa977bf0c5a5d70f43e378ecb8526e0b59d674ac
5,790
py
Python
snakemake/wrappers/.snakemake.fnd409gc.merge_bams_wrapper.py
saketkc/EE-546-project
fb7eacd90f6c0a2cb3061837ec5427a14f521aa5
[ "BSD-2-Clause" ]
1
2020-11-02T07:05:09.000Z
2020-11-02T07:05:09.000Z
snakemake/wrappers/.snakemake.fnd409gc.merge_bams_wrapper.py
saketkc/EE-546-project
fb7eacd90f6c0a2cb3061837ec5427a14f521aa5
[ "BSD-2-Clause" ]
null
null
null
snakemake/wrappers/.snakemake.fnd409gc.merge_bams_wrapper.py
saketkc/EE-546-project
fb7eacd90f6c0a2cb3061837ec5427a14f521aa5
[ "BSD-2-Clause" ]
null
null
null
######## Snakemake header ######## import sys; sys.path.append("/home/cmb-panasas2/skchoudh/software_frozen/anaconda27/envs/riboraptor/lib/python3.5/site-packages"); import pickle; snakemake = pickle.loads(b'\x80\x03csnakemake.script\nSnakemake\nq\x00)\x81q\x01}q\x02(X\x04\x00\x00\x00ruleq\x03X\n\x00\x00\x00merge_bams...
263.181818
4,897
0.804145
######## Snakemake header ######## import sys; sys.path.append("/home/cmb-panasas2/skchoudh/software_frozen/anaconda27/envs/riboraptor/lib/python3.5/site-packages"); import pickle; snakemake = pickle.loads(b'\x80\x03csnakemake.script\nSnakemake\nq\x00)\x81q\x01}q\x02(X\x04\x00\x00\x00ruleq\x03X\n\x00\x00\x00merge_bams...
0
0
0
07fafefc130f60166d8497137e9637c17b89f108
5,006
py
Python
docker/pfsd/pfsd_supervisor.py
qiuyuhang/PolarDB-FileSystem
a18067ef9294c2f509decd80b2b9231c9f950e21
[ "Apache-2.0" ]
35
2021-11-08T03:24:50.000Z
2022-03-24T12:39:12.000Z
docker/pfsd/pfsd_supervisor.py
qiuyuhang/PolarDB-FileSystem
a18067ef9294c2f509decd80b2b9231c9f950e21
[ "Apache-2.0" ]
2
2021-11-30T02:29:53.000Z
2022-03-17T06:57:53.000Z
docker/pfsd/pfsd_supervisor.py
qiuyuhang/PolarDB-FileSystem
a18067ef9294c2f509decd80b2b9231c9f950e21
[ "Apache-2.0" ]
18
2021-11-08T08:43:06.000Z
2022-02-28T09:38:09.000Z
# Copyright (c) 2017-2021, Alibaba Group Holding Limited # 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 ...
29.621302
134
0.651418
# Copyright (c) 2017-2021, Alibaba Group Holding Limited # 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 ...
2,967
0
274
be3e83b46f13f54349977477f2ab1e02cc027300
1,195
py
Python
fm_02_mnist.py
FMsunyh/mnist
3f120ae003e4dac35807162943985ffcaac6fbde
[ "Apache-2.0" ]
null
null
null
fm_02_mnist.py
FMsunyh/mnist
3f120ae003e4dac35807162943985ffcaac6fbde
[ "Apache-2.0" ]
null
null
null
fm_02_mnist.py
FMsunyh/mnist
3f120ae003e4dac35807162943985ffcaac6fbde
[ "Apache-2.0" ]
null
null
null
from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) print(mnist.train.images.shape, mnist.train.labels.shape) print(mnist.test.images.shape, mnist.test.labels.shape) print(mnist.validation.images.shape,mnist.validation.label...
31.447368
82
0.742259
from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) print(mnist.train.images.shape, mnist.train.labels.shape) print(mnist.test.images.shape, mnist.test.labels.shape) print(mnist.validation.images.shape,mnist.validation.label...
0
0
0
655fc83ccf76090c0908e7f46661cfb3037cc0bc
484
py
Python
impro/setup.py
super-resolution/Impro
3e410a4e8d9b306f0761708136e0fd03039380ce
[ "MIT" ]
2
2019-06-05T11:31:52.000Z
2019-06-05T11:32:09.000Z
impro/setup.py
super-resolution/Impro
3e410a4e8d9b306f0761708136e0fd03039380ce
[ "MIT" ]
null
null
null
impro/setup.py
super-resolution/Impro
3e410a4e8d9b306f0761708136e0fd03039380ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='impro', version='1.1', description='Image analysis package', author='Sebastian Reinhard', author_email='sebastian.reinhard@stud-mail.uni-wuerzburg.de', url='https://github.com/super-resolution', packages=...
34.571429
107
0.671488
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='impro', version='1.1', description='Image analysis package', author='Sebastian Reinhard', author_email='sebastian.reinhard@stud-mail.uni-wuerzburg.de', url='https://github.com/super-resolution', packages=...
0
0
0
d4cfd65a193acfd3cd6d1722ac6e39d7bb63c787
1,121
py
Python
test/test_chapters.py
peter88213/yWrestler
32a152e8b814983ecaef6e9861df1d6b7008568d
[ "MIT" ]
null
null
null
test/test_chapters.py
peter88213/yWrestler
32a152e8b814983ecaef6e9861df1d6b7008568d
[ "MIT" ]
null
null
null
test/test_chapters.py
peter88213/yWrestler
32a152e8b814983ecaef6e9861df1d6b7008568d
[ "MIT" ]
null
null
null
"""Integration tests for the pyWriter project. Test the conversion of the chapter descriptions. For further information see https://github.com/peter88213/PyWriter Published under the MIT License (https://opensource.org/licenses/mit-license.php) """ from pywriter.html.html_chapterdesc import HtmlChapterDesc fr...
27.341463
82
0.694915
"""Integration tests for the pyWriter project. Test the conversion of the chapter descriptions. For further information see https://github.com/peter88213/PyWriter Published under the MIT License (https://opensource.org/licenses/mit-license.php) """ from pywriter.html.html_chapterdesc import HtmlChapterDesc fr...
211
360
49
00fd3b6a91548932f71b3904b1dc1c6c07f77079
6,500
py
Python
libvvtest/argutil.py
rrdrake/vvtest
875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6
[ "Unlicense" ]
7
2021-03-26T21:33:09.000Z
2022-03-01T17:06:55.000Z
libvvtest/argutil.py
rrdrake/vvtest
875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6
[ "Unlicense" ]
null
null
null
libvvtest/argutil.py
rrdrake/vvtest
875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 National Technology & Engineering Solutions of Sandia, LLC # (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. # Government retains certain rights in this software. import sys, os import textwrap import re try: from argparse import ArgumentParser fr...
29.816514
76
0.539077
#!/usr/bin/env python # Copyright 2018 National Technology & Engineering Solutions of Sandia, LLC # (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. # Government retains certain rights in this software. import sys, os import textwrap import re try: from argparse import ArgumentParser fr...
0
2,491
108
68177aba1effc0e18a74a0efb4d3229b25fd24cf
3,263
py
Python
hmmlearn3.py
Niveditha-kumaran/Part-fo-speech-tagging-Viterbi-Algorithm
0fa782808f9a3305613dd2c89097c89e9ec52576
[ "MIT" ]
null
null
null
hmmlearn3.py
Niveditha-kumaran/Part-fo-speech-tagging-Viterbi-Algorithm
0fa782808f9a3305613dd2c89097c89e9ec52576
[ "MIT" ]
null
null
null
hmmlearn3.py
Niveditha-kumaran/Part-fo-speech-tagging-Viterbi-Algorithm
0fa782808f9a3305613dd2c89097c89e9ec52576
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 6 00:57:37 2019 @author: nov28 """ from __future__ import division import os import sys import numpy as np import glob import collections from collections import Counter, defaultdict import re import json import io import codecs if __name__=='__main_...
27.420168
81
0.524977
# -*- coding: utf-8 -*- """ Created on Wed Mar 6 00:57:37 2019 @author: nov28 """ from __future__ import division import os import sys import numpy as np import glob import collections from collections import Counter, defaultdict import re import json import io import codecs if __name__=='__main_...
0
0
0
8f3a9959aff25557068d26b12bbd8fc95f2f6b9e
3,146
py
Python
tests/evaluator/test_evaluator.py
Irlirion/ocp
6fb3e794eef31559db990300198eca20f41d8f37
[ "MIT", "BSD-3-Clause" ]
242
2020-10-14T11:10:43.000Z
2022-03-29T07:50:18.000Z
tests/evaluator/test_evaluator.py
Irlirion/ocp
6fb3e794eef31559db990300198eca20f41d8f37
[ "MIT", "BSD-3-Clause" ]
100
2020-10-13T23:27:04.000Z
2022-03-23T16:50:26.000Z
tests/evaluator/test_evaluator.py
Irlirion/ocp
6fb3e794eef31559db990300198eca20f41d8f37
[ "MIT", "BSD-3-Clause" ]
86
2020-10-15T05:56:28.000Z
2022-03-16T16:11:45.000Z
""" Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import numpy as np import pytest import torch from ocpmodels.modules.evaluator import ( Evaluator, cosine_similarity, magnitude_...
29.12963
72
0.635092
""" Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import numpy as np import pytest import torch from ocpmodels.modules.evaluator import ( Evaluator, cosine_similarity, magnitude_...
2,286
-7
286
7f68a24f1b97a4d3c69d1d3044cdd5299f1720df
1,976
py
Python
example.py
JoveIC/Grad-CAM
8cc26d51a82ca3384444fe44d3a4dd0555081e78
[ "MIT" ]
null
null
null
example.py
JoveIC/Grad-CAM
8cc26d51a82ca3384444fe44d3a4dd0555081e78
[ "MIT" ]
null
null
null
example.py
JoveIC/Grad-CAM
8cc26d51a82ca3384444fe44d3a4dd0555081e78
[ "MIT" ]
null
null
null
# Example import os import cv2 import pathlib import argparse from PIL import Image from torchvision import models from torchvision import transforms from torchvision.transforms import Resize, ToTensor, Normalize from gradcam import GradCam from misc import fuse_heatmap_image class VGGGradCam(GradCam): """ ...
32.933333
78
0.584008
# Example import os import cv2 import pathlib import argparse from PIL import Image from torchvision import models from torchvision import transforms from torchvision.transforms import Resize, ToTensor, Normalize from gradcam import GradCam from misc import fuse_heatmap_image class VGGGradCam(GradCam): """ ...
1,470
0
76
c156bebebed786c00c2de0d4bf9507e25726e7d3
1,890
py
Python
cflearn/misc/internal_/callbacks/models/clip_vqgan_aligner.py
carefree0910/carefree-learn
2043812afbe9c56f01ec1639961736313ee062ba
[ "MIT" ]
400
2020-07-05T18:55:49.000Z
2022-02-21T02:33:08.000Z
cflearn/misc/internal_/callbacks/models/clip_vqgan_aligner.py
carefree0910/carefree-learn
2043812afbe9c56f01ec1639961736313ee062ba
[ "MIT" ]
82
2020-08-01T13:29:38.000Z
2021-10-09T07:13:44.000Z
cflearn/misc/internal_/callbacks/models/clip_vqgan_aligner.py
carefree0910/carefree-learn
2043812afbe9c56f01ec1639961736313ee062ba
[ "MIT" ]
34
2020-07-05T21:15:34.000Z
2021-12-20T08:45:17.000Z
import os import cv2 import torch from PIL import Image from tqdm import tqdm from .....trainer import Trainer from .....trainer import TrainerCallback from .....misc.toolkit import eval_context @TrainerCallback.register("clip_vqgan_aligner") __all__ = [ "CLIPWithVQGANAlignerCallback", ]
34.363636
87
0.655556
import os import cv2 import torch from PIL import Image from tqdm import tqdm from .....trainer import Trainer from .....trainer import TrainerCallback from .....misc.toolkit import eval_context @TrainerCallback.register("clip_vqgan_aligner") class CLIPWithVQGANAlignerCallback(TrainerCallback): def __init__(sel...
1,431
31
129
5bcdcccd5ca168cddaee8a38b198c5b298f9aa8f
17,010
py
Python
gcloud/datastore/connection.py
olala7846/gcloud-python
f33e557f94f304b38049b5f9b5082ed58dcf295a
[ "Apache-2.0" ]
null
null
null
gcloud/datastore/connection.py
olala7846/gcloud-python
f33e557f94f304b38049b5f9b5082ed58dcf295a
[ "Apache-2.0" ]
null
null
null
gcloud/datastore/connection.py
olala7846/gcloud-python
f33e557f94f304b38049b5f9b5082ed58dcf295a
[ "Apache-2.0" ]
null
null
null
"""Connections to gcloud datastore API servers.""" from gcloud import connection from gcloud.datastore import datastore_v1_pb2 as datastore_pb from gcloud.datastore import helpers from gcloud.datastore.dataset import Dataset class Connection(connection.Connection): """A connection to the Google Cloud Datastore v...
37.46696
79
0.6301
"""Connections to gcloud datastore API servers.""" from gcloud import connection from gcloud.datastore import datastore_v1_pb2 as datastore_pb from gcloud.datastore import helpers from gcloud.datastore.dataset import Dataset class Connection(connection.Connection): """A connection to the Google Cloud Datastore v...
123
0
27
e51e50bb520aff4eb2e80035b7c0fb266c792aaf
662
py
Python
shop/models.py
astro813/Shopping_Website
7429a378297a6e201abfeb29d8e29bd6dd572dba
[ "MIT" ]
null
null
null
shop/models.py
astro813/Shopping_Website
7429a378297a6e201abfeb29d8e29bd6dd572dba
[ "MIT" ]
null
null
null
shop/models.py
astro813/Shopping_Website
7429a378297a6e201abfeb29d8e29bd6dd572dba
[ "MIT" ]
null
null
null
from django.db import models
33.1
62
0.726586
from django.db import models class Cloth(models.Model): type = models.CharField(max_length=250) brand = models.CharField(max_length=250) material = models.CharField(max_length=250) price = models.CharField(max_length=100) def __str__(self): return self.brand + '-' + self.type class Color(...
69
519
46
9e89e744906447fc7a7a5bd2005d254e6a65b14b
3,225
py
Python
shareka/shareka_v3.py
vaaaaanquish/dajare-detector
e8f2d6c861dc0e03b6bc38ba64463bf95376f949
[ "MIT" ]
14
2020-12-11T01:42:53.000Z
2021-06-22T06:14:03.000Z
shareka/shareka_v3.py
vaaaaanquish/dajare-detector
e8f2d6c861dc0e03b6bc38ba64463bf95376f949
[ "MIT" ]
null
null
null
shareka/shareka_v3.py
vaaaaanquish/dajare-detector
e8f2d6c861dc0e03b6bc38ba64463bf95376f949
[ "MIT" ]
null
null
null
import MeCab from collections import Counter import re import alkana if __name__ == '__main__': Shareka('これはテストです').dajarewake()
37.941176
143
0.537054
import MeCab from collections import Counter import re import alkana class Shareka: alpha_regex = re.compile(r'[a-zA-Z]+') def __init__(self, sentence, n=3): self.replace_words = [ ['。', ''], ['、', ''], [', ', ''], ['.', ''], ['!', ''], ['!', ''], ['・', ''], ['「', ''], ['」', '...
2,457
737
23
9fce755d09a68cda75a58c9a852b2303a6f490db
1,186
py
Python
model/medical_imaging_test_result.py
IDRISSOUM/hospital_management
56a768f29269a77bc890d40479a8aacb90867189
[ "Unlicense" ]
null
null
null
model/medical_imaging_test_result.py
IDRISSOUM/hospital_management
56a768f29269a77bc890d40479a8aacb90867189
[ "Unlicense" ]
null
null
null
model/medical_imaging_test_result.py
IDRISSOUM/hospital_management
56a768f29269a77bc890d40479a8aacb90867189
[ "Unlicense" ]
null
null
null
#-*- coding: utf-8 -*- #Part of BrowseInfo. See LICENSE file for full copyright and licensing details. from odoo import models, fields, api, _ from datetime import date,datetime
42.357143
101
0.737774
#-*- coding: utf-8 -*- #Part of BrowseInfo. See LICENSE file for full copyright and licensing details. from odoo import models, fields, api, _ from datetime import date,datetime class medical_imaging_test_result(models.Model): _name = 'medical.imaging.test.result' name = fields.Char(string="Name",default='IMGR') ...
235
748
23
d5683beedf534c565fc39f4bcaf9aaf81bd15c9e
3,951
py
Python
indra/tests/test_bel.py
RohitChattopadhyay/indra
a688e8cd46e876a299824c60cf4f6af8618f03da
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_bel.py
RohitChattopadhyay/indra
a688e8cd46e876a299824c60cf4f6af8618f03da
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_bel.py
RohitChattopadhyay/indra
a688e8cd46e876a299824c60cf4f6af8618f03da
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str import os from indra.util import unicode_strs from indra.sources import bel from indra.sources.bel.rdf_processor import BelRdfProcessor from indra.statements import RegulateAmount, BioContext, RefContext from nose.pl...
36.925234
77
0.643635
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str import os from indra.util import unicode_strs from indra.sources import bel from indra.sources.bel.rdf_processor import BelRdfProcessor from indra.statements import RegulateAmount, BioContext, RefContext from nose.pl...
2,968
0
159
f817cf1b4d74655e70d67b2c217add407804d3b6
1,219
py
Python
thermite/__main__.py
A-UNDERSCORE-D/thermite
a8fa11e800059e57b9f4a35e2fd06cccfacaa855
[ "MIT" ]
4
2021-12-17T20:17:27.000Z
2021-12-24T00:29:23.000Z
thermite/__main__.py
A-UNDERSCORE-D/thermite
a8fa11e800059e57b9f4a35e2fd06cccfacaa855
[ "MIT" ]
null
null
null
thermite/__main__.py
A-UNDERSCORE-D/thermite
a8fa11e800059e57b9f4a35e2fd06cccfacaa855
[ "MIT" ]
1
2022-01-27T19:34:44.000Z
2022-01-27T19:34:44.000Z
import asyncio from argparse import ArgumentParser from ircrobots import ConnectionParams from ircrobots.security import TLSVerifySHA512 from . import Bot from .config import Config, load as config_load from .database import Database if __name__ == "__main__": parser = ArgumentParser() parser.add_argument(...
28.348837
82
0.722724
import asyncio from argparse import ArgumentParser from ircrobots import ConnectionParams from ircrobots.security import TLSVerifySHA512 from . import Bot from .config import Config, load as config_load from .database import Database async def main(config: Config): bot = Bot( config, await Datab...
766
0
23
8a6e83686a2219fe5e7410af682fc0185f9c32a6
3,362
py
Python
ngraph/frontends/neon/data/cifar10.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
ngraph/frontends/neon/data/cifar10.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
ngraph/frontends/neon/data/cifar10.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
39.552941
93
0.537775
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
165
0
27
5f3fa1cd21ad24e169d09c3f8bd4f599c0444f36
1,308
py
Python
xs/optim/__init__.py
eLeVeNnN/xshinnosuke
69da91e0ea5042437edfc31c0e6ff9ef394c6cc9
[ "MIT" ]
290
2020-07-06T02:13:12.000Z
2021-01-04T14:23:39.000Z
xs/optim/__init__.py
E1eveNn/xshinnosuke
69da91e0ea5042437edfc31c0e6ff9ef394c6cc9
[ "MIT" ]
1
2020-12-03T11:11:48.000Z
2020-12-03T11:11:48.000Z
xs/optim/__init__.py
E1eveNn/xshinnosuke
69da91e0ea5042437edfc31c0e6ff9ef394c6cc9
[ "MIT" ]
49
2020-07-16T00:27:47.000Z
2020-11-26T03:03:14.000Z
from .adam import Adam from .sgd import SGD, Momentum from .adagrad import AdaGrad from .adadelta import AdaDelta from .rmsprop import RMSprop from optim.optimizer import Optimizer import copy
42.193548
84
0.688073
from .adam import Adam from .sgd import SGD, Momentum from .adagrad import AdaGrad from .adadelta import AdaDelta from .rmsprop import RMSprop from optim.optimizer import Optimizer import copy def get_optimizer(optimizer, **kwargs): parameters = kwargs.pop('parameters', None) lr = kwargs.pop('lr', 0.001) ...
1,092
0
23
a404e9b32ac93d398866016f3cdaa3945bd958aa
1,530
py
Python
larning/metaclass_test.py
tasigabi97/larning
6489bb47c9d6bc08e58349d4cff621d108a3cb0a
[ "MIT" ]
null
null
null
larning/metaclass_test.py
tasigabi97/larning
6489bb47c9d6bc08e58349d4cff621d108a3cb0a
[ "MIT" ]
null
null
null
larning/metaclass_test.py
tasigabi97/larning
6489bb47c9d6bc08e58349d4cff621d108a3cb0a
[ "MIT" ]
null
null
null
from larning.metaclass import CollectorType from larning.testing import name @name(CollectorType.__init__, 1, globals()) @name(CollectorType.__init__, 2, globals()) @name(CollectorType.__init__, 3, globals()) @name(CollectorType.__init__, 4, globals()) @name(CollectorType.__init__, 5, globals()) @name(Colle...
17.790698
43
0.537255
from larning.metaclass import CollectorType from larning.testing import name @name(CollectorType.__init__, 1, globals()) def _(): class A(metaclass=CollectorType): A = 1 def __init__(self, a, k=None): self.a, self.k = a, k assert A._objects == set() assert A.A == 1 a = A(...
1,048
0
132
6f9578461756921a4b777b81ac325884ecd7fda3
13,933
py
Python
Detection_and_control/ASUM-GUI-with-detection-and-control/main-asum-gui-final.py
kebijuelun/ASUM
125a0d5db76e6adce360ee897f2a3c3445f7d138
[ "MIT" ]
2
2021-12-12T09:35:43.000Z
2021-12-21T15:38:02.000Z
Detection_and_control/ASUM-GUI-with-detection-and-control/main-asum-gui-final.py
kebijuelun/ASUM
125a0d5db76e6adce360ee897f2a3c3445f7d138
[ "MIT" ]
null
null
null
Detection_and_control/ASUM-GUI-with-detection-and-control/main-asum-gui-final.py
kebijuelun/ASUM
125a0d5db76e6adce360ee897f2a3c3445f7d138
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QApplication, QMainWindow import os current_dir = os.path.dirname(os.path.abspath(__file__)) os.chdir(current_dir) from PyQt5.QtWidgets import QMessageBox from PyQt5.QtWidgets import QWidget from PyQt5.QtGui import QImage from PyQt5.QtGui import QPixmap from PyQt5.QtCore import ...
38.38292
111
0.533769
import sys from PyQt5.QtWidgets import QApplication, QMainWindow import os current_dir = os.path.dirname(os.path.abspath(__file__)) os.chdir(current_dir) from PyQt5.QtWidgets import QMessageBox from PyQt5.QtWidgets import QWidget from PyQt5.QtGui import QImage from PyQt5.QtGui import QPixmap from PyQt5.QtCore import ...
12,493
26
237
82ec122055428c351de973ef8a0d5cf1318926a0
13,364
py
Python
habitat/core/dataset.py
Sapio-S/habitat-lab
47985177d6e6932db98ee6698371253182cf96fb
[ "MIT" ]
null
null
null
habitat/core/dataset.py
Sapio-S/habitat-lab
47985177d6e6932db98ee6698371253182cf96fb
[ "MIT" ]
null
null
null
habitat/core/dataset.py
Sapio-S/habitat-lab
47985177d6e6932db98ee6698371253182cf96fb
[ "MIT" ]
2
2021-08-20T13:39:53.000Z
2022-02-12T07:47:34.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. r"""Implements dataset functionality to be used ``habitat.EmbodiedTask``. ``habitat.core.dataset`` abstracts over a colle...
36.917127
79
0.616956
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. r"""Implements dataset functionality to be used ``habitat.EmbodiedTask``. ``habitat.core.dataset`` abstracts over a colle...
226
0
54
5ab12c0a72c677c4b5efc09602221ebb4cccef95
499
py
Python
config/settings.py
mofilamamra/APP-WILAYA
43aad0e98ad3934d0e1d94b52eece2574cb3c97e
[ "MIT" ]
null
null
null
config/settings.py
mofilamamra/APP-WILAYA
43aad0e98ad3934d0e1d94b52eece2574cb3c97e
[ "MIT" ]
null
null
null
config/settings.py
mofilamamra/APP-WILAYA
43aad0e98ad3934d0e1d94b52eece2574cb3c97e
[ "MIT" ]
null
null
null
import os class Config: """ basic configurations. """ DEBUG = False PORT = os.environ.get('PORT') or 5000 ENV = os.environ.get('FLASK_ENV') SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI') SQLALCHEMY_TRACK_MODIFICATIONS = False SECRET_KEY = "your-secret-key" class develo...
24.95
71
0.683367
import os class Config: """ basic configurations. """ DEBUG = False PORT = os.environ.get('PORT') or 5000 ENV = os.environ.get('FLASK_ENV') SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI') SQLALCHEMY_TRACK_MODIFICATIONS = False SECRET_KEY = "your-secret-key" class develo...
0
0
0
fb4e0cdc9b4c23f2a6abc443d03a54e682193ea6
7,789
py
Python
services/initializer.py
KlwntSingh/encrypt-upload-python
79e4b345ebbfb72ee5ce54b959336e74a38b202d
[ "MIT" ]
null
null
null
services/initializer.py
KlwntSingh/encrypt-upload-python
79e4b345ebbfb72ee5ce54b959336e74a38b202d
[ "MIT" ]
null
null
null
services/initializer.py
KlwntSingh/encrypt-upload-python
79e4b345ebbfb72ee5ce54b959336e74a38b202d
[ "MIT" ]
null
null
null
import sys import os import shutil import getpass from random import randint import Utils from decrypter import decrypt_file as df from encrypter import encrypt_file as ef import config_service as config import compressor
41.876344
177
0.708563
import sys import os import shutil import getpass from random import randint import Utils from decrypter import decrypt_file as df from encrypter import encrypt_file as ef import config_service as config import compressor class App(): def __init__(self, base_path): self.command_without_eu_dir = ['init', 'u...
5,493
2,053
22
1f754bd4cbd150bcb7029a2d281cff2f448adf3b
1,419
py
Python
boiler/controller.py
rudineirk/faculdade_boiler
9e796d8c2603f37799fc02dc7bd01827b28164df
[ "MIT" ]
null
null
null
boiler/controller.py
rudineirk/faculdade_boiler
9e796d8c2603f37799fc02dc7bd01827b28164df
[ "MIT" ]
null
null
null
boiler/controller.py
rudineirk/faculdade_boiler
9e796d8c2603f37799fc02dc7bd01827b28164df
[ "MIT" ]
null
null
null
from __future__ import print_function __all__ = [ 'WaterColumnController', 'WaterTempController', ] KC_LEVEL = 1200.0 HREF = 1.5 WATER_CAPACITANCE = 50000000.0 KC_TEMP = 0.15 * WATER_CAPACITANCE TREF = 50.0
21.830769
52
0.604651
from __future__ import print_function __all__ = [ 'WaterColumnController', 'WaterTempController', ] KC_LEVEL = 1200.0 HREF = 1.5 WATER_CAPACITANCE = 50000000.0 KC_TEMP = 0.15 * WATER_CAPACITANCE TREF = 50.0 class BaseController(object): def __init__(self, conn, queue, kc, ref): self.conn = con...
861
52
285
6bb393a71c7da235f2aedb3776c78c9a3065fd79
877
py
Python
sort/binary_tree_sort.py
jayzane/leetcodePy
27fbad4a4a94a60bed6cfa89cbef6ce17fa5e7d5
[ "Apache-2.0" ]
null
null
null
sort/binary_tree_sort.py
jayzane/leetcodePy
27fbad4a4a94a60bed6cfa89cbef6ce17fa5e7d5
[ "Apache-2.0" ]
null
null
null
sort/binary_tree_sort.py
jayzane/leetcodePy
27fbad4a4a94a60bed6cfa89cbef6ce17fa5e7d5
[ "Apache-2.0" ]
null
null
null
""" 二叉树排序 2020-12-09: 16:12.99;05:30.08;02:39.92; 2020-12-10: 06:03.32;02:41.62; """ from sort import validatetool if __name__ == '__main__': validatetool.validate(sort)
19.488889
50
0.403649
""" 二叉树排序 2020-12-09: 16:12.99;05:30.08;02:39.92; 2020-12-10: 06:03.32;02:41.62; """ from sort import validatetool def sort(data): class N: def __init__(self, v): self.v, self.l, self.r = v, None, None def insert(n, v): if n: if v > n.v: if n.r: ...
677
0
23
c1dca944ceaf373dcd233952dc978d17172d6168
1,863
py
Python
home/migrations/0006_auto_20170118_1736.py
registerguard/celebrate
2fb5c0fb495160f72b3841172b03ae8500ba4ef4
[ "MIT" ]
null
null
null
home/migrations/0006_auto_20170118_1736.py
registerguard/celebrate
2fb5c0fb495160f72b3841172b03ae8500ba4ef4
[ "MIT" ]
1
2017-02-16T21:53:38.000Z
2017-02-16T21:53:38.000Z
home/migrations/0006_auto_20170118_1736.py
registerguard/celebrate
2fb5c0fb495160f72b3841172b03ae8500ba4ef4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-19 01:36 from __future__ import unicode_literals from django.db import migrations import home.models import wagtail.wagtailcore.blocks import wagtail.wagtailcore.fields import wagtail.wagtaildocs.blocks import wagtail.wagtailimages.blocks
62.1
1,188
0.721417
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-19 01:36 from __future__ import unicode_literals from django.db import migrations import home.models import wagtail.wagtailcore.blocks import wagtail.wagtailcore.fields import wagtail.wagtaildocs.blocks import wagtail.wagtailimages.blocks class Migratio...
0
1,535
23
f8ce76139da6908e4ade21174183f6cc82802ea1
4,355
py
Python
algro/sort.py
soongxin/lint
2ca5c2d53500a585f839bd4a492ba0c5cf20fd91
[ "MIT" ]
null
null
null
algro/sort.py
soongxin/lint
2ca5c2d53500a585f839bd4a492ba0c5cf20fd91
[ "MIT" ]
null
null
null
algro/sort.py
soongxin/lint
2ca5c2d53500a585f839bd4a492ba0c5cf20fd91
[ "MIT" ]
1
2018-06-25T05:05:20.000Z
2018-06-25T05:05:20.000Z
from random import randint from copy import deepcopy TEST_ARR_LENGTH = 200 class Sort(object): """Sort class contains some sort methods""" def insert_sort(self): """ insert sort :param arr: array to sort :return: sorted array """ # outer loop: ...
29.033333
82
0.505855
from random import randint from copy import deepcopy TEST_ARR_LENGTH = 200 class Sort(object): """Sort class contains some sort methods""" def __init__(self, arr): self.arr = deepcopy(arr) def fast_sort(self, arr): # 在类表中找一个基点 mid_index = len(arr) // 2 # 将列表中小于基准点的项放到基准左侧...
514
0
107
1241a3edfd5dcbd491b5e955c8d6151e5bd6093c
984
py
Python
examples/example.py
hellais/txsocksx
a9003c2d50036d6dd11688047f1595e143eefeb9
[ "BSD-2-Clause" ]
1
2015-03-11T13:11:28.000Z
2015-03-11T13:11:28.000Z
examples/example.py
hellais/txsocksx
a9003c2d50036d6dd11688047f1595e143eefeb9
[ "BSD-2-Clause" ]
null
null
null
examples/example.py
hellais/txsocksx
a9003c2d50036d6dd11688047f1595e143eefeb9
[ "BSD-2-Clause" ]
null
null
null
from twisted.internet import reactor from twisted.internet.protocol import Protocol, Factory from twisted.internet.endpoints import TCP4ClientEndpoint from txsocksx.client import SOCKS5ClientEndpoint socks_addr = '127.0.0.1' socks_port = 9050 TCPPoint = TCP4ClientEndpoint(reactor, socks_addr, socks_port) dst_addr = ...
24
62
0.723577
from twisted.internet import reactor from twisted.internet.protocol import Protocol, Factory from twisted.internet.endpoints import TCP4ClientEndpoint from txsocksx.client import SOCKS5ClientEndpoint class GETSlash(Protocol): def connectionMade(self): self.transport.write("GET / HTTP/1.1\n\r\n\r") de...
292
14
174
6c2904f835fe97cf77cef83b93be9403f4723caa
4,124
py
Python
tests/old/motions/test_models.py
emanuelschuetze/OpenSlides
dfab9730dcd39b556ec46cc27186a47e75ad014e
[ "MIT" ]
null
null
null
tests/old/motions/test_models.py
emanuelschuetze/OpenSlides
dfab9730dcd39b556ec46cc27186a47e75ad014e
[ "MIT" ]
null
null
null
tests/old/motions/test_models.py
emanuelschuetze/OpenSlides
dfab9730dcd39b556ec46cc27186a47e75ad014e
[ "MIT" ]
null
null
null
from openslides.core.config import config from openslides.motions.exceptions import WorkflowError from openslides.motions.models import Motion, State, Workflow from openslides.users.models import User from openslides.utils.test import TestCase
36.175439
80
0.670466
from openslides.core.config import config from openslides.motions.exceptions import WorkflowError from openslides.motions.models import Motion, State, Workflow from openslides.users.models import User from openslides.utils.test import TestCase class ModelTest(TestCase): def setUp(self): self.motion = Moti...
2,040
1,816
23
9d251f9e20bb3a8b1e5262bbec82f69b9b0ec5eb
833
py
Python
Tree/863.Binary Tree Path Sum IV/Solution_2darray.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
12
2019-05-04T04:21:27.000Z
2022-03-02T07:06:57.000Z
Tree/863.Binary Tree Path Sum IV/Solution_2darray.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
1
2019-07-24T18:43:53.000Z
2019-07-24T18:43:53.000Z
Tree/863.Binary Tree Path Sum IV/Solution_2darray.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
10
2019-07-01T04:03:04.000Z
2022-03-09T03:57:37.000Z
class Solution: """ @param nums: a list of integers @return: return an integer """
29.75
86
0.420168
class Solution: """ @param nums: a list of integers @return: return an integer """ def pathSum(self, nums): n, siz = len(nums), 1 self.ans, self.mx = 0, nums[n - 1] // 100 for i in range(self.mx - 1): siz *= 2 g = [[-1 for j in range(siz)]for i in range(s...
680
0
54
984e8d64fd14db279ed5d1abd6b514fa9c378a15
2,363
py
Python
Machines/INTENSE/exploit/pwn_server.py
limitedeternity/HackTheBox
ed8d6fc7ff7b880b1961098bedca1fc5fdf7fd09
[ "MIT" ]
null
null
null
Machines/INTENSE/exploit/pwn_server.py
limitedeternity/HackTheBox
ed8d6fc7ff7b880b1961098bedca1fc5fdf7fd09
[ "MIT" ]
null
null
null
Machines/INTENSE/exploit/pwn_server.py
limitedeternity/HackTheBox
ed8d6fc7ff7b880b1961098bedca1fc5fdf7fd09
[ "MIT" ]
3
2021-12-29T10:39:01.000Z
2022-03-29T22:56:40.000Z
#!/usr/bin/env python from pwn import * context(os='linux', arch='amd64') host = '127.0.0.1' port = 9999 fd = 4 (rbp, canary, rip) = stage1() libc_write_leak = stage2(rbp, canary, rip) stage3(canary, rbp, libc_write_leak)
23.868687
87
0.610664
#!/usr/bin/env python from pwn import * context(os='linux', arch='amd64') host = '127.0.0.1' port = 9999 fd = 4 def write_note(io, note, length=None): if length is None: length = len(note) io.send(p8(1)) io.send(p8(length)) io.send(note) def copy_note(io, offset, copySize): io.send(p8(2...
1,954
0
184
827fc4d977df9e21e63919e7150ab72383a60c59
3,060
py
Python
generate.py
Vergangenheit/Conv-AI
32156185cf1e32a32238cb0b6522526147a42748
[ "MIT" ]
null
null
null
generate.py
Vergangenheit/Conv-AI
32156185cf1e32a32238cb0b6522526147a42748
[ "MIT" ]
null
null
null
generate.py
Vergangenheit/Conv-AI
32156185cf1e32a32238cb0b6522526147a42748
[ "MIT" ]
1
2021-03-12T23:54:43.000Z
2021-03-12T23:54:43.000Z
from model.interact import sample_sequence, get_dataset import torch import config import random from database import database
33.626374
97
0.648693
from model.interact import sample_sequence, get_dataset import torch import config import random from database import database def sample_personality(tokenizer, args): # generate a personality to be uploaded on the home page global personality dataset = get_dataset(tokenizer, args.dataset_path, args.datas...
2,837
0
92
6d011388353b801d3f77dd708929c17b8c137d60
4,240
py
Python
musestudio/import_raw_files.py
miguelascifo/MuseStudio
10e4beb8a6e478fdc66bc55b0ede9c082ec88025
[ "MIT" ]
1
2021-11-16T13:42:29.000Z
2021-11-16T13:42:29.000Z
musestudio/import_raw_files.py
miguelascifo/MuseStudio
10e4beb8a6e478fdc66bc55b0ede9c082ec88025
[ "MIT" ]
null
null
null
musestudio/import_raw_files.py
miguelascifo/MuseStudio
10e4beb8a6e478fdc66bc55b0ede9c082ec88025
[ "MIT" ]
1
2021-11-16T13:42:33.000Z
2021-11-16T13:42:33.000Z
import ntpath from glob import glob from platform import system from pyxdf import load_xdf def read_raw_xdf(filename = None): '''Import a single XDF file format that contains one recording. Args: filename : string full path to a single recording Returns: Four arrays containing ...
33.92
105
0.617689
import ntpath from glob import glob from platform import system from pyxdf import load_xdf def read_raw_xdf(filename = None): '''Import a single XDF file format that contains one recording. Args: filename : string full path to a single recording Returns: Four arrays containing ...
0
0
0
a029da0a40143c5f2ed1e1f9e8a617e16ea53e55
5,989
py
Python
planar_mpc/utils.py
enhatem/quadrotor_mpc_acados
9ca50ecc0a852ba5f9464df0ccd5d40e3ebfc295
[ "Apache-2.0" ]
null
null
null
planar_mpc/utils.py
enhatem/quadrotor_mpc_acados
9ca50ecc0a852ba5f9464df0ccd5d40e3ebfc295
[ "Apache-2.0" ]
null
null
null
planar_mpc/utils.py
enhatem/quadrotor_mpc_acados
9ca50ecc0a852ba5f9464df0ccd5d40e3ebfc295
[ "Apache-2.0" ]
1
2021-12-29T03:37:01.000Z
2021-12-29T03:37:01.000Z
import numpy as np import pyquaternion import casadi as cs import pandas as pd from sklearn.metrics import mean_squared_error def unit_quat(q): """ Normalizes a quaternion to be unit modulus. :param q: 4-dimensional numpy array or CasADi object :return: the unit quaternion in the same data format as ...
35.43787
135
0.599265
import numpy as np import pyquaternion import casadi as cs import pandas as pd from sklearn.metrics import mean_squared_error def quaternion_to_euler(q): q = pyquaternion.Quaternion(w=q[0], x=q[1], y=q[2], z=q[3]) yaw, pitch, roll = q.yaw_pitch_roll return [roll, pitch, yaw] def euler_to_quaternion(roll,...
5,159
0
253
555bbf4ca0ba587296410f2d28977d419647e1f4
362
py
Python
zlzzlzz2l/0222/1676.py
Kwak-JunYoung/154Algoritm-5weeks
fa18ae5f68a1ee722a30a05309214247f7fbfda4
[ "MIT" ]
3
2022-01-24T03:06:32.000Z
2022-01-30T08:43:58.000Z
zlzzlzz2l/0222/1676.py
Kwak-JunYoung/154Algoritm-5weeks
fa18ae5f68a1ee722a30a05309214247f7fbfda4
[ "MIT" ]
null
null
null
zlzzlzz2l/0222/1676.py
Kwak-JunYoung/154Algoritm-5weeks
fa18ae5f68a1ee722a30a05309214247f7fbfda4
[ "MIT" ]
2
2022-01-24T02:27:40.000Z
2022-01-30T08:57:03.000Z
N = int(input()) result = 1 cnt = 0 total = factorial(result, N) for i in range(len(total)-1, 0, -1): if total[i] == '0': cnt += 1 if cnt > 0: if total[i] != '0': break print(cnt)
18.1
39
0.508287
def factorial(result, num): if num == 0: return str(result) else: result *= num return factorial(result, num-1) N = int(input()) result = 1 cnt = 0 total = factorial(result, N) for i in range(len(total)-1, 0, -1): if total[i] == '0': cnt += 1 if cnt > 0: if tota...
122
0
22
badffb23de9c721cafd42980c201bf7beb8cb56d
1,166
py
Python
sheslcrypto/LFSR/MatrixCrackLfsr.py
shesl-meow/shesl-crypto
d6caf4fe13a15fa6700c1fef5667816f9d9a03d6
[ "Apache-2.0" ]
2
2019-11-30T17:29:11.000Z
2019-12-12T15:42:01.000Z
sheslcrypto/LFSR/MatrixCrackLfsr.py
shesl-meow/shesl-crypto
d6caf4fe13a15fa6700c1fef5667816f9d9a03d6
[ "Apache-2.0" ]
null
null
null
sheslcrypto/LFSR/MatrixCrackLfsr.py
shesl-meow/shesl-crypto
d6caf4fe13a15fa6700c1fef5667816f9d9a03d6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 #coding=utf-8 from sage.all import * class MatrixCrackLfsr: """ 通过矩阵乘积的方式,求解 lfsr 的转移矩阵 :param seq: 已经捕获的比特流序列,一个 0,1 数字构成的列表 :param period: 用户可以指定序列的周期,如果周期不对,则会报出 Assert 错误 :return 序列对应的状态转移矩阵 """ if __name__ == "__main__": CL = MatrixCrackLfsr([1, 0, 1, 0, 0, ...
29.897436
90
0.572041
#!/usr/bin/env python2 #coding=utf-8 from sage.all import * class MatrixCrackLfsr: """ 通过矩阵乘积的方式,求解 lfsr 的转移矩阵 :param seq: 已经捕获的比特流序列,一个 0,1 数字构成的列表 :param period: 用户可以指定序列的周期,如果周期不对,则会报出 Assert 错误 :return 序列对应的状态转移矩阵 """ def __init__(self, seq, period=None): self.period = period...
752
0
53
ad34d1ecdd1fe6d26dab0dc79ed529d9275392cf
6,730
py
Python
intensivos/models.py
jonlatorre/MatriculaEIDE
81508dc2aaf7276d781ce6787affea6273f4fd49
[ "MIT" ]
null
null
null
intensivos/models.py
jonlatorre/MatriculaEIDE
81508dc2aaf7276d781ce6787affea6273f4fd49
[ "MIT" ]
3
2020-02-10T22:34:11.000Z
2021-06-10T21:04:34.000Z
intensivos/models.py
jonlatorre/MatriculaEIDE
81508dc2aaf7276d781ce6787affea6273f4fd49
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from django.utils.translation import gettext_lazy as _ import datetime from django.conf import settings #Para la autogneración de passwd from random import choice from string import letters #Para el envio del mail de confirmacion from django.core.mail import EmailM...
34.870466
239
0.661367
# -*- coding: utf-8 -*- from django.db import models from django.utils.translation import gettext_lazy as _ import datetime from django.conf import settings #Para la autogneración de passwd from random import choice from string import letters #Para el envio del mail de confirmacion from django.core.mail import EmailM...
2,886
2,346
69
2d18545af1774b05b1011329eccd0531e9261d66
9,852
py
Python
lib_trainer/trainer_file_input.py
lakiw/improv
232712e3d72ecc689741bce9a2c366a9f95096dc
[ "MIT" ]
1
2021-06-22T15:30:01.000Z
2021-06-22T15:30:01.000Z
lib_trainer/trainer_file_input.py
lakiw/improv
232712e3d72ecc689741bce9a2c366a9f95096dc
[ "MIT" ]
null
null
null
lib_trainer/trainer_file_input.py
lakiw/improv
232712e3d72ecc689741bce9a2c366a9f95096dc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Contains all the file reading logic for the trainer """ import codecs def get_confirmation(warningtext): """ Prints a warning message and asks for user confirmation Return Values: True: User selected Yes False: User selected No ""...
33.624573
96
0.572574
#!/usr/bin/env python3 """ Contains all the file reading logic for the trainer """ import codecs def get_confirmation(warningtext): """ Prints a warning message and asks for user confirmation Return Values: True: User selected Yes False: User selected No ""...
0
0
0
c5cd945f8616482f777dfdad84cea742349d8468
2,735
py
Python
dashboard_viewer/uploader/migrations/0011_country_alpha2.py
EHDEN/NetworkDashboards
8f67debe0e62606c1067eea8f27f2935242c62b4
[ "MIT" ]
4
2021-05-24T15:12:44.000Z
2022-03-13T11:51:36.000Z
dashboard_viewer/uploader/migrations/0011_country_alpha2.py
EHDEN/NetworkDashboards
8f67debe0e62606c1067eea8f27f2935242c62b4
[ "MIT" ]
111
2020-07-27T14:48:31.000Z
2022-01-06T17:40:11.000Z
dashboard_viewer/uploader/migrations/0011_country_alpha2.py
EHDEN/NetworkDashboards
8f67debe0e62606c1067eea8f27f2935242c62b4
[ "MIT" ]
null
null
null
# Generated by Django 2.2.17 on 2021-04-20 21:52 import json from os import path from django.conf import settings from django.db import migrations, models
34.1875
100
0.610603
# Generated by Django 2.2.17 on 2021-04-20 21:52 import json from os import path from django.conf import settings from django.db import migrations, models def fill_apha2(apps, schema_editor): changes = { "Aland Islands": "Åland Islands", "Bolivia (Plurinational State of)": "Bolivia, Plurinationa...
1,773
758
46
87692db4913a1faaedab0fb86d31af831a1e3cf1
1,121
py
Python
meeting/api.py
kiko0217/frappe-app-1
b2f354803aeac679c6dddc54b8fdba9ccc3b8868
[ "MIT" ]
null
null
null
meeting/api.py
kiko0217/frappe-app-1
b2f354803aeac679c6dddc54b8fdba9ccc3b8868
[ "MIT" ]
null
null
null
meeting/api.py
kiko0217/frappe-app-1
b2f354803aeac679c6dddc54b8fdba9ccc3b8868
[ "MIT" ]
null
null
null
import frappe from frappe import _ from frappe.utils.data import add_days, nowdate @frappe.whitelist() def make_orientation_meeting(doc, method): """Create Orintate""" meeting = frappe.get_doc({ "doctype": "Meeting", "title": "Orientation for {0}".format(doc.first_name), "date": add_d...
28.74359
65
0.611954
import frappe from frappe import _ from frappe.utils.data import add_days, nowdate @frappe.whitelist() def send_invitation_emails(meeting): meeting = frappe.get_doc("Meeting", meeting) meeting.check_permission("email") if meeting.status == "Planned": # frappe.sendmail( # recipients=[d....
658
0
22
7269b8b8b8c449946a7c9a3e7aadecf5dbc89cd8
6,453
py
Python
rl_sandbox/algorithms/sac_x/schedulers.py
chanb/rl_sandbox_public
e55f954a29880f83a5b0c3358badda4d900f1564
[ "MIT" ]
14
2020-11-09T22:05:37.000Z
2022-02-11T12:41:33.000Z
rl_sandbox/algorithms/sac_x/schedulers.py
chanb/rl_sandbox_public
e55f954a29880f83a5b0c3358badda4d900f1564
[ "MIT" ]
null
null
null
rl_sandbox/algorithms/sac_x/schedulers.py
chanb/rl_sandbox_public
e55f954a29880f83a5b0c3358badda4d900f1564
[ "MIT" ]
null
null
null
import copy import numpy as np import torch from collections import OrderedDict from torch.distributions import Categorical import rl_sandbox.constants as c # TODO: Add Q-table if we want
32.923469
178
0.618317
import copy import numpy as np import torch from collections import OrderedDict from torch.distributions import Categorical import rl_sandbox.constants as c class Scheduler: def __init__(self, max_schedule, num_tasks): self._max_schedule = max_schedule self._num_tasks = num_tasks @property ...
5,286
294
677
c59a94d0b964e20c22dbf2f2e4c5be509eb1736b
357
py
Python
reactivated/management/commands/generate_client_assets.py
silviogutierrez/reactivated
8bbd3095cd07af5bb022f110233a184fd3946b44
[ "MIT" ]
178
2018-10-24T07:58:26.000Z
2022-03-31T10:26:57.000Z
reactivated/management/commands/generate_client_assets.py
silviogutierrez/reactivated
8bbd3095cd07af5bb022f110233a184fd3946b44
[ "MIT" ]
26
2019-10-19T02:52:08.000Z
2022-03-23T16:47:33.000Z
reactivated/management/commands/generate_client_assets.py
silviogutierrez/reactivated
8bbd3095cd07af5bb022f110233a184fd3946b44
[ "MIT" ]
5
2019-07-25T03:55:03.000Z
2022-03-21T04:19:50.000Z
from typing import Any from django.core.management.base import BaseCommand from ...apps import generate_schema, get_schema
25.5
57
0.722689
from typing import Any from django.core.management.base import BaseCommand from ...apps import generate_schema, get_schema class Command(BaseCommand): help = "Generates all types and other client assets" def handle(self, *args: Any, **options: Any) -> None: schema = get_schema() generate_sc...
118
90
23
563307c8ad2e5edb9862f53cf452cf15ff0906cf
829
py
Python
myweb/myproject/main/models.py
dchacca/DjangoOnline
be470e5784f71da367d987464f83dc8929ee2f70
[ "MIT" ]
null
null
null
myweb/myproject/main/models.py
dchacca/DjangoOnline
be470e5784f71da367d987464f83dc8929ee2f70
[ "MIT" ]
null
null
null
myweb/myproject/main/models.py
dchacca/DjangoOnline
be470e5784f71da367d987464f83dc8929ee2f70
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models # Create your models here.
27.633333
58
0.680338
from __future__ import unicode_literals from django.db import models # Create your models here. class Main(models.Model): name = models.CharField(max_length=30) about = models.TextField() abouttxt = models.TextField(default="") fb = models.CharField(default="-",max_length=30) tw = models.CharFie...
49
654
23
9cd83fc2a28d90b0a61c992ae0fabfb9d4490b84
820
py
Python
wws_and_jl/database/control.py
SaltFishPr/embedded-system-experiment
15c8701bd5089dce0f6bfcd0c943906e36d4f03a
[ "MIT" ]
1
2020-09-19T16:03:56.000Z
2020-09-19T16:03:56.000Z
wws_and_jl/database/control.py
SaltFishPr/embedded-system-experiment
15c8701bd5089dce0f6bfcd0c943906e36d4f03a
[ "MIT" ]
null
null
null
wws_and_jl/database/control.py
SaltFishPr/embedded-system-experiment
15c8701bd5089dce0f6bfcd0c943906e36d4f03a
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # -*- coding: utf-8 -*- # @author: SaltFish # @file: control.py # @date: 2020/07/15 import os import sqlite3 import time database_dir = os.path.join(os.getcwd(), "instance", "database.sqlite") def execute_sql(sql, choice): """ 执行sql语句 :param sql: :param choice: 'select', 'upd...
20.5
77
0.6
# !/usr/bin/env python3 # -*- coding: utf-8 -*- # @author: SaltFish # @file: control.py # @date: 2020/07/15 import os import sqlite3 import time database_dir = os.path.join(os.getcwd(), "instance", "database.sqlite") def execute_sql(sql, choice): """ 执行sql语句 :param sql: :param choice: 'select', 'upd...
155
0
23
e21963a29716e573d8354af3514009de6fc63f3d
3,827
py
Python
cricket_db/parsers/match.py
oli5679/cricsheet-db
be4f3d518afc9e3012e03c45166c446467abca73
[ "MIT" ]
2
2020-01-21T10:50:35.000Z
2020-12-28T11:09:20.000Z
cricket_db/parsers/match.py
berianjames/cricsheet-db
be4f3d518afc9e3012e03c45166c446467abca73
[ "MIT" ]
null
null
null
cricket_db/parsers/match.py
berianjames/cricsheet-db
be4f3d518afc9e3012e03c45166c446467abca73
[ "MIT" ]
2
2020-01-21T10:57:16.000Z
2020-05-31T19:13:11.000Z
from cricket_db.parsers.parser import Parser
35.766355
90
0.567546
from cricket_db.parsers.parser import Parser class MatchParser(Parser): def __init__(self, match_id): self.match_id = match_id self.metadata_parser = MatchMetadataParser() self.outcome_parser = MatchOutcomeParser() self.umpire_parser = UmpireParser() def parse(self, raw): ...
3,438
36
304
ea068628d0b26c53ce0d8556d2fa0db8454a940c
589
py
Python
program/templatetags/content_boxes.py
Dumbaz/autoradio-pv
8aae293e58b2e79a05956c535bb109f74edc89c3
[ "BSD-3-Clause" ]
null
null
null
program/templatetags/content_boxes.py
Dumbaz/autoradio-pv
8aae293e58b2e79a05956c535bb109f74edc89c3
[ "BSD-3-Clause" ]
null
null
null
program/templatetags/content_boxes.py
Dumbaz/autoradio-pv
8aae293e58b2e79a05956c535bb109f74edc89c3
[ "BSD-3-Clause" ]
null
null
null
from django import template from program.models import Type, MusicFocus, Category, Topic register = template.Library() @register.inclusion_tag('boxes/type.html') @register.inclusion_tag('boxes/musicfocus.html') @register.inclusion_tag('boxes/category.html') @register.inclusion_tag('boxes/topic.html')
23.56
61
0.741935
from django import template from program.models import Type, MusicFocus, Category, Topic register = template.Library() @register.inclusion_tag('boxes/type.html') def type(): return {'type_list': Type.objects.filter(is_active=True)} @register.inclusion_tag('boxes/musicfocus.html') def musicfocus(): return ...
190
0
88
be67d94603586560c8000b7c50b9d8816d978b18
68
py
Python
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/H/helion mass energy equivalent in MeV.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/H/helion mass energy equivalent in MeV.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/H/helion mass energy equivalent in MeV.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
constants.physical_constants["helion mass energy equivalent in MeV"]
68
68
0.852941
constants.physical_constants["helion mass energy equivalent in MeV"]
0
0
0
5ef3b0f4baff6451e2c2f602124970bd6da3608a
11,661
py
Python
src/sysl/core/syslloader.py
anz-rfc/sysl
a145361fb17f17f36c483128a2eac42d08232870
[ "Apache-2.0" ]
2
2021-11-12T03:18:18.000Z
2021-11-12T14:51:05.000Z
src/sysl/core/syslloader.py
anz-rfc/sysl
a145361fb17f17f36c483128a2eac42d08232870
[ "Apache-2.0" ]
null
null
null
src/sysl/core/syslloader.py
anz-rfc/sysl
a145361fb17f17f36c483128a2eac42d08232870
[ "Apache-2.0" ]
1
2020-02-18T21:50:52.000Z
2020-02-18T21:50:52.000Z
"""sysl module loader""" import codecs import os import re import sys from sysl.proto import sysl_pb2 from sysl.core import syslalgo from sysl.core import syslparse from sysl.core import syslx def fmt_app_name(appname): """Format a sysl_pb2.AppName as a syntactically valid string.""" return ' :: '.join(app...
33.222222
88
0.52414
"""sysl module loader""" import codecs import os import re import sys from sysl.proto import sysl_pb2 from sysl.core import syslalgo from sysl.core import syslparse from sysl.core import syslx def fmt_app_name(appname): """Format a sysl_pb2.AppName as a syntactically valid string.""" return ' :: '.join(app...
4,740
0
135
4f36f1f0ded1492d32ca0c4d561a0974c82205bc
347
py
Python
selfservice/models.py
rickvanderzwet/makerspaceleiden-crm
a36d5073d4c49bbf46580ca9bbda5d80593d2d84
[ "Apache-2.0" ]
null
null
null
selfservice/models.py
rickvanderzwet/makerspaceleiden-crm
a36d5073d4c49bbf46580ca9bbda5d80593d2d84
[ "Apache-2.0" ]
null
null
null
selfservice/models.py
rickvanderzwet/makerspaceleiden-crm
a36d5073d4c49bbf46580ca9bbda5d80593d2d84
[ "Apache-2.0" ]
null
null
null
from django.db import models from simple_history.models import HistoricalRecords
26.692308
51
0.755043
from django.db import models from simple_history.models import HistoricalRecords class WiFiNetwork(models.Model): network = models.CharField(max_length=30) password = models.CharField(max_length=30) adminsonly = models.BooleanField(default=False) history = HistoricalRecords() def __str__(self): ...
25
216
23
799c7c4c663e68b97fc20d1a23453cc6437db94f
3,493
py
Python
ironic_python_agent/extensions/attestation.py
DanNiESh/ironic-python-agent
4f421295f1de77f42069cf8628c639fb574981ad
[ "Apache-2.0" ]
null
null
null
ironic_python_agent/extensions/attestation.py
DanNiESh/ironic-python-agent
4f421295f1de77f42069cf8628c639fb574981ad
[ "Apache-2.0" ]
null
null
null
ironic_python_agent/extensions/attestation.py
DanNiESh/ironic-python-agent
4f421295f1de77f42069cf8628c639fb574981ad
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
37.967391
78
0.632408
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
0
2,641
23
cf0ffa45a9bd29241f19d1e95c36323e29033dab
4,065
py
Python
hw4/get_solve.py
Cherrybruin/201605130098LiYunkai
f15da46a824c8722c73e996dd225dc26530b4230
[ "Apache-2.0" ]
null
null
null
hw4/get_solve.py
Cherrybruin/201605130098LiYunkai
f15da46a824c8722c73e996dd225dc26530b4230
[ "Apache-2.0" ]
null
null
null
hw4/get_solve.py
Cherrybruin/201605130098LiYunkai
f15da46a824c8722c73e996dd225dc26530b4230
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # import spacy import re, json from math import log # nlp = spacy.load('en',disable=["tagger", "parser", "ner"]) re_word = re.compile(r"\w+") import json tweets = {} posting_list = {} def re_get_word_count(text:str): ''' params: text: str 文本 return type: ...
33.875
121
0.559164
# coding=utf-8 # import spacy import re, json from math import log # nlp = spacy.load('en',disable=["tagger", "parser", "ner"]) re_word = re.compile(r"\w+") import json tweets = {} posting_list = {} def re_get_word_count(text:str): ''' params: text: str 文本 return type: ...
269
0
60
8954e49cf3cde346f643d32e27e67034f8594f24
512
py
Python
webscraping_forexlive_sessionwraps.py
LtheKid/webscraping
7cdf11b198b1cb7d51ce2bbdb9c633c7e6002336
[ "CC0-1.0" ]
null
null
null
webscraping_forexlive_sessionwraps.py
LtheKid/webscraping
7cdf11b198b1cb7d51ce2bbdb9c633c7e6002336
[ "CC0-1.0" ]
null
null
null
webscraping_forexlive_sessionwraps.py
LtheKid/webscraping
7cdf11b198b1cb7d51ce2bbdb9c633c7e6002336
[ "CC0-1.0" ]
null
null
null
from bs4 import BeautifulSoup import requests import lxml Print_title = True #Forexlive url = "http://www.forexlive.com/SessionWraps" #put URL here r = requests.get(url) data = r.text soup = BeautifulSoup(data,"lxml") #Doing it like this prevents some weird error if Print_title == True: print ("FOREXLIVE LATEST...
23.272727
79
0.703125
from bs4 import BeautifulSoup import requests import lxml Print_title = True #Forexlive url = "http://www.forexlive.com/SessionWraps" #put URL here r = requests.get(url) data = r.text soup = BeautifulSoup(data,"lxml") #Doing it like this prevents some weird error if Print_title == True: print ("FOREXLIVE LATEST...
0
0
0
f5c56a069066b1c7b7037fae16ab917175674ab2
621
py
Python
Medium/3sumClosest.py
BrynjarGeir/LeetCode
dbd57e645c5398dec538b6466215b61491c8d1d9
[ "MIT" ]
null
null
null
Medium/3sumClosest.py
BrynjarGeir/LeetCode
dbd57e645c5398dec538b6466215b61491c8d1d9
[ "MIT" ]
null
null
null
Medium/3sumClosest.py
BrynjarGeir/LeetCode
dbd57e645c5398dec538b6466215b61491c8d1d9
[ "MIT" ]
null
null
null
from typing import List from math import inf
38.8125
67
0.500805
from typing import List from math import inf class Solution: def threeSumClosest(self, nums: List[int], target: int) -> int: nums.sort(); distance = inf; closest = None for i in range(len(nums)-2): j, k = i + 1, len(nums)-1 while j < k: value = nums[i] + nums[...
535
-6
48
2da847e83bc575716a6cb94f2891eec2ee10341f
4,092
py
Python
GQA/quantum/compact_knapsack.py
simonetome/QuantumGeneticAlgorithm
c38666342769e2d37761468e285fb71b4781a5e5
[ "MIT" ]
1
2021-11-07T10:50:55.000Z
2021-11-07T10:50:55.000Z
GQA/quantum/compact_knapsack.py
simonetome/QuantumGeneticAlgorithm
c38666342769e2d37761468e285fb71b4781a5e5
[ "MIT" ]
null
null
null
GQA/quantum/compact_knapsack.py
simonetome/QuantumGeneticAlgorithm
c38666342769e2d37761468e285fb71b4781a5e5
[ "MIT" ]
null
null
null
from numpy import mat from GQA.quantum.population import Population from operator import itemgetter from GQA.functions.knapsack import Knapsack import math import random from tqdm import tqdm from matplotlib import pyplot as plt
35.894737
196
0.55523
from numpy import mat from GQA.quantum.population import Population from operator import itemgetter from GQA.functions.knapsack import Knapsack import math import random from tqdm import tqdm from matplotlib import pyplot as plt class Compact_knapsack: def __init__(self,generations,delta,num_pop,istance,verbose...
3,620
2
232
d85b5fc85aad45eeb110649f512bbaef6f3c9a87
174
py
Python
get_ip.py
brian-cummings/temp_sensor
72dd77bde33053da5a7891e3e2709b87c2ada836
[ "MIT" ]
null
null
null
get_ip.py
brian-cummings/temp_sensor
72dd77bde33053da5a7891e3e2709b87c2ada836
[ "MIT" ]
null
null
null
get_ip.py
brian-cummings/temp_sensor
72dd77bde33053da5a7891e3e2709b87c2ada836
[ "MIT" ]
null
null
null
import netifaces as ni
19.333333
65
0.551724
import netifaces as ni def get_ipv4( iface ): ip = None try: ip = ni.ifaddresses( iface )[ ni.AF_INET ][ 0 ][ 'addr' ] except: pass return ip
129
0
23
c9fef8795241e77ed65aa8d9d2e653e5c1d80087
217
py
Python
PyUdemy/Day8/CreatingFunction.py
JoseArtur/phyton-exercices
f3da4447044e445222233960f991fb2e36311131
[ "MIT" ]
null
null
null
PyUdemy/Day8/CreatingFunction.py
JoseArtur/phyton-exercices
f3da4447044e445222233960f991fb2e36311131
[ "MIT" ]
null
null
null
PyUdemy/Day8/CreatingFunction.py
JoseArtur/phyton-exercices
f3da4447044e445222233960f991fb2e36311131
[ "MIT" ]
null
null
null
# Review: # Create a function called greet(). # Write 3 print statements inside the function. # Call the greet() function and run your code. greet()
24.111111
47
0.663594
# Review: # Create a function called greet(). # Write 3 print statements inside the function. # Call the greet() function and run your code. def greet(): print("Hi") print("Salut") print("Hallo") greet()
45
0
22
d6ed74249e72c494b3595ad23a72463fa2424ccf
16,039
py
Python
latest-wired-micropython.py
Hagb/micropython-drcom
f6ba8725301a3ade90a34cd200ce5e1ce112dd15
[ "PSF-2.0" ]
1
2020-09-07T17:16:52.000Z
2020-09-07T17:16:52.000Z
latest-wired-micropython.py
Hagb/micropython-drcom
f6ba8725301a3ade90a34cd200ce5e1ce112dd15
[ "PSF-2.0" ]
null
null
null
latest-wired-micropython.py
Hagb/micropython-drcom
f6ba8725301a3ade90a34cd200ce5e1ce112dd15
[ "PSF-2.0" ]
null
null
null
#!/usr/bin/env micropython # -*- coding: utf-8 -*- import socket_drcom as socket import struct import time from md5_drcom import MD5Type as md5 import sys import os import random_drcom as random import binascii import uerrno # CONFIG server = "192.168.100.150" username = "" password = "" host_name = "LIYUANYUAN" host_...
31.697628
90
0.566432
#!/usr/bin/env micropython # -*- coding: utf-8 -*- import socket_drcom as socket import struct import time from md5_drcom import MD5Type as md5 import sys import os import random_drcom as random import binascii import uerrno # CONFIG server = "192.168.100.150" username = "" password = "" host_name = "LIYUANYUAN" host_...
10,135
26
420
2ae07f6a440db23baa190d7375fa5d946b9a1101
2,090
py
Python
titlelab.py
frenchie16/TitleLab
5957b89aece956e3e61ee03a1fe3c2534543f30d
[ "Unlicense" ]
null
null
null
titlelab.py
frenchie16/TitleLab
5957b89aece956e3e61ee03a1fe3c2534543f30d
[ "Unlicense" ]
1
2018-02-28T04:11:21.000Z
2018-02-28T06:12:05.000Z
titlelab.py
frenchie16/TitleLab
5957b89aece956e3e61ee03a1fe3c2534543f30d
[ "Unlicense" ]
null
null
null
import argparse from pythonosc import osc_message_builder from pythonosc import udp_client if __name__ == '__main__': main()
35.423729
112
0.633971
import argparse from pythonosc import osc_message_builder from pythonosc import udp_client def send_msg(client, address, *args): msg = osc_message_builder.OscMessageBuilder(address=address) for arg in args: msg.add_arg(arg) client.send(msg.build()) def main(): parser = argparse.ArgumentPars...
1,911
0
46
0f359758ec2f9a676ec5e03d99c5b228efddbe29
557
py
Python
bokio/route/profile/profile.py
mahdikhashan/bokio
6f2651067a9e7b1dcdf91a64f4fa84595f545278
[ "MIT" ]
3
2020-07-06T19:39:17.000Z
2020-07-07T18:21:30.000Z
bokio/route/profile/profile.py
mahdikhashan/bokio
6f2651067a9e7b1dcdf91a64f4fa84595f545278
[ "MIT" ]
null
null
null
bokio/route/profile/profile.py
mahdikhashan/bokio
6f2651067a9e7b1dcdf91a64f4fa84595f545278
[ "MIT" ]
null
null
null
from flask import abort from flask import Blueprint from flask import render_template from jinja2 import TemplateNotFound from flask_login import login_required, current_user router = Blueprint('profile_route', __name__, template_folder='templates', static_folder='static', ...
25.318182
70
0.691203
from flask import abort from flask import Blueprint from flask import render_template from jinja2 import TemplateNotFound from flask_login import login_required, current_user router = Blueprint('profile_route', __name__, template_folder='templates', static_folder='static', ...
119
0
22