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
f66b03ca2c29ee52f461b6070be899d029ecaa7a
12,306
py
Python
coremltools/converters/mil/mil/ops/defs/linear.py
BearerPipelineTest/coremltools
a84609bfae35b2d4e70d9ba3d592a6756df7d197
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/mil/mil/ops/defs/linear.py
BearerPipelineTest/coremltools
a84609bfae35b2d4e70d9ba3d592a6756df7d197
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/mil/mil/ops/defs/linear.py
BearerPipelineTest/coremltools
a84609bfae35b2d4e70d9ba3d592a6756df7d197
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import numpy as np from coremltools.converters.mil.mil import ( BoolInputType, DefaultInputs,...
35.773256
121
0.562327
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import numpy as np from coremltools.converters.mil.mil import ( BoolInputType, DefaultInputs,...
6,054
0
294
5bfb15ea0f0c61af450cb54b721bc595830090c4
4,150
py
Python
beginning-game-development/Chapter 10/bouncesound.py
CrtomirJuren/pygame-projects
f710f36050bfe3ece866bbda7d570caa1e037d7a
[ "MIT" ]
43
2015-09-20T02:05:48.000Z
2022-03-01T22:00:43.000Z
beginning-game-development/Chapter 10/bouncesound.py
CrtomirJuren/pygame-projects
f710f36050bfe3ece866bbda7d570caa1e037d7a
[ "MIT" ]
null
null
null
beginning-game-development/Chapter 10/bouncesound.py
CrtomirJuren/pygame-projects
f710f36050bfe3ece866bbda7d570caa1e037d7a
[ "MIT" ]
40
2015-05-19T06:51:13.000Z
2022-03-27T18:11:16.000Z
import pygame from pygame.locals import * from random import randint from gameobjects.vector2 import Vector2 SCREEN_SIZE = (640, 480) # In pixels per second, per second GRAVITY = 250.0 # Increase for more bounciness, but don't go over 1! BOUNCINESS = 0.7 if __name__ == "__main__": run()
25.304878
71
0.571566
import pygame from pygame.locals import * from random import randint from gameobjects.vector2 import Vector2 SCREEN_SIZE = (640, 480) # In pixels per second, per second GRAVITY = 250.0 # Increase for more bounciness, but don't go over 1! BOUNCINESS = 0.7 def stero_pan(x_coord, screen_width): right_volume = floa...
3,675
-2
177
620ff546dee89eae6e846ed79bb01f99ac7c8154
3,257
py
Python
bokeh/tests/test_plotting.py
tswicegood/bokeh
2e74be5c9288306896e8c76af2e14a8c7513e0e3
[ "BSD-3-Clause" ]
2
2015-07-23T21:19:52.000Z
2016-01-25T17:00:15.000Z
bokeh/tests/test_plotting.py
tswicegood/bokeh
2e74be5c9288306896e8c76af2e14a8c7513e0e3
[ "BSD-3-Clause" ]
null
null
null
bokeh/tests/test_plotting.py
tswicegood/bokeh
2e74be5c9288306896e8c76af2e14a8c7513e0e3
[ "BSD-3-Clause" ]
2
2015-12-22T04:13:10.000Z
2021-07-06T21:18:04.000Z
import unittest import bokeh.plotting as plt from bokeh.objects import Grid, LinearAxis
27.369748
72
0.578139
import unittest import bokeh.plotting as plt from bokeh.objects import Grid, LinearAxis class TestPlotting(unittest.TestCase): def test_reset_output(self): plt._default_document = 10 plt._default_session = 10 plt._default_file = 10 plt._default_notebook = 10 plt.reset_outp...
2,909
17
239
451be2132d0d604b8ced8632e8a82a218778aaef
272
py
Python
Calendar/celery.py
GaniAliguzhinov/AviataTask
bfcd059b65036332ed3b645b44eff255b0f30205
[ "MIT" ]
null
null
null
Calendar/celery.py
GaniAliguzhinov/AviataTask
bfcd059b65036332ed3b645b44eff255b0f30205
[ "MIT" ]
null
null
null
Calendar/celery.py
GaniAliguzhinov/AviataTask
bfcd059b65036332ed3b645b44eff255b0f30205
[ "MIT" ]
null
null
null
import os from celery import Celery from django.conf import settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Calendar.settings') app = Celery('Calendar') app.config_from_object('django.conf:settings') app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
19.428571
68
0.808824
import os from celery import Celery from django.conf import settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Calendar.settings') app = Celery('Calendar') app.config_from_object('django.conf:settings') app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
0
0
0
c76fa309af32f83531d8851555390f6c52276c98
7,747
py
Python
vmware_nsx_tempest/tests/nsxv/api/test_l2_gateway.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
vmware_nsx_tempest/tests/nsxv/api/test_l2_gateway.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
vmware_nsx_tempest/tests/nsxv/api/test_l2_gateway.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 OpenStack Foundation # Copyright 2015 VMware Inc # 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/LI...
40.560209
78
0.675616
# Copyright 2015 OpenStack Foundation # Copyright 2015 VMware Inc # 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/LI...
4,259
0
342
bb62a9710d9e4720c4f7d5c60c418ff6fe1e4c48
3,049
py
Python
tests/test_quantize.py
fferrin/pytopojson
5128136c9502f4e29330b6cc7e524641bff5f95e
[ "0BSD" ]
11
2019-11-15T23:22:52.000Z
2022-01-22T20:46:30.000Z
tests/test_quantize.py
fferrin/topojson
7f90e497d2b54798f51480181c81c330770cb401
[ "0BSD" ]
8
2019-11-08T03:03:29.000Z
2022-02-28T09:52:09.000Z
tests/test_quantize.py
fferrin/topojson
7f90e497d2b54798f51480181c81c330770cb401
[ "0BSD" ]
2
2020-07-09T06:45:31.000Z
2021-03-22T13:38:35.000Z
import json import unittest from pytopojson import quantize
44.838235
86
0.703509
import json import unittest from pytopojson import quantize class QuantizeTestCase(unittest.TestCase): def setUp(self): self.quantize = quantize.Quantize() @staticmethod def _load_json_file(filepath): with open(filepath, "r") as src: return json.load(src) def test_quanti...
2,720
254
23
5241d1f83c41679c5485a13540ff0f3902669136
642
py
Python
src/kestrel/syntax/utils.py
imolloy/kestrel-lang
2844168253d92e6607013e873d862f365e2a1913
[ "Apache-2.0" ]
null
null
null
src/kestrel/syntax/utils.py
imolloy/kestrel-lang
2844168253d92e6607013e873d862f365e2a1913
[ "Apache-2.0" ]
null
null
null
src/kestrel/syntax/utils.py
imolloy/kestrel-lang
2844168253d92e6607013e873d862f365e2a1913
[ "Apache-2.0" ]
null
null
null
from lark import Lark from pkgutil import get_data from itertools import chain from kestrel.codegen.relations import all_relations
37.764706
85
0.753894
from lark import Lark from pkgutil import get_data from itertools import chain from kestrel.codegen.relations import all_relations def get_keywords(): grammar = get_data(__name__, "kestrel.lark").decode("utf-8") parser = Lark(grammar, parser="lalr") alphabet_patterns = filter(lambda x: x.pattern.value.is...
486
0
23
dcf83d9849e1e8a5664a8bcdf93ecba4e8814773
8,892
py
Python
telas/man_arquivos.py
saulocurty/bodyfitness
b356a7fb016d70dbd376956cef6a1382ddfb9a95
[ "MIT" ]
null
null
null
telas/man_arquivos.py
saulocurty/bodyfitness
b356a7fb016d70dbd376956cef6a1382ddfb9a95
[ "MIT" ]
null
null
null
telas/man_arquivos.py
saulocurty/bodyfitness
b356a7fb016d70dbd376956cef6a1382ddfb9a95
[ "MIT" ]
null
null
null
from calendar import c from distutils.log import error import pandas as pd import csv import asyncio import os import shutil from atividades import * from tkinter import * root = Tk() usuario_logado = '' user_logado = Usuario('', 0, 0,'','') if __name__ == '__main__': #Adici...
32.933333
108
0.612123
from calendar import c from distutils.log import error import pandas as pd import csv import asyncio import os import shutil from atividades import * from tkinter import * root = Tk() class Exercicio: def __init__(self, nome:str, caloria: int): self.nome = nome self.caloria = caloria ...
7,984
-18
551
545f7d1f87dc1e0690243cf5e0cc1159a2a78f9e
3,003
py
Python
estoque/migrations/0001_initial.py
lucasgsouza03/NGKS_Shop
002efbb141a74c1df97479e6bd6f112e4617ff3d
[ "Unlicense" ]
1
2018-03-23T23:08:21.000Z
2018-03-23T23:08:21.000Z
estoque/migrations/0001_initial.py
lucasgsouza03/NGKS_Shop
002efbb141a74c1df97479e6bd6f112e4617ff3d
[ "Unlicense" ]
7
2018-09-25T02:59:08.000Z
2022-03-11T23:35:05.000Z
estoque/migrations/0001_initial.py
lucasgsouza03/NGKS_Shop
002efbb141a74c1df97479e6bd6f112e4617ff3d
[ "Unlicense" ]
2
2018-07-10T19:00:34.000Z
2018-08-14T21:05:47.000Z
# Generated by Django 2.0.6 on 2019-10-03 17:36 from django.db import migrations, models import django.db.models.deletion
48.435484
139
0.608392
# Generated by Django 2.0.6 on 2019-10-03 17:36 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('catalogo', '0001_initial'), ] operations = [ migrations.CreateModel( name='...
0
2,857
23
eb04130a9717101c047c225d7c4b517cb16c973a
1,596
py
Python
examples/ariadne_uvicorn/movies.py
danhitchcock/neo4j-graphql-py
195b78f61aaf6f9c5c5b2d06f4a52380dcd1e076
[ "Apache-2.0" ]
17
2020-08-19T08:41:55.000Z
2022-03-10T08:26:58.000Z
examples/ariadne_uvicorn/movies.py
danhitchcock/neo4j-graphql-py
195b78f61aaf6f9c5c5b2d06f4a52380dcd1e076
[ "Apache-2.0" ]
10
2021-03-30T14:10:30.000Z
2022-01-03T14:20:48.000Z
examples/ariadne_uvicorn/movies.py
danhitchcock/neo4j-graphql-py
195b78f61aaf6f9c5c5b2d06f4a52380dcd1e076
[ "Apache-2.0" ]
7
2020-09-16T22:49:53.000Z
2021-12-17T22:33:56.000Z
import neo4j import uvicorn from ariadne.asgi import GraphQL from neo4j_graphql_py import neo4j_graphql, make_executable_schema typeDefs = ''' directive @cypher(statement: String!) on FIELD_DEFINITION directive @relation(name:String!, direction:String!) on FIELD_DEFINITION type Movie { _id: ID title: String rele...
28.5
169
0.693609
import neo4j import uvicorn from ariadne.asgi import GraphQL from neo4j_graphql_py import neo4j_graphql, make_executable_schema typeDefs = ''' directive @cypher(statement: String!) on FIELD_DEFINITION directive @relation(name:String!, direction:String!) on FIELD_DEFINITION type Movie { _id: ID title: String rele...
189
0
23
8a99e517b67f59c6996c622d2a1c56061abe1cf6
4,767
py
Python
tools/rebaseline/add_legacy_flag.py
onlyyou2023/tingskia
4e8c00df69ab8fb986f4985a393fd83c313b8909
[ "BSD-3-Clause" ]
null
null
null
tools/rebaseline/add_legacy_flag.py
onlyyou2023/tingskia
4e8c00df69ab8fb986f4985a393fd83c313b8909
[ "BSD-3-Clause" ]
null
null
null
tools/rebaseline/add_legacy_flag.py
onlyyou2023/tingskia
4e8c00df69ab8fb986f4985a393fd83c313b8909
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. README = """ Automatically add a specific legacy flag to multiple Skia client repos. This would only work on Google desktop. Exam...
31.569536
80
0.679463
#!/usr/bin/env python # Copyright (c) 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. README = """ Automatically add a specific legacy flag to multiple Skia client repos. This would only work on Google desktop. Exam...
3,759
0
115
a14f62704f873df5f10a5c51c7a4ad5c8a180077
16,897
py
Python
peinfo/peinfo/peinfo.py
ytreister/stoq-plugins-public
1325ba0f61a313a1b9dbb71f2843ee698fb7ab9d
[ "Apache-2.0" ]
72
2015-11-20T12:52:10.000Z
2021-06-08T16:57:53.000Z
peinfo/peinfo/peinfo.py
ytreister/stoq-plugins-public
1325ba0f61a313a1b9dbb71f2843ee698fb7ab9d
[ "Apache-2.0" ]
87
2016-08-25T15:09:59.000Z
2022-02-07T14:34:45.000Z
peinfo/peinfo/peinfo.py
ytreister/stoq-plugins-public
1325ba0f61a313a1b9dbb71f2843ee698fb7ab9d
[ "Apache-2.0" ]
37
2015-11-20T12:51:59.000Z
2021-12-13T18:13:32.000Z
#!/usr/bin/env python3 # Copyright 2014-present PUNCH Cyber Analytics Group # # 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 # # ...
35.128898
87
0.519856
#!/usr/bin/env python3 # Copyright 2014-present PUNCH Cyber Analytics Group # # 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 # # ...
8,289
7,430
23
e0841cc2b9ccf34c5a084dd31c9ada8e6207315d
787
py
Python
main.py
Jjrex8988/BlogCapstoneProject
f25a5839ecec21c3a56a75d180780a6b5aa3be19
[ "MIT" ]
null
null
null
main.py
Jjrex8988/BlogCapstoneProject
f25a5839ecec21c3a56a75d180780a6b5aa3be19
[ "MIT" ]
null
null
null
main.py
Jjrex8988/BlogCapstoneProject
f25a5839ecec21c3a56a75d180780a6b5aa3be19
[ "MIT" ]
null
null
null
from flask import Flask, render_template import requests # posts = requests.get("https://api.npoint.io/43644ec4f0013682fc0d").json() posts = requests.get('https://api.npoint.io/5083070470e7db605e88').json() app = Flask(__name__) @app.route('/') @app.route("/post/<int:index>") @app.route("/about") @app.route("...
22.485714
75
0.696315
from flask import Flask, render_template import requests # posts = requests.get("https://api.npoint.io/43644ec4f0013682fc0d").json() posts = requests.get('https://api.npoint.io/5083070470e7db605e88').json() app = Flask(__name__) @app.route('/') def get_all_posts(): return render_template("index.html", all_posts...
316
0
88
8458d968764e2d798f6e98445f0d41271aeef285
1,773
py
Python
subway/http/response.py
15696/async-web-framework
a8e11039e03d85673a132d97f11b10ce7724dcaa
[ "MIT" ]
4
2022-02-06T13:56:14.000Z
2022-02-08T03:44:48.000Z
subway/http/response.py
15696/async-web-framework
a8e11039e03d85673a132d97f11b10ce7724dcaa
[ "MIT" ]
1
2022-02-19T17:02:10.000Z
2022-02-19T17:02:10.000Z
subway/http/response.py
15696/async-web-framework
a8e11039e03d85673a132d97f11b10ce7724dcaa
[ "MIT" ]
2
2022-02-06T14:12:21.000Z
2022-02-19T16:50:31.000Z
from __future__ import annotations from typing import Dict, Optional, TYPE_CHECKING from subway import HTTPStatus from subway.headers import Headers from subway.streams import StreamReader from subway.request import HTTPConnection if TYPE_CHECKING: from .abc import Hooker class HTTPResponse(HTTPConnection): ...
22.730769
48
0.591653
from __future__ import annotations from typing import Dict, Optional, TYPE_CHECKING from subway import HTTPStatus from subway.headers import Headers from subway.streams import StreamReader from subway.request import HTTPConnection if TYPE_CHECKING: from .abc import Hooker class HTTPResponse(HTTPConnection): ...
399
0
53
dfd97ade3c9dcdc34fc5007e55cdc421a50d782d
1,239
py
Python
apis/auth/routes.py
gusibi/Metis
e44efc1d63861164c7214702d1050ec7c3a42fff
[ "Apache-2.0" ]
84
2017-07-24T02:00:38.000Z
2022-03-26T16:28:49.000Z
apis/auth/routes.py
gusibi/Metis
e44efc1d63861164c7214702d1050ec7c3a42fff
[ "Apache-2.0" ]
5
2017-10-25T13:04:01.000Z
2019-07-13T08:36:34.000Z
apis/auth/routes.py
gusibi/Metis
e44efc1d63861164c7214702d1050ec7c3a42fff
[ "Apache-2.0" ]
28
2017-08-21T05:03:31.000Z
2021-01-25T16:24:38.000Z
# -*- coding: utf-8 -*- ### ### DO NOT CHANGE THIS FILE ### ### The code is auto generated, your change will be overwritten by ### code generating. ### from __future__ import absolute_import from .api.oauth_token_code import OauthTokenCode from .api.accounts_self import AccountsSelf from .api.oauth_token import Oau...
44.25
110
0.757062
# -*- coding: utf-8 -*- ### ### DO NOT CHANGE THIS FILE ### ### The code is auto generated, your change will be overwritten by ### code generating. ### from __future__ import absolute_import from .api.oauth_token_code import OauthTokenCode from .api.accounts_self import AccountsSelf from .api.oauth_token import Oau...
0
0
0
396854572d1280a2834f54904625b86d73e68ccf
585
py
Python
execicios/ex042/escaleno.py
Israel97f/Exercicios-de-Python
5d3054187977deeb3fadbd7bb1cdee035c609a61
[ "MIT" ]
null
null
null
execicios/ex042/escaleno.py
Israel97f/Exercicios-de-Python
5d3054187977deeb3fadbd7bb1cdee035c609a61
[ "MIT" ]
null
null
null
execicios/ex042/escaleno.py
Israel97f/Exercicios-de-Python
5d3054187977deeb3fadbd7bb1cdee035c609a61
[ "MIT" ]
null
null
null
n1 = int(input('Diga um numero: ')) n2 = int(input('Diga um numero: ')) n3 = int(input('Diga um numero: ')) maior = n1 soma = n2 + n3 if n2 > n1 and n2 > n3: maior = n2 soma = n1 + n3 elif n3 > n1 and n3 > n2: maior = n3 soma = n2 + n1 tri = '' if n1 != n2 != n3 != n1: tri = 'Escaleno' elif n1 ==...
20.172414
67
0.564103
n1 = int(input('Diga um numero: ')) n2 = int(input('Diga um numero: ')) n3 = int(input('Diga um numero: ')) maior = n1 soma = n2 + n3 if n2 > n1 and n2 > n3: maior = n2 soma = n1 + n3 elif n3 > n1 and n3 > n2: maior = n3 soma = n2 + n1 tri = '' if n1 != n2 != n3 != n1: tri = 'Escaleno' elif n1 ==...
0
0
0
69a7a731dea74b0e9d9a0638db1587918ecd62fa
7,241
py
Python
Project_01/Template_Matching/task2.py
Escapist-007/CVIP_Projects
457dbdde3dca78229c2ae4eeb852681c42563ba9
[ "MIT" ]
6
2020-02-24T14:51:33.000Z
2021-03-31T03:13:04.000Z
Project_01/Template_Matching/task2.py
Escapist-007/CVIP_Projects
457dbdde3dca78229c2ae4eeb852681c42563ba9
[ "MIT" ]
null
null
null
Project_01/Template_Matching/task2.py
Escapist-007/CVIP_Projects
457dbdde3dca78229c2ae4eeb852681c42563ba9
[ "MIT" ]
3
2020-02-25T06:30:45.000Z
2020-05-13T15:34:51.000Z
""" UB_ID : 50291708 Name : Md Moniruzzaman Monir Character Detection (Due date: March 8th, 11: 59 P.M.) The goal of this task is to experiment with template matching techniques. Specifically, the task is to find ALL of the coordinates where a specific character appears using ...
33.368664
119
0.602127
""" UB_ID : 50291708 Name : Md Moniruzzaman Monir Character Detection (Due date: March 8th, 11: 59 P.M.) The goal of this task is to experiment with template matching techniques. Specifically, the task is to find ALL of the coordinates where a specific character appears using ...
2,039
0
74
8ba1a3464f9757c0d07d1b56e1d28157d0b49abb
1,728
py
Python
entity/models/person_image.py
The-Politico/politico-civic-entity
b64f477f2a008c528937d6dbfe19f48c20b0722e
[ "MIT" ]
null
null
null
entity/models/person_image.py
The-Politico/politico-civic-entity
b64f477f2a008c528937d6dbfe19f48c20b0722e
[ "MIT" ]
2
2019-06-12T21:31:31.000Z
2019-06-12T21:49:36.000Z
entity/models/person_image.py
The-Politico/politico-civic-entity
b64f477f2a008c528937d6dbfe19f48c20b0722e
[ "MIT" ]
null
null
null
# Imports from python. import os import uuid # Imports from Django. from django.db import models from django.utils.html import format_html # Imports from politico-civic-entity. from entity.models.base import CivicBaseModel # from entity.models.base import NaturalKeyMixin from entity.models.image_tag import ImageTag...
26.181818
77
0.63831
# Imports from python. import os import uuid # Imports from Django. from django.db import models from django.utils.html import format_html # Imports from politico-civic-entity. from entity.models.base import CivicBaseModel # from entity.models.base import NaturalKeyMixin from entity.models.image_tag import ImageTag...
506
34
103
01c4619d9acd6e47b7e3d3fd943ec7570b4df2c1
2,147
py
Python
dataset.py
ishanbhandari-19/BengaliAI-Grapheme-Classification
54b8793cd0c08c02ef713d8445858a4e6212c584
[ "MIT" ]
null
null
null
dataset.py
ishanbhandari-19/BengaliAI-Grapheme-Classification
54b8793cd0c08c02ef713d8445858a4e6212c584
[ "MIT" ]
null
null
null
dataset.py
ishanbhandari-19/BengaliAI-Grapheme-Classification
54b8793cd0c08c02ef713d8445858a4e6212c584
[ "MIT" ]
null
null
null
import pandas as pd import albumentations import joblib import numpy as np import torch from PIL import Image
40.509434
102
0.598044
import pandas as pd import albumentations import joblib import numpy as np import torch from PIL import Image class BengaliDatasetTrain: def __init__(self, folds, img_height, img_width, mean, std): df = pd.read_csv("train_folds.csv") df = df[["image_id", "grapheme_root", "vowel_diacritic", "conson...
1,924
5
107
fd8a1d247ec82ad9e332163d7fdff0b2e2deb7be
458
py
Python
PythonExercicios/ex030.py
gabjohann/python_3
380cb622669ed82d6b22fdd09d41f02f1ad50a73
[ "MIT" ]
null
null
null
PythonExercicios/ex030.py
gabjohann/python_3
380cb622669ed82d6b22fdd09d41f02f1ad50a73
[ "MIT" ]
null
null
null
PythonExercicios/ex030.py
gabjohann/python_3
380cb622669ed82d6b22fdd09d41f02f1ad50a73
[ "MIT" ]
null
null
null
# Crie um programa que leia um número inteiro e mostra na tela se ele é par ou ímpar. num = float(input('Digite um número: ')) resto = num % 2 if resto == 1: print('O número é ímpar!') else: print('O número é par!') # Resolução da aula # número = int(input('Me diga um número qualquer: ')) # resultado = nú...
24.105263
85
0.628821
# Crie um programa que leia um número inteiro e mostra na tela se ele é par ou ímpar. num = float(input('Digite um número: ')) resto = num % 2 if resto == 1: print('O número é ímpar!') else: print('O número é par!') # Resolução da aula # número = int(input('Me diga um número qualquer: ')) # resultado = nú...
0
0
0
189671009d9b9407de9e0067f91d5e8fc07ac4a5
1,179
py
Python
project/tasks/_post_generation.py
pdm-project/copier-pdm
0828803a81ef37a4b55829de88674373dfd5619b
[ "MIT" ]
9
2021-03-19T13:19:10.000Z
2022-03-23T19:00:03.000Z
project/tasks/_post_generation.py
pdm-project/copier-pdm
0828803a81ef37a4b55829de88674373dfd5619b
[ "MIT" ]
2
2021-03-19T14:11:04.000Z
2021-12-24T12:26:45.000Z
project/tasks/_post_generation.py
pdm-project/copier-pdm
0828803a81ef37a4b55829de88674373dfd5619b
[ "MIT" ]
1
2021-03-20T14:56:51.000Z
2021-03-20T14:56:51.000Z
import json import os import subprocess from pathlib import Path PROJECT_ROOT = Path(__file__).absolute().parent.parent if __name__ == "__main__": write_vscode_settings() delete_myself()
25.630435
86
0.657337
import json import os import subprocess from pathlib import Path PROJECT_ROOT = Path(__file__).absolute().parent.parent def delete_myself() -> None: try: Path(__file__).unlink() except OSError: pass def _get_packages_path() -> str: packages_path = ( subprocess.check_output(["pdm...
909
0
69
8fdc2830f103596338d703b4187d55c1db167b4a
230
py
Python
app.py
dchidell/traefik-cloudflare-updater
bb54aaa19c539ce2937a62dad1be7822ceac951a
[ "MIT" ]
4
2020-08-17T22:36:26.000Z
2021-08-07T15:06:40.000Z
app.py
dchidell/traefik-cloudflare-updater
bb54aaa19c539ce2937a62dad1be7822ceac951a
[ "MIT" ]
null
null
null
app.py
dchidell/traefik-cloudflare-updater
bb54aaa19c539ce2937a62dad1be7822ceac951a
[ "MIT" ]
1
2021-02-27T13:31:57.000Z
2021-02-27T13:31:57.000Z
#!/usr/bin/python from TraefikUpdater import TraefikUpdater if __name__ == "__main__": main()
14.375
41
0.691304
#!/usr/bin/python from TraefikUpdater import TraefikUpdater def main(): updater = TraefikUpdater() updater.process_containers() # This blocks updater.enter_update_loop() if __name__ == "__main__": main()
105
0
23
c7f35fc0815cfc026da457f8059847b3a1ba7f4e
1,302
py
Python
dfirtrack_main/migrations/0015_added_verbose_name_plural.py
thomas-kropeit/dfirtrack
b1e0e659af7bc8085cfe2d269ddc651f9f4ba585
[ "Apache-2.0" ]
273
2018-04-18T22:09:15.000Z
2021-06-04T09:15:48.000Z
dfirtrack_main/migrations/0015_added_verbose_name_plural.py
stuhli/dfirtrack
9260c91e4367b36d4cb1ae7efe4e2d2452f58e6e
[ "Apache-2.0" ]
75
2018-08-31T11:05:37.000Z
2021-06-08T14:15:07.000Z
dfirtrack_main/migrations/0015_added_verbose_name_plural.py
thomas-kropeit/dfirtrack
b1e0e659af7bc8085cfe2d269ddc651f9f4ba585
[ "Apache-2.0" ]
61
2018-11-12T22:55:48.000Z
2021-06-06T15:16:16.000Z
from django.db import migrations
28.304348
62
0.529186
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dfirtrack_main', '0014_case_expansion'), ] operations = [ migrations.AlterModelOptions( name='analysisstatus', options={'verbose_name_plural': 'analysisstatus'}, ), ...
0
1,245
23
7f63e4066ef804f132ab42232075df743df511b4
4,172
py
Python
functions/electron_heat_capacity.py
DanielaZahn/TTM_inputs_from_DFT_results
b98c8cb8047b3db877b4eef80d340e2bb1f48908
[ "MIT" ]
1
2022-01-21T00:56:57.000Z
2022-01-21T00:56:57.000Z
functions/electron_heat_capacity.py
DanielaZahn/TTM_inputs_from_DFT_results
b98c8cb8047b3db877b4eef80d340e2bb1f48908
[ "MIT" ]
null
null
null
functions/electron_heat_capacity.py
DanielaZahn/TTM_inputs_from_DFT_results
b98c8cb8047b3db877b4eef80d340e2bb1f48908
[ "MIT" ]
1
2022-03-11T02:35:19.000Z
2022-03-11T02:35:19.000Z
import scipy.interpolate from scipy.special import expit import scipy.constants as constants import numpy as np
63.212121
131
0.724832
import scipy.interpolate from scipy.special import expit import scipy.constants as constants import numpy as np def calculate_electron_heat_capacity(temperatures,mu,e_dos,fermi_energy,\ region_around_fermi_energy=5,number_of_points = 5000): # This function calculates the electr...
4,038
0
23
09bd5a39a0d59ce79cef2796d831b3371ca7e5dc
1,859
py
Python
acs/ACSLogs.py
keikhara/acs-cli
d8c916ca269d17a9df35727f6fe1e2a60b1ea513
[ "Apache-2.0" ]
null
null
null
acs/ACSLogs.py
keikhara/acs-cli
d8c916ca269d17a9df35727f6fe1e2a60b1ea513
[ "Apache-2.0" ]
null
null
null
acs/ACSLogs.py
keikhara/acs-cli
d8c916ca269d17a9df35727f6fe1e2a60b1ea513
[ "Apache-2.0" ]
null
null
null
import logging import os
36.45098
113
0.599785
import logging import os class ACSLog: def __init__(self, name = u"acs"): output_dir = os.path.expanduser('~/.acs/logs') if not os.path.exists(output_dir): os.makedirs(output_dir) self.logger = logging.getLogger(name) self.logger.setLevel(logging.DEBUG) ...
1,658
-8
184
79d3034c5b69cdbc2c224fecc6f05b792ffd9c38
2,911
py
Python
functions/overlay_audio.py
btgann/amazon-connect-realtime-transcription
732408b62c39e36af0f0fa8b20b80da1a58b5efc
[ "MIT-0" ]
100
2019-09-23T23:39:00.000Z
2022-03-31T10:59:01.000Z
functions/overlay_audio.py
btgann/amazon-connect-realtime-transcription
732408b62c39e36af0f0fa8b20b80da1a58b5efc
[ "MIT-0" ]
51
2019-09-06T17:51:04.000Z
2022-03-22T21:20:53.000Z
functions/overlay_audio.py
btgann/amazon-connect-realtime-transcription
732408b62c39e36af0f0fa8b20b80da1a58b5efc
[ "MIT-0" ]
62
2019-09-15T07:37:29.000Z
2022-03-10T18:02:00.000Z
import io import json import boto3 import os from pydub import AudioSegment
26.225225
68
0.585709
import io import json import boto3 import os from pydub import AudioSegment def lambda_handler(event, context): contact_id_info = event['target']['Key'] print(contact_id_info) contact_array = contact_id_info.split('_') contact_Id = contact_array[0] print(contact_Id) handle_dynamo(ev...
2,749
0
75
4f1861257476bc180dc28877823670cc1543141b
9,518
py
Python
wce_triage/lib/netplan.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
3
2019-07-25T03:24:23.000Z
2021-06-23T14:01:34.000Z
wce_triage/lib/netplan.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
1
2019-12-20T16:04:19.000Z
2019-12-20T16:04:19.000Z
wce_triage/lib/netplan.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
2
2019-07-25T03:24:26.000Z
2021-02-14T05:27:11.000Z
""" netplan.py generates netplan file for triage. There are two cases, one for during triage where a machine generates a default netplan yaml file, and other is for server. """ from ..const import const from ..components.network import NetworkDeviceType, NetworkDevice import sys, os, json, hashlib indentspace = ' '...
28.41194
118
0.61452
""" netplan.py generates netplan file for triage. There are two cases, one for during triage where a machine generates a default netplan yaml file, and other is for server. """ from ..const import const from ..components.network import NetworkDeviceType, NetworkDevice import sys, os, json, hashlib indentspace = ' '...
769
49
45
0abb64d5dbfa02094ea8ed91a05f58a2f9b0eab4
771
py
Python
ch4/dcard_api.py
lpark6321/py-scraping-codetest
f53d33b63f74dcb29276400070346605685e17cb
[ "MIT" ]
null
null
null
ch4/dcard_api.py
lpark6321/py-scraping-codetest
f53d33b63f74dcb29276400070346605685e17cb
[ "MIT" ]
null
null
null
ch4/dcard_api.py
lpark6321/py-scraping-codetest
f53d33b63f74dcb29276400070346605685e17cb
[ "MIT" ]
null
null
null
import requests DCARD_URL = 'https://www.dcard.tw' DCARD_API = DCARD_URL + '/_api/posts?popular=true' #https://www.dcard.tw/_api/posts?popular=true&limit=最大幾項&before=最後一篇文章號碼 if __name__ == '__main__': num_page = 2 posts = list(requests.get(DCARD_API).json()) for i in range(1, num_page): id_last...
33.521739
86
0.60441
import requests DCARD_URL = 'https://www.dcard.tw' DCARD_API = DCARD_URL + '/_api/posts?popular=true' #https://www.dcard.tw/_api/posts?popular=true&limit=最大幾項&before=最後一篇文章號碼 def show(post): for key in ['id', 'title', 'excerpt', 'likeCount', 'commentCount']: print('%s: %s' %(key, post[key])) print('h...
185
0
23
1c9cbb6c816dfec2e7a90b98b3b9a1afae8cd85f
747
py
Python
flask_zs/exceptions.py
codeif/flask-zs
33ea4dbf97edced895e9a6eac7cbfeb6a659f6cb
[ "MIT" ]
5
2019-12-19T09:30:20.000Z
2022-01-07T17:53:52.000Z
flask_zs/exceptions.py
codeif/Flask-ZS
2992ac06aa1a2e8b7e61dc3e551dac350b256f91
[ "MIT" ]
null
null
null
flask_zs/exceptions.py
codeif/Flask-ZS
2992ac06aa1a2e8b7e61dc3e551dac350b256f91
[ "MIT" ]
null
null
null
""" flask_zs.exceptions ~~~~~~~~~~~~ flask-zs exceptions module :copyright: (c) 2018 by codeif. :license: MIT, see LICENSE for more details. """
20.189189
60
0.598394
""" flask_zs.exceptions ~~~~~~~~~~~~ flask-zs exceptions module :copyright: (c) 2018 by codeif. :license: MIT, see LICENSE for more details. """ class BaseCustomException(Exception): errcode = 1000 errmsg = "Server Unkown Error." def __init__(self, errmsg=None, errcode=None, **kw): ...
281
227
69
cb9d75b973a4591df4e16cfed850bad51918caf1
3,089
py
Python
Algorithm/LeetCode/523_continuous_subarray_sum.py
hqzhang83/Everything101
88b42902cb96e87fd44a3be60624ec919326e369
[ "Apache-2.0" ]
null
null
null
Algorithm/LeetCode/523_continuous_subarray_sum.py
hqzhang83/Everything101
88b42902cb96e87fd44a3be60624ec919326e369
[ "Apache-2.0" ]
null
null
null
Algorithm/LeetCode/523_continuous_subarray_sum.py
hqzhang83/Everything101
88b42902cb96e87fd44a3be60624ec919326e369
[ "Apache-2.0" ]
null
null
null
""" # Problem Statement Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that sums up to a multiple of k, that is, sums up to n*k where n is also an integer. ## Constraints: The length of the array won't exceed 10,000. You...
29.990291
92
0.609259
""" # Problem Statement Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that sums up to a multiple of k, that is, sums up to n*k where n is also an integer. ## Constraints: The length of the array won't exceed 10,000. You...
769
351
46
fef0ff6e79b4384c67f140e01d979e020980a194
5,144
py
Python
emanuel/migrations/0001_initial.py
Alexandre1313/Desafio
03f6ba5228b0654be002cbf4ff22bbf8e2ea8fd1
[ "MIT" ]
null
null
null
emanuel/migrations/0001_initial.py
Alexandre1313/Desafio
03f6ba5228b0654be002cbf4ff22bbf8e2ea8fd1
[ "MIT" ]
null
null
null
emanuel/migrations/0001_initial.py
Alexandre1313/Desafio
03f6ba5228b0654be002cbf4ff22bbf8e2ea8fd1
[ "MIT" ]
null
null
null
# Generated by Django 2.2.17 on 2021-01-29 22:34 from django.db import migrations, models import django.db.models.deletion
49.941748
120
0.566291
# Generated by Django 2.2.17 on 2021-01-29 22:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Aluno', fields=[ ...
0
4,997
23
0dda38cc660ef2c065db576d5bbed10844e47a73
1,719
py
Python
accounts/urls.py
danielskiptoo/foreCast
9eb9383846e06b0fa8dfe79be27c69dd26b98e48
[ "MIT" ]
null
null
null
accounts/urls.py
danielskiptoo/foreCast
9eb9383846e06b0fa8dfe79be27c69dd26b98e48
[ "MIT" ]
2
2021-03-19T22:01:45.000Z
2021-06-10T20:02:17.000Z
accounts/urls.py
danielskiptoo/foreCast
9eb9383846e06b0fa8dfe79be27c69dd26b98e48
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import views as auth from django.urls import path, include import main.views import accounts.views urlpatterns = [ path('',main.views.IndexView, name='index'), path('login/', accounts.views.SignInView.as_view(), name='login'), path('logout/', a...
42.975
105
0.717277
from django.contrib import admin from django.contrib.auth import views as auth from django.urls import path, include import main.views import accounts.views urlpatterns = [ path('',main.views.IndexView, name='index'), path('login/', accounts.views.SignInView.as_view(), name='login'), path('logout/', a...
0
0
0
44277268c05387b6e95f385f2eac97df528a87ac
1,571
py
Python
train.py
roym899/abandoned_bag_detection
5c27dcade60b5f740bd35b5366ae22d8d8b834af
[ "MIT" ]
1
2020-03-31T11:35:50.000Z
2020-03-31T11:35:50.000Z
train.py
Guttappa1238/abandoned_bag_detection
4c341e109451c1db0879ac87671c76dcd5d27414
[ "MIT" ]
2
2020-09-30T06:54:08.000Z
2022-03-26T07:26:07.000Z
train.py
Guttappa1238/abandoned_bag_detection
4c341e109451c1db0879ac87671c76dcd5d27414
[ "MIT" ]
4
2020-09-30T06:59:53.000Z
2022-03-24T12:39:54.000Z
#!/usr/bin/env python3 # coding: utf-8 import os from detectron2.data.datasets import register_coco_instances from detectron2 import model_zoo from detectron2.config import get_cfg from detectron2.engine import DefaultTrainer from torch import cuda register_coco_instances("person_bag_train", {}, "./datasets/per...
38.317073
112
0.756206
#!/usr/bin/env python3 # coding: utf-8 import os from detectron2.data.datasets import register_coco_instances from detectron2 import model_zoo from detectron2.config import get_cfg from detectron2.engine import DefaultTrainer from torch import cuda register_coco_instances("person_bag_train", {}, "./datasets/per...
0
0
0
7f8839cc00edfc811c700fc52298bc3e7a390c02
4,298
py
Python
python/gtsam/examples/ShonanAveragingCLI.py
xxiao-1/gtsam
8b1516f43ffdf6b5098fc282b566f2ee1edb50f6
[ "BSD-3-Clause" ]
1,402
2017-03-28T00:18:11.000Z
2022-03-30T10:28:32.000Z
python/gtsam/examples/ShonanAveragingCLI.py
xxiao-1/gtsam
8b1516f43ffdf6b5098fc282b566f2ee1edb50f6
[ "BSD-3-Clause" ]
851
2017-11-27T15:09:56.000Z
2022-03-31T22:26:38.000Z
python/gtsam/examples/ShonanAveragingCLI.py
xxiao-1/gtsam
8b1516f43ffdf6b5098fc282b566f2ee1edb50f6
[ "BSD-3-Clause" ]
565
2017-11-30T16:15:59.000Z
2022-03-31T02:53:04.000Z
""" GTSAM Copyright 2010-2018, Georgia Tech Research Corporation, Atlanta, Georgia 30332-0415 All Rights Reserved Authors: Frank Dellaert, et al. (see THANKS for the full author list) See LICENSE for the license information Shonan Rotation Averaging CLI reads a *pose* graph, extracts the rotation constraints, and run...
34.111111
91
0.64402
""" GTSAM Copyright 2010-2018, Georgia Tech Research Corporation, Atlanta, Georgia 30332-0415 All Rights Reserved Authors: Frank Dellaert, et al. (see THANKS for the full author list) See LICENSE for the license information Shonan Rotation Averaging CLI reads a *pose* graph, extracts the rotation constraints, and run...
118
0
54
bbddbf8bc7f5322358ec29bf6f48df24315ccf1c
6,505
py
Python
scripts/fabfile/upfront.py
qinzhewudao/amoeba
dbb6d4248078fd4418cf5048056c7b79aaf4d5f8
[ "MIT" ]
15
2016-07-14T07:41:31.000Z
2021-08-07T03:19:42.000Z
scripts/fabfile/upfront.py
qinzhewudao/amoeba
dbb6d4248078fd4418cf5048056c7b79aaf4d5f8
[ "MIT" ]
18
2015-11-11T23:27:20.000Z
2016-03-11T00:56:38.000Z
scripts/fabfile/upfront.py
mitdbg/mdindex
dbb6d4248078fd4418cf5048056c7b79aaf4d5f8
[ "MIT" ]
2
2017-06-06T10:33:54.000Z
2017-12-23T07:56:40.000Z
from fabric.api import run,put,cd,parallel,roles,serial,local,runs_once from env_setup import * counter = 0 """ Used to measure the time taken to simply upload data into HDFS. """ @parallel @roles('master') @parallel @roles('master') @roles('master') @roles('master') @roles('master') @roles('master') @roles('...
29.976959
133
0.512683
from fabric.api import run,put,cd,parallel,roles,serial,local,runs_once from env_setup import * counter = 0 """ Used to measure the time taken to simply upload data into HDFS. """ @parallel def hdfs_upload_test(): global conf with cd(env.conf['HADOOPBIN']): cmd = './hadoop fs -copyFromLocal' + \ ...
5,678
0
352
3b26eb555841609295156c7e3c5cbb4c23fb68ee
107
py
Python
call_job.py
breecummins/dsgrn_net_gen
bcd77b71ad3e311d2906f0af986559d2c54ffe6d
[ "MIT" ]
1
2020-03-31T18:44:06.000Z
2020-03-31T18:44:06.000Z
call_job.py
breecummins/dsgrn_net_gen
bcd77b71ad3e311d2906f0af986559d2c54ffe6d
[ "MIT" ]
null
null
null
call_job.py
breecummins/dsgrn_net_gen
bcd77b71ad3e311d2906f0af986559d2c54ffe6d
[ "MIT" ]
null
null
null
from dsgrn_net_gen.makejobs import Job import sys paramfile = sys.argv[1] job = Job(paramfile) job.run()
13.375
38
0.757009
from dsgrn_net_gen.makejobs import Job import sys paramfile = sys.argv[1] job = Job(paramfile) job.run()
0
0
0
acc85df035231baea2783c4a8f782608fdf3e42f
13,022
py
Python
astroquery/mast/services.py
rickynilsson/astroquery
b7edec0d8e36b11c25baa39ad72e4160bc30d465
[ "BSD-3-Clause" ]
577
2015-02-12T18:23:49.000Z
2022-03-22T21:38:58.000Z
astroquery/mast/services.py
rickynilsson/astroquery
b7edec0d8e36b11c25baa39ad72e4160bc30d465
[ "BSD-3-Clause" ]
1,812
2015-01-01T08:02:20.000Z
2022-03-31T13:03:52.000Z
astroquery/mast/services.py
rickynilsson/astroquery
b7edec0d8e36b11c25baa39ad72e4160bc30d465
[ "BSD-3-Clause" ]
322
2015-02-23T19:31:29.000Z
2022-03-25T18:51:30.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ MAST Microservices API ====================== This module contains various methods for querying MAST microservice APIs. """ import json import time import warnings import numpy as np from astropy.table import Table, Column, MaskedColumn from ..que...
36.889518
119
0.593688
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ MAST Microservices API ====================== This module contains various methods for querying MAST microservice APIs. """ import json import time import warnings import numpy as np from astropy.table import Table, Column, MaskedColumn from ..que...
215
0
27
12617a6cbffa4e5f50c790ffdd9e897f84e62fb7
1,588
py
Python
C02/common/utils.py
pascal-p/ML_UW_Spec
5e19916b62fd776b1412ba31d06b41049a1ec7d8
[ "BSD-3-Clause" ]
null
null
null
C02/common/utils.py
pascal-p/ML_UW_Spec
5e19916b62fd776b1412ba31d06b41049a1ec7d8
[ "BSD-3-Clause" ]
null
null
null
C02/common/utils.py
pascal-p/ML_UW_Spec
5e19916b62fd776b1412ba31d06b41049a1ec7d8
[ "BSD-3-Clause" ]
null
null
null
import numpy as np ## ## use in week 2, 4 and 5 ## def get_rss(model, data, y): """ get prediction, then calc. rss """ preds = model.predict(data) # First get the predictions diff = y - preds # Then compute the residuals/errors rss = (diff * diff).sum() # Then square and add...
42.918919
135
0.695214
import numpy as np ## ## use in week 2, 4 and 5 ## def get_numpy_data(data_sf, features, output): data_sf['constant'] = 1.0 # this is how you add a constant column to an SFrame features = ['constant', *features] # add the column 'constant' to the front of the features list so that we can ...
1,152
0
92
a425e2f4bad9193b1bbe7e622987527ee440052d
478
py
Python
gazebo_sim/results/binarize.py
CARMinesDouai/MutiRobotExplorationPackages
725f36eaa22adb33be7f5961db1a0f8e50fdadbd
[ "MIT" ]
7
2016-12-10T15:44:00.000Z
2020-08-27T17:40:11.000Z
gazebo_sim/results/binarize.py
CARMinesDouai/MutiRobotExplorationPackages
725f36eaa22adb33be7f5961db1a0f8e50fdadbd
[ "MIT" ]
2
2020-04-14T15:19:53.000Z
2021-01-26T21:26:47.000Z
gazebo_sim/results/binarize.py
CARMinesDouai/MutiRobotExplorationPackages
725f36eaa22adb33be7f5961db1a0f8e50fdadbd
[ "MIT" ]
2
2017-01-29T03:01:06.000Z
2021-12-15T14:59:10.000Z
#! /usr/bin/python import cv2 import sys import os import ntpath f = sys.argv[1] print('Binarizing ',f) name = ntpath.basename(f) dir = os.path.dirname(f) im_gray = cv2.imread(f, cv2.IMREAD_GRAYSCALE) #THRESH_BINARY_INV if(len(sys.argv) > 2): thresh = 130 im_bw = cv2.threshold(im_gray, thresh, 255, cv2.THRESH...
26.555556
91
0.702929
#! /usr/bin/python import cv2 import sys import os import ntpath f = sys.argv[1] print('Binarizing ',f) name = ntpath.basename(f) dir = os.path.dirname(f) im_gray = cv2.imread(f, cv2.IMREAD_GRAYSCALE) #THRESH_BINARY_INV if(len(sys.argv) > 2): thresh = 130 im_bw = cv2.threshold(im_gray, thresh, 255, cv2.THRESH...
0
0
0
0010198ae10439d3cc2215f0f28a9f4dbb98d891
33
py
Python
testproject/localsite/__init__.py
jinrith27/Realestate
9e8d7f44c0d04f4828adedb9977bd869cf4a8ce7
[ "BSD-2-Clause" ]
42
2015-02-22T10:00:02.000Z
2021-10-31T08:56:40.000Z
testproject/localsite/__init__.py
jinrith27/Realestate
9e8d7f44c0d04f4828adedb9977bd869cf4a8ce7
[ "BSD-2-Clause" ]
8
2015-03-07T14:16:45.000Z
2019-02-26T15:37:01.000Z
testproject/localsite/__init__.py
jinrith27/Realestate
9e8d7f44c0d04f4828adedb9977bd869cf4a8ce7
[ "BSD-2-Clause" ]
23
2015-01-08T19:32:33.000Z
2020-11-16T08:07:02.000Z
__author__ = 'Williams Mendez'
16.5
30
0.727273
__author__ = 'Williams Mendez'
0
0
0
e79e28aa0dd405298d73ed88a330079e8d56fa27
28
py
Python
pyfan/table/__init__.py
FanWangEcon/pyfan
126e91c0c6d930f1c335a07396d1d2145b247cea
[ "MIT" ]
1
2020-08-02T21:43:39.000Z
2020-08-02T21:43:39.000Z
pyfan/table/__init__.py
FanWangEcon/pyfan
126e91c0c6d930f1c335a07396d1d2145b247cea
[ "MIT" ]
null
null
null
pyfan/table/__init__.py
FanWangEcon/pyfan
126e91c0c6d930f1c335a07396d1d2145b247cea
[ "MIT" ]
1
2020-12-02T06:45:20.000Z
2020-12-02T06:45:20.000Z
# Generating Tables (Latex)
14
27
0.75
# Generating Tables (Latex)
0
0
0
08983efcb412e733d9fb2e6416f739f80eaff9a1
1,345
py
Python
genderbyname.py
hzursa/Play-Reader
d3486fd8306fecc92439606736edbda5a4b1e381
[ "MIT" ]
null
null
null
genderbyname.py
hzursa/Play-Reader
d3486fd8306fecc92439606736edbda5a4b1e381
[ "MIT" ]
null
null
null
genderbyname.py
hzursa/Play-Reader
d3486fd8306fecc92439606736edbda5a4b1e381
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction import DictVectorizer from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassifier from sklearn.naive_bayes import MultinomialNB features = np.vector...
30.568182
83
0.703346
import pandas as pd import numpy as np from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction import DictVectorizer from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassifier from sklearn.naive_bayes import MultinomialNB def features(name): ...
456
0
44
298fab930d77151a7039b3f22808888f3f54a212
1,676
py
Python
afs_integration/conf.py
fadilsiddique/afs_integration
6782844e415755ea1b9bac36d3fb47f6261ee732
[ "MIT" ]
null
null
null
afs_integration/conf.py
fadilsiddique/afs_integration
6782844e415755ea1b9bac36d3fb47f6261ee732
[ "MIT" ]
null
null
null
afs_integration/conf.py
fadilsiddique/afs_integration
6782844e415755ea1b9bac36d3fb47f6261ee732
[ "MIT" ]
null
null
null
# from http.client import OK # from urllib import request, response # import frappe # import requests # import json # from erpnext.selling.doctype.sales_order.sales_order import make_sales_invoice # import os # @frappe.whitelist(allow_guest=True) # def webhook(*args,**kwargs): # from dotenv import load_dotenv # ...
32.230769
95
0.653341
# from http.client import OK # from urllib import request, response # import frappe # import requests # import json # from erpnext.selling.doctype.sales_order.sales_order import make_sales_invoice # import os # @frappe.whitelist(allow_guest=True) # def webhook(*args,**kwargs): # from dotenv import load_dotenv # ...
0
0
0
002729bdb7f190b75a5af02c0c445d90a3213921
1,635
py
Python
tests/calculations/test_pw2gw.py
lbotsch/aiida-quantumespresso
fe75c80cecb61113641366961ced8ed5a03cf896
[ "MIT" ]
null
null
null
tests/calculations/test_pw2gw.py
lbotsch/aiida-quantumespresso
fe75c80cecb61113641366961ced8ed5a03cf896
[ "MIT" ]
null
null
null
tests/calculations/test_pw2gw.py
lbotsch/aiida-quantumespresso
fe75c80cecb61113641366961ced8ed5a03cf896
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for the `Pw2gwCalculation` class.""" from aiida import orm from aiida.common import datastructures from aiida_quantumespresso.utils.resources import get_default_options def test_pw_default( aiida_profile, fixture_localhost, fixture_sandbox, fixture_code, generate_calc_job, genera...
29.727273
117
0.64526
# -*- coding: utf-8 -*- """Tests for the `Pw2gwCalculation` class.""" from aiida import orm from aiida.common import datastructures from aiida_quantumespresso.utils.resources import get_default_options def test_pw_default( aiida_profile, fixture_localhost, fixture_sandbox, fixture_code, generate_calc_job, genera...
0
0
0
1838831d109c70ffd7a9492db2812ab63b9054a8
14,892
py
Python
deeppavlov/models/morpho_tagger/network.py
cclauss/DeepPavlov
8726173c92994b3f789790b5879052d2f7953f47
[ "Apache-2.0" ]
3
2020-04-16T04:25:10.000Z
2021-05-07T23:04:43.000Z
deeppavlov/models/morpho_tagger/network.py
sachinsingh3107/Deeppavlov_Chatbot
f10b9485c118cdec69e73c89833a1a5a164404de
[ "Apache-2.0" ]
12
2020-01-28T22:14:04.000Z
2022-02-10T00:10:17.000Z
deeppavlov/models/morpho_tagger/network.py
sachinsingh3107/Deeppavlov_Chatbot
f10b9485c118cdec69e73c89833a1a5a164404de
[ "Apache-2.0" ]
1
2022-02-08T14:41:28.000Z
2022-02-08T14:41:28.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # 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 applicab...
44.990937
110
0.631144
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # 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 applicab...
3,493
0
106
89b08ec22d098c7b9208c33efd73a85e9e2c1ada
520
py
Python
setup.py
ybalcanci/turkce-sozde-insan-ismi-uretici
55350e1bcd41c946a455a37d87b6024dd94869d8
[ "Apache-2.0" ]
2
2020-02-05T00:28:08.000Z
2022-03-28T10:11:36.000Z
setup.py
ybalcanci/turkce-sozde-insan-ismi-uretici
55350e1bcd41c946a455a37d87b6024dd94869d8
[ "Apache-2.0" ]
null
null
null
setup.py
ybalcanci/turkce-sozde-insan-ismi-uretici
55350e1bcd41c946a455a37d87b6024dd94869d8
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup( name="turkce_isimler", packages=["turkce_isimler"], version="2.0", license="MIT", description="Bu paket ile rastgele Türkçe kadın ve erkek isimleri üretebilirsiniz.", author="Yasin Balcancı, Emre Sülün", author_email="ybalcanci@gmail.com", url="htt...
34.666667
88
0.701923
from distutils.core import setup setup( name="turkce_isimler", packages=["turkce_isimler"], version="2.0", license="MIT", description="Bu paket ile rastgele Türkçe kadın ve erkek isimleri üretebilirsiniz.", author="Yasin Balcancı, Emre Sülün", author_email="ybalcanci@gmail.com", url="htt...
0
0
0
c3950294e0bebe8f896179e62a4f40d03dc005f4
117
py
Python
selia/__init__.py
IslasGECI/selia
9863c32cd45db13053a1d2add67f5bdc1871b791
[ "BSD-4-Clause" ]
null
null
null
selia/__init__.py
IslasGECI/selia
9863c32cd45db13053a1d2add67f5bdc1871b791
[ "BSD-4-Clause" ]
13
2020-01-07T21:53:50.000Z
2022-01-13T01:53:50.000Z
selia/__init__.py
IslasGECI/selia
9863c32cd45db13053a1d2add67f5bdc1871b791
[ "BSD-4-Clause" ]
1
2021-05-06T19:38:09.000Z
2021-05-06T19:38:09.000Z
import os APP_DIRECTORY = os.path.dirname(os.path.abspath(__file__)) default_app_config = 'selia.apps.SeliaConfig'
19.5
58
0.794872
import os APP_DIRECTORY = os.path.dirname(os.path.abspath(__file__)) default_app_config = 'selia.apps.SeliaConfig'
0
0
0
111203c73c5a5c350b31463d934dd5207d4cb99d
486
py
Python
BioDesigner/urls.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
null
null
null
BioDesigner/urls.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
3
2015-09-21T21:50:45.000Z
2015-09-22T15:42:28.000Z
BioDesigner/urls.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
2
2020-03-28T01:33:51.000Z
2021-07-18T13:56:27.000Z
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'tagging.views.home', name='home'), # url(r'^blog/', include('blog.urls')), # url(r'^$', include('accounts.urls')), url(r'^accounts/', ...
28.588235
52
0.617284
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'tagging.views.home', name='home'), # url(r'^blog/', include('blog.urls')), # url(r'^$', include('accounts.urls')), url(r'^accounts/', ...
0
0
0
6c63ba7f91a48a0188c399281c593d4ba505bdb0
2,026
py
Python
query_training/grbm/gibbs.py
vicariousinc/query_training
ff93416a7ac470c20186e85c8a4ac3663036e2ce
[ "MIT" ]
3
2021-02-15T04:39:50.000Z
2022-02-24T10:38:53.000Z
query_training/grbm/gibbs.py
vicariousinc/query_training
ff93416a7ac470c20186e85c8a4ac3663036e2ce
[ "MIT" ]
null
null
null
query_training/grbm/gibbs.py
vicariousinc/query_training
ff93416a7ac470c20186e85c8a4ac3663036e2ce
[ "MIT" ]
1
2021-02-28T02:39:34.000Z
2021-02-28T02:39:34.000Z
import numba import numpy as np @numba.jit(nopython=True, cache=True) @numba.jit(nopython=True, cache=True) @numba.jit(nopython=True, cache=True) @numba.jit(nopython=True, cache=True) @numba.jit(nopython=True, cache=True) @numba.jit(nopython=True, cache=True) @numba.jit(nopython=True, cache=True) @numba...
26.311688
84
0.628825
import numba import numpy as np @numba.jit(nopython=True, cache=True) def sigmoid(x): return 1 / (1 + np.exp(-x)) @numba.jit(nopython=True, cache=True) def vis2hid_potential(v, w, hid_b): return -np.dot(v.astype(np.float32), w) - hid_b @numba.jit(nopython=True, cache=True) def vis2hid(v, w, hid_b): re...
1,474
0
199
b733b13baa805545757f600a7765bab9bbe074f8
2,857
py
Python
Afvaldienst/test_mijnafvalwijzer.py
xirixiz/python-afvalwijzer-afvalstoffendienst
ef76b07033848a6f7092e941c6c4a3ec214f2842
[ "MIT" ]
1
2019-10-28T12:26:14.000Z
2019-10-28T12:26:14.000Z
Afvaldienst/test_mijnafvalwijzer.py
xirixiz/afvaldienst
ef76b07033848a6f7092e941c6c4a3ec214f2842
[ "MIT" ]
3
2020-09-11T08:38:50.000Z
2020-09-23T07:08:44.000Z
Afvaldienst/test_mijnafvalwijzer.py
xirixiz/python-afvalwijzer-afvalstoffendienst
ef76b07033848a6f7092e941c6c4a3ec214f2842
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from Afvaldienst import Afvaldienst #trash = Afvaldienst('mijnafvalwijzer', '', '5146EG', '2', '', 'false', 'Geen') #trash = Afvaldienst('mijnafvalwijzer', '6851GJ', '2', '', 'false') #trash = Afvaldienst('mijnafvalwijzer', '3911CX', '178', '', 'false') #trash = Afvaldienst('mijnafvalwijzer', '...
98.517241
2,067
0.624081
#!/usr/bin/env python3 from Afvaldienst import Afvaldienst #trash = Afvaldienst('mijnafvalwijzer', '', '5146EG', '2', '', 'false', 'Geen') #trash = Afvaldienst('mijnafvalwijzer', '6851GJ', '2', '', 'false') #trash = Afvaldienst('mijnafvalwijzer', '3911CX', '178', '', 'false') #trash = Afvaldienst('mijnafvalwijzer', '...
0
0
0
76f5ce295fe7a707257b1019ddc2e3dc95744279
1,827
py
Python
main.py
pattoM/InfluxDB-Demo
4f91908aa23bcd8c752f9775bb425588208cc41b
[ "MIT" ]
1
2022-03-17T09:38:14.000Z
2022-03-17T09:38:14.000Z
main.py
pattoM/InfluxDB-Demo
4f91908aa23bcd8c752f9775bb425588208cc41b
[ "MIT" ]
null
null
null
main.py
pattoM/InfluxDB-Demo
4f91908aa23bcd8c752f9775bb425588208cc41b
[ "MIT" ]
null
null
null
from flask import Flask,request, abort,jsonify from datetime import datetime import rfc3339 from apscheduler.schedulers.background import BackgroundScheduler from flask_cors import CORS, cross_origin import random from influxdb import InfluxDBClient #app init for flask app = Flask(__name__) app.config['SECRET_KEY'] =...
27.268657
156
0.662835
from flask import Flask,request, abort,jsonify from datetime import datetime import rfc3339 from apscheduler.schedulers.background import BackgroundScheduler from flask_cors import CORS, cross_origin import random from influxdb import InfluxDBClient #app init for flask app = Flask(__name__) app.config['SECRET_KEY'] =...
299
0
22
9ca1079cfe865e5f83d56039a0e88614d08303c2
339
py
Python
datakeeper/main.py
thegreathippo/datakeeper
f3d47f5e5c6131ca3321eb5791de3e38e51a8456
[ "MIT" ]
null
null
null
datakeeper/main.py
thegreathippo/datakeeper
f3d47f5e5c6131ca3321eb5791de3e38e51a8456
[ "MIT" ]
null
null
null
datakeeper/main.py
thegreathippo/datakeeper
f3d47f5e5c6131ca3321eb5791de3e38e51a8456
[ "MIT" ]
null
null
null
from utils import load_yaml_file inputs = {"Number": Number, "Flag": Flag} data = load_yaml_file('data.yaml') #print(data) for key in data: print(data[key]) if data[key] in inputs: data[key] = inputs[key] print(data)
11.3
41
0.648968
from utils import load_yaml_file class UserInput: pass class Number(UserInput): pass class Flag(UserInput): pass inputs = {"Number": Number, "Flag": Flag} data = load_yaml_file('data.yaml') #print(data) for key in data: print(data[key]) if data[key] in inputs: data[key] = input...
0
26
69
c1ff7fb5faccb327075ff47015cc6866b13052fb
478
py
Python
autoprocess/auto_inputs.py
michel4j/auto-process
9c011cef3cdc2fc55df31f9cac88c3e1074aa366
[ "BSD-3-Clause" ]
null
null
null
autoprocess/auto_inputs.py
michel4j/auto-process
9c011cef3cdc2fc55df31f9cac88c3e1074aa366
[ "BSD-3-Clause" ]
null
null
null
autoprocess/auto_inputs.py
michel4j/auto-process
9c011cef3cdc2fc55df31f9cac88c3e1074aa366
[ "BSD-3-Clause" ]
null
null
null
import sys from autoprocess.engine.process import DataSet from autoprocess.utils import log, xdsio logger = log.get_module_logger('auto.process')
23.9
105
0.713389
import sys from autoprocess.engine.process import DataSet from autoprocess.utils import log, xdsio logger = log.get_module_logger('auto.process') def main(args): dataset = DataSet(filename=args.image) logger.info('Creating XDS.INP ...') xdsio.write_xds_input('ALL !XYCORR INIT COLSPOT IDXREF DEFPIX INTEGR...
283
0
46
bd5d6518223769187c7ccb7e8f29f1fc217a0fca
670
py
Python
edfi_performance/api/client/program.py
Ed-Fi-Exchange-OSS/Suite-3-Performance-Testing
a15efafd5b209b6a82a84c7ee6bce215470dfd21
[ "Apache-2.0" ]
null
null
null
edfi_performance/api/client/program.py
Ed-Fi-Exchange-OSS/Suite-3-Performance-Testing
a15efafd5b209b6a82a84c7ee6bce215470dfd21
[ "Apache-2.0" ]
10
2021-03-20T05:02:17.000Z
2022-03-30T17:19:35.000Z
edfi_performance/api/client/program.py
Ed-Fi-Exchange-OSS/Ed-Fi-X-ODS-Performance
05678a2c8c314d69a5e6b9ed3040800835b91582
[ "Apache-2.0" ]
1
2022-03-25T09:09:32.000Z
2022-03-25T09:09:32.000Z
# SPDX-License-Identifier: Apache-2.0 # Licensed to the Ed-Fi Alliance under one or more agreements. # The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. # See the LICENSE and NOTICES files in the project root for more information. from edfi_performance.api.client import EdFiAPIClient...
33.5
94
0.741791
# SPDX-License-Identifier: Apache-2.0 # Licensed to the Ed-Fi Alliance under one or more agreements. # The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. # See the LICENSE and NOTICES files in the project root for more information. from edfi_performance.api.client import EdFiAPIClient...
215
110
23
0e1525edc9283b19f1bb5bfce88c62399b29e528
3,090
py
Python
artificial_bias_experiments/known_prop_scores/sar_two_subject_groups/known_prop_scores_sar_two_groups_file_naming.py
ML-KULeuven/KBC-as-PU-Learning
a00f606bd40ca06af0a5627e65a4582859976918
[ "Apache-2.0" ]
4
2021-12-14T16:13:47.000Z
2022-01-21T13:14:14.000Z
artificial_bias_experiments/known_prop_scores/sar_two_subject_groups/known_prop_scores_sar_two_groups_file_naming.py
ML-KULeuven/KBC-as-PU-Learning
a00f606bd40ca06af0a5627e65a4582859976918
[ "Apache-2.0" ]
null
null
null
artificial_bias_experiments/known_prop_scores/sar_two_subject_groups/known_prop_scores_sar_two_groups_file_naming.py
ML-KULeuven/KBC-as-PU-Learning
a00f606bd40ca06af0a5627e65a4582859976918
[ "Apache-2.0" ]
null
null
null
import os from artificial_bias_experiments.known_prop_scores.dataset_generation_file_naming import \ get_root_dir_experiment_known_propensity_scores, get_root_dir_images_known_prop_scores, get_pca_token from artificial_bias_experiments.known_prop_scores.sar_two_subject_groups.experiment_info import \ KnownProp...
37.228916
105
0.650162
import os from artificial_bias_experiments.known_prop_scores.dataset_generation_file_naming import \ get_root_dir_experiment_known_propensity_scores, get_root_dir_images_known_prop_scores, get_pca_token from artificial_bias_experiments.known_prop_scores.sar_two_subject_groups.experiment_info import \ KnownProp...
2,347
375
23
be0b863b6210332c5f694178c6c5e1a344f02c2d
11,155
py
Python
qcodes/instrument/group_parameter.py
zhinst/Qcodes
d95798bd08d57bb8cddd460fdb4a5ff25f19215c
[ "MIT" ]
null
null
null
qcodes/instrument/group_parameter.py
zhinst/Qcodes
d95798bd08d57bb8cddd460fdb4a5ff25f19215c
[ "MIT" ]
null
null
null
qcodes/instrument/group_parameter.py
zhinst/Qcodes
d95798bd08d57bb8cddd460fdb4a5ff25f19215c
[ "MIT" ]
null
null
null
""" This module implements a :class:`.Group` intended to hold multiple parameters that are to be gotten and set by the same command. The parameters should be of type :class:`GroupParameter` """ from collections import OrderedDict from typing import List, Union, Callable, Dict, Any, Optional from qcodes.instrument.pa...
43.917323
83
0.593994
""" This module implements a :class:`.Group` intended to hold multiple parameters that are to be gotten and set by the same command. The parameters should be of type :class:`GroupParameter` """ from collections import OrderedDict from typing import List, Union, Callable, Dict, Any, Optional from qcodes.instrument.pa...
3,232
0
164
7b64a1d74f4562bcf1b39ef8fa3408b2bf655855
832
py
Python
morsecode_core.py
hemendrarajawat/the-morse-code
4b98461a24ce32823c258e00d30d5d7f4ec526b4
[ "MIT" ]
null
null
null
morsecode_core.py
hemendrarajawat/the-morse-code
4b98461a24ce32823c258e00d30d5d7f4ec526b4
[ "MIT" ]
3
2020-08-09T16:01:13.000Z
2020-08-13T20:56:32.000Z
morsecode_core.py
hemendrarajawat/the-morse-code
4b98461a24ce32823c258e00d30d5d7f4ec526b4
[ "MIT" ]
null
null
null
from morsecode_dict import MORSE_CODE_DICT # This function takes the text message and returns the converted morse code. # This function takes the morse code cipher and returns the text message.
25.212121
103
0.629808
from morsecode_dict import MORSE_CODE_DICT # This function takes the text message and returns the converted morse code. def encrypt(message): if message == None: return None cipher = '' for letter in message: if letter in MORSE_CODE_DICT: cipher += MORSE_CODE_DICT[letter] + ' ...
591
0
44
d2b75dc0c2b262d3161091c616545ecdc6f5e590
6,611
py
Python
bin/analysis/cpa/base.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
6
2015-09-19T18:22:33.000Z
2020-11-29T15:21:17.000Z
bin/analysis/cpa/base.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
1
2015-08-04T08:03:46.000Z
2015-08-04T08:03:46.000Z
bin/analysis/cpa/base.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
1
2019-12-09T08:27:09.000Z
2019-12-09T08:27:09.000Z
# Copyright 2011 Nicholas Bray # # 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...
32.092233
95
0.736651
# Copyright 2011 Nicholas Bray # # 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...
5,302
305
69
b9bacc2481c9974fbeaa405140db367d9099a2bd
901
py
Python
pyckaxe/lib/types.py
Arcensoth/pyckaxe
09ed0828d6660a233b827721454293579329991b
[ "MIT" ]
3
2018-09-23T05:16:44.000Z
2021-12-23T03:06:07.000Z
pyckaxe/lib/types.py
Arcensoth/pyckaxe
09ed0828d6660a233b827721454293579329991b
[ "MIT" ]
5
2018-07-11T02:31:56.000Z
2018-07-11T03:15:05.000Z
pyckaxe/lib/types.py
Arcensoth/pyckaxe
09ed0828d6660a233b827721454293579329991b
[ "MIT" ]
null
null
null
from typing import Dict, List, Tuple, Union __all__ = ("JsonValue",) # +-------------------+---------------+ # | Python | JSON | # +===================+===============+ # | dict | object | # +-------------------+---------------+ # | list, tuple | array | # +------...
28.15625
43
0.231964
from typing import Dict, List, Tuple, Union __all__ = ("JsonValue",) # +-------------------+---------------+ # | Python | JSON | # +===================+===============+ # | dict | object | # +-------------------+---------------+ # | list, tuple | array | # +------...
0
0
0
deadabfe30899a7eca3fb028f0379ad17a46d16c
253
py
Python
api/urls.py
TurboKach/cybercrime_ip_api
7d8d1b1f97edf1bf1b2540011bb53843c385d677
[ "MIT" ]
null
null
null
api/urls.py
TurboKach/cybercrime_ip_api
7d8d1b1f97edf1bf1b2540011bb53843c385d677
[ "MIT" ]
5
2021-03-30T13:59:06.000Z
2021-09-22T19:22:54.000Z
api/urls.py
TurboKach/cybercrime_ip_api
7d8d1b1f97edf1bf1b2540011bb53843c385d677
[ "MIT" ]
null
null
null
from django.urls import path from .views import get_ips, get_lists, update_lists urlpatterns = { path('ip', get_ips, name="get_ips"), path('list', get_lists, name="get_lists"), path('management/update', update_lists, name='update_lists') }
28.111111
64
0.711462
from django.urls import path from .views import get_ips, get_lists, update_lists urlpatterns = { path('ip', get_ips, name="get_ips"), path('list', get_lists, name="get_lists"), path('management/update', update_lists, name='update_lists') }
0
0
0
83ca112c323409597b83767b3c967d4eb1c00d4b
4,445
py
Python
python/setup.py
justinjaywang/triton
1c48bd623e2eac026d1f08fc4863bfd514d42922
[ "MIT" ]
null
null
null
python/setup.py
justinjaywang/triton
1c48bd623e2eac026d1f08fc4863bfd514d42922
[ "MIT" ]
null
null
null
python/setup.py
justinjaywang/triton
1c48bd623e2eac026d1f08fc4863bfd514d42922
[ "MIT" ]
null
null
null
import os import re import sys import sysconfig import platform import subprocess import distutils import glob import tempfile import shutil from distutils.version import LooseVersion from setuptools import setup, Extension, find_packages from setuptools.command.build_ext import build_ext from setuptools.command.test i...
37.352941
122
0.631721
import os import re import sys import sysconfig import platform import subprocess import distutils import glob import tempfile import shutil from distutils.version import LooseVersion from setuptools import setup, Extension, find_packages from setuptools.command.build_ext import build_ext from setuptools.command.test i...
2,793
221
72
03a3ad7e49d7a739bd0e08684f1185acc132f1ae
113
py
Python
8kyu/Remove String Spaces.py
walkgo/codewars_tasks
4c0ab6f0e1d2181318fc15b12dd55ef565ecd223
[ "MIT" ]
null
null
null
8kyu/Remove String Spaces.py
walkgo/codewars_tasks
4c0ab6f0e1d2181318fc15b12dd55ef565ecd223
[ "MIT" ]
null
null
null
8kyu/Remove String Spaces.py
walkgo/codewars_tasks
4c0ab6f0e1d2181318fc15b12dd55ef565ecd223
[ "MIT" ]
null
null
null
# Best Practices
14.125
29
0.575221
def no_space(x): return x.replace(' ', '') # Best Practices def no_space(x): return x.replace(' ', '')
50
0
44
ddabfc5eda43f1cb96b59efd7db5ff2afa68421c
3,872
py
Python
makeRT.py
IIP17-TeamRT/GA_MakeRT
e79eff1f6010c72ed508e2e0afe2ecee11e965c0
[ "MIT" ]
null
null
null
makeRT.py
IIP17-TeamRT/GA_MakeRT
e79eff1f6010c72ed508e2e0afe2ecee11e965c0
[ "MIT" ]
null
null
null
makeRT.py
IIP17-TeamRT/GA_MakeRT
e79eff1f6010c72ed508e2e0afe2ecee11e965c0
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import random from deap import base from deap import creator from deap import tools if __name__ == "__main__": creator.create("FitnessMax", base.Fitness, weights=(1.0,)) creator.create("Individual", list, fitness=creator.FitnessMax) img_ans = plt.imr...
30.976
78
0.620868
import numpy as np import matplotlib.pyplot as plt import random from deap import base from deap import creator from deap import tools def evalOneMax(individual): arrayind = np.array(individual) hitpoint = 0 for i in range(40*30): hitpoint = hitpoint+(1-abs(img_ans[i]-arrayind[i])) return hit...
2,622
0
69
7d3276f5bbf1ab18d0235933204676af90175dcf
648
py
Python
main.py
RafalSladek/who_parser
5e541f120d1484f4a3fe01c47b41e4f48aa2278c
[ "MIT" ]
null
null
null
main.py
RafalSladek/who_parser
5e541f120d1484f4a3fe01c47b41e4f48aa2278c
[ "MIT" ]
null
null
null
main.py
RafalSladek/who_parser
5e541f120d1484f4a3fe01c47b41e4f48aa2278c
[ "MIT" ]
null
null
null
from datetime import datetime from callWHODataAPI import WHODataAPI from s3Upload import S3Uploader s3_uploader = S3Uploader(WHODataAPI()) all_buckets = s3_uploader.get_all_buckets() print_list(all_buckets) response = s3_uploader.apiClient.get_who_dimensions() myBucket = s3_uploader.get_target_bu...
23.142857
83
0.759259
from datetime import datetime from callWHODataAPI import WHODataAPI from s3Upload import S3Uploader def print_list(collection): for item in collection: print(item) s3_uploader = S3Uploader(WHODataAPI()) all_buckets = s3_uploader.get_all_buckets() print_list(all_buckets) response = s...
56
0
25
d7772566ba9c3682c2cbc314871198ab164fb983
641
py
Python
apppics/migrations/0004_auto_20210603_1723.py
JKimani77/pics
29d9f4459a80f42eb058a4956e703e7c460b9e7e
[ "MIT" ]
null
null
null
apppics/migrations/0004_auto_20210603_1723.py
JKimani77/pics
29d9f4459a80f42eb058a4956e703e7c460b9e7e
[ "MIT" ]
null
null
null
apppics/migrations/0004_auto_20210603_1723.py
JKimani77/pics
29d9f4459a80f42eb058a4956e703e7c460b9e7e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-06-03 14:23 from django.db import migrations
22.892857
47
0.550702
# Generated by Django 3.2.3 on 2021-06-03 14:23 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('apppics', '0003_auto_20210601_2304'), ] operations = [ migrations.AlterModelOptions( name='location', options={'ordering': [...
0
535
23
0ae6b967fe040182a4fa53e342d6e71dca8d8754
1,663
py
Python
data/data_conv/wikipedia_rand_split.py
huonw/nmslib
2e424ef7c6eff10ecaf47392fd99f93f645e752f
[ "Apache-2.0" ]
2,031
2018-03-29T00:59:55.000Z
2022-03-31T23:54:33.000Z
data/data_conv/wikipedia_rand_split.py
huonw/nmslib
2e424ef7c6eff10ecaf47392fd99f93f645e752f
[ "Apache-2.0" ]
262
2018-03-29T17:44:53.000Z
2022-03-31T02:56:40.000Z
data/data_conv/wikipedia_rand_split.py
huonw/nmslib
2e424ef7c6eff10ecaf47392fd99f93f645e752f
[ "Apache-2.0" ]
281
2018-03-29T13:12:50.000Z
2022-03-28T15:18:31.000Z
#!/usr/bin/env python import logging, bz2, random from gensim import interfaces, matutils from gensim.corpora import IndexedCorpus numDoc1 = 0 numRow1 = 0 numCol1 = 0 numDoc2 = 0 numRow2 = 0 numCol2 = 0 split = [] inpObj = matutils.MmReader(bz2.BZ2File('sparse_wiki_tfidf.mm.bz2')) prob = 0.5 print "The first pass...
23.097222
68
0.683103
#!/usr/bin/env python import logging, bz2, random from gensim import interfaces, matutils from gensim.corpora import IndexedCorpus numDoc1 = 0 numRow1 = 0 numCol1 = 0 numDoc2 = 0 numRow2 = 0 numCol2 = 0 split = [] inpObj = matutils.MmReader(bz2.BZ2File('sparse_wiki_tfidf.mm.bz2')) prob = 0.5 print "The first pass...
0
0
0
f0d2ae5c24cffe0c5aba312a6ac29eda25fb3977
193
py
Python
restic/__init__.py
jstzwj/PyRestic
4164e34da3a8333ea655a70cf3201a4141c67b33
[ "MIT" ]
2
2019-12-26T07:52:56.000Z
2020-01-03T04:40:06.000Z
restic/__init__.py
jstzwj/PyRestic
4164e34da3a8333ea655a70cf3201a4141c67b33
[ "MIT" ]
null
null
null
restic/__init__.py
jstzwj/PyRestic
4164e34da3a8333ea655a70cf3201a4141c67b33
[ "MIT" ]
1
2021-03-13T22:39:11.000Z
2021-03-13T22:39:11.000Z
from restic.repo import Repo from restic.snapshot import Snapshot from restic.core import version, self_update, generate from restic.config import restic_bin from restic.test import test_all
24.125
54
0.839378
from restic.repo import Repo from restic.snapshot import Snapshot from restic.core import version, self_update, generate from restic.config import restic_bin from restic.test import test_all
0
0
0
f859303f8b9c95b06e5df87dfe79360a842e7e97
2,299
py
Python
examples/trajectory_output/run.py
JonnyWideFoot/pd.arcus
a6197a5a2a18c0e3f752e15aa982d1e44d052730
[ "BSD-4-Clause-UC" ]
null
null
null
examples/trajectory_output/run.py
JonnyWideFoot/pd.arcus
a6197a5a2a18c0e3f752e15aa982d1e44d052730
[ "BSD-4-Clause-UC" ]
null
null
null
examples/trajectory_output/run.py
JonnyWideFoot/pd.arcus
a6197a5a2a18c0e3f752e15aa982d1e44d052730
[ "BSD-4-Clause-UC" ]
null
null
null
from pd import * ## we need the gromacs module for the gromacs file formats from gromacs import * cseed(3) info() timer() ## create a water box ffps = FFParamSet("tip3.ff") sim = System(ffps) ## create a new molecule (water, TIP3) mol = NewMolecule(ffps,"TIP3") boundary = PeriodicBox(18.1500) ## and fill the box w...
23.701031
74
0.723793
from pd import * ## we need the gromacs module for the gromacs file formats from gromacs import * cseed(3) info() timer() ## create a water box ffps = FFParamSet("tip3.ff") sim = System(ffps) ## create a new molecule (water, TIP3) mol = NewMolecule(ffps,"TIP3") boundary = PeriodicBox(18.1500) ## and fill the box w...
0
0
0
444f094a2b70aa1dd72ce753790849fd87fea685
6,239
py
Python
RoboticsProject/controllers/cameraTest2/cameraTest2.py
MackQian/Robotics1Project
ca611bbd71dcca397a46941d4d40d720c8faa58c
[ "MIT" ]
null
null
null
RoboticsProject/controllers/cameraTest2/cameraTest2.py
MackQian/Robotics1Project
ca611bbd71dcca397a46941d4d40d720c8faa58c
[ "MIT" ]
null
null
null
RoboticsProject/controllers/cameraTest2/cameraTest2.py
MackQian/Robotics1Project
ca611bbd71dcca397a46941d4d40d720c8faa58c
[ "MIT" ]
null
null
null
"""cameraTest2 controller.""" # You may need to import some classes of the controller module. Ex: # from controller import Robot, Motor, DistanceSensor from controller import Robot import cv2 import numpy as np from controller import Keyboard from movement_commands import * from gesture_commands import * import math...
30.286408
96
0.645777
"""cameraTest2 controller.""" # You may need to import some classes of the controller module. Ex: # from controller import Robot, Motor, DistanceSensor from controller import Robot import cv2 import numpy as np from controller import Keyboard from movement_commands import * from gesture_commands import * import math...
833
0
22
500014d7e8f7b198a3b8333c5ffae008404be043
2,168
py
Python
code/processing/HPLC/Enzymes_HPLC_processing.py
daniosro/DMSP
c5ad5b200c2eece611ab6b326a9a93cc3fd421d1
[ "MIT" ]
null
null
null
code/processing/HPLC/Enzymes_HPLC_processing.py
daniosro/DMSP
c5ad5b200c2eece611ab6b326a9a93cc3fd421d1
[ "MIT" ]
null
null
null
code/processing/HPLC/Enzymes_HPLC_processing.py
daniosro/DMSP
c5ad5b200c2eece611ab6b326a9a93cc3fd421d1
[ "MIT" ]
null
null
null
# %% import numpy as np import pandas as pd import scipy as sp import math import matplotlib.animation as animation from scipy.integrate import odeint from numpy import arange from scipy.integrate import odeint import scipy.optimize from scipy.optimize import leastsq from math import exp from collections import Ordere...
31.42029
84
0.744004
# %% import numpy as np import pandas as pd import scipy as sp import math import matplotlib.animation as animation from scipy.integrate import odeint from numpy import arange from scipy.integrate import odeint import scipy.optimize from scipy.optimize import leastsq from math import exp from collections import Ordere...
0
0
0
28fef8e1647ba7b1759f958dca122a2630d37bfe
1,860
py
Python
Iris/iris_simples.py
vitorhvmelo/Deep-Learning
0d1f38b34deef65562451f68ad1742759edfd4a7
[ "MIT" ]
null
null
null
Iris/iris_simples.py
vitorhvmelo/Deep-Learning
0d1f38b34deef65562451f68ad1742759edfd4a7
[ "MIT" ]
null
null
null
Iris/iris_simples.py
vitorhvmelo/Deep-Learning
0d1f38b34deef65562451f68ad1742759edfd4a7
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.model_selection import train_test_split from keras.models import Sequential from keras.layers import Dense from sklearn.preprocessing import LabelEncoder #IMPORTA A BIBLIOTECA DO ENCODER from keras.utils import np_utils #IMPORTA A BIBLIOTECA PARA COMPLEMENTAR O ENCODER import numpy as n...
48.947368
116
0.715591
import pandas as pd from sklearn.model_selection import train_test_split from keras.models import Sequential from keras.layers import Dense from sklearn.preprocessing import LabelEncoder #IMPORTA A BIBLIOTECA DO ENCODER from keras.utils import np_utils #IMPORTA A BIBLIOTECA PARA COMPLEMENTAR O ENCODER import numpy as n...
0
0
0
0953fd81198b0213a440c648ed5d02d413cae5ef
1,920
py
Python
grey1/getData.py
alienemoji/form-templates
ac76d2f38a925f14254f560c652cc781f844e3e9
[ "MIT" ]
null
null
null
grey1/getData.py
alienemoji/form-templates
ac76d2f38a925f14254f560c652cc781f844e3e9
[ "MIT" ]
null
null
null
grey1/getData.py
alienemoji/form-templates
ac76d2f38a925f14254f560c652cc781f844e3e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import cgi, cgitb import smtplib import requests import json # Create instance of FieldStorage form = cgi.FieldStorage() # Get data from fields customer_name = str(form.getvalue('customer_name')) customer_email = str(form.getvalue('customer_email')) customer_message = str(form.getvalue('message')...
30.47619
121
0.671354
#!/usr/bin/env python3 import cgi, cgitb import smtplib import requests import json # Create instance of FieldStorage form = cgi.FieldStorage() # Get data from fields customer_name = str(form.getvalue('customer_name')) customer_email = str(form.getvalue('customer_email')) customer_message = str(form.getvalue('message')...
530
0
23
54cd5fa45323d5d7b3dc31179bdaaaa88d2e6cb8
1,702
py
Python
migrations/versions/c11ac992c04a_add_linelist_deaths_schema.py
chong601/moh-covid19-api
b762755e9ff5bb11b99102d305753dcd6122afbe
[ "MIT" ]
1
2021-09-15T13:49:05.000Z
2021-09-15T13:49:05.000Z
migrations/versions/c11ac992c04a_add_linelist_deaths_schema.py
chong601/moh-covid19-api
b762755e9ff5bb11b99102d305753dcd6122afbe
[ "MIT" ]
2
2021-08-15T07:56:20.000Z
2021-08-17T22:41:44.000Z
migrations/versions/c11ac992c04a_add_linelist_deaths_schema.py
chong601/moh-covid19-api
b762755e9ff5bb11b99102d305753dcd6122afbe
[ "MIT" ]
null
null
null
"""Add linelist_deaths schema Revision ID: c11ac992c04a Revises: ffec75dfdadd Create Date: 2021-09-19 07:54:19.691798 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c11ac992c04a' down_revision = 'ffec75dfdadd' branch_labels = None depends_on = None
38.681818
96
0.684489
"""Add linelist_deaths schema Revision ID: c11ac992c04a Revises: ffec75dfdadd Create Date: 2021-09-19 07:54:19.691798 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c11ac992c04a' down_revision = 'ffec75dfdadd' branch_labels = None depends_on = None def upgr...
1,344
0
46
b347a4d5cd80c12032d6b06650ca6cec8f910c91
120
py
Python
Lista1/ex004.py
Palhares17/Python_Exercicios_UFV
8370e02a52b024a4170d11b1ec95c1c97851f09a
[ "MIT" ]
null
null
null
Lista1/ex004.py
Palhares17/Python_Exercicios_UFV
8370e02a52b024a4170d11b1ec95c1c97851f09a
[ "MIT" ]
null
null
null
Lista1/ex004.py
Palhares17/Python_Exercicios_UFV
8370e02a52b024a4170d11b1ec95c1c97851f09a
[ "MIT" ]
null
null
null
cel = float(input('°C = ')) f = cel * 18 fh = f + 32 print(f'A temperatura convertida de {cel} °C para °F é de {fh} ')
24
65
0.575
cel = float(input('°C = ')) f = cel * 18 fh = f + 32 print(f'A temperatura convertida de {cel} °C para °F é de {fh} ')
0
0
0
3eeffb950045f92594d99ff564882c8460b9b91b
8,794
py
Python
fabulous/text.py
techdragon/fabulous
bc6de0f4414cebb4a13f6604c5a2797862e0439d
[ "MIT" ]
1
2019-06-27T13:05:31.000Z
2019-06-27T13:05:31.000Z
fabulous/text.py
techdragon/fabulous
bc6de0f4414cebb4a13f6604c5a2797862e0439d
[ "MIT" ]
null
null
null
fabulous/text.py
techdragon/fabulous
bc6de0f4414cebb4a13f6604c5a2797862e0439d
[ "MIT" ]
null
null
null
""" fabulous.text ~~~~~~~~~~~~~ I let you print TrueType text to your terminal. The easiest way to get started with me is by running:: jart@compy:~$ python -m fabulous.text --help To make things simple, Fabulous comes with my favorite serif, non-serif, and monospace fonts: - Ind...
34.622047
76
0.598363
""" fabulous.text ~~~~~~~~~~~~~ I let you print TrueType text to your terminal. The easiest way to get started with me is by running:: jart@compy:~$ python -m fabulous.text --help To make things simple, Fabulous comes with my favorite serif, non-serif, and monospace fonts: - Ind...
943
0
27
fb02e8d13f567ef8220e8e0ad9c102d55b2d4586
4,257
py
Python
dsp_migen/IIR/FIRV2_to_IIR_doesnotworkyet.py
chipmuenk/dsp_nmigen
a2d1109cfd75ec82e738a885dd662bc4eb52ed86
[ "MIT" ]
7
2020-05-07T18:35:00.000Z
2021-09-09T14:06:41.000Z
dsp_migen/IIR/FIRV2_to_IIR_doesnotworkyet.py
chipmuenk/dsp_nmigen
a2d1109cfd75ec82e738a885dd662bc4eb52ed86
[ "MIT" ]
null
null
null
dsp_migen/IIR/FIRV2_to_IIR_doesnotworkyet.py
chipmuenk/dsp_nmigen
a2d1109cfd75ec82e738a885dd662bc4eb52ed86
[ "MIT" ]
null
null
null
from functools import reduce from operator import add from math import cos, pi from scipy import signal import matplotlib.pyplot as plt from migen import * from migen.fhdl import verilog import numpy sample = 5000 #Number of Samples Fs = 5000 #Sample Frequency fc = 800 #Cutoff frequ w_c = 2...
38.008929
138
0.573878
from functools import reduce from operator import add from math import cos, pi from scipy import signal import matplotlib.pyplot as plt from migen import * from migen.fhdl import verilog import numpy sample = 5000 #Number of Samples Fs = 5000 #Sample Frequency fc = 800 #Cutoff frequ w_c = 2...
2,230
-3
70
eafabb771d5e41de7137e3688f28f16761bf3c24
8,317
py
Python
ted_adapter/test_adapter.py
bubblesupreme/infrastructure
b33534f1d7a21c7af81bde171abe149c31e0406d
[ "MIT" ]
null
null
null
ted_adapter/test_adapter.py
bubblesupreme/infrastructure
b33534f1d7a21c7af81bde171abe149c31e0406d
[ "MIT" ]
null
null
null
ted_adapter/test_adapter.py
bubblesupreme/infrastructure
b33534f1d7a21c7af81bde171abe149c31e0406d
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, d...
36.47807
113
0.649032
# Copyright (c) 2018 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, d...
1,553
0
206
73131a9ee618e5b2c54a7d389f922e646494165f
754
py
Python
textattack/constraints/pre_transformation/__init__.py
srujanjoshi/TextAttack
b86d0f840b6f13b1eb8d0f17b3fceeeca62b08ed
[ "MIT" ]
1,980
2020-04-17T23:43:55.000Z
2022-03-31T19:22:17.000Z
textattack/constraints/pre_transformation/__init__.py
srujanjoshi/TextAttack
b86d0f840b6f13b1eb8d0f17b3fceeeca62b08ed
[ "MIT" ]
350
2020-04-23T22:34:04.000Z
2022-03-29T20:57:22.000Z
textattack/constraints/pre_transformation/__init__.py
srujanjoshi/TextAttack
b86d0f840b6f13b1eb8d0f17b3fceeeca62b08ed
[ "MIT" ]
267
2020-04-30T16:55:36.000Z
2022-03-31T18:59:46.000Z
""".. _pre_transformation: Pre-Transformation: --------------------- Pre-transformation constraints determine if a transformation is valid based on only the original input and the position of the replacement. These constraints are applied before the transformation is even called. For example, these constraints can pr...
53.857143
343
0.834218
""".. _pre_transformation: Pre-Transformation: --------------------- Pre-transformation constraints determine if a transformation is valid based on only the original input and the position of the replacement. These constraints are applied before the transformation is even called. For example, these constraints can pr...
0
0
0
9e0ab3555c07729d27c420dd0734f2e323dae371
502
py
Python
CropImg.py
ichbinkk/Conformer
7faa3051cf5f6aff91f9540d6f9be57674cbcce7
[ "Apache-2.0" ]
null
null
null
CropImg.py
ichbinkk/Conformer
7faa3051cf5f6aff91f9540d6f9be57674cbcce7
[ "Apache-2.0" ]
null
null
null
CropImg.py
ichbinkk/Conformer
7faa3051cf5f6aff91f9540d6f9be57674cbcce7
[ "Apache-2.0" ]
null
null
null
from PIL import Image import os image_file_path = '../dataset/lec' out = '../dataset/lattice_ec' for root, dirs_name, files_name in os.walk(image_file_path): for i in files_name: if i.split('.')[-1] == 'png': file_name = os.path.join(root, i) print(file_name) ...
31.375
83
0.551793
from PIL import Image import os image_file_path = '../dataset/lec' out = '../dataset/lattice_ec' for root, dirs_name, files_name in os.walk(image_file_path): for i in files_name: if i.split('.')[-1] == 'png': file_name = os.path.join(root, i) print(file_name) ...
0
0
0
698de7a7d37055d4b7c705aa878cbfca1040c47e
1,283
py
Python
bulk_whois.py
levcovenant/bulk_stuff
93a1eedf63229244ffbbd4868ba220b427493518
[ "MIT" ]
null
null
null
bulk_whois.py
levcovenant/bulk_stuff
93a1eedf63229244ffbbd4868ba220b427493518
[ "MIT" ]
null
null
null
bulk_whois.py
levcovenant/bulk_stuff
93a1eedf63229244ffbbd4868ba220b427493518
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import pythonwhois import csv import time with open('bulk_whois_results.csv', 'w+', newline="") as outfile: w = csv.writer(outfile) w.writerow(['Domain Name', 'Registrar', 'Expiration Date', 'Nameservers']) # outfile.close() result_list = [] with open('domain_list', 'r') as f: for...
29.159091
80
0.559626
#!/usr/bin/python3 import pythonwhois import csv import time with open('bulk_whois_results.csv', 'w+', newline="") as outfile: w = csv.writer(outfile) w.writerow(['Domain Name', 'Registrar', 'Expiration Date', 'Nameservers']) # outfile.close() result_list = [] with open('domain_list', 'r') as f: for...
0
0
0
af3730efdaf17c667213f31f0a0206220aa3b6c1
2,325
py
Python
src/users/models/microsoftgraphitem_action_set.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/microsoftgraphitem_action_set.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/microsoftgraphitem_action_set.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
38.114754
152
0.606452
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
475
0
27
76cc191057b6039eee9b2bba962d42ed49397513
2,741
py
Python
planemo/tools.py
pvanheus/planemo
12c4256325bb1b274dcd40d64b91c1f832cf49b1
[ "CC-BY-3.0" ]
null
null
null
planemo/tools.py
pvanheus/planemo
12c4256325bb1b274dcd40d64b91c1f832cf49b1
[ "CC-BY-3.0" ]
1
2016-09-14T18:09:59.000Z
2016-09-14T18:09:59.000Z
planemo/tools.py
jmchilton/planemo
d352a085fe10cb6b7c1384663b114201da42d97b
[ "CC-BY-3.0" ]
null
null
null
"""Planemo-specific wrappers around galaxy-tool-util tool functionality.""" from __future__ import absolute_import import os import sys import traceback from galaxy.tool_util import loader_directory from galaxy.tool_util.fetcher import ToolLocationFetcher from planemo.io import error, info is_tool_load_error = load...
29.473118
111
0.699745
"""Planemo-specific wrappers around galaxy-tool-util tool functionality.""" from __future__ import absolute_import import os import sys import traceback from galaxy.tool_util import loader_directory from galaxy.tool_util.fetcher import ToolLocationFetcher from planemo.io import error, info is_tool_load_error = load...
1,590
0
138
2cf9df5fd4f026fe513cf3c7b67fbde3a12f40fa
2,512
py
Python
Jetbrain/user/views.py
uyo-obong/jetbrain_django
63f267efadb148f1c5afcce3801b3ff173a1dabf
[ "MIT" ]
null
null
null
Jetbrain/user/views.py
uyo-obong/jetbrain_django
63f267efadb148f1c5afcce3801b3ff173a1dabf
[ "MIT" ]
null
null
null
Jetbrain/user/views.py
uyo-obong/jetbrain_django
63f267efadb148f1c5afcce3801b3ff173a1dabf
[ "MIT" ]
null
null
null
from django.contrib import messages from django.shortcuts import render, redirect from Jetbrain.blog.models import Post from . forms.user_forms import SignUp, UpdateUser, UpdateProfile from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required @login_require...
31.4
93
0.634952
from django.contrib import messages from django.shortcuts import render, redirect from Jetbrain.blog.models import Post from . forms.user_forms import SignUp, UpdateUser, UpdateProfile from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required @login_require...
2,096
0
91
cad636939b9f995bef017fe5379fdca7fb4ccee7
927
py
Python
piws/views/ldapfeed.py
neurospin/piws
4ec6f60c6343623a82761c90c74642b4b372ffd1
[ "CECILL-B" ]
null
null
null
piws/views/ldapfeed.py
neurospin/piws
4ec6f60c6343623a82761c90c74642b4b372ffd1
[ "CECILL-B" ]
9
2015-05-18T09:04:35.000Z
2017-03-24T10:47:23.000Z
piws/views/ldapfeed.py
neurospin/piws
4ec6f60c6343623a82761c90c74642b4b372ffd1
[ "CECILL-B" ]
17
2015-03-16T08:27:47.000Z
2017-08-04T16:26:29.000Z
########################################################################## # NSAp - Copyright (C) CEA, 2017 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ##########...
37.08
76
0.609493
########################################################################## # NSAp - Copyright (C) CEA, 2017 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ##########...
0
0
0
6ab2ff75139a278f5c82790cdc8bef2c78451bf5
2,105
py
Python
1.taobao_login/login.py
zhaoxilingcheng/examples-of-crawlers
e8959e321bef621037583cfd990d44150a00216b
[ "MIT" ]
3
2020-06-15T01:55:42.000Z
2020-06-23T05:09:25.000Z
1.taobao_login/login.py
zhaoxilingcheng/examples-of-crawlers
e8959e321bef621037583cfd990d44150a00216b
[ "MIT" ]
null
null
null
1.taobao_login/login.py
zhaoxilingcheng/examples-of-crawlers
e8959e321bef621037583cfd990d44150a00216b
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver import ActionChains import time if __name__ == '__main__': # 驱动地址 # 修改为对应谷歌浏览器版本的驱动 b...
35.083333
103
0.71734
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver import ActionChains import time def login_and_get_cookie(username, password): options = webdri...
1,786
0
23
daf8233138ed6a681ff4acf570a7deea8f47b76f
853
py
Python
np/reference/ch9code/logy.py
focusunsink/study_python
322326642db54df8725793d70a95d21ac40b6507
[ "MIT" ]
null
null
null
np/reference/ch9code/logy.py
focusunsink/study_python
322326642db54df8725793d70a95d21ac40b6507
[ "MIT" ]
null
null
null
np/reference/ch9code/logy.py
focusunsink/study_python
322326642db54df8725793d70a95d21ac40b6507
[ "MIT" ]
null
null
null
from matplotlib.finance import quotes_historical_yahoo from matplotlib.dates import DateFormatter from matplotlib.dates import DayLocator from matplotlib.dates import MonthLocator import sys from datetime import date import matplotlib.pyplot as plt import numpy as np today = date.today() start = (today.year - 1, today...
23.694444
54
0.763189
from matplotlib.finance import quotes_historical_yahoo from matplotlib.dates import DateFormatter from matplotlib.dates import DayLocator from matplotlib.dates import MonthLocator import sys from datetime import date import matplotlib.pyplot as plt import numpy as np today = date.today() start = (today.year - 1, today...
0
0
0
e1defe47a41473ce9a54e7d288e8c4efb660b97e
8,994
py
Python
Keras_Impl/Networks/RPN/utils.py
dimartinot/bunch_of_networks
4f9c425e8fb0bca5bf47de9424a744d2fac310e2
[ "MIT" ]
null
null
null
Keras_Impl/Networks/RPN/utils.py
dimartinot/bunch_of_networks
4f9c425e8fb0bca5bf47de9424a744d2fac310e2
[ "MIT" ]
11
2020-01-28T22:43:13.000Z
2022-03-11T23:46:41.000Z
Keras_Impl/Networks/RPN/utils.py
dimartinot/bunch_of_networks
4f9c425e8fb0bca5bf47de9424a744d2fac310e2
[ "MIT" ]
null
null
null
""" /!\ Code not made by me, got from https://github.com/dongjk/faster_rcnn_keras/blob/master/utils.py """ import sys import numpy as np import keras.backend as K import xml.etree.ElementTree as ET from PIL import Image, ImageDraw def generate_anchors(base_width=16, base_height=16, ratios=[0.5, 1, 2], ...
30.80137
118
0.565266
""" /!\ Code not made by me, got from https://github.com/dongjk/faster_rcnn_keras/blob/master/utils.py """ import sys import numpy as np import keras.backend as K import xml.etree.ElementTree as ET from PIL import Image, ImageDraw def parse_label(xml_file): try: tree = ET.parse(xml_file) except ...
3,802
0
138
a044fdb4f97128fbe19d4ab302f4228b31ff462b
387
py
Python
example2.py
mariolpantunes/optimization
353c90384f2ab2069151d861037f7ad41dbde9f4
[ "MIT" ]
null
null
null
example2.py
mariolpantunes/optimization
353c90384f2ab2069151d861037f7ad41dbde9f4
[ "MIT" ]
1
2022-01-10T14:29:49.000Z
2022-01-10T14:29:49.000Z
example2.py
mariolpantunes/optimization
353c90384f2ab2069151d861037f7ad41dbde9f4
[ "MIT" ]
null
null
null
import logging import numpy as np import optimization.de as de logging.basicConfig(level=logging.INFO, format='%(message)s') logger = logging.getLogger(__name__) # define objective function bounds = np.asarray([(-5.0, 5.0)]) solution = de.differential_evolution(f, bounds, n_iter=1, debug=True) logger.info(f'F({solut...
25.8
69
0.72093
import logging import numpy as np import optimization.de as de logging.basicConfig(level=logging.INFO, format='%(message)s') logger = logging.getLogger(__name__) # define objective function def f(x): return np.power(x, 2)[0] bounds = np.asarray([(-5.0, 5.0)]) solution = de.differential_evolution(f, bounds, n_ite...
17
0
22
4006d7c2ac93c8bc463e38137d9e93d9dd6cedbc
1,312
py
Python
stonesoup/resampler/particle.py
JPompeus/Stone-Soup
030c60aaf5ff92d7bb53f06e350c0bf58c9af037
[ "MIT" ]
1
2021-04-13T11:47:42.000Z
2021-04-13T11:47:42.000Z
stonesoup/resampler/particle.py
JPompeus/Stone-Soup
030c60aaf5ff92d7bb53f06e350c0bf58c9af037
[ "MIT" ]
null
null
null
stonesoup/resampler/particle.py
JPompeus/Stone-Soup
030c60aaf5ff92d7bb53f06e350c0bf58c9af037
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from .base import Resampler from ..types.numeric import Probability from ..types.particle import Particle
28.521739
73
0.589939
# -*- coding: utf-8 -*- import numpy as np from .base import Resampler from ..types.numeric import Probability from ..types.particle import Particle class SystematicResampler(Resampler): def resample(self, particles): """Resample the particles Parameters ---------- particles : l...
0
1,138
23
4d625960a5da1d4f531a9f6b0448aa944d5f28b8
8,412
py
Python
kcwidrp/core/kcwi_proctab.py
MNBrod/KCWI_DRP
9331a545879f647ed83ceb9c7d925770b254a8eb
[ "BSD-3-Clause" ]
null
null
null
kcwidrp/core/kcwi_proctab.py
MNBrod/KCWI_DRP
9331a545879f647ed83ceb9c7d925770b254a8eb
[ "BSD-3-Clause" ]
null
null
null
kcwidrp/core/kcwi_proctab.py
MNBrod/KCWI_DRP
9331a545879f647ed83ceb9c7d925770b254a8eb
[ "BSD-3-Clause" ]
null
null
null
from astropy.table import Table, unique import os import logging
42.484848
77
0.457798
from astropy.table import Table, unique import os import logging class Proctab: def __init__(self, logger): self.log = logging.getLogger('KCWI') self.proctab = None def new_proctab(self): cnames = ('FRAMENO', 'CID', 'DID', 'TYPE', 'GRPID', 'TTIME', 'CAM', 'IFU', 'GR...
8,141
-7
212
735f2178cada59be725d3a137aede5b87046b436
6,731
py
Python
nextfeed/settings/base.py
Nurdok/nextfeed
197818310bbf7134badc2ef5ed11ab5ede7fdb35
[ "MIT" ]
1
2015-08-09T10:42:04.000Z
2015-08-09T10:42:04.000Z
nextfeed/settings/base.py
Nurdok/nextfeed
197818310bbf7134badc2ef5ed11ab5ede7fdb35
[ "MIT" ]
null
null
null
nextfeed/settings/base.py
Nurdok/nextfeed
197818310bbf7134badc2ef5ed11ab5ede7fdb35
[ "MIT" ]
null
null
null
# Django settings for nextfeed project. import os import djcelery djcelery.setup_loader() PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) DEBUG = True TEMPLATE_DEBUG = True ADMINS = ( # ('Your Name', 'your_email@example.com'), ("Amir Rachum", "amir@rachum.com"), ) SERVER_EMAIL = 'webmaster@nextfee...
29.651982
88
0.712376
# Django settings for nextfeed project. import os import djcelery djcelery.setup_loader() PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) DEBUG = True TEMPLATE_DEBUG = True ADMINS = ( # ('Your Name', 'your_email@example.com'), ("Amir Rachum", "amir@rachum.com"), ) SERVER_EMAIL = 'webmaster@nextfee...
0
0
0
1de47343ccdf37016f6f01d6492953b8da7a5b7d
3,090
py
Python
tests/test_small_task.py
dwr-psandhu/azure_dms_batch
5a2d847bfabeea61fbb49389291cef041e14093a
[ "MIT" ]
1
2021-12-21T23:19:59.000Z
2021-12-21T23:19:59.000Z
tests/test_small_task.py
dwr-psandhu/azure_dms_batch
5a2d847bfabeea61fbb49389291cef041e14093a
[ "MIT" ]
null
null
null
tests/test_small_task.py
dwr-psandhu/azure_dms_batch
5a2d847bfabeea61fbb49389291cef041e14093a
[ "MIT" ]
1
2021-12-17T21:30:48.000Z
2021-12-17T21:30:48.000Z
""" Run a small task by * Uploading files * Creating a pool and a job * Creating a task and submitting it * Waiting till end of task * Retrieving files and checking """ import pytest import datetime import dmsbatch from tests.test_blob_client import container_name @pytest.fixture() @pytest...
35.517241
104
0.717152
""" Run a small task by * Uploading files * Creating a pool and a job * Creating a task and submitting it * Waiting till end of task * Retrieving files and checking """ import pytest import datetime import dmsbatch from tests.test_blob_client import container_name @pytest.fixture() def cont...
2,630
0
88
b1f745b1c79b6c976bde714c753f55467b71dc7f
718
py
Python
Chapter07/multithreading/thread1-extra.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
31
2020-08-10T22:37:41.000Z
2022-03-09T21:35:56.000Z
Chapter07/multithreading/thread1-extra.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
null
null
null
Chapter07/multithreading/thread1-extra.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
21
2020-08-10T22:37:44.000Z
2022-03-07T07:26:28.000Z
# thread1-extra.py to create simple threads with function (using threads list to simplly the code) import threading from threading import Thread as Thread from time import sleep threads = [] # creating threads threads.append(Thread(target=print_hello, name="Th 1")) threads.append(Thread(target=print_hello, name="Th 2...
25.642857
98
0.720056
# thread1-extra.py to create simple threads with function (using threads list to simplly the code) import threading from threading import Thread as Thread from time import sleep def print_hello(): sleep(2) print("{}: Hello".format(threading.current_thread().name)) def print_message(msg): sleep(1) pri...
153
0
46
34f192fa240388ab9923637201c74705edff7735
1,038
py
Python
remove_cloze_from_field/sentencefromcloze.py
sarajaksa/anki-addons
01e4cedca0cca1df11202c52c473a8c35eb5f0b8
[ "Unlicense" ]
3
2017-03-05T21:53:06.000Z
2019-03-13T09:50:19.000Z
remove_cloze_from_field/sentencefromcloze.py
sarajaksa/anki-addons
01e4cedca0cca1df11202c52c473a8c35eb5f0b8
[ "Unlicense" ]
3
2017-03-04T16:24:15.000Z
2018-11-14T15:20:49.000Z
remove_cloze_from_field/sentencefromcloze.py
sarajaksa/anki-addons
01e4cedca0cca1df11202c52c473a8c35eb5f0b8
[ "Unlicense" ]
1
2019-05-12T10:46:25.000Z
2019-05-12T10:46:25.000Z
from anki.hooks import addHook import re clozeField = "Meaning" finalField = "Expression" addHook("setupEditorButtons", addSentenceFromClozeButton)
28.054054
82
0.66474
from anki.hooks import addHook import re clozeField = "Meaning" finalField = "Expression" def sentenceFromCloze(sentence): all_cloze = re.findall(r"{{c\d+::.+?}}", sentence) for cloze in all_cloze: replace_with = re.findall(r"{{c\d+::.+?::(.+?)}}", cloze) if replace_with: replace_...
815
0
69
87592dea5ecbd99f2fa2f461e577e75a001c77e4
3,415
py
Python
scripts/retired/plot_broken_axes.py
tcrundall/chronostar
bdb5cd965e862ba5cc21bee75d5c8620e106c0cc
[ "MIT" ]
null
null
null
scripts/retired/plot_broken_axes.py
tcrundall/chronostar
bdb5cd965e862ba5cc21bee75d5c8620e106c0cc
[ "MIT" ]
null
null
null
scripts/retired/plot_broken_axes.py
tcrundall/chronostar
bdb5cd965e862ba5cc21bee75d5c8620e106c0cc
[ "MIT" ]
null
null
null
from __future__ import print_function, division """ Broken axis example, where the y-axis will have a portion cut out. """ import matplotlib.pyplot as plt import numpy as np mu1 = 30 sig1 = 1 mu2 = 10 sig2 = 1 pts = np.hstack((np.random.randn(100)*sig1 + mu1, np.random.randn(20)*sig2 + mu2 )) # # 30 points between [...
41.646341
91
0.67672
from __future__ import print_function, division """ Broken axis example, where the y-axis will have a portion cut out. """ import matplotlib.pyplot as plt import numpy as np mu1 = 30 sig1 = 1 mu2 = 10 sig2 = 1 pts = np.hstack((np.random.randn(100)*sig1 + mu1, np.random.randn(20)*sig2 + mu2 )) # # 30 points between [...
0
0
0
286caf6744551a7b42c814024ceb5025c5294a86
1,625
py
Python
main.py
00p513-dev/projectOne
7ba7e05e6b6cf678145214bd0faee8477157e642
[ "MIT" ]
null
null
null
main.py
00p513-dev/projectOne
7ba7e05e6b6cf678145214bd0faee8477157e642
[ "MIT" ]
null
null
null
main.py
00p513-dev/projectOne
7ba7e05e6b6cf678145214bd0faee8477157e642
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ The MIT License (MIT) Copyright (c) 2021 Amy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,...
31.25
78
0.744
#!/usr/bin/env python3 """ The MIT License (MIT) Copyright (c) 2021 Amy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,...
449
0
23
cb546c87ee4204c146a145ee9c6949904fec5485
2,403
py
Python
homeassistant/components/nest/device_trigger.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
homeassistant/components/nest/device_trigger.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
homeassistant/components/nest/device_trigger.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
"""Provides device automations for Nest.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.automation import ( AutomationActionType, AutomationTriggerInfo, ) from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA from homeassistant.componen...
31.207792
85
0.719933
"""Provides device automations for Nest.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.automation import ( AutomationActionType, AutomationTriggerInfo, ) from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA from homeassistant.componen...
0
0
0
8dd2181573a36af606cc0d4ec0cf987b6ce41a04
440
py
Python
app/src/misp.py
nv-pipo/misp-to-sentinel-connector
2164da855f3514bf60af1e2adf4f4ac9480094f2
[ "Apache-2.0" ]
4
2021-03-02T02:46:58.000Z
2022-01-26T16:15:26.000Z
app/src/misp.py
nv-pipo/misp-to-sentinel-connector
2164da855f3514bf60af1e2adf4f4ac9480094f2
[ "Apache-2.0" ]
null
null
null
app/src/misp.py
nv-pipo/misp-to-sentinel-connector
2164da855f3514bf60af1e2adf4f4ac9480094f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Connector to MISP.""" from pymisp import ExpandedPyMISP import config def get_misp_attributes(): '''Method to pull the attributes (IOCs) from MISP server.''' misp = ExpandedPyMISP(config.MISP_DOMAIN, config.MISP_KEY, config.MISP_VERIFYCERT) attributes = mis...
33.846154
104
0.734091
#!/usr/bin/env python # -*- coding: utf-8 -*- """Connector to MISP.""" from pymisp import ExpandedPyMISP import config def get_misp_attributes(): '''Method to pull the attributes (IOCs) from MISP server.''' misp = ExpandedPyMISP(config.MISP_DOMAIN, config.MISP_KEY, config.MISP_VERIFYCERT) attributes = mis...
0
0
0
812daac18f5d217ec692a0bb591843489ca49da0
8,765
py
Python
samples/simple_consensus_caller/pileup_hdf5_generator.py
ohadmo/VariantWorks
20d645488d009bd8d29c69739b3e499327c290f9
[ "Apache-2.0" ]
null
null
null
samples/simple_consensus_caller/pileup_hdf5_generator.py
ohadmo/VariantWorks
20d645488d009bd8d29c69739b3e499327c290f9
[ "Apache-2.0" ]
null
null
null
samples/simple_consensus_caller/pileup_hdf5_generator.py
ohadmo/VariantWorks
20d645488d009bd8d29c69739b3e499327c290f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2020 NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
39.129464
106
0.63514
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2020 NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
0
0
0
199e5a4353bc9fbb6db03ec42c71cfa2a3123cd7
1,311
py
Python
pyelf/sheader.py
guilload/pyelf
4781f1d9b22ba389cc0440113e1817d54a041fe3
[ "MIT" ]
3
2018-04-16T12:08:56.000Z
2020-04-11T14:20:57.000Z
pyelf/sheader.py
guilload/pyelf
4781f1d9b22ba389cc0440113e1817d54a041fe3
[ "MIT" ]
null
null
null
pyelf/sheader.py
guilload/pyelf
4781f1d9b22ba389cc0440113e1817d54a041fe3
[ "MIT" ]
5
2020-04-11T14:21:19.000Z
2020-09-29T09:23:40.000Z
from tabulate import tabulate from .structs import STRUCTS
30.488372
75
0.547674
from tabulate import tabulate from .structs import STRUCTS class SectionHeaderTable(object): key = '\n'.join(['Key to flags:', ' W (write), A (alloc), X (execute), M (merge), ' 'S (strings), l (large)', ' I (info), L (link order), G (group), T (TL...
650
577
23