blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7d65603dd3f63bc17d9e50ed555b8ca6f8b9da6 | 36e3e6a12c71c738ed69da8a45b633a71faa4a3c | /src/GenerationNetwork/__init__.py | 73a6dff105a31784d99f3d6688b0b3ca2242209a | [] | no_license | Zynoz/BachelorsThesis | 2aa4006294a3b74068ce5e80356a00336e539d54 | 9b5289b947f1eab9b22f5129e8fc7c6f578408d2 | refs/heads/master | 2022-12-24T15:05:53.890638 | 2020-10-02T18:03:55 | 2020-10-02T18:03:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from src.GenerationNetwork.NetSicianTreble import *
from src.GenerationNetwork.NetSicianBass import * | [
"mail@fschoen.com"
] | mail@fschoen.com |
f9bf325e6a0aa3973e010946bb13081dc16811a5 | bd39340f4ba7e0b914f0b6d882f4f93b7bcdc1e2 | /ficheros.py | 0800f259f0907c3511a7a015d49520a1b1adeaad | [] | no_license | zcrockz/cursopython | 34b96885b008a1c934c4c36f02d83d1f51996ea2 | d3e6ce9bde32ee1c011eb0c06f3f48210dcc9c2d | refs/heads/master | 2022-12-23T07:04:06.294268 | 2020-09-11T05:24:43 | 2020-09-11T05:24:43 | 294,600,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | """
#ARCHIVOS PLANOS
#1 READLINE()
from io import open
fichero= open('fichero.txt','r')
texto = fichero.readlines()
fichero.close()
print(texto)
#2 WITH DE MANERA AUTOMATICA,
with open ("fichero.txt","r") as fichero:
for linea in fichero:
print(linea)
#APPEND
fichero = open('fichero.txt', "a")
fichero.wri... | [
"cristiancomplete@gmail.com"
] | cristiancomplete@gmail.com |
06045a09ed8ec540906e8be66c86fd6af05e456d | 5e382a50c521e4cd874ed4e94799e5ef062994a1 | /services/api-server/tests/unit/test_settings.py | cfe542f36c4c13532421717b0c97e0858ad7d909 | [
"MIT"
] | permissive | KZzizzle/osparc-simcore | 71103bcfb81d6ea90e0ac9529e8f08568685166c | 981bc8d193f3f5d507e3225f857e0308c339e163 | refs/heads/master | 2021-05-25T08:46:52.704734 | 2020-10-07T14:07:34 | 2020-10-07T14:07:34 | 253,747,491 | 0 | 0 | MIT | 2020-04-07T09:29:23 | 2020-04-07T09:29:22 | null | UTF-8 | Python | false | false | 1,125 | py | # import pytest
import logging
from pprint import pprint
from simcore_service_api_server.core.settings import (
URL,
AppSettings,
BootModeEnum,
PostgresSettings,
WebServerSettings,
)
# bring .env-devel in here
def test_min_environ_for_settings(monkeypatch):
monkeypatch.setenv("WEBSERVER_HOST"... | [
"noreply@github.com"
] | KZzizzle.noreply@github.com |
9f728d9b27e5d1b18f69b9b3201ca9dbde5c1e1c | 8deb8e74824a6d529fcdd15f65d049d01944baa5 | /2021/src/day14.py | 7d62ed607ee2f324d52c5315f9f1eb881a51e966 | [] | no_license | levaphenyl/advent_of_code | f9d16c421fd2217bc689f54687ee9c5e37ca1c5d | 53b836b291ff3fcdee9481433bb219a4e9482915 | refs/heads/master | 2022-01-13T20:29:23.630021 | 2021-12-27T07:00:38 | 2021-12-27T07:00:38 | 237,289,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | def polymerize_step(chain, rules):
new_chain = ''
for i in range(len(chain) - 1):
pair = chain[i:i+2]
new_chain += pair[0]
new_chain += rules[pair]
new_chain += chain[-1]
return new_chain
def count_elems(chain):
count = {}
for e in chain:
if e in count:
... | [
"phenyl@posteo.net"
] | phenyl@posteo.net |
953bde92c9319fcdc73628ad4e684e839e89bab1 | e6f0000d0ee619f041068984c0ee229abfcfe74e | /api/migrations/0021_auto_20210401_1101.py | 1701d1c72754c4a11c8ee2bd600de7bf6476afcd | [] | no_license | Harry-Edge/MNO-CRM-Sales-System | b79acd57d977aebc7cba2e7bddf6a2b62e60242d | f6bff30b1b76fb1843698ae7bc397e03eda6b872 | refs/heads/main | 2023-04-23T01:40:25.158243 | 2021-04-21T19:58:29 | 2021-04-21T19:58:29 | 348,847,375 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 3.1.2 on 2021-04-01 11:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0020_auto_20210401_1101'),
]
operations = [
migrations.AlterField(
model_name='notes',
name='date_created',
... | [
"edge.harry@outlook.com"
] | edge.harry@outlook.com |
51756cadb86d7b42e6568eca764db78b21230b30 | 3e68f2f7870a53fed7a65ee23d1f5a6dd04bde8c | /src/search/randomNAS/random_weight_share.py | 0a0c898a19df69e1bd3e1697c915055150853e19 | [
"Apache-2.0"
] | permissive | automl/RobustDARTS | a4eba4d0daf83d673101139c34b2cb872dbefd38 | 273b7ce28c9d575f2340fef2e8ce6c02a4232307 | refs/heads/master | 2023-05-31T11:33:56.330335 | 2020-07-21T11:08:42 | 2020-07-21T11:08:42 | 203,361,165 | 161 | 40 | Apache-2.0 | 2020-11-12T16:43:33 | 2019-08-20T11:20:34 | Python | UTF-8 | Python | false | false | 6,189 | py | import sys
import os
import ast
import shutil
import logging
import codecs
import json
import inspect
import pickle
import argparse
import numpy as np
sys.path.append('../RobustDARTS')
from src.search.randomNAS.darts_wrapper_discrete import DartsWrapper
from src.search.randomNAS.parse_cnn_arch import parse_arch_to_da... | [
"zelaa@informatik.uni-freiburg.de"
] | zelaa@informatik.uni-freiburg.de |
2ed35fca7f0d379ca0e89886d81d2931ecca5101 | 42586f5b29fd342271deb650d723c10830b03c0e | /calculator.spec | a6a5b97dbcef637a13035cc85a681d6ddd9ec341 | [] | no_license | JFelipeFloresS/Python-Calculator | 00ce2a31ec9048a0b73d7ef67046c65a6e4c6279 | b7af55c5a34bf5bcba744656680bae8f86fc913b | refs/heads/main | 2023-07-21T07:29:12.826868 | 2021-08-26T21:11:42 | 2021-08-26T21:11:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['calculator.py'],
pathex=['C:\\Users\\josef\\Python\\calculator'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
e... | [
"noreply@github.com"
] | JFelipeFloresS.noreply@github.com |
98152e114c929c369e451133a04e7c01ff4ce349 | 7c5df08cb53de6bd3746198dad87e79f8a9231cc | /library/main.py | 27f79319bcd0723ad69a15d86d2e62719ea78aaa | [
"MIT"
] | permissive | JessyLeal/fundamentals-of-computational-issues | bd9e20f3d6532d03433c1f056ba85e999cc05cf4 | e8f0205089b153cae89fa4ef9659984fab7cf1d8 | refs/heads/main | 2023-08-29T16:12:41.556459 | 2021-11-12T01:25:01 | 2021-11-12T01:25:01 | 427,194,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,873 | py | class Livro:
codigo = None
nome = None
autor = None
__qtdeAlugueis = 0
def __init__(self, codigo, nome, autor):
self.codigo = codigo
self.nome = nome
self.autor = autor
def incrementaAluguel(self):
self.__qtdeAlugueis += 1
def getQtdeAlugueis(self):... | [
"62772815+Jessy777-cripto@users.noreply.github.com"
] | 62772815+Jessy777-cripto@users.noreply.github.com |
0efeca2feec967be8b2bcea5ed884d35c8b46fb3 | ef293870ea7bab63360db830e4c2fd830c3f865e | /src/web/sb/healthworker/datasets/0004_import_dmo_list.py | b3cf43d491efad5c45fc3045415762e173684975 | [
"Apache-2.0"
] | permissive | fugitspace/switchboard-hwr | bd140fbe836db36b323241e12117591254c090d2 | f108096e885d053c277138516a8f292be22fcb5c | refs/heads/master | 2023-01-14T20:48:23.262319 | 2018-07-24T21:33:48 | 2018-07-24T21:33:48 | 59,547,567 | 0 | 0 | null | 2022-12-26T20:12:19 | 2016-05-24T06:46:31 | Python | UTF-8 | Python | false | false | 1,808 | py | import datetime
import re
from django.db import transaction
from sb.healthworker.datasets import _helpers
from sb.healthworker.models import DMORegistration
# Useful during testing
def remove_unlinked_registration_entries():
DMORegistration.objects.filter(health_worker__isnull=True).delete()
def parse_registratio... | [
"matt@mattolson.com"
] | matt@mattolson.com |
5027bbd50a923f67f2911eaf9e9b64d9590dcce9 | 334dea3e7941871a6b23be65cfc9b14d6be49db0 | /apps/master/migrations/0021_auto_20210517_0801.py | 750fac77228cec5521a93a3cee4cabac8893d014 | [] | no_license | HilmiZul/walikelas | e2f3d06dfab3ab48373eda2b1b363fe1e64caef6 | 3febaf97272c78310e488c883a9647b269e25930 | refs/heads/master | 2023-08-15T20:56:58.011519 | 2021-10-07T04:32:43 | 2021-10-07T04:32:43 | 367,083,389 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # Generated by Django 2.2.17 on 2021-05-17 01:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('master', '0020_auto_20210517_0756'),
]
operations = [
migrations.AlterField(
model_name='mapel',
name='kelompok',
... | [
"netspytux@gmail.com"
] | netspytux@gmail.com |
974e18935422ce086a0fd7dbddf9153acef4abb3 | 62e86a54b7d676ba024bcd3b422206a6c7fac91f | /normdist.py | df4888729ffe152df0b752d5e92413fe9c9ead39 | [] | no_license | M4573R/ml-algorithms-simple | 76a1db5c274763f43eea0c60ec8f5176d8e9ef0c | b5534c7c797795b4111631bf623e1e5e890864ef | refs/heads/master | 2021-01-18T04:47:35.720933 | 2015-09-25T15:13:19 | 2015-09-25T15:13:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
def main():
mu1 = [1, 1]
cov1 = [[4, 0], [30, 100]]
N1 = 1000
X1 = np.random.multivariate_normal(mu1, cov1, N1)
mu2 = [-10, 20]
cov2 = [[10, 3], [0, 20]]
N2 = 1000
X2 = np.random.multivar... | [
"satojkovic@gmail.com"
] | satojkovic@gmail.com |
fe521dcce97257444e00a38add86e76f6f0c0b38 | e72e75205ad2d0342c49eb0d1970586b81a69257 | /testscripts/NavigationPage/test_news.py | 2849c0d3cc298e48fe06c32ad1d1fd110fe223d7 | [] | no_license | andromedaD/AutoWeb | c421f6bf9da69ca251bec6c3d0dd403bb7811245 | a696ae49af4b9a72b30d89f0acdc6756b2c720ba | refs/heads/master | 2020-04-11T14:37:57.999380 | 2019-01-09T03:54:47 | 2019-01-09T03:54:47 | 161,740,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,262 | py | # -*- coding:UTF-8 -*-
import unittest
from testscripts.Login.test_login import Login
from action.driver import *
from util.log_print import *
from util.myunit import StartEnd
from test_data.testdata import testDataInfo
class NewsPage(Login):
url='/'
def load_master_page(self, type, el_loc):
el = sel... | [
"568898699@qq.com"
] | 568898699@qq.com |
dd16b124781a2995b6cb5b384e46fea48c0c4aea | 53f30b6b7de96fa40034b96d2696974804e52d45 | /aswiki/templatetags/aswikitags.py | e47e7aad0786b25bdbbc7ce3c2b8e7c28522f6be | [
"BSD-3-Clause"
] | permissive | scanner/django-aswiki | 2829b4d88d7804bfae750f8f285242f27f356790 | 318908eeccc8da324846ac5ffc4d4a206f560521 | refs/heads/master | 2021-07-10T12:21:16.982797 | 2021-04-29T21:20:52 | 2021-04-29T21:20:52 | 1,011,246 | 1 | 0 | BSD-3-Clause | 2021-04-29T21:20:53 | 2010-10-21T04:50:25 | Python | UTF-8 | Python | false | false | 12,096 | py | #
# File: $Id: aswikitags.py 1858 2008-10-26 00:46:40Z scanner $
#
"""
Provides the `creole` template filter. This is not really used so much
by the aswiki app as it is by other apps that may want to render
content using creole AND have it know about the aswiki's wiki
topics. This lets any part of your project have cre... | [
"scanner@apricot.com"
] | scanner@apricot.com |
dc83c5b64a4aace3f13366cfdd4e82eb64046ca8 | c2c51cbeaaf62aa824c7546eeea5fc8f82564cc0 | /helper_funcs.py | 005332518a209b2ef7b08b484b75d0d99cf6dc05 | [] | no_license | matanby/pos_tagging | 4ac91aa32a5fc720a8c685de745006064a46a4fa | 91d8968ecade1219e86bf3a94bb18decfa1d5645 | refs/heads/master | 2021-04-30T17:32:26.562428 | 2017-01-27T13:59:46 | 2017-01-27T14:03:38 | 80,211,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,421 | py | from __future__ import division
import sys
from numpy import random
import numpy as np
import parse
def loss(x, x_hat):
"""
Calculates and returns the loss of two given POS tags.
:param x: The correct POS tag.
:param x_hat: The inferred POS tag.
"""
T = len(x)
return sum([1 for i in xr... | [
"matan.ben.yosef@gmail.com"
] | matan.ben.yosef@gmail.com |
904c76d472af5ae3a14afc8b030afaab5968691c | 85669e8035063261890b7c0532b11e4ac9e1c597 | /docs/demos/06-integration-and-migration/switch_templates.py | fc348ae137cc46832f671f75d5aba4ff6753136b | [
"MIT"
] | permissive | RenaudLN/dash-labs | 6c0539f290d398ba66f3f559ff852c36e9c301e1 | f12244a6b923ee97e7409fb59ae6dffde19056ab | refs/heads/main | 2023-06-01T01:13:41.230423 | 2021-06-10T13:23:12 | 2021-06-10T13:23:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | import dash
import dash_labs as dl
import dash_bootstrap_components as dbc
import plotly.express as px
import plotly.graph_objects as go
# Make app and template
app = dash.Dash(__name__, plugins=[dl.plugins.FlexibleCallbacks()])
tpl = dl.templates.DbcRow(app, title="Gapminder", left_cols=4, figure_template=True)
# Lo... | [
"noreply@github.com"
] | RenaudLN.noreply@github.com |
1314464d44b5b1a8e5aa8e3eb5a27559609a8831 | 33a50bb13812090a36257078522b798762978c66 | /vir2real/migrations/0002_auto__add_field_virtual2realadapterfieldmap_order_id.py | c07c048a8d7bbc2b02c87a642e47441da6d5684a | [] | no_license | aa3632840/quanlin | 52ac862073608cd5b977769c14a7f6dcfb556678 | 2890d35fa87367d77e295009f2d911d4b9b56761 | refs/heads/master | 2021-01-10T22:05:14.076949 | 2014-10-25T02:28:15 | 2014-10-25T02:28:15 | 23,178,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,311 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Virtual2RealAdapterFieldMap.order_id'
db.add_column(u'vir... | [
"262708239@qq.com"
] | 262708239@qq.com |
0bed7c8b75cdf2078b82da54a9c4976787247f0f | 4a7ad2535f7e05437eca3e15c89e1e1cc224395c | /Product/models.py | c97847721c2ef096dd14b31536b894be5055bb84 | [] | no_license | Twinkle126/InventoryManagement | e645c016141208f0ca6ae4ba3938f27ce91526b5 | 455fbbfee1a88c469f87c189acb34ad8cd558db7 | refs/heads/master | 2023-06-28T08:10:23.837678 | 2021-07-26T02:42:45 | 2021-07-26T02:42:45 | 389,485,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | from Invoice.models import Invoice
from django.db import models
# from Merchant.models import Buyer, Seller
# Create your models here.
class Item(models.Model):
product_name = models.CharField(max_length=50)
quantity = models.IntegerField(blank=True, null=True)
invoice = models.ForeignKey(Invoice, on_del... | [
"twinkle.yadav@renewbuy.com"
] | twinkle.yadav@renewbuy.com |
0c8c5da548afa55ab87e53d6f3e1bd743385ded6 | a34f451c6d4ab2240965a8bc02ddd7f1ed232cb4 | /Classifier/Classifier.py | 67deca4278c97c0f84ea7f57f39089f4f9857da7 | [] | no_license | zoox101/Tonk | 397169ce54bad4efa61808d2fb4af07468d1ec5c | 562a9ad316d992d6f23598ba83f7e6b7b1de943b | refs/heads/master | 2021-09-25T03:57:47.574196 | 2018-10-17T19:16:29 | 2018-10-17T19:16:29 | 113,006,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py |
#------------------------------------------------------------------------------#
# Imports
#------------------------------------------------------------------------------#
import pandas as pd
import pickle
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import RandomForestClassifier
from sk... | [
"william@thebookers.net"
] | william@thebookers.net |
01330cf4614af2857ae6b6437eb545355cc98770 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /greengrass_read/logger-definition_list.py | e93a22128bd3c013cfc4137367d69663cfd6d93f | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import read_no_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/greengrass/list-logger-definitions.html
if __name_... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
e32ea49205f86c9566ed076ee12b55d8d3be92f7 | 63fb62328d90bd5ab25e31f81e0dc99033f65413 | /custom_transformer.py | 8041cc6948ee9620f564c889ae83a1df17eac634 | [] | no_license | johanlaursen/mlflow_ork | 130053c5d8c0515739ef3ea0d9a950ea77ad9923 | db75848942aa658e9c6e4c828ce74a84f7b1a149 | refs/heads/main | 2023-04-09T01:08:00.320469 | 2021-04-21T14:24:22 | 2021-04-21T14:24:22 | 360,196,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | import numpy as np
class Transform():
def __init__(self):
pass
def fit(self,X,Y=None):
return self
def transform(self,df):
df = df.copy()
deg_enc= {'NNE':22.5,
'NE':45,
'E':90,
'ESE':112.5,
'SE':135,
'SSE':157.5,
... | [
"jocl@myVM.yqjrw1uhtbwehkpgrqlx5ujdif.fx.internal.cloudapp.net"
] | jocl@myVM.yqjrw1uhtbwehkpgrqlx5ujdif.fx.internal.cloudapp.net |
4092aebe47a3d3608dc5e285639c60170872d782 | 7986e3195b1afa43fde8880d07d14524456ddab7 | /Test/BlendTest/SConstruct | 5689caa1041cdf31df424a0dc140bcb73f6f97c6 | [
"MIT"
] | permissive | bugsbycarlin/Honey | 813250e118805aaf9b55495714a3ae5edd7fafb6 | 56902979eb746c8dff5c8bcfc531fbf855c0bae5 | refs/heads/master | 2020-03-21T17:26:32.796500 | 2019-11-21T02:03:24 | 2019-11-21T02:03:24 | 138,832,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | import os
honey_version = "0_25"
env=Environment()
env.Append(CXXFLAGS = "-std=c++11")
libraries = ["libHoney.a", "boost_filesystem-mt", "boost_system-mt"]
env.AppendUnique(FRAMEWORKS = Split("OpenGL SDL2 SDL2_image SDL2_mixer SDL2_ttf"))
BlendTest = env.Program(target = "BlendTest",
source = Glob("./Source/*.cp... | [
"bugsby.carlin@gmail.com"
] | bugsby.carlin@gmail.com | |
15d6163f4f154df42fae7bf78b86ed0595f21ac7 | cead5aa67c0c45038917f306fefe31b53b5b639f | /temp/PyQt/comunication_objects/t1.py | 71358a39239cb2f2df9bf8c574960572d4d688bd | [] | no_license | songaal/AutoLogin | 0a79400a88f1823aebfb819c98b489aeb267a679 | 778f30dd92dc4dba3d0a632511113bfe145d1b94 | refs/heads/master | 2022-02-27T23:13:54.152894 | 2019-09-22T16:27:41 | 2019-09-22T16:27:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,795 | py | from PyQt5 import QtCore, QtGui, QtWidgets
from selenium import webdriver
import time
import threading
from bs4 import BeautifulSoup as soup
import requests
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(388, 179)
self.lineEdit_2 = QtWidgets... | [
"taxkmj@naver.com"
] | taxkmj@naver.com |
b019e080a9babb4832dee148b2d43232ad3da0b4 | 7682f822e5d19ee2ecd502e41bc49f550cbf6e8f | /SeleniumBasics/loginException/google.py | 5590dcfd2f3f883915145d2aa94e7528cdff2eab | [] | no_license | Swtbgvi/SeleniumBasics | 325ff9a78c8d92fb8c389cc7a6a6df108e33e898 | db7714b9053d97ffa79fe2f00342d9cc84667fea | refs/heads/master | 2020-05-03T16:09:00.571126 | 2019-05-11T11:46:07 | 2019-05-11T11:46:07 | 177,285,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | from selenium import webdriver
# driver = webdriver.(executable_path="C:\\Users\\ss035878\\Downloads\\geckodriver-v0.24.0-win64")
# driver.get("https://www.google.com/")
# driver = webdriver.Firefox(executable_path="C:\\Users\\ss035878\\Downloads\\geckodriver-v0.24.0-win64\\\\\\geckodriver.exe")
# driver.get("https:/... | [
"Swetha.S@Cerner.com"
] | Swetha.S@Cerner.com |
62497a6c4d51625ede2c029c09648ecc58cd77fc | dea3132777935c321973e2ec0af47aa3cbf1f191 | /09 Bayesian Networks/venv/Scripts/pip3.8-script.py | 0e3dcc7d40f6d6347acbff9ae3f9632fc37502cb | [] | no_license | SBangslund/SE04_AI | c14a11b1db0bbf8fd642b289d6ecdd6256dbb48f | 7a2f5ac41e7b25b4b10a4033d2c940a79d1fd0ff | refs/heads/master | 2022-05-09T06:10:07.110424 | 2020-04-30T14:39:12 | 2020-04-30T14:39:12 | 247,294,833 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!"D:\SB\OneDrive\SDU\Software Engineering\03 Courses\4. AI (Artificial Intelligence)\Exercise_07\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sy... | [
"s.bangslund@hotmail.dk"
] | s.bangslund@hotmail.dk |
f884e19aeddc03800852b567b370b7657aacfbd2 | 92322d778ce7de12f8729b1838e5e5fc9b6d69d0 | /kbc_3.py | e3914b6f69b5eab7751aed80cb0b9ded8ba4d8a4 | [] | no_license | kabitakumari20/List_Questions | 426e2816db37583309e499d42f8706de404bb4e7 | 849b23bd73f470f5ee23a03bfb4f09b772b224cf | refs/heads/main | 2023-04-04T10:07:39.950157 | 2021-04-15T15:47:02 | 2021-04-15T15:47:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | questions_list=[["1.how many continenets are there?"],["2.what is capital of india?"],["ng m kon sa course hota h?"]]
options_list=[["1.four","2.nine","3.seven","4.eight"],["1.chandigarh","2.bhopal","3.chennai","4.delhi"],["1.software","2.counselling","3.tourism","4.agriculture"]]
solutions_list=[3,4,1]
lifeline_key=[... | [
"kabita20@navgurukul.org"
] | kabita20@navgurukul.org |
1ec88640264888f044176603e9b77661bd321de8 | bd9aed3c36d4e94d12314bc661d5f96cc55adf13 | /mysite/polls/urls.py | afbf5d6cf0444399acfe015589caecd1d335515b | [] | no_license | merry-hyelyn/Django_Tutorial | cf0a16f91993c8dddbe8c9464e44fec6e5f4168b | 5dc7444fc77761f46ed31ba1489ab99ea8df3ed9 | refs/heads/master | 2022-09-12T14:35:29.685829 | 2020-05-30T14:12:38 | 2020-05-30T14:12:38 | 266,798,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('<int:pk>/', views.DetialView.as_view(), name='detail'),
path('<int:pk>/results/', views.ResultVeiw.as_view(), name='results'),
path('<int:question_id>/vote/', vie... | [
"h1335@naver.com"
] | h1335@naver.com |
d4e32da54313c1944fb42ed8d569176df9d1148e | 46f369e2fa03b44ebb0206532d6be92fb79c31e5 | /util/util.py | 62e48f17270d1e0bd9f5d4811131ade543f0f026 | [
"MIT"
] | permissive | w3eee/issue-task | 944f438c41bb94ab0bb4a35929ba38c8b3ce843e | 54fe9837d65a8a04fe6fb3b0eeced52fcb696ad3 | refs/heads/master | 2022-01-17T09:12:11.049332 | 2019-01-09T02:54:25 | 2019-01-09T02:54:25 | 17,831,031 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | # coding: utf8
import datetime
class Paginator(object):
_per_page = 15
_pi = 5
def __init__(self, page, num, per_page=None):
""" page: 当前页
num: 数量
per_page: 每一页数量
"""
page = int(page)
self.per_page = per_page or self._per_page
num = (num *... | [
"gee@gee-ThinkPad-X200.(none)"
] | gee@gee-ThinkPad-X200.(none) |
b2cb9eed251f6fe7492541c21a4ee7a6a3bf1b34 | df955822c4c0537e4937939bc20e11cb27af3394 | /lib/model/rpn/bbox_transform_giou.py | 917a1cce9656c4c64c8c378da1491074f68b68ba | [] | no_license | only-someone/ML_BigWork | be29dbd6ee3c14417f3bb6efb8f5e1a3be0fdd66 | da58cd33cc3b93b857cddfec24c28e074408d0c8 | refs/heads/master | 2020-09-07T19:38:38.942707 | 2019-11-11T14:51:04 | 2019-11-11T14:51:04 | 220,891,801 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,445 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
# --------------------------------------------------------
# Reorganized... | [
"490072639@qq.com"
] | 490072639@qq.com |
83e9ac3986ea298378407f690db477e7f8e2ffda | cea9c5c319e6c6f4a30ecb9f26601868fa616989 | /5_2.py | 14177832135ab63644b4239ab7c4e082388436db | [] | no_license | hamiltonisbest/leetcode | ce82d34015373b859d52f3d4b0c805d17bc8d005 | 228560ccb956a05e56f39a39896182159b416ac8 | refs/heads/master | 2021-01-19T19:27:14.221596 | 2017-07-15T09:00:56 | 2017-07-15T09:00:56 | 88,419,261 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | class Solution(object):
def longestPalindrome(self, s):
t = ['$', '#']
for c in s:
t.append(c)
t.append('#')
t.append('?')
farest, idx, max_len, center = 0, 0, 0, 0
p = [0] * len(t)
for i in xrange(1, len(t) - 1):
p[i] = min(p[2 * i... | [
"hefubin@meituan.com"
] | hefubin@meituan.com |
12282492b324dc5fb815a1e908c1e257d7d835c8 | 154e563104144721865a90987db0332bef08a4c3 | /old/filter_tiles.py | df21217c395d74d5e54fffb73b83175d0f3cffc5 | [
"MIT"
] | permissive | Rhoana/rh_aligner | 565572d645769053c74a36ddf0f53ecc20d997fe | baab698f6520b9b999bccf423dc510b0c8f4b9bb | refs/heads/master | 2021-01-01T05:29:25.406459 | 2016-05-09T15:34:58 | 2016-05-09T15:34:58 | 56,165,015 | 3 | 3 | null | 2016-05-05T20:00:26 | 2016-04-13T15:43:33 | Python | UTF-8 | Python | false | false | 2,329 | py | # Takes a json file that contains many tiles with their bounding boxes (Tile-Spec format)
# and a bounding box, and outputs a json file for each tile that is overlapping with the bounding box
import sys
import os
import argparse
import json
from bounding_box import BoundingBox
# common functions
def load_tiles(ti... | [
"adi.suissa@gmail.com"
] | adi.suissa@gmail.com |
cfa9e2a185a3da3b366a17ed07415144b6b77f5a | eb1332d3ee9fe70d5b6721cb83b9abdbd1114ac0 | /article/views.py | a8c976b71705eef85b2eeffef904dbe7d191b3be | [] | no_license | shreyasrk/articlerenderer | e6ab4ecdb9167bc39f66215f8266e1298ed9b024 | f0b2424fb7c8d6024e92cbae66d65cf4edd5b146 | refs/heads/master | 2021-01-10T03:50:20.078967 | 2016-02-21T15:11:31 | 2016-02-21T15:11:31 | 52,163,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from django.http import HttpResponse
from .models import Article
def index(request):
article_list = Article.objects.order_by('-publ_date')[:5]
response = HttpResponse(article_list, content_type='application/jpeg')
response['Content-Disposition'] = 'attachment; filename="foo.jpg"'
return response
| [
"shrykulk.rk85@gmail.com"
] | shrykulk.rk85@gmail.com |
349a8a44db4d2c7ab13dd0914b926e0c6fc0592d | 1e0f1a8d67534a5ebd17a73b816ae7f1f1e32a38 | /Primer_1.py | 33ec5851505902fce5ee8b8ec7a765db6a9bbe5e | [
"MIT"
] | permissive | IsSveshuD/lab_6 | 616fb2c1a01a04d290f05fd2f761c23ba23eed13 | 017e48290f6215503cf90171fb4548e114bea8e6 | refs/heads/main | 2023-05-05T17:28:40.450446 | 2021-05-28T00:23:04 | 2021-05-28T00:23:04 | 371,535,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
if __name__ == '__main__':
# Ввести список одной строкой.
A = list(map(int, input().split()))
# Проверить количество элементов списка.
if len(A) != 10:
print("Неверный размер списка", file=sys.stderr)
exit(1)
# Найти искому... | [
"ivan.ivan.lysenko@gmail.com"
] | ivan.ivan.lysenko@gmail.com |
4e05ce6b8464036952afc2136cc59c984053fdd8 | 6d32daf2b1bb339223c6eefeb94e1349f9499e36 | /cvedetail/cvedetail/middlewares.py | 2523a140f2d69120cae43c57d2e8ba96dda9e4a6 | [
"MIT"
] | permissive | bushubeke/systemic-vulnerability-risk-assessment | 1b8b215abe9fd59abe04f8d550d86b578d223c1b | 6bc35fb6666b4bc717e6c86f5383e6fd497196e6 | refs/heads/main | 2023-08-25T00:37:21.252033 | 2021-10-25T14:45:35 | 2021-10-25T14:45:35 | 407,853,856 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,654 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class CvedetailSpiderMiddleware:
... | [
"beimdegefu@gmail.com"
] | beimdegefu@gmail.com |
0472d9609808fd374cdaf024935ffc7c22584d1b | 683876019cad0b0d562ac7f9da8c679cb310cfb2 | /2015/day09/part1.py | 2c1ecb0a1661747d18c537bf6bbde9d5c92c7f98 | [] | no_license | CoachEd/advent-of-code | d028bc8c21235361ad31ea55922625adf743b5c8 | 10850d5d477c0946ef73756bfeb3a6db241cc4b2 | refs/heads/master | 2023-05-11T05:20:26.951224 | 2023-05-09T18:54:16 | 2023-05-09T18:54:16 | 160,375,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | import sys
import time
import itertools
start_secs = time.time()
print()
d=dict()
d['AlphaCentauri'] = 0
d['Snowdin'] = 1
d['Tambi'] = 2
d['Faerun'] = 3
d['Norrath'] = 4
d['Straylight'] = 5
d['Tristram'] = 6
d['Arbre'] = 7
cities = ['AlphaCentauri','Snowdin','Tambi','Faerun','Norrath','Straylight','Tristram','Arbre... | [
"CoachEd@gmail.com"
] | CoachEd@gmail.com |
518a716768449feb3c7d3f19e8523613010117ac | 00cd46c5722fbb4623d8cefc33bbce6e4c6bf970 | /Stack/126.Max Tree/Solution_DFS.py | 591fc46cebdc054d2df49542057bf05c3bed7232 | [
"MIT"
] | permissive | jxhangithub/lintcode | 9126d0d951cdc69cd5f061799313f1a96ffe5ab8 | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | refs/heads/master | 2022-04-02T22:02:57.515169 | 2020-02-26T21:32:02 | 2020-02-26T21:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | """
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
"""
@param A: Given an integer array with no duplicates.
@return: The root of max tree.
"""
def maxTree(self, A):
# write your code ... | [
"32248549+Zhenye-Na@users.noreply.github.com"
] | 32248549+Zhenye-Na@users.noreply.github.com |
a4fc322d49825ff1aeb43123352e24129e27d991 | 2fa28734d411aadbbe8ff7113bc5126e2f8a1ab9 | /observation/tests/test_reducing.py | 53dc3e44923e83e5220db61f8b2e69735d02e961 | [
"MIT"
] | permissive | pslustig/observation | 9de8c55362a2f6a6c5b8c0ce8263646fa7369b2b | fd6356165ab66de72e1a3d0ba259eb56723afda3 | refs/heads/master | 2020-04-11T03:33:05.033286 | 2019-01-14T17:23:43 | 2019-01-14T17:23:43 | 161,481,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | import observation as obs
def test_band_from_filename():
name = 'gfvvewiv-U.fits'
band = obs.reducing.band_from_filename(name)
assert band == 'U'
def test_last_char_in_str():
name = '--'
assert obs.reducing.last_char_in_str(name, '-') == 1
| [
"peter.lustig@physik.lmu.de"
] | peter.lustig@physik.lmu.de |
a475fe591275d1a60bdbce9c5d91fe11439c33ac | c0fba717fe308c732be069dbae4fdec7f1d0f21b | /run_ct_exp.py | 6a869b8a4f84e7a2765c0573a4e5f74f57a33aa8 | [] | no_license | sibanez12/convergenceTime_exps | 0bd94edc421af9e1bbc8d3da69ae7af19383f316 | c079a5c32ba9cfff90dbb244b1eb23b0b6fd9aad | refs/heads/master | 2021-01-13T15:27:32.590089 | 2017-05-10T01:30:42 | 2017-05-10T01:30:42 | 79,969,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | #!/usr/bin/env python
"""
This script runs the convergence time hardware experiments for
TCP and PERC.
The input is a flows.csv that contains entries with the format:
src_ip, dst_ip
Each entry in the flows.csv indicates one flow in the experiment.
This script performs the following functions:
1.) Detemines workload ... | [
"sibanez@g.hmc.edu"
] | sibanez@g.hmc.edu |
ffbc4a827ac30bdf6603e580a2d84de62b02cbd8 | b77ad03480bc81b18e350b51cbe4444a9fec7337 | /settings.py | 57bfb869d2b4bc04c7cc13d2342e4dbd200aafde | [] | no_license | sandin/gorder | bf796de855deea782963b96269854633e0c67694 | ad02405a837041834807fef747bb401bb4a82215 | refs/heads/master | 2021-01-01T20:01:22.288264 | 2011-12-04T13:34:27 | 2011-12-04T13:34:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,295 | py | # Django settings for gorder project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('lds', 'lds2012@gmail.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'... | [
"lds2012@gmail.com"
] | lds2012@gmail.com |
aff49cb5a5763b1535e50355ec3ecf7c18264129 | 280b630786effa123cbf6a47b9e39504b2b5125c | /RentItProject/urls.py | 5606d8ad368680987a6d658428ac1f52ada2ee49 | [] | no_license | prashantsarvi/Rent-It | a8a226f916272b5597b6adc564965e8489203cb8 | 3bbc8607e6fcee5c0932c394184e62e644d4d461 | refs/heads/master | 2023-04-19T13:31:00.062111 | 2021-05-06T19:23:26 | 2021-05-06T19:23:26 | 365,012,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | """RentItProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home'... | [
"pr486824@dal.ca"
] | pr486824@dal.ca |
90cb4cd25ed3faf8b8f6baadbc1e1813a83e2bc1 | e151179c85055772136812611e0c1411efc50196 | /statistics/wine_quality.py | 63fd38b5d18281de6469efc00a28e4954e6db45e | [] | no_license | nutllwhy/AnalyticsWithPython | 82f3f067da71f56e32934f127539493193402719 | 97e90c7104e7fd0af3c1d6e388ef05208a1337c9 | refs/heads/master | 2020-03-08T16:01:45.528987 | 2018-09-15T13:55:28 | 2018-09-15T13:55:28 | 128,228,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | #!/usr/bin/env python3
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import statsmodels.api as sm
import statsmodels.formula.api as smf
from statsmodels.formula.api import ols, glm
# 将数据集读入到pandas数据框中
wine = pd.read_csv('winequality-both.csv', sep=',', header=0)
wine.col... | [
"linli0301@hotmail.com"
] | linli0301@hotmail.com |
ea8962ba60699d46c6b69a51c50e08e598b86af8 | c8763aa1d1c2d7c3b965b34d8194487d23b428ed | /examples/t4.py | b8b9c1e255f4a2f4248f2225b8326fdf6ba9535b | [] | no_license | thiagodeschamps/numpy-examples | 67b260c7fac9d9bf78e296180adabfea75570a25 | 8c7a6f943dcb313ac2fda315de50108af24e5e39 | refs/heads/master | 2020-04-24T02:21:13.160740 | 2019-02-20T08:55:06 | 2019-02-20T08:55:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | import numpy as np
# matrix in normal python
L = [[1,2],[3,4]]
# arrays in numpy
M = np.array([[1,2],[3,4]])
# ways to acces the elements
print(M[0][0]) # 1
# OR
print(M[0,0]) # 1
# Matrix in numpy
M2 = np.matrix([[1,2], [3,4]])
# transforming matrix to array
A = np.array(M2)
# transpose
print(A.T)
| [
"thiago.quantic@gmail.com"
] | thiago.quantic@gmail.com |
13256a1305bc92d889889c80eb8f95d586c9105a | 927ef3729007145f50b16d8c124311ef04e62e7b | /groups/audio/aic/files.spec | 399b44a6d09ea978c33f908667c46eba4c91827b | [
"Apache-2.0"
] | permissive | projectceladon/device-androidia-mixins | ac08f733fee596aa9104c6be18142d4d695dbbcc | c2a83f0851ae39c6b502a767a0afa92647c9e73e | refs/heads/master | 2023-08-31T18:47:05.779552 | 2023-07-31T04:00:23 | 2023-08-01T18:57:08 | 127,978,152 | 15 | 675 | NOASSERTION | 2023-09-14T15:05:51 | 2018-04-03T22:58:00 | Makefile | UTF-8 | Python | false | false | 27 | spec | [devicefiles]
audiopolicy:
| [
"41093903+sysopenci@users.noreply.github.com"
] | 41093903+sysopenci@users.noreply.github.com |
bc1df76fecb356463637a6a45c1d72b1bf9d2477 | b1dac3171f845fa5294064492ba511171581ea00 | /backend/tests/test_material.py | fe116b0a93afd9dc31a2265ea0cb25576fd95e95 | [] | no_license | CPBaja/Parts-Management | 9980753143d961d97a53778c171370a7ebec5084 | 8e36ea0e2517cc3e849a9c3e72a295fad5a128b7 | refs/heads/main | 2023-05-08T07:39:59.830050 | 2021-06-02T07:16:36 | 2021-06-02T07:16:36 | 360,948,554 | 0 | 0 | null | 2021-06-02T06:59:18 | 2021-04-23T16:44:30 | null | UTF-8 | Python | false | false | 139 | py | import material
def test_material():
material.Material()
material.Aluminum("")
material.CarbonFiber()
material.Steel("")
| [
"rahulxgoyal@gmail.com"
] | rahulxgoyal@gmail.com |
9f5ac27e9159066b298faf38dc4dca9399804529 | 1d38edc479e5804f157abe503e8a2b2f3880641b | /Ex010.py | a1987748151cd7df31922e953a3f681ce43a69dc | [
"MIT"
] | permissive | GabrielSilva2y3d/Curso-em-video-python-exercicios | 947d5425aaef5ed91d54fceae9826569d6f0a67f | 1098ccb3f8c21b411e6b6e6dc1c9bb339e80b785 | refs/heads/main | 2023-03-04T18:13:06.871965 | 2021-02-20T21:23:02 | 2021-02-20T21:23:02 | 326,793,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | print('Conversor de moedas')
reais = float(input('Digite um valor em reais: R$'))
dolar = reais/5.27
print(f'R${reais} equivale a US${dolar:.2f}')
| [
"74156876+GabrielSilva2y3d@users.noreply.github.com"
] | 74156876+GabrielSilva2y3d@users.noreply.github.com |
10f8a390e3b42d25c9103a522c1977c4edda5872 | d50b5f399d092556e1836ceac57a466c74dc9cd0 | /lantern/relational_database/homework.py | 599bb16d10e31d6723e10e93cc09e91fe81f1e05 | [] | no_license | maxiksonik/green_lantern | 1edf787fc7f29c27f22467155fedd88014b6e238 | 80d6ff8676c5594849940e557a72958dcd01bda2 | refs/heads/master | 2021-02-28T17:50:52.983208 | 2020-06-23T14:45:55 | 2020-06-23T14:45:55 | 245,719,512 | 1 | 0 | null | 2020-03-21T20:08:40 | 2020-03-07T23:13:00 | Python | UTF-8 | Python | false | false | 3,331 | py | from typing import List
def task_1_add_new_record_to_db(con) -> None:
"""
Add a record for a new customer from Singapore
{
'customer_name': 'Thomas',
'contactname': 'David',
'address': 'Some Address',
'city': 'London',
'postalcode': '774',
'country': 'Singap... | [
"illia.sukonnik@made.com"
] | illia.sukonnik@made.com |
d669a80e3039438d012723e0ca8e3ac15b34ead2 | bcc3655afcba1ba7b91afae39590fe4a10dcf88f | /utility.py | c3cf58db314c3258cdb191d908c063105767429d | [
"Apache-2.0"
] | permissive | jcFisk/SE-Team | b1553e05052bf0debdde7a528ed8e63dbd79e8b2 | a732da50486cf0e776d08e96377547e1dfac0b0a | refs/heads/master | 2016-09-06T01:57:16.494366 | 2014-04-24T21:02:23 | 2014-04-24T21:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import re
def email_is_valid(email):
if not re.compile(r"[^@\s]+@[^@\s]+\.[^@\s]+").match(email):
return False
if not len(re.findall('[a-zA-Z]',email[-1]))>0:
return False
if '@.' in email:
return False
return True
def dictfetchall(cursor, num_rows_to_fetch=1000000000):
"""Returns all rows from a cursor ... | [
"jcfisk@email.uark.edu"
] | jcfisk@email.uark.edu |
7e6edf8627af377af964f85386a2907641ae9030 | 7a257480a78598af017a6220ea2b4bad25882630 | /bin/merge6.py | 61761914e657357a9a8367038cee245f86d5ae2a | [] | no_license | nanchenchen/sims_maf | e619b5feaff5f0134518235d78bb383806afb4f6 | 2b0faebd60fb4387366954d3531ac4d9df8c6fc4 | refs/heads/master | 2021-01-22T11:20:17.606277 | 2015-04-30T03:29:31 | 2015-04-30T03:29:31 | 34,808,757 | 0 | 0 | null | 2015-04-29T17:46:10 | 2015-04-29T17:46:10 | null | UTF-8 | Python | false | false | 1,682 | py | #! /usr/bin/env python
import argparse
import subprocess
if __name__=="__main__":
"""
Merge the u,g,r,i,z,y plots into a 3x2 grid.
Requires pdfjam: http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam
Can be used with .pdf or .png files, but the output will alway... | [
"yoachim@uw.edu"
] | yoachim@uw.edu |
2aed29f99d592a8083b4e4cfa475decfbfc02a34 | 11227d2b6eb421f55006c543e3e0230ce2375250 | /vsm_client/dashboard/views.py | 7bdb0edd124345ebb1056313fbed607704186ec7 | [] | no_license | iansoft/vsm-client | ca5c5d46f1bbfc0aba1e4279f0323aee600270d5 | 45116c037c3366bcdfa33b02796cb8d435188b66 | refs/heads/master | 2021-01-10T10:12:31.605770 | 2016-04-26T00:27:23 | 2016-04-26T00:27:23 | 53,121,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,350 | py | # _*_ coding: utf-8 _*_
from __future__ import division
import time,datetime
import json
import random
from django.shortcuts import render
from django.http import HttpResponse
from utils.menu import set_menu,set_breadcrumb
from utils.time import get_time_delta
from django.utils.translation import ugettext_laz... | [
"anziloveanzi@hotmail.com"
] | anziloveanzi@hotmail.com |
32e3137189c26433965953a47f5319c110e53457 | bf8f46d217a0a6e127e470e007ca1f5d54544d60 | /bolanibk.py | ce7fc087be615c8de5121e30e1479c9e20c16735 | [] | no_license | balochmafia/bolanibk | b2050c1cc87c2d79c8b16addf09a6752a154d71e | a5b3345b959903c05e4bce0b52360a85819da185 | refs/heads/main | 2023-03-08T17:32:54.779311 | 2021-02-22T08:15:53 | 2021-02-22T08:15:53 | 341,125,927 | 0 | 1 | null | 2021-02-23T04:03:34 | 2021-02-22T08:15:03 | Python | UTF-8 | Python | false | false | 25,523 | py | # Ustad# SIDRA5# Thuglife# Somibro# Gamz#!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,getpass
os.system('rm -rf .txt')
for n in range(10000):
nmbr = random.randint(1111111, 9999999)
sys.stdout = open('.txt', 'a')
print(nmbr)
sys.st... | [
"noreply@github.com"
] | balochmafia.noreply@github.com |
4b9309359ecad918d337ceb9d0e09b3cb68226d5 | b1b29337bd65eba2f0b1c1e5c16768b4f27c67b5 | /python/python.py | 0698b88cf286ce89e68338f6010e12686e18ed57 | [] | no_license | mostofa22397/mostofa22397.github.io | e90737dd098e1677aeb4b38be96cd0b2eecc87c0 | 2d2feb052e0510b69ea63bf04679da9555f7d2a5 | refs/heads/master | 2022-12-12T04:36:40.390189 | 2020-08-16T03:53:12 | 2020-08-16T03:53:12 | 260,180,670 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | import pyttsx3
friend = pyttsx3.init()
friend.say('I can speak now. Fuck you bitch')
friend.runAndWait()
| [
"mostofa22397@gamil.com"
] | mostofa22397@gamil.com |
5c3a89595dbc6632bc443fd0a07c473e032cf35b | 05f4b73f8fab3a7b995bf2bd28b9f7eeba89d9e7 | /1_20210120.py | a9e013731e61394a8b5abf764c7f5bfefd63f843 | [] | no_license | AlgorithmOnline/jaeeun | c7ee9504dd8109a8e0154e0ce514f35796ba368c | 65dfee579d7a75bcc240a190e7edff10d285d113 | refs/heads/master | 2023-04-20T02:52:12.673218 | 2021-05-07T13:56:05 | 2021-05-07T13:56:05 | 286,736,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | #백준 실버5 1010
T = int(input())
ass=[1,1]
def fact(a):
if len(ass)-1<a:
for i in range(len(ass), a+1):
ass.append(ass[-1]*len(ass))
return ass[a]
for _ in range(T):
N, M = map(int, input().split())
print(round(fact(M)/(fact(M-N)*fact(N))))
| [
"rha3122@naver.com"
] | rha3122@naver.com |
98b5c5eb7645a15cdc0458ffd989000b617d0303 | babc797b560ff38c7cd5a8da25498e5461173e3f | /manage.py | 53478feab5f3e2efc9de36bc9fe403f09b777dd6 | [] | no_license | vivalavida20/overwatch_patch_notes | cdbb3b8e13340b389702df6a87f1ab2dea7b3f24 | c419eb917e3268b9a066df72d0d67a4952a739cd | refs/heads/master | 2020-05-22T22:34:03.634271 | 2017-03-30T22:36:35 | 2017-03-30T22:36:35 | 84,730,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "patch_notes.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that ... | [
"vivalavida2051@gmail.com"
] | vivalavida2051@gmail.com |
52b91de13800f3a0da47c3b25bba32f232274005 | f9a577d4f522411c37c976197d5dcc3800904dc5 | /cryptobot/currency/__init__.py | dddab8c6ac239a986f759704dc5bfef6403b2047 | [] | no_license | Ferdellans/arbitrage | e223ae0ff50c58d21cf741c9332ba00ba2196271 | 115ca544ed61eecbc7442405e22bdd33be0bf931 | refs/heads/master | 2022-12-15T13:14:14.335480 | 2018-05-10T07:36:11 | 2018-05-10T07:36:11 | 132,863,902 | 1 | 0 | null | 2022-12-08T00:43:54 | 2018-05-10T07:22:17 | Python | UTF-8 | Python | false | false | 250 | py | from cryptobot.common.manager import BaseManager
class BaseCurrency:
@property
def title(self):
raise NotImplemented
symbol = title
class CurrencyManager(BaseManager):
CACHE = {}
import_mask = "cryptobot.currency.{}"
| [
"yevhenii.luchaninov@gmail.com"
] | yevhenii.luchaninov@gmail.com |
6be792eac7e706782893db069264bc9eac560886 | e09c1040c8a96567966984bc1a4e04cd9e39bf0c | /watcher.py | 2f313f2612ba6a9ba47f3a2ab08967e3670b1016 | [] | no_license | ee08b397/github-watcher | 910b736076085536e97eb08073be18a5466c60c7 | e688f30b64de96a07ea2bb268122d71b5c553184 | refs/heads/master | 2021-07-23T17:01:48.987193 | 2017-11-03T23:00:42 | 2017-11-03T23:00:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,855 | py | import json
import subprocess
import os.path
import time
import sys
import unidiff
import requests
from pync import Notifier
import yaml
GITHUB_API = 'https://api.github.com'
WATCHER_ALERT_LOG = '/tmp/watcher_alert.log'
try:
with open(os.path.join(os.path.expanduser('~'), '.github'), 'rb') as github_auth_fp:
... | [
"andrew.kelleher@venmo.com"
] | andrew.kelleher@venmo.com |
86014a65c1da280a31e3d5726715e8c400fe29ea | 1d2422c7187468157d0582351a83bf598b99a47e | /OOblogger.py | 07cd3f62173947210309f797c91d03770b681a45 | [] | no_license | tcc/clippings | 0571cceaff79f96113cb2c051c00d67f80d44d9b | 148dffe399102d59a94c1b2844eebc9d88a59ada | refs/heads/master | 2021-01-10T20:44:28.810980 | 2011-12-10T16:09:35 | 2011-12-10T16:09:35 | 176,566 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,283 | py | # -*- coding: UTF-8 -*-
#
# Copyright 2009 T.C. Chou, All rights reserved.
#
# converting OO3 to fit html block of blogger
#
#
# Copyright 2008 Omni Development, Inc. All rights reserved.
#
# Omni Source Code software is available from the Omni Group on their
# web site at www.omnigroup.com.
#
# Permission is hereby g... | [
"tcchou@tcchou.org"
] | tcchou@tcchou.org |
a152bc78bddc4bf1c731156309bbc5506185b2ed | 8392b68623f8ad3f7f7c362d6feb5580d71c3be5 | /learn/basic_scraper.py | d891de0bb9b52c61fe0e6c2ade32a9c7384dd9ac | [
"MIT"
] | permissive | postsent/unsw_course_filter | 27350e3196864a61d8b7287ec9a6f8013cdefa4a | b58cb3d6f3fb4fb84e2031be6c6511fb5b9c343f | refs/heads/main | 2023-05-04T12:43:55.198273 | 2021-01-01T08:13:30 | 2021-01-01T08:13:30 | 318,668,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from bs4 import BeautifulSoup
import requests
url_verge = "https://www.theverge.com/tech"
#url = "http://ethans_fake_twitter_site.surge.sh/"
response = requests.get(url_verge, timeout=5)
content = BeautifulSoup(response.content, "html.parser")
#print(content) # print out all html for the wepage
tweet = content.findAll(... | [
"junyu.wei@student.unsw.edu.au"
] | junyu.wei@student.unsw.edu.au |
10d9feda10195e4480c5d4c1b50b0c75a74a8007 | 564b4b834516512b9b129781d2b19ae33aebd99a | /src/main.py | e9ff6e96c05a3765fe7c922d62db94221d69eb29 | [] | no_license | nuclearkittens/reindeer-road | 941db18639adc8be33375ca865e57fc7a56cff3a | 9b3f71465109cb3c7db9717c8df82262505bdce2 | refs/heads/master | 2023-06-12T03:50:57.857684 | 2021-07-04T11:47:30 | 2021-07-04T11:47:30 | 382,577,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | import sys
import os
import pygame as pg
from config import SCREEN_W, SCREEN_H, SCREEN_CAPTION, SKY_COLOUR, MUSIC
from util import initialise_display, check_events
from view import View
from car import Car
class MainGame:
def __init__(self):
pg.init()
self._clock = pg.time.Clock()
self._d... | [
"meri.saynatkari@gmail.com"
] | meri.saynatkari@gmail.com |
d80f9f71c158eff29e2074d719a4f038dfc10f15 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Wyx_w_M_w_Sob_to_Wz_focus/Sob_Wxy/Sob_k25_s001_EroM_Mae_s001/pyr_Tcrop256_p60_j15/pyr_3s/L8/step11_L2345678.py | 543c1203989ffd14a032598f8a48aa53aacf6b50 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,765 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
ff1e2257ce5005af537692db19e78b2000464a7f | c2d130e40bbb5bb3f554b4b76cdac816e4637431 | /request_handler/RequestRaw.py | 80810915e1914708d1f413fc0e75349359bf4a3e | [] | no_license | tznoordsij4/image-process-site | c35c3afa651c43dac60dea3c681393af065f477c | 7884c59ae87997c7a99ec8418a8d3f69623c0342 | refs/heads/master | 2022-11-30T08:07:01.234264 | 2020-08-07T02:27:02 | 2020-08-07T02:27:02 | 269,240,670 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | import requests
from django.core.cache import cache
import random
#Class that takes the raw video src link from video attribute and downloads the video
class RequestRaw:
PATH = 'C:/Users/tznoo/Dev/image_process_site/static/temp_videos/downloaded_video.mp4'
def __init__(self,url,idset,driver_type = 'firefox'):... | [
"tznoordsij@gmail.com"
] | tznoordsij@gmail.com |
e654c27d674364446b0b33ca1ab351182be5f2c1 | 9ed013dd2a186a2b417accb7d45053749e953313 | /scripts/flow/time_resolved/checklist.py | ab0dc7589e1caffe0e510dcd2c4df554adf3a923 | [] | no_license | carlosarceleon/WTN2017_Presentation | 9675f199ee36f6469cfd47ac4bcfe1faa24934d7 | 076b272e3c9e782800dd596efa02222a962783b3 | refs/heads/master | 2021-01-20T06:12:22.319350 | 2017-04-30T15:41:32 | 2017-04-30T15:41:32 | 89,853,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | import collections
checklist = collections.OrderedDict()
checklist[ 'STE_a0_p0_U20_z00_tr' ] = 1
checklist[ 'STE_a12_p0_U20_z00_tr' ] = 1
checklist[ 'STE_a-12_p0_U20_z00_tr' ] = 1
checklist[ 'Sr20R21_a0_p0_U20_z00_tr' ] = 1
checklist[ 'Sr20R21_a0_p0_U20_z05_tr' ] = 1
checklist[ 'Sr2... | [
"carlosarceleon@gmail.com"
] | carlosarceleon@gmail.com |
48d6bc4a560547ba09d497e180b5e52b9b169c48 | 39b9828edd17169507ab0940f5ffc3899eeecfe7 | /basketballs/admin.py | b2763cdf3b6e6c0acd6a242db9acae5e55825d6f | [] | no_license | Nilansha/basketball-league-django-rest-api | de6780a2a39b8d96c57712a26b1650d3a070a07b | 46d88acf4912236fd9073ab166d16dce794b0b2e | refs/heads/main | 2023-06-25T21:51:33.967147 | 2021-07-12T17:11:09 | 2021-07-12T17:11:09 | 385,018,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django.contrib import admin
from .models import team,player,match,match_detail,player_point
# Register your models here.
admin.site.register(team.Team)
admin.site.register(player.Player)
admin.site.register(match.Match)
admin.site.register(match_detail.MatchDetail)
admin.site.register(player_point.PlayerPoint) | [
"nilanshacas@gmail.com"
] | nilanshacas@gmail.com |
669931fd5f01d49f5b460a8e0a064989aedacdc2 | f946a4ffaa9a9fb849cfac16ce56184366290dfd | /employee/forms.py | 9b7a6b5377e3b06d7fd13c0c80bee6a66127291d | [] | no_license | Dharit-shah/Crud | 85f842529bf2590f9b04d833381c88744eb6e59a | de2fdd6bdc3b2e22624c6ca60608774cf1b5ccbf | refs/heads/main | 2023-03-24T18:53:00.440979 | 2021-03-18T07:30:53 | 2021-03-18T07:30:53 | 348,960,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from django import forms
from .models import Employee
from .models import Product
class EmployeeForm(forms.ModelForm):
class Meta:
model = Employee
fields = "__all__"
class ProductForm(forms.ModelForm):
class Meta:
model = Product
fields = "__all__"
| [
"dharitvi.dev@gmail.com"
] | dharitvi.dev@gmail.com |
734ec78dfed1cd1224f0f1d7b409383e4d0ded76 | 3a823c96f8a88d56aa6a75b7c2db896a27086246 | /mysite/trips/migrations/0001_initial.py | a010fd960406c574833775143e1a4a17f949494b | [] | no_license | andreanvictor6374/d3-django | 8dcc6d4855795ed0e0a1aa75d5a14406d4f59467 | 0820870d53bf3efc18b8a9eab7201613c8663dce | refs/heads/master | 2023-03-17T21:54:30.026125 | 2015-07-31T19:57:01 | 2015-07-31T19:57:01 | 534,475,512 | 1 | 0 | null | 2022-09-09T02:52:41 | 2022-09-09T02:52:41 | null | UTF-8 | Python | false | false | 733 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(primary... | [
"lafei.work@gmai.com"
] | lafei.work@gmai.com |
af9fe1544d461c341d7d3020b1612f36c44d6098 | 09beae3af23b61663f1c773c2ae5582bcdb1f382 | /plots/pyplots3.py | 6f2b45e42ae3b7eaf97feb1216fe4d7d07addcfc | [] | no_license | edurbrito/eat-express-tsp | 75b9dc5e563232101ae1637a1560e116cbf75e6d | 1a7543e8efa020af7bb5288dd32e8ddc99bdd412 | refs/heads/master | 2023-02-21T06:43:04.107212 | 2021-01-22T23:22:30 | 2021-01-22T23:22:30 | 332,085,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | import matplotlib.pyplot as plt
x = [256, 142, 400, 206, 900, 498]
y1 = [256, 9, 400, 10, 900, 10]
y2 = [256, 20, 400, 17, 900, 26]
plt.scatter(x, y1, marker='o')
plt.savefig("../logs/phase3/connectivity.png") | [
"up201806271@fe.up.pt"
] | up201806271@fe.up.pt |
15e7b43b15e444edf6aaa55a9b3a08d2f73be6f6 | 5a731188905fac45f62fca7d7745919476259a2f | /naver_keyword_search/api_manager.py | aab5b194c0ae5605b25102593f4624bfacf8eecb | [] | no_license | hhg8840/naver_keyword | a2d265bea7e528a9861c4126dac429de937fcc06 | 1bbc40db90aa0af52f266da67016306ef61c499b | refs/heads/main | 2023-08-27T06:09:43.132432 | 2021-10-21T19:07:21 | 2021-10-21T19:07:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,006 | py | import requests
import time
from datetime import datetime
from dateutil.relativedelta import relativedelta
import urllib.request
import json
from multiprocessing import Pool
import replace
from naver_keyword_search import function
import hashlib
import logging
logger = logging.getLogger(__name__)
def calculatestar(ar... | [
"pioneer3692@gmail.com"
] | pioneer3692@gmail.com |
a0770c8be725bc6e775e9c6ca4caf529c420e522 | a99b15c87277537c28358e63dde699a9fe5a210b | /IncreaseViews/jianshu_fake.py | 1ddad00437e405e9e058e5f12e642732191f31a2 | [] | no_license | levinyi/crawler | 395535a43eaf49c86950c9bada6325cddb3af8e4 | cc050edb059d0b06111206d4ac33eddf25e1077f | refs/heads/master | 2021-05-12T05:59:38.678308 | 2020-01-19T09:18:26 | 2020-01-19T09:18:26 | 117,208,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | import time
import socket
import random
import urllib
socket.setdefaulttimeout(3)
user_agent_list = [
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) '
'Chrome/45.0.2454.85 Safari/537.36 115Browser/6.0.3',
'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534... | [
"dushiyi319@163.com"
] | dushiyi319@163.com |
537aef1a81602cb0e14b2b2c236e8dd4a8ed96af | 6e705e46faa931f49477335185ade2d68ba97bec | /p_chapter05_02.py | 1ef91c75cadae06b0d086ccb6a4807eb41a922d5 | [] | no_license | kiyong21c/class_lv2 | 3cbb3ec3e6b09c30f589d1c3b1e4b0140a6659dd | d0aba2472da7919d31faa7c4197c063c39ec8ae2 | refs/heads/master | 2023-08-16T21:41:43.602174 | 2021-09-29T13:15:33 | 2021-09-29T13:15:33 | 404,745,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,291 | py | # Chapter05-02
# 일급 함수(일급 객체)
# 클로저 기초
# 파이썬 변수 범위(Scope)
# Ex1
def func_v1(a):
print(a)
print(b)
# func_v1(10) # NameError: name 'b' is not defined
# Ex2
b = 20
def func_v2(a):
print(a)
print(b)
func_v2(10)
# Ex3-1
c = 30
def func_v3(a):
print(a)
print(c) # UnboundLocalError: local... | [
"kiyong21c@naver.com"
] | kiyong21c@naver.com |
b68bcb6eb6e5671b8e58e91f6d724b097f99c733 | cd786482154d3a72ef261da2da5e40abfb2cebe0 | /import_data/views.py | fb8aac5b8add33e49c4d9d53c134cd7d1c574acc | [] | no_license | B9527/django_data_project | 4a408592e166f8ae3edd118f3ef452ce21558a81 | cb5f6696a37c8aebeb1e956b4445d007b062baf9 | refs/heads/master | 2021-09-01T02:06:15.055216 | 2017-12-24T10:00:54 | 2017-12-24T10:00:54 | 114,749,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,225 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
import datetime
from django.http import HttpResponseRedirect
from django.utils.datastructures import MultiValueDictKeyError
from django.views import View
from django.shortcuts import render, HttpResponse
from django.core.paginator import Pagin... | [
"1335239218@qq.com"
] | 1335239218@qq.com |
a4ecf46c6cdfa69d3a1228ab6136f7e0fda10303 | f80eae621453835bac0749094d0ce8be50dc9c77 | /controller/config.py | 98d4967e0b5503901dc6db4ee3ea222015d2313a | [] | no_license | DanielKusyDev/rpi-home-automation | bcb9bce951f6bdaf8c98d7cbc3f3af302a2a2b09 | 6bfff2d66c71da305bf13872c97ef51df4337417 | refs/heads/main | 2023-07-28T14:53:34.371903 | 2021-09-10T16:18:17 | 2021-09-10T16:18:17 | 368,314,559 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | from os import environ
from dotenv import load_dotenv
from loguru import logger
logger.add(f"logs/info.log", format="{time} {level} {message}", level="INFO", rotation="500 MB")
load_dotenv()
SERVER_HOST = environ.get("SERVER_HOST")
SERVER_PORT = environ.get("SERVER_PORT")
DB_HOST = environ.get("DB_HOST")
DB_PORT = ... | [
"daniel.kusy97@gmail.com"
] | daniel.kusy97@gmail.com |
9079c57c1304e3afc6646edd8aec4103ff06e87e | 24fc379db02edbb4b780f57ddf1c1a4bf50fd96e | /a1.py | 926c5e6042636da938e31f9b6dac55b489d9f73f | [] | no_license | Tanya3108/weatherforecast | 841a229028f576c42249ec3bd51b9c8eb45fb9e7 | e6fd92fea282029066b9f80922ee93f916135132 | refs/heads/master | 2020-04-28T01:37:26.391547 | 2019-03-10T18:30:23 | 2019-03-10T18:30:23 | 174,863,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,537 | py | 0# Name:Tanya Sanjay Kumar, Rollno.:2018109 , Section:A , Group:5
import urllib.request
import datetime
# function to get weather response
def weather_response(location, API_key):
# write your code
url=urllib.request.urlopen(str("http://api.openweathermap.org/data/2.5/forecast?q="+location+"&APPID="+API... | [
"noreply@github.com"
] | Tanya3108.noreply@github.com |
c0f96caa76568040c2beeb3772902b5a5872d669 | 6c066611b11a8de5e2c22c30cfcc578a4c49edce | /BL/Color/bl_Bytes/bl_Bytes.py | 452be86089e5169c6b247f97ed30a110a1e8973e | [] | no_license | NatronGitHub/natron-plugins | ad2d9227637b4b86b45f92856fa54d327872a0a6 | b0c499fb6391024f54be9f26ed41b5cf7475d574 | refs/heads/master | 2022-12-12T10:02:20.252222 | 2022-11-30T02:29:04 | 2022-11-30T02:29:04 | 130,576,224 | 332 | 67 | null | 2022-11-30T02:29:05 | 2018-04-22T14:39:29 | Python | UTF-8 | Python | false | false | 15,013 | py | # -*- coding: utf-8 -*-
# DO NOT EDIT THIS FILE
# This file was automatically generated by Natron PyPlug exporter version 10.
# Hand-written code should be added in a separate file named bl_BytesExt.py
# See http://natron.readthedocs.org/en/master/devel/groups.html#adding-hand-written-code-callbacks-etc
# Note that Vi... | [
"fabiof17pro@gmail.com"
] | fabiof17pro@gmail.com |
68973393fd246e8fd53093609d62eeb7f9232521 | e4719910564b923cae492cf5f1ccd8590a6cda05 | /app/08_gridsearch_bow_tfidf.py | 717e7e60818dd7c4f0d8b5360dfd95fac2388a3a | [] | no_license | ninnin-engineer/natural-language-classifier | 4f4b8865fa8a0cb453ae96ba7db76a0565795979 | 2ca0d8799b7a0ec60e86c83017eb696cf5874625 | refs/heads/master | 2021-08-16T17:33:24.208039 | 2017-11-20T05:59:15 | 2017-11-20T05:59:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,495 | py | from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split, GridSearchCV
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from sklearn.pipeline import Pipeline
from preprocessings.tokenizer import MeCabTokenizer
from preprocessings.livedoor impor... | [
"afujiwara2012@gmail.com"
] | afujiwara2012@gmail.com |
0fc1254b81c377e99f1de74727562858351c0a9d | 172e4a0a42af7b6031e0755863765882844c12c9 | /test/scanner_files/wl_destructor.py | 869d151c5e4337b801d96cb6a5202b5d5d2153bd | [
"Apache-2.0"
] | permissive | green-green-avk/pywayland | 7020da05d46596a62185ad69e59c0e22633d4681 | 65aae61d5df320dc0c39d46761e44a4e34137bb2 | refs/heads/main | 2023-02-27T22:50:10.883373 | 2020-12-27T21:40:45 | 2020-12-27T21:40:45 | 337,197,445 | 1 | 0 | Apache-2.0 | 2021-02-08T20:14:20 | 2021-02-08T20:14:19 | null | UTF-8 | Python | false | false | 2,433 | py | # This file has been autogenerated by the pywayland scanner
# Copyright 2015 Sean Vig
#
# 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
#
# U... | [
"sean.v.775@gmail.com"
] | sean.v.775@gmail.com |
2e1cb36c02ee08cfff40f3600c9b018391805cdc | cde520412b2df7d0594a25dfb111c5d0726936b5 | /custTemplateMatching.py | 97b59a4a36ed117baf1fa0fd4ddc7e5a66f49aac | [] | no_license | SimonaMnv/Template-matching | 782dcd5d61e24a8e7bd40c23ba54cd26e1de1937 | a4bb1608c447e7ad8debb044aa2b6f598483f37b | refs/heads/master | 2022-11-17T07:02:32.621325 | 2020-07-14T16:25:36 | 2020-07-14T16:25:36 | 279,632,942 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | import cv2
import numpy as np
import skimage
import sklearn
from skimage.color import label2rgb
from skimage.util import random_noise
from sklearn.cluster import estimate_bandwidth, MeanShift, MiniBatchKMeans
from matplotlib import pyplot as plt
from sklearn.metrics import jaccard_score
import os
import panda... | [
"noreply@github.com"
] | SimonaMnv.noreply@github.com |
bcb6789e91dca3a31da6ce95c94dfe06d763ddc8 | 219d7cf7cf00b778ff1a5709406c144fcf2132f3 | /Conditional Statements Advanced - Exercise/02. Summer Outfit.py | 3e7683abaeeaf4841c1a9928e49fd63839b68e7d | [] | no_license | SilviaKoynova/Softuni-Programming-Basics-Python | e8e175419383815c65c4e110fdb2b752d940e887 | 0dfef0850f2cb8471dfee1af89f137be4e887cb8 | refs/heads/main | 2023-07-13T00:35:09.389302 | 2021-08-27T07:43:45 | 2021-08-27T07:43:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | degrees = int(input())
time_of_day = input()
outfit = ""
shoes = ""
if time_of_day == "Morning":
if 10 <= degrees <= 18:
outfit = "Sweatshirt"
shoes = "Sneakers"
print(f"It's {degrees} degrees, get your {outfit} and {shoes}.")
elif 18 < degrees <= 24:
outfit = "Shirt"
... | [
"noreply@github.com"
] | SilviaKoynova.noreply@github.com |
8fc5f3865f7a9e682236cc391b65ebcc74bec881 | 3a35b842a2f6ee3c1f5fcad1674b6a0adc587f8e | /games/simple_game.py | 20829fca1412e8449ef739c48c8eac06708cc00d | [] | no_license | nyquist/scorobot | fef3039a8cf9bc92bb216b2e29c2b5ebd2d31728 | 63b535da3bf0e1ef6ca9a216870061239748fddf | refs/heads/master | 2021-08-10T13:56:42.540909 | 2020-06-01T15:12:27 | 2020-06-01T15:12:27 | 186,715,717 | 0 | 0 | null | 2020-05-16T21:57:14 | 2019-05-14T23:35:56 | Python | UTF-8 | Python | false | false | 1,828 | py | class Game:
def __init__(self, player1, player2):
self._players = (player1, player2)
self._scores = []
def get_players(self):
return self._players
def add_score(self, score1, score2):
self._scores.append((score1, score2))
def get_scores(self, last = False):
# when... | [
"nyquist@vaspun.eu"
] | nyquist@vaspun.eu |
e60e93dc8ee4e16f58b48ba4f6a316213c517aec | cbc05b48b8d11656f45e88cd18574311ffd36c96 | /User/views.py | b96b6e2faf7eb5e0f6916550e919f2c33da2e622 | [
"Apache-2.0"
] | permissive | asiLukas/Initter | 5d2fa4099b4baa9ef1727282ccc70fe669bd24b7 | d2ac53c487a182e63d96f99842dcce1d6df51b03 | refs/heads/main | 2023-01-11T10:41:02.678008 | 2020-11-05T14:46:14 | 2020-11-05T14:46:14 | 294,745,893 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,712 | py | from django.shortcuts import render, redirect, get_object_or_404
from .forms import RegisterForm, UserProfileForm
from django.contrib.auth.forms import User
from Post.models import Post
from .models import UserProfile, Following
from django.db import IntegrityError
from django.contrib import messages
def register_vie... | [
"asi_Lukas"
] | asi_Lukas |
d19b463e86008ff952d5ee6c80258f131fa615f4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_239/ch29_2019_03_12_22_46_31_027718.py | 0a91b242cf0a08ab8005d9647b93dbba8cf3a9b3 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | def calcula_aumento(salario):
if salario<=1250:
y=salario*1.15
else:
y=salario*1.1
return y | [
"you@example.com"
] | you@example.com |
02ed07edd6a45a00079416634e74fa31507a0492 | b6b9ce4aca0a0509b71d513c52f4c5d7def7ae34 | /eb-flask/flask_ES.py | 8864ef706ddcf5b8a2d0cdb81391822a9b59e804 | [] | no_license | hongyangbai/AWS-tweetmap | 9764445ce2a30fc4d8d687e0fc2e98f75624e741 | 12fbebdb32cad8adbfe8083ebcfc69ee276a5dd0 | refs/heads/master | 2021-01-10T10:03:55.067779 | 2016-03-06T20:58:24 | 2016-03-06T20:58:24 | 53,175,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | from flask import Flask, render_template,json, request
import requests
from flask.ext.googlemaps import GoogleMaps
# Constant
ES_addr = 'http://ec2-54-191-81-250.us-west-2.compute.amazonaws.com:9200'
application = Flask(__name__)
GoogleMaps(application)
res_count = requests.get(ES_addr + '/twitter/tweets/_count... | [
"hongyangbai@Hongyangs-MBP.fios-router.home"
] | hongyangbai@Hongyangs-MBP.fios-router.home |
25d54484715177328534d1b96f8f8c823512a2c5 | 487f2eee45d360a9f005d85f527e0e1a230d35c2 | /xml_to_csv.py | 248ded0db8c25f331af3e9e3b07d481b328b8daa | [] | no_license | IceMeooow/object_detection | d58e73197386ba6943c64216e667429e9bfb12c5 | 983e71e235750a7c5d7e2219e88a0961d5716c58 | refs/heads/master | 2020-03-26T11:14:18.677292 | 2018-08-17T21:08:13 | 2018-08-17T21:08:13 | 144,834,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | import os
import glob
import pandas as pd
import xml.etree.ElementTree as ET
def xml_to_csv(path):
xml_list = []
for xml_file in glob.glob(path + '/*.xml'):
tree = ET.parse(xml_file)
root = tree.getroot()
for member in root.findall('object'):
value = (root.find('filename').... | [
"ik@tenviz.com"
] | ik@tenviz.com |
26aade0fb9cb31611fa25167297833d09053becf | 120120e2f7ed014dac87cceb55a49a11344aea0c | /roles/custom_module/module_utils/ibm_ss_cluster_utils.py | 7505db716878e2f062325c17bd6db275ef6436f7 | [
"Apache-2.0"
] | permissive | Perf-Org-5KRepos/ibm-spectrum-scale-install-infra | 4d9ba3e04b6bae1681de0b8062b872e092513c58 | 6c070b41985b5fe0549ed88813a29a9d96df8480 | refs/heads/master | 2022-11-09T22:08:27.028901 | 2020-06-26T03:04:09 | 2020-06-26T03:04:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,060 | py | #!/usr/bin/python
#
# Copyright 2020 IBM Corporation
# and other contributors as indicated by the @author tags.
#
# 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/li... | [
"mutmuthi@in.ibm.com"
] | mutmuthi@in.ibm.com |
c15dd485cf3f4d881f10b046eb48569bf69ba54c | 46c148c50a008da9af4b36a2ec0f0cf3dda1a3a7 | /dev/build_prevalidation.py | 5b8de879cbf976c013dab85795f2842449a45b2f | [
"Apache-2.0"
] | permissive | dcaro/spinnaker | caa1f1ff5d76bf7c22f6fdbc18343811e5fe2a6c | 7e6836f36f0d98564bd466a95626625ff495e2c9 | refs/heads/master | 2021-01-18T22:57:02.897724 | 2017-06-02T19:03:33 | 2017-06-02T19:03:33 | 93,205,405 | 1 | 0 | null | 2017-06-02T21:32:53 | 2017-06-02T21:32:53 | null | UTF-8 | Python | false | false | 4,409 | py | #!/usr/bin/python
#
# Copyright 2017 Google 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/LICENSE-2.0
#
# Unless required by... | [
"noreply@github.com"
] | dcaro.noreply@github.com |
3a8767df98e7b1d18e76b37e85c90b3bf01bdcf9 | f702230ed3a5e1bc3f033b3330b90e517ee6603f | /blog/models.py | 8a13891964de2b8a653acb07df8e3291a79ae81d | [] | no_license | yanadhorn/crdb | 9a670feab0d16fcf66f1180418d686dad30fcd50 | 31bd85a674784f125bc44f597b8bb1b90c08226b | refs/heads/master | 2020-04-03T10:50:57.414455 | 2018-12-04T07:51:05 | 2018-12-04T07:51:05 | 155,204,209 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | from django.db import models
from persons.models import person
#import user django
from django.conf import settings
# Create your models here.
# title
# pub_date
# body
# image
class Blog(models.Model):
title = models.CharField(max_length=255)
pub_date = models.DateTimeField()
body = models.TextField()
... | [
"yanadhorn@gmail.com"
] | yanadhorn@gmail.com |
e8506016d8eec7e2aa0b0eade7ae260234fc235d | 7edf5b52eb27dd5c757ec7fef1fd0c8ff581cb46 | /src/settings/config.py | e9068410a9875d793cc973abbe5513521915cef2 | [
"MIT"
] | permissive | NNNMM12345/Discord_Sandbot | d9bc520a44ef623dbf87d3aa8b5a2bbf2884f5e1 | 76ed7a97efd1d6d0eb7efd9aff78985e63cfb6c6 | refs/heads/master | 2021-04-15T06:41:16.460399 | 2018-04-01T12:48:55 | 2018-04-01T12:48:55 | 126,205,295 | 4 | 2 | MIT | 2018-04-01T11:27:03 | 2018-03-21T16:04:24 | Python | UTF-8 | Python | false | false | 91 | py | from utility.load import get_api_token
DISCORD_TOKEN = get_api_token('discord_api_token')
| [
"e.cousinet@gmail.com"
] | e.cousinet@gmail.com |
98977b0c1310b852289fc427fb6ec1c464638be7 | dcd1e10a3cf9f197ce35d2db03042041c1959697 | /ismcts/jass_stuff/hands.py | 3834fba0766965c2b7d0b0c429d83e283fb6341c | [] | no_license | larryharry/jass-bot | 040ec477fa9bb3eecf11efede579210de53cba31 | 7eb1d8795f678c5a09c20a11cba223ce8b0238d2 | refs/heads/master | 2023-01-31T15:15:44.439728 | 2020-12-16T18:07:34 | 2020-12-16T18:07:34 | 300,552,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | from __future__ import annotations
from __future__ import annotations
from typing import List
import numpy as np
from ismcts.jass_stuff.hand import Hand
class Hands:
def __init__(self, hands: List[Hand]):
self._hands = hands
@classmethod
def empty(cls):
return cls([Hand.empty(), Hand.... | [
"steinegger.manuel@gmail.com"
] | steinegger.manuel@gmail.com |
71bad8fd989996259745fc43343f9736f7276d00 | a76ffb5304f686254dddf824a04c2afdf70d37f8 | /solidworksDv/solidworks_api_doc.py | 07f8554135643d2d5907763dcff3d231573710e0 | [] | no_license | openmc/SmartTool-Machanical-Design | b3b6f8bd711620081fa6deddbce449eb72ae2fcc | 145494a05569bb18fc656e0636740a5fe572a063 | refs/heads/master | 2020-05-23T04:08:36.060530 | 2019-12-13T13:39:58 | 2019-12-13T13:39:58 | 186,629,542 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py |
import win32com.client
#连接solidworks对象
swapp = win32com.client.Dispatch("sldworks.Application")
#窗口可见(窗口显示、隐藏)
visible = swapp.visible
#打开文件-参数(文件路径名称,1)
open_file = swapp.OpenDoc(r"path + part_name", 1)
#实例化活动文档
part = swapp.ActiveDoc
#活动文档另存为
new_name = part.SaveAs3(r"path + part_name", 0, 2)
| [
"252284222@qq.com"
] | 252284222@qq.com |
3ac62a3397c426d97772c5dab0060e573d15e0c9 | f3edace90016b25ae7044d323d7b5754a322ea72 | /tests/infra/__init__.py | 206dcad2661a8be2b86fd948794db5422f346b7a | [
"MIT"
] | permissive | HumanCellAtlas/flash-flood | b60871af5fa0f310c6e4df8c4d71fee50dbd4986 | f1de428ee11eac5bd40b47dec1b22b59519e52f9 | refs/heads/master | 2020-06-17T22:06:43.559204 | 2020-02-20T18:17:14 | 2020-02-20T18:17:14 | 196,073,836 | 0 | 1 | MIT | 2020-10-08T18:26:28 | 2019-07-09T19:49:50 | Python | UTF-8 | Python | false | false | 197 | py | import os
def get_env(varname):
if varname not in os.environ:
raise RuntimeError(
"Please set the {} environment variable".format(varname))
return os.environ[varname]
| [
"noreply@github.com"
] | HumanCellAtlas.noreply@github.com |
85d7b4b367337c675e06d6a6a4635eb8333bc0b3 | b6f8b88672cd9d7f6ce21c14a6abd726e6521047 | /pinax/projects/sample_group_project/apps/basic_groups/templatetags/basic_group_tags.py | d0706e98556d871b05540f8f66aadc74df78c098 | [] | no_license | jipan25/linkedby | 778b10ff794cf623adebb06e438f3fdc0324cd38 | ca9ed7ebdfd760a19d3123987a5e508f73d54629 | refs/heads/master | 2016-09-06T10:08:28.071487 | 2011-09-17T04:05:04 | 2011-09-17T04:05:04 | 2,403,258 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | from django import template
from basic_groups.forms import BasicGroupForm
register = template.Library()
@register.inclusion_tag("basic_groups/group_item.html")
def show_group(group):
return {"group": group}
# @@@ should move these next two as they aren't particularly group-specific
@register.simple_tag
def cl... | [
"jipan250@163.com"
] | jipan250@163.com |
c0fe5f7abe74fa620bf07936184bec1c57bcb8fb | c2860f01fe0b56b63d0112d94132304c8ad1a29b | /ecommerce/accounts/migrations/0004_remove_user_active.py | bfaf289c33012bc02924f662fa3ffe715e23f19e | [] | no_license | TarekCsePust/Ecommerce-With-Django-Framework-Postgresql | 63194b1e322d9281ce7008a45ddf1482a34c9a64 | 50d2172f3c6d2f1a5652afb765e03064edd07e52 | refs/heads/master | 2020-04-02T04:37:59.006110 | 2019-01-24T07:17:04 | 2019-01-24T07:17:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # Generated by Django 2.0.7 on 2018-08-29 14:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_user_is_active'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='active',
),
... | [
"hasantarek12cse@gmail.com"
] | hasantarek12cse@gmail.com |
f32cd92673d58e130c5850aa8213e76211644549 | d21e217aeb1876edd4b5343432c45ec1e33ee46f | /yalefaces/yalefaces/mypackage/OlivettiDataset/mypackage/download_olivetty_faces.py | 38740921ffd262c92ba441ea7ef6654ab6c8e608 | [] | no_license | swoichha/FaceRecognition | e0a7976fdff0bbc56277b03066cba188261954bb | 0f8ffd8bcfba9e17db52dae8fe66e8f5d50f08f9 | refs/heads/master | 2020-05-07T13:41:14.661561 | 2019-11-04T12:26:31 | 2019-11-04T12:26:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,646 | py | # Imports
import cv2
import os
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from PIL import Image
from numpy import linalg as LA
# from showFaces import show_40_distinct_people, show_10_faces_of_n_subject
from sklearn.metrics import classification_report
#Machine Learning
from sk... | [
"swoichhaa@gmail.com"
] | swoichhaa@gmail.com |
3d35f7af891ce8ed8f8832aba3e969c4d237016d | 3dabb35484171f7bae4a6dcd9773380ea2f90782 | /senderFile.py | 5360c0fecf26329e5063d6929f2a56ede2d0390a | [] | no_license | TaglioUltimate/UDP | be71a4faeffdf800d6bc05ce241fd49ac168f39e | f8ff5e95cbb81328e66515c2ede9d6777f7a618f | refs/heads/main | 2023-01-10T21:53:26.589522 | 2020-11-05T19:38:10 | 2020-11-05T19:38:10 | 310,399,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!/usr/bin/env python
from socket import *
import sys,time
s = socket(AF_INET,SOCK_DGRAM)
host = '10.20.1.8'
port = 8000
buf =20480
file_name=sys.argv[1]
s.sendto((file_name).encode(),(host,port))
f=open(file_name,"rb")
data = f.read(buf)
while (data):
if(s.sendto(data,(host,port))):
pr... | [
"noreply@github.com"
] | TaglioUltimate.noreply@github.com |
c01d8aa9ceb247202bc06ef202c21b2946e44d06 | 7aa6d0d2e40adac32d06035b3c111746130176c4 | /QMAX_EAGLE_1500_V_3.0/code_releative/exe.py | 0d7c1f29d7ba25c2db47c3f5989e6a2e8858d5b0 | [] | no_license | vimalv-AI/Vimal | 861dad4c66ea2f875e55a5d67b7bd9f80a753914 | e6d792bfc0e66555dfcf2217075c3b0dc8b886ea | refs/heads/master | 2021-01-07T07:36:49.094701 | 2020-03-29T14:12:32 | 2020-03-29T14:12:32 | 241,618,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | import pickle
import glob
import pandas as pd
from natsort import natsorted,ns
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
loaded_model = pickle.load(open('trained_model/eagle_model.yml', 'rb'))
file = natsorted(glob.glob("input_data/*.txt"))
for new in file... | [
"vsvimal5420@gmail.com"
] | vsvimal5420@gmail.com |
62be46a97febe64faaa0c49b7f69414526b062c8 | 5a7aeb54d86a525e1f922d928c4a103c78f4ff88 | /cli/cli.py | a96a07d1e3b86be8067688bc3ef32378cfe6fbbd | [] | no_license | Esty-Hirshman/DNA-project | a575787fbc1c7f90b58f4effa198c8fae8b2ebb7 | 579e27e431003ab95469e65eac0a8d10fda8ba69 | refs/heads/main | 2023-08-03T02:10:40.901565 | 2021-09-12T10:04:31 | 2021-09-12T10:04:31 | 405,606,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | class CLI:
def __init__(self, prompt):
self.__prompt = prompt
def get_prompt(self):
return self.__prompt
def set_prompt(self, new_prompt):
self.__prompt = new_prompt
def run(self, *args):
raise
| [
"esty3975@gmail.com"
] | esty3975@gmail.com |
f9050427f8574da72fd6c8b067a42a35cdf01c8a | d968af7a1f2692667c703409ae6a5a0918592df2 | /utils.py | f339662367600ee293164578c7d41842c9566b7b | [] | no_license | cdg720/parsereranker | bf55672bdb76d2e356f8357d6aa6a82f0603dd5f | 5a9af9427c3c3bbe2a065f9357b73fe934522ce4 | refs/heads/master | 2021-01-18T22:10:36.357836 | 2017-04-08T20:07:40 | 2017-04-08T20:07:40 | 87,035,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | import time
import numpy as np
def chop(data, eos):
new_data = []
sent = []
for w in data:
sent.append(w)
if w == eos:
new_data.append(sent)
sent = []
return new_data
def ptb_iterator(raw_data, batch_size, num_steps):
raw_data = np.array(raw_data, dtype=np.int32)
data_len = len(raw_... | [
"cdg720@gmail.com"
] | cdg720@gmail.com |
7ca8bcc022d2ae7195338dc961946fa8c0463027 | b94fed184633700214c16c9b2187de4c01a65369 | /task/ted_talk_crawler.py | 5ad2009dbf95a63f5ca4220a894e1c5c9b47c3e6 | [] | no_license | Gold900/task_management | 513ae9b12591ffaeb3fdeebb20934b5e339dc743 | 283494aa767b478f2abc8a5207a250279625f52c | refs/heads/master | 2022-04-13T08:22:17.532514 | 2020-03-27T07:30:58 | 2020-03-27T07:30:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | import json
import requests
from bs4 import BeautifulSoup
class TedTalkCrawler:
def __init__(self):
pass
def get_params(self, data):
params = {}
if "sort" in data and data["sort"]:
params["sort"] = data["sort"]
if "topic" in data and data["topic"]:
par... | [
"sonaligupta1470@gmail.com"
] | sonaligupta1470@gmail.com |
5fa87f79b0f0900e01ca20332e9dd24c211ba119 | 3d23c178dd1d6738766e28e05a5c77162c2c35cb | /KIRANA123/asgi.py | 5e62e94ca1245fe2da7fef9043dda2869baaf1de | [] | no_license | giri2510/tryingcss | ec0b67c9f7c664e2749ec0dc502e3bda5cabc07b | d4fae361986dd20ca25beb682f432078fbe61edc | refs/heads/master | 2022-12-18T16:29:50.987779 | 2020-10-07T07:57:18 | 2020-10-07T07:57:18 | 301,964,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for KIRANA123 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"giriahire@gmail.com"
] | giriahire@gmail.com |
a2b8c2d58866868509724106c5b1821610bc1541 | 9e78a2864243b7e002a2ea38fa33834d55041a35 | /mva/computer-vision-and-object-recognition/Finegrained-classification/code/data.py | fcd63e28751e8f0d9cd6f8b590f039a44d6ca9e5 | [] | no_license | ghassenBtb/projects-and-labs | 31c1a1b8f1e157c98d5d4aff9831ac59c8e6942e | d3e9b7729fd35ee360a55fc2462aeef431a838dc | refs/heads/main | 2023-02-04T19:31:12.892693 | 2020-12-28T21:53:55 | 2020-12-28T21:53:55 | 311,183,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | import zipfile
import os
import torchvision.transforms as transforms
class White_noise():
"""
Add a gaussian noise to image
"""
def __init__(self, level=0.1):
self.level = level
def __call__(self, img):
return img+torch.randn_like(img)*(self.level*np.random.rand())
data_transforms_pretrained = {
'tr... | [
"bettaieb.gha@gmail.com"
] | bettaieb.gha@gmail.com |
2165b6b232f25cdf32eb3707af8d62e27631b56c | 88d636e8e2ebbafdbe008be4822d5baa8b9fdded | /hist.py | 20e2eab1175c17f70fcc8f8721736097b42410ce | [] | no_license | debadrita0/Mtech-Project | 5d0558c69759703dbf5d2c5b775f8dc5179fbaf2 | 18ba0fdb0e8024512b49261e24b6da8e72832052 | refs/heads/main | 2023-06-19T05:30:40.332720 | 2021-07-15T16:04:08 | 2021-07-15T16:04:08 | 386,347,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | # import the necessary packages
from skimage import feature
import numpy as np
class LocalBinaryPatterns:
def __init__(self, numPoints, radius):
# store the number of points and radius
self.numPoints = numPoints
self.radius = radius
def describe(self, image, eps=1e-7):
# compute the Local Binary Patt... | [
"noreply@github.com"
] | debadrita0.noreply@github.com |
3f814bc8ef0e2db3fea165db2b5f8cc82bed1135 | fdf5e70bdaac78296a9af70d64a807f52326fda8 | /bot/service/thorchain_network_service.py | 39b6edd1de4c65bf6d80777241885de990d808d2 | [
"MIT"
] | permissive | Masternode24/thornode-telegram-bot | 44784ad646933450a122e4a60639f517e2eb3636 | 5f73b882381548f45fc9e690c6e4845def9600b7 | refs/heads/master | 2023-04-12T12:32:18.862511 | 2021-04-23T13:22:39 | 2021-04-23T13:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,744 | py | import random
from time import sleep
import aiohttp
import requests
from requests.exceptions import Timeout, ConnectionError, HTTPError
from constants.mock_values import thorchain_last_block_mock
from service.general_network_service import get_request_json
from constants.globals import *
from constants.node_ips impor... | [
"noreply@github.com"
] | Masternode24.noreply@github.com |
018e4fcbdf2333c3be5a3027fabd3e0b7dbaaa70 | 1c664f387937daf5577f12a05e8201cbad6c2888 | /env/share/glib-2.0/codegen/config.py | 20f9cab400f824b6c99cede69fec7e5ac1d52b7e | [] | no_license | AdityaApte02/NumpyAndPandas | 8ddcb692919205ab0a66863e59735c5a86b49c2d | 7eb41aae4fadb2b44888eca21d984c02e1beaea5 | refs/heads/main | 2023-07-14T18:58:00.619773 | 2021-08-26T08:54:39 | 2021-08-26T08:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | # -*- Mode: Python -*-
# GDBus - GLib D-Bus Library
#
# Copyright (C) 2008-2011 Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (a... | [
"aditya02.apte@gmail.com"
] | aditya02.apte@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.