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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4ee5adc760fb98dc1ad8b0d45a0f91d8a109654b | 4dc4659d77107a58cc57061c455728c39c1c0b99 | /python/leap/leap.py | b9394c7549afa1240f1c3beeec3ea9e36d4a22bd | [] | no_license | dbjennings/exercism | 1f9905b6c8e0f8889c1448e4c178c9066b53ece3 | f9e86cb7f742d13256a6bea1b51d6f9d9f4b19a3 | refs/heads/main | 2023-03-11T13:54:15.725797 | 2021-02-27T16:38:32 | 2021-02-27T16:38:32 | 333,178,736 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | def leap_year(year: int) -> bool:
return True if (year%4==0 and not year%100==0) or year%400==0 else False
| [
"dbjennings@gmail.com"
] | dbjennings@gmail.com |
6054154ce67ea761c4681748339567f9bb5858b2 | d71e4a1903c797365278aba561b266c897a09bf5 | /chat/migrations/0001_initial.py | 2b8ac9a170fe2d3c5606d27a61c3e3f8821271ad | [] | no_license | sprajosh/ping-me | 68127fbd6354753ab08297f331715789c3a72376 | ea5c3e7ded8e25d3aa8ff05594a8bf1c78ecf9c6 | refs/heads/master | 2022-09-07T08:33:44.239854 | 2020-05-18T11:26:42 | 2020-05-18T11:26:42 | 262,297,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | # Generated by Django 3.0.6 on 2020-05-16 10:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"siddharth.prajosh@belong.co"
] | siddharth.prajosh@belong.co |
0f124d52fda3708bea9657d229b2ee1e1952a80a | 492693e586c0beb1a38344f10c7366c4739bf062 | /syldb/parser/__init__.py | 2887bc0b275e461ed8ad4c449ff49b3a80e9e3c1 | [] | no_license | qihao123/my_database | 6794bd95bf3865616e1611117dcda702ffdc3019 | 8ae0b4e1a1efaf2a4f9442ec193203580bbd9f6c | refs/heads/master | 2022-12-14T00:57:29.043673 | 2020-09-23T00:45:12 | 2020-09-23T00:45:12 | 297,696,222 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,183 | py | import re
from syldb.case import *
class SQLParser:
def __init__(self):
#
self.__pattern_map = {
'SELECT': r'(SELECT|select) (.*) (FROM|from) (.*)',
'UPDATE': r'(UPDATE|update) (.*) (SET|set) (.*)',
'INSERT': r'(INSERT|insert) (INTO|into) (.*)\((.*)\) (VALUES|v... | [
"1047355811@qq.com"
] | 1047355811@qq.com |
634608758f1e4decc94b0dc35144bfd9eade1a4d | 58830432068a820ccf391c9cba715e2f10ae1bd0 | /status_codes.py | 90d71d5538c43af4cb5e77a70006a694a349c906 | [
"Apache-2.0"
] | permissive | Imafikus/petnica-api-workshop | 1e1d5d6a67778482a679c2f9731a0691e9cba368 | 34c14b8e444007fcfbece8225a22916cf0a32940 | refs/heads/master | 2023-08-20T17:42:23.532738 | 2021-10-23T17:08:54 | 2021-10-23T17:08:54 | 419,417,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | OK = 200
NO_CONTENT = 204
BAD_REQUEST = 400
NOT_FOUND = 404
SERVICE_UNAVAILABLE = 503
INTERNAL_SERVER_ERROR = 500 | [
"aleksatesicteske@gmail.com"
] | aleksatesicteske@gmail.com |
0bcd207f5832badf32d6c99d3f945855f3adf92c | 2913a762605296fd4b51b9b1c01516e2d7cc73ce | /tasks/cephfs/test_readahead.py | 39f4fb88ce14d9da50d7fe8de9e39ee015046829 | [] | no_license | vishalkanaujia/ceph-qa-suite | 7ac70f9e9d494f1901716af1cc98f8e86ac76a58 | 02e7e8395b043355900067c375f982c0fd14630c | refs/heads/master | 2020-12-25T21:01:33.061979 | 2016-12-07T17:18:42 | 2016-12-07T17:18:42 | 62,205,524 | 0 | 0 | null | 2016-06-29T07:32:03 | 2016-06-29T07:32:03 | null | UTF-8 | Python | false | false | 1,113 | py | import logging
from tasks.cephfs.cephfs_test_case import CephFSTestCase
log = logging.getLogger(__name__)
class TestReadahead(CephFSTestCase):
def test_flush(self):
# Create 32MB file
self.mount_a.run_shell(["dd", "if=/dev/urandom", "of=foo", "bs=1M", "count=32"])
# Unmount and remount th... | [
"batrick@batbytes.com"
] | batrick@batbytes.com |
5c6a2a1f780be7309e047a5135b710121c1f09a1 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008/programming/languages/python/pysvn/actions.py | 1c2d0e6973941091eee66958f57fdd2fde4e9402 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisito... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
661db321fd4b4f16b3d1e17e47034e859493c1e6 | a16287fe627227f1e9e26bce5e4cf75b3b55c9ce | /profiles_project/profiles_api/urls.py | ec08b223a35a31ce422889f2b23547e5db1f21f9 | [] | no_license | saif43/profiles-rest-api | c825c4547fe18f3a4d90ae6fbc770aa9fcd07b1d | 79c91a08bfba9d5c4334b87d4b0aebe5d3508b5f | refs/heads/master | 2023-08-06T05:55:39.225674 | 2020-08-26T06:26:49 | 2020-08-26T06:26:49 | 260,665,029 | 0 | 0 | null | 2021-09-22T19:15:46 | 2020-05-02T10:39:55 | Python | UTF-8 | Python | false | false | 507 | py | from django.urls import path, include
from profiles_api import views
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register("hello-viewset", views.HelloViewSet, basename="hello-viewset")
router.register("profile", views.UserProfileViewSet)
router.register("feed", views.Profile... | [
"saif.ahmed.anik.0@gmail.com"
] | saif.ahmed.anik.0@gmail.com |
5f7af2b6451845d02a33e1908e91626ca9eb3e6d | f6de15dd01a3e514afb66839856126026b423fd0 | /UTS 2/Letter.py | 2122302310fd4d6651fa64402bc5b3087e9251ce | [] | no_license | NizanHulq/Kuliah-Python | 918e3ab9a72cbabaae6f38c5fea004641926c8b6 | f0cc2abeecc497da2a03cf18408252cb636e89fc | refs/heads/main | 2023-08-21T17:48:51.661188 | 2021-10-08T16:03:37 | 2021-10-08T16:03:37 | 415,047,439 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | n = int(input())
push = input().split()
hasil = []
index = 0
for i in range(n):
if hasil == []:
hasil.append(push[i])
elif len(hasil)%2 != 0:
hasil.insert(index,push[i])
index += 1
elif len(hasil)%2 == 0:
hasil.insert(i//2,push[i])
print(" ".join(hasil))
| [
"nizandiaulhaq@gmail.com"
] | nizandiaulhaq@gmail.com |
d9eb397cfc92c3f8d261e879e730c250218f9b2b | d3908fc3baeb65ad65b422e99416ce4114ad4357 | /Prediccion/main.py | f100cb87a407891f2d04afecc798b290f253fa17 | [] | no_license | Omar97perez/TrabajoFinalAnalisisDeDatos | 4adfbfc8b8975462bed67a726005a405bd775a19 | 816e170adf995db9d88574c83c99f3f8e31d453e | refs/heads/master | 2022-10-11T02:09:10.254520 | 2020-06-11T17:30:14 | 2020-06-11T17:30:14 | 271,036,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,800 | py | import matplotlib.pyplot as plt
import pandas as pd
import StrategyFile as sf
import sys
import string
import os
import geopandas as gpd
import numpy as np
from sklearn import datasets, linear_model
from sklearn.linear_model import LinearRegression, RANSACRegressor
from sklearn.tree import DecisionTreeRegressor
from sk... | [
"omarperezznakar@gmail.com"
] | omarperezznakar@gmail.com |
7441a3d4569d7d34932af80949a4ac69d7019d91 | d9eda3d6f14bd35229d25118493a1d8157bdcb8b | /Interview/Code_Snippets/python/ll_add.py | 5c16659ed783acecd1e51e9448723f71f7bd0f00 | [] | no_license | marannan/repo_1 | 070618cafd3762733f9fca11ae866988b2fac5a9 | 4667a2d761423368675bd463c888918d2cdaf828 | refs/heads/master | 2021-01-17T17:45:06.869090 | 2016-07-06T19:52:58 | 2016-07-06T19:52:58 | 47,296,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,366 | py | from ll import *
from ll_reverse import *
def linked_lists_add(ll_1, ll_2):
if ll_1.head == None and ll_2.head == None:
return None
elif ll_1.head != None and ll_2.head == None:
return ll_1
elif ll_1.head == None and ll_2.head != None:
return ll_2
else:
cur_1 ... | [
"marannan@wisc.edu"
] | marannan@wisc.edu |
3117e2434b2fceef3242be8a154e06d0d429604c | abf79ee08c9bfefb451806bde829082f0c4b16da | /DatabaseFiller/filler.py | d1c3fe75ac912da770add08dc9dcdd544ce5d900 | [] | no_license | gbarboteau/OFFSubstitutes | 290ce5c5be11ea62ac389e61bb3b5a41accd80b5 | f1089487dcae99a2fd6e5edb79a9f7f8404404c3 | refs/heads/master | 2021-02-03T21:41:29.676403 | 2020-03-28T13:18:43 | 2020-03-28T13:18:43 | 243,547,924 | 0 | 0 | null | 2020-03-05T12:26:53 | 2020-02-27T15:20:38 | Python | UTF-8 | Python | false | false | 1,523 | py | """Fill the database with the data collected by
datacollecter.py
"""
import mysql.connector
class Filler:
"""Adds a set of data in the openfoodfacts
database. Needs to be authentificated.
"""
def __init__(self, my_data, my_auth):
"""Create an instance of Filler"""
self.user = my_auth.u... | [
"g.barboteau@gmail.com"
] | g.barboteau@gmail.com |
5368330febedbc4e6056fc6cc5d8026417fa248e | e4677de1b20f989cc26a564c770672eb029bf2d1 | /PythonProject/MultichannelBiosignalEmotionRecognition/model_1th/new_RNN/data.py | eb310350d68d8467e8a24ef9543d473104f49970 | [] | no_license | muyi110/CodeRepository | 7def0caf1a77fbe6d9eb37ab7b63401d9234bbd5 | 95dd4889734174c1895928f9a1da40bae7b2f046 | refs/heads/master | 2018-12-08T17:10:06.923526 | 2018-12-06T07:45:40 | 2018-12-06T07:45:40 | 117,515,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,686 | py | # -*- coding:UTF-8 -*-
import os
import math
import numpy as np
import features
from features import data_filter, differential_entropy
SAMPLES_PATH = '../../data_analysis/samples/'
params = (features.b_theta, features.a_theta, features.b_alpha, features.a_alpha,
features.b_beta, features.a_beta, features.b_... | [
"ylqing5470@126.com"
] | ylqing5470@126.com |
0bdb8f6c369ce6db519789ab50cda46d69876d3f | 6e158a54409937515b14676730adfadfd457d4ae | /shared/cp_utils.py | b5c5cd38f32869dc9aab5b9304d2b2472c563152 | [] | no_license | Tjstretchalot/machinelearning | e2b277efd99f6e45005cb92a0cc17e90bf7d37e4 | 5a3b17c49211a63f71cdf40ca35e00a3af4b198a | refs/heads/master | 2020-05-02T09:25:25.032430 | 2019-07-25T14:37:43 | 2019-07-25T14:37:43 | 177,871,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | """Utils regarding cloning / copying things"""
import torch
def copy_linear(lyr: torch.nn.Linear) -> torch.nn.Linear:
cp_lyr = torch.nn.Linear(lyr.in_features, lyr.out_features, lyr.bias is not None)
cp_lyr.weight.data[:] = lyr.weight.data
if lyr.bias is not None:
cp_lyr.bias.data[:] = l... | [
"mtimothy984@gmail.com"
] | mtimothy984@gmail.com |
240cc765f95d16aa2871d03c16aa123fd07e1e3b | a24375133a6e043610ea33e7b7b80422a3a74361 | /djangoPolymorphicTestcase/wsgi.py | d97c1aa6ed4064e98645395b0cc6bf0cf22c0805 | [] | no_license | nmoskopp/djangoPolymorphicTestcase | f6421f10aa9b7dfb155fa74eef55d71a2d875bd6 | 9daca92ab4d956be50f9cbdddbe222fc01c5d2ec | refs/heads/master | 2021-01-20T02:01:56.008656 | 2017-04-25T13:09:08 | 2017-04-25T13:10:05 | 89,362,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | """
WSGI config for djangoPolymorphicTestcase project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setde... | [
"nils.moskopp@grandcentrix.net"
] | nils.moskopp@grandcentrix.net |
b266cbeac957a139e15179334510fb6c365e7313 | 78a8321f69fbf590880de9e1570c88f87a4ca83f | /terVer5/main.py | e04990aed60695f5359e4f0a2a8a556c75192c81 | [] | no_license | Sapfir0/terVer | 0129a966203e0a89c4d0422673edcce58642b5bb | c074c00d853e8a87d5a4fc97341ba80aecd608a7 | refs/heads/master | 2020-06-21T13:28:14.341909 | 2019-07-17T21:34:32 | 2019-07-17T21:34:32 | 197,466,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,321 | py |
import json
import math as mt
import matplotlib.pyplot as plt
import numpy as np
# возвращает массив данных из файла
def readDataFromFile(filename):
file = open(filename, 'r')
arr = json.loads(file.read())
file.close()
return arr
def showVariationRow(xi, ni, wi):
print('Вариационный ряд:')
... | [
"sapfir999999@yandex.ru"
] | sapfir999999@yandex.ru |
3bfc997a57ff5e17026057e870029689210fdfea | 9cef1dc0a6a7b95ceb8a2d892bc39e9a0d15b681 | /tempest/tempest/api/compute/volumes/test_attach_volume.py | 75f9795619a150816bcb9b06e15afc4ca1cd0367 | [
"Apache-2.0"
] | permissive | bopopescu/OpenStack-CVRM-1 | d2a4353cfe6d53634456e43a726698bd705db1db | fc0128258bf7417c6b9e1181d032529efbb08c42 | refs/heads/master | 2022-11-22T01:50:05.586113 | 2015-12-15T07:56:22 | 2015-12-15T07:57:01 | 282,140,514 | 0 | 0 | null | 2020-07-24T06:24:49 | 2020-07-24T06:24:48 | null | UTF-8 | Python | false | false | 5,529 | py | # Copyright 2013 IBM Corp.
# 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 app... | [
"zaman.khalid@gmail.com"
] | zaman.khalid@gmail.com |
dae4b6f92d98a0f3170f3be3734c693c2b205b45 | 7b445d3cfd2ce94859a9438ccf0dc6e7867ed75a | /telescope.py | 2555836ef4114db18f0d542f21fa04b797bbd242 | [] | no_license | slegeza/telescope | a420eb893cc76ad43fd3311cc1e5272f373f2382 | b7fd176f44ec05e3b87f1499fb926d9b9767d539 | refs/heads/master | 2020-03-25T19:13:23.251244 | 2018-08-08T22:00:57 | 2018-08-08T22:00:57 | 144,071,430 | 0 | 0 | null | 2019-09-17T16:32:40 | 2018-08-08T21:53:37 | Python | UTF-8 | Python | false | false | 14,556 | py | import time
import math
import jdcal
from math import cos,sin,tan,acos,asin,atan
from datetime import datetime
from IPython.display import clear_output
#Initial conditions
im_still_presenting=True
longitude= 83.6123 #W
latitude= 41.6624 #N
tstep=1/5 #timestep between time calculations
utc_time=datetime.utcnow()
New_T=... | [
"noreply@github.com"
] | slegeza.noreply@github.com |
144e62e292c034341f4875ad35563ad05f89afb0 | 0486a473653b4f74581d063de54ff9c9f66a05a5 | /scripts/fmri/makeVec.py | 83732649a223a53aa46e32336adeefd994cc601a | [] | no_license | mlko53/cultsid | 845b710fe847a520d3e886e6f5d9b803d8a8d4db | 7819d3f8acbe2d0353a36ac3a54d644916371d9d | refs/heads/master | 2021-11-30T02:35:45.744875 | 2021-11-14T07:08:02 | 2021-11-14T07:08:02 | 150,183,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,006 | py | #!/usr/bin/env python
# Stephanie Greer 07-26-07
# Last modified 02-01-11 by Kiefer Katovich
Usage = """This script is for creating vectors from master matrix files and vector description files."""
import string
import sys
import os
import re
def generateVector(header, masterMat, conditions, codes):
toReturn = []
... | [
"mlko53@stanford.edu"
] | mlko53@stanford.edu |
8f56803ee54c6e67cd01d7a3d54d50fc47302006 | d54c67daecf5bd1d2559569c7f228b43cee42055 | /problem025.py | 4a98aecabe606b2bc339dae65b17e2151d7fca97 | [
"MIT"
] | permissive | mazayus/ProjectEuler | 0ba39169eec550ca798dcbb480ce0d2a63065211 | 64aebd5d80031fab2f0ef3c44c3a1118212ab613 | refs/heads/master | 2016-09-06T13:13:47.804437 | 2015-11-01T15:23:25 | 2015-11-01T15:23:25 | 34,908,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | #!/usr/bin/env python3
def fibs():
fib1, fib2 = 1, 1
while True:
yield fib1
fib1, fib2 = fib2, fib1 + fib2
print(next(i for (i, f) in enumerate(fibs(), 1) if len(str(f)) == 1000))
| [
"milan.izai@gmail.com"
] | milan.izai@gmail.com |
76c304371760591a370e3a7016b8b3f37697c8a3 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/compute/instances/network_interfaces/__init__.py | 0e14c7451d0cb7bb48f26fdf7d6ff9b8afe2549f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 1,437 | py | # -*- coding: utf-8 -*- #
# Copyright 2014 Google LLC. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
3b58daa99e2271a5c35764b8e85df4f098e39220 | f8e7836f85c4256ecf557607d95f4411534a4258 | /backend/menu/api/v1/urls.py | 111633e9de336436f653d7b7b1c7a5eb1c2eee5a | [] | no_license | crowdbotics-apps/hottest-in-da-city-23083 | 99d8120a9fdab2b48f83bc27ae1c21fe91057e39 | 73f62cdd5cd23510f4d02f9724e60a6998b0a4ac | refs/heads/master | 2023-01-20T21:43:14.387140 | 2020-11-30T19:10:30 | 2020-11-30T19:10:30 | 317,314,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import (
ItemVariantViewSet,
CountryViewSet,
ItemViewSet,
CategoryViewSet,
ReviewViewSet,
)
router = DefaultRouter()
router.register("item", ItemViewSet)
router.register("country", CountryViewSet)
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
eca24ff7bc580f259dd18ebec0de9b8ecd45dd92 | 2aa6e275fff292d9dca954b909c5a2ed7edc7975 | /Chatbot_KG_rest/Api/bot/kbqa_server.py | e5b5ffddc540a016c0bd387cff09e46d09cbf078 | [] | no_license | charlesXu86/Chatbot_KG | f2733a6b830c521ead9273de0e534941e58ee96b | 4ca161e28e4544fb7b66688206d2b3a67c68ef25 | refs/heads/master | 2022-04-14T12:41:27.251751 | 2020-03-27T14:02:39 | 2020-03-27T14:02:39 | 198,364,335 | 12 | 13 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # -*- coding: utf-8 -*-
'''
@Author : Xu
@Software: PyCharm
@File : kbqa_server.py
@Time : 2020/3/9 9:57 上午
@Desc :
'''
from django.http import JsonResponse
import json
import logging
import datetime
from Chatbot_KG_rest.Api.bot.kbqa_predict import get_answer
logger = logging.getLogger(_... | [
"charlesxu86@163.com"
] | charlesxu86@163.com |
31e2d70f5d872dd9f0e4d55886d5d02c3e8cad8c | ca550fd82630630abcf819025fcef4f88ae17052 | /demos/view_file.py | 12b83a72d82ae9c5f2dd480cefb792e57f8066a3 | [] | no_license | MatthewDaws/TileWindow | 63647ca737bea0c6631f46870a66c98fc4cca85c | dd0ebba5e50e81deb9f952dac1fbd78223c80954 | refs/heads/master | 2021-01-02T09:29:59.740071 | 2017-08-15T20:27:49 | 2017-08-15T20:27:49 | 99,228,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | # Display a image and allow zooming in and out and scrolling
import os, sys
sys.path.insert(0, os.path.abspath(os.path.join("..")))
import tilewindow
import tkinter as tk
import tkinter.ttk as ttk
import tkinter.filedialog
import PIL.Image
root = tk.Tk()
tilewindow.util.stretch(root, rows=[1], columns=[0])
frame =... | [
"matt.daws@cantab.net"
] | matt.daws@cantab.net |
9ff226798f03d5f8dd6b0c6bb08ff4f2d79d00a0 | 1f19b252174ef68969e5df10752950c2b296e6ce | /group-nlpppppp/main.py | 59fbee5c510f161c873aa0b37d7dbb060de95583 | [] | no_license | hdanch/git | 015fae9a283c914d78bc61c686e60251dceb9fdb | c8d98fef82658760c9e8929afc8804515ae6fd9c | refs/heads/master | 2020-03-13T12:19:51.050832 | 2018-04-26T08:05:16 | 2018-04-26T08:05:16 | 131,117,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | #!/usr/bin/env python3
from sklearn.model_selection import cross_val_score, cross_val_predict
from sklearn.linear_model import LogisticRegression
from sklearn.svm import LinearSVC
from sklearn.datasets import dump_svmlight_file
from sklearn import metrics
import numpy as np
import sys
import logging
import settings
im... | [
"hdan@hdandeMBP.lan"
] | hdan@hdandeMBP.lan |
95dd71c6f5d7836cd8ed789a1e9c4f0e4def8cb5 | ac45b55915e634815922329195c203b1e810458c | /baseline1322.py | 507bfec79efbbce081a8f193e9552d7f0ec41198 | [] | no_license | mj1e16lsst/iridisPeriodicNew | 96a8bfef0d09f13e18adb81b89e25ae885e30bd9 | dc0214b1e702b454e0cca67d4208b2113e1fbcea | refs/heads/master | 2020-03-23T15:01:23.583944 | 2018-07-23T18:58:59 | 2018-07-23T18:58:59 | 141,715,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,059 | py | from operator import add
#from astropy import units as u
#from astropy.coordinates import SkyCoord
#from astropy.stats import LombScargle
#from gatspy.periodic import LombScargleFast
from functools import partial
#from gatspy import periodic
#import matplotlib.pyplot as plt
#from matplotlib.font_manager import FontProp... | [
"mj1e16@soton.ac.uk"
] | mj1e16@soton.ac.uk |
b2aa1e0a8a9d0eb05e16f353c4dec15e19aaaf08 | 5f2608d4a06e96c3a032ddb66a6d7e160080b5b0 | /week8/homework_w8_q_b2.py | 316c9a3ef7340c56b95ea8fea6fe5e427daf4ec1 | [] | no_license | sheikhusmanshakeel/statistical-mechanics-ens | f3e150030073f3ca106a072b4774502b02b8f1d0 | ba483dc9ba291cbd6cd757edf5fc2ae362ff3df7 | refs/heads/master | 2020-04-08T21:40:33.580142 | 2014-04-28T21:10:19 | 2014-04-28T21:10:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | import random, math, os
def energy(S, N, nbr):
E = 0.0
for k in range(N):
E -= S[k] * sum(S[nn] for nn in nbr[k])
return 0.5 * E
L = 32 # 2, 4, 8, 16, 32
N = L * L
nbr = {i : ((i // L) * L + (i + 1) % L, (i + L) % N,
(i // L) * L + (i - 1) % L, (i - L) % N)
... | [
"noelevans@gmail.com"
] | noelevans@gmail.com |
5938e5d03d2962f5aff7d1e814157938180f4be7 | e8ebcbe979a4eef5289ac0f6f7ad36eb893fed39 | /choiceNet/migrations/0006_auto__add_session.py | d9804f76065d9b827f8d6cc6adefc57dd8088e91 | [] | no_license | qysnolan/ChoiceNet | a752b59f7184246d3abdb513cb1b794c91f007ef | e1c9765ac0e24c640f271f84c87cc393d1850e16 | refs/heads/master | 2021-01-18T14:28:53.389507 | 2014-09-14T01:45:27 | 2014-09-14T01:45:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,659 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Session'
db.create_table(u'choiceNet_session', (
(u'id', self.gf('django.db.mode... | [
"qysnolan@gmail.com"
] | qysnolan@gmail.com |
be22cf91a9a1ead05cbc8a1b15e1030eed65efa2 | e3219f8a7e8cb0376b7d46823854b1335462eb64 | /lependu.py | fd7d5a1197c410d1b9860e9588b6d39b108fa48d | [] | no_license | aconrad/lependu | e3c761b6fb5c19af3e6a52241a6f3bae120be698 | a7f2d1b10e9fd8151283e15c885e82beb692b91d | refs/heads/master | 2020-06-13T05:22:39.876419 | 2016-12-02T23:57:20 | 2016-12-02T23:57:20 | 75,440,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py | from collections import defaultdict
DICT = '/usr/share/dict/words'
words_by_length = {}
def read_words(dict_file):
words = set()
for line in open(dict_file):
word = line.rstrip().lower()
words.add(word)
return words
class WordResolver(object):
def __init__(self, word_length, ma... | [
"alexandre.conrad@gmail.com"
] | alexandre.conrad@gmail.com |
fd4d5627e93cdd9ab5b2a749e2b0fcf333c5b7f8 | 0a44e2fc6214a95036d725d1ed28196aaf83e615 | /keras_transformer/demo/translation/TranslationDataGenerator.py | 5fdf3004dae94294d1c96741397a4397199b48b9 | [
"Apache-2.0"
] | permissive | erelcan/keras-transformer | 6f4e9e0d9e37ddcd12f7bedfa9e2bcf433491c0a | ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f | refs/heads/master | 2023-03-05T16:42:37.910220 | 2021-02-16T16:11:41 | 2021-02-16T16:11:41 | 338,855,231 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,075 | py | import os
import io
import zipfile
from random import shuffle
from keras.utils import get_file
from keras_transformer.generators.outer.OuterGeneratorABC import OuterGeneratorABC
from keras_transformer.utils.common_utils import select_items
class TranslationDataGenerator(OuterGeneratorABC):
def __init__(self, bat... | [
"erelcan89@gmail.com"
] | erelcan89@gmail.com |
c871447e39e6eb8de18b2fb0356d8bd39cff3949 | 86d6c98b22392a7a54fe04db4505c625d541a984 | /logs.py.save.4 | 42385b90b5febe29a9dee25c0bc424890d2e3eae | [] | no_license | TCMG476Py/TCMG476 | c18ce1acd194222a00b93305c27db45b3bf0a513 | a81323b1484abe3063fe773ef09a7e30e83aec7e | refs/heads/master | 2021-07-17T16:01:11.141483 | 2017-10-18T21:53:26 | 2017-10-18T21:53:26 | 107,355,014 | 0 | 2 | null | 2017-10-18T21:53:27 | 2017-10-18T03:34:34 | Python | UTF-8 | Python | false | false | 791 | 4 | #! /usr/bin/python
import urllib2
response = urllib2.urlopen('https://s3.amazonaws.com/tcmg412-fall2016/http_access_log')
html = response.read()
print('(1) How many total requests were made in the time period represented in the log?')
print('(2) How many requests were made on each day? per week? per month?')
print('(3... | [
"ubuntu@ip-172-31-24-41.us-east-2.compute.internal"
] | ubuntu@ip-172-31-24-41.us-east-2.compute.internal |
9872650a638a9719df5daac27ecaf389caa85e68 | e7656ac263c5034deccaf9ed6a72fb94caffc76f | /apptodo/models.py | 676c18deec8161486d3f93b4b6c6d0281579951f | [] | no_license | alayo24/first_try | feb4894ead0b49d5d4a0c4f0507d0a1594adf409 | 86c4e2de8f2c6836cac84ad48f181bef5259d01c | refs/heads/master | 2020-03-31T13:15:22.482815 | 2018-10-09T12:34:06 | 2018-10-09T12:34:06 | 152,247,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | from time import strftime
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from datetime import date
from timezone_field import TimeZoneFormField
# Create your models here.
class UserProfile(models.Model):
... | [
"abasstiti1@gmail.com"
] | abasstiti1@gmail.com |
5be9a8f527a4091484b255604172833b789880b5 | 7564184b9d079d8ad777677622483dc0a737d901 | /Brain/brain.py | 6c2b7f46324aec1fe15d0f28e63dcdf09668e012 | [] | no_license | GPrendi30/discord_bot | 7306823ce3a69d4606b15b2bd884f84f32ff5522 | 1e1f84a386be38ee9263ea73a7b1fe717ef4d3c5 | refs/heads/master | 2023-06-26T22:20:02.065089 | 2021-08-03T18:19:51 | 2021-08-03T18:19:51 | 356,424,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | from transformers import pipeline, Conversation
from os import path
from Brain.memory.memory import Memory
from Brain.voice.voice import Voice
class my_convo(Conversation):
def __repr__(self):
output = self.generated_responses[-1]
return output
class Brain:
''' Brain of the Bot... | [
"gerald.prendi@usi.ch"
] | gerald.prendi@usi.ch |
cbc59252cc7ba2d77e8ec6e0bc0cf2f32eae6eca | 6ccda268ca48ec1f6087caf5a2576a69379f95d6 | /tagger_new.py | 465892c12880acc7d04eca3257fe8c713c60520c | [] | no_license | dxcv/Individual-Project | 406ce75ad70fe85db5e9e6586ed7648ede3f7027 | 25955c2deafb599da7c3b3e159b846f09cd9839a | refs/heads/master | 2020-07-01T23:59:33.009265 | 2019-08-08T20:09:22 | 2019-08-08T20:09:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,756 | py | import tensorflow as tf
from tensorflow.contrib import rnn
from tensorflow.contrib import slim
import matplotlib.pyplot as plt
import numpy as np
import csv
import os
from sklearn.metrics import f1_score
#os.environ['CUDA_VISIBLE_DEVICES']='0,1' # Number of GPUs to run on
os.environ['CUDA_VISIBLE_DEVICES']=... | [
"noreply@github.com"
] | dxcv.noreply@github.com |
394ab50650182a6f6a0585c4bd30140e95a728c0 | acbf7de25d7fa45c2ec951cbc1b413472273cc59 | /blog/migrations/0001_initial.py | 6da7d17f63d5952a989afb1ab6730a9dcf58fb73 | [] | no_license | samuraidan1/my-first-blog | cb811f6812a8286584fcd171a154f30ed9ee5983 | 38e148cfc278384d1272abe6caf46c14b7ff893f | refs/heads/master | 2021-05-26T11:45:34.202199 | 2020-04-09T18:21:53 | 2020-04-09T18:21:53 | 254,118,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.2.12 on 2020-04-08 12:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"zhaksylykaidana@gmail.com"
] | zhaksylykaidana@gmail.com |
28ba3d851ee03948793dd137fff26cc26c6cb886 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/labels_20200908184214.py | 1ad507189c6df70f8faa20b9f588834565e44cb9 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | def labels(S):
if len(S) == 0:
return 0
output_arr = []
last_indices = {}
for i in range(len(S)):
last_indices[S[i]- 'a'] = i
print('last',last_indices)
labels("ababcbacadefegdehijhklij") | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
88d5414346251640121e479c2da1d66bec23c2e6 | 5beb49e3d9a3c9c8d611618e9f4e0bb53d36035c | /app/pyfile.py | 9558cd7760346de06eb5ddcd6ed01992e503ccb5 | [] | no_license | catufunwa/Hello-World | 8ccc6bf7446d97ac49ba840cec01a943a696a42e | 7299f5f81731e913e4c0371ffad3579bb4319680 | refs/heads/master | 2016-09-11T21:37:03.763523 | 2016-04-21T18:23:05 | 2016-04-21T18:23:05 | 1,515,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | #!python
print 'hello' | [
"catufunwa@cbinsights.com"
] | catufunwa@cbinsights.com |
8db9fd02b77cc8817b36c7a2f1c3d49b7dd9eecc | b601ea8b7c54fa8d8bb185e7b0e7c078f6431f04 | /chapter7/example23/deco_fabric.py | d2d2a6128ced6ff9ef2b237f6b217dd1efac66f5 | [] | no_license | pavoli/fluentpython_LucianoRamalho | 08396df4065fa7584c45853a506988a67814c024 | b44d4c6481fb135ab9a022120a5abc7505af3105 | refs/heads/master | 2020-09-07T15:51:45.299675 | 2020-02-10T02:27:25 | 2020-02-10T02:27:25 | 220,833,381 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | # -*- coding: utf-8 -*-
__author__ = 'p.olifer'
__version__ = '1.0'
registry = set()
def register(active=True):
def decorate(func):
print('running register (active=%s)->decorate(%s)' % (active, func))
if active:
registry.add(func)
else:
registry.discard(func)
... | [
"pavel.olifer@gmail.com"
] | pavel.olifer@gmail.com |
7cc80bce7b6d04b575d179aae41d5f848acfa2d3 | f719e10667407144e0e18258f023e2187fe4e53c | /medusa/constants.py | f70493002351a4852da7da55507345be406e7245 | [] | no_license | loudbirds/mamba | 7e3c38442a5911ba7e6585ef5999d9efa262ed6f | 10a5b73db166fc2f2379be47cb4d2e17a0a548ec | refs/heads/master | 2020-06-20T07:53:42.786472 | 2017-06-13T10:00:39 | 2017-06-13T10:00:39 | 92,957,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | WORKER_THREAD = 'thread'
WORKER_GREENLET = 'greenlet'
WORKER_PROCESS = 'process'
WORKER_TYPES = (WORKER_THREAD, WORKER_GREENLET, WORKER_PROCESS)
class EmptyData(object):
pass | [
"ervin.bosenbacher@loudbirds.com"
] | ervin.bosenbacher@loudbirds.com |
8bc4bcb74f783e3983e2c1cc896d33c02b527584 | f35535e1fd6e860766a7ddde89794690a3d114a3 | /src/generate_data.py | 123a076b06b29476cf5e58f35998ed51b310f634 | [] | no_license | VestaAfzali/StopPermutingFeatures | 3f48c1340bad227b9a0183f7547e9c52eb30e6ca | 14d0d5429cac492c269fc69f2df4c20251c05467 | refs/heads/master | 2022-11-20T15:17:14.077396 | 2020-07-27T16:03:18 | 2020-07-27T16:03:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,809 | py | from typing import Tuple, Dict
import pandas as pd
import numpy as np
from sklearn.preprocessing import MinMaxScaler, StandardScaler
from scipy.special import expit
def generate_weights_gamma(
gamma: float = 1,
scale: float = 1,
n_features: int = 20,
seed: int = 42
) -> np.array:
"""
Generate... | [
"dvr.energy@gmail.com"
] | dvr.energy@gmail.com |
23dd015c16f9b5083c8ad049f724ebc4ef3940be | a48f6d46394a1ec631c00da0ac87d688b2a86c95 | /comfyapi/migrations/0005_product_featured.py | 0b9c8b4825a77e110894054f6a620ba4d6dc02ca | [] | no_license | Dancan1998/comfy-api | b84e15404383e6549ad8e988d33c37946438e45a | 9f71686eb6a205d59322dacb1344c19c9e5bd2f5 | refs/heads/master | 2023-03-22T05:53:29.955044 | 2021-03-06T03:37:04 | 2021-03-06T03:37:04 | 340,947,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # Generated by Django 3.1.7 on 2021-02-22 00:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('comfyapi', '0004_product_shipping'),
]
operations = [
migrations.AddField(
model_name='product',
name='featured',
... | [
"dancankingstar@gmail.com"
] | dancankingstar@gmail.com |
66ab2bf274b421f8dc06c7b13e470f5665b9deca | bd5d30fb157aea3eef8fe0a434645a593635e1e1 | /recursivemenu/settings.py | 51ce43e37e5ae5ef2660adaf795215d102b27590 | [] | no_license | oneflower/recursivemenu | 10ed48b607dfa1272ba4515856b1f929775719fd | 35ad65952c417d9932b98da841a405d289595d48 | refs/heads/master | 2022-12-04T08:28:17.587539 | 2020-08-24T16:01:31 | 2020-08-24T16:01:31 | 289,972,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,738 | py | """
Django settings for recursivemenu project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"... | [
"oneflower3@gmail.com"
] | oneflower3@gmail.com |
98d37f57fa3ecacf2b6bb7f589f958867c87d85d | 49534a317930f120f2595cdbce351e57911a7978 | /interviews/south_migrations/0004_auto__add_field_person_about.py | 3593f4d4886e634b1fdf579333dcb0069a36a7b5 | [] | no_license | jibaku/interviews | d4029a62a60e3abdc0bf9ec20b3891ac8de7c22b | 369661b0e62c1d1571142fe3938898445551702b | refs/heads/master | 2022-09-12T00:46:37.538831 | 2022-08-26T16:16:24 | 2022-08-26T16:16:24 | 8,299,954 | 0 | 0 | null | 2016-11-02T13:36:43 | 2013-02-19T21:31:23 | Python | UTF-8 | Python | false | false | 6,979 | py | # -*- coding: utf-8 -*-
import 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 'Person.about'
db.add_column(u'interviews_person', 'about',
self.gf('dj... | [
"github@x-phuture.com"
] | github@x-phuture.com |
27c931355f080a47b29ee27121e203671226c44f | 8e1c592d14583f296263ad0144f59e44843fb274 | /pj_hsintian/test_app/migrations/0024_auto_20200131_2222.py | cd705836c84b59e74a761941582811c09108388a | [] | no_license | boompieman/hsintian | 21ac6846c568f87bd6ddd4c6d0f16892ea008ada | 5e636ee276b508f43346b347b51309339af82a76 | refs/heads/master | 2023-02-07T13:01:24.867777 | 2020-12-28T22:38:03 | 2020-12-28T22:38:03 | 296,289,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 2.2.4 on 2020-01-31 14:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('test_app', '0023_auto_20200131_2221'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='introduc... | [
"t0915290092@gmail.com"
] | t0915290092@gmail.com |
7454c090e380ffdfd34d3bea0e9afa8c919c7598 | 0469f9c57df4081527c7c1447881b23543fcd4d7 | /app/test/election/test_routes.py | 005b7d08d7c63f77f99df5e1c9afd2b08419cdee | [] | no_license | Fajaragst/open-vote-api | 6585934977e5d0bc1c7d399b4212142c670a8380 | 011acf09ebd6493792d32bcb7410840ad97ca092 | refs/heads/master | 2023-03-24T20:55:45.751666 | 2019-07-21T14:11:12 | 2019-07-21T14:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,571 | py | """
Election Integration Testing Between Routes & Services
"""
import json
from app.test.base import BaseTestCase
class TestElectionRoutes(BaseTestCase):
def test_create_election(self):
""" test api call to create election """
result = self.create_election({
"name" : "some ... | [
"kelvindsmn@gmail.com"
] | kelvindsmn@gmail.com |
959f6d92f5f9d4c4d93f612c2c05398fa13de09e | b2e4a597b2ebce244a62995e87c1d9ffad4426ae | /SIF_mini_demo/data/get_just_needed_vectors_py.py | 15bfb065248f9658a30def72d724e5514c56dacf | [
"MIT"
] | permissive | yangyuxue2333/NAMEABILITY | ee705f2aa972b33f03f0f5eafaec1cab1187ffda | 345df262ec5bc68ecfdcd6b129a68271c690bf90 | refs/heads/master | 2022-09-19T01:42:03.675502 | 2017-12-11T02:14:42 | 2017-12-11T02:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | import pandas as pd
import string
responses = pd.read_csv('../../gvi_-_nameability_-_different_-_uw.csv')
allResponses = responses['response'].str.cat(sep=' ').lower() #concatenate all responses into one string and lowercase
allResponses = allResponses.translate(None, string.punctuation) #remove punctuation
un... | [
"yangyuxue1994@gmail.com"
] | yangyuxue1994@gmail.com |
96665afe923a112f425c26145d7e2c2a3425b79a | 23c12f60a00adf406e39ab51f1f8af0304834b9f | /test/functional/test_framework/siphash.py | 92dd6c46244324d8d5e2af80f5515abc714c77c6 | [
"MIT"
] | permissive | DemoCoin-Dev/democoin | 473aed9f10aa8af37c873fa7b6c43801fd0e8b55 | 4f3ee2a4484a05140cc1066a299afae7c120b0d2 | refs/heads/master | 2020-04-01T12:33:06.601763 | 2018-10-16T03:04:45 | 2018-10-16T03:04:45 | 153,019,823 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2018 The Democoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Specialized SipHash-2-4 implementations.
This implements SipHash-2-4 for 256-bit integers.
"""
def r... | [
"MerlinMagic2018@github.com"
] | MerlinMagic2018@github.com |
dd1ab22da7abbda6a667e2e7271f7f43e63b7fa4 | 76f11e5615bae1effb8ac00ff0255d2944e9a1c6 | /src/first_api/core/models.py | 8152bfaed3697d0a4139361b8ff5849b352b2402 | [] | no_license | ishworpanta10/django_restapi | 36f3ddad845888600c1b5b97a67121df8ee091af | 09de7d7271282483d5a6489c9b9ca15860069e8c | refs/heads/master | 2023-07-19T06:54:17.782296 | 2020-04-12T08:21:22 | 2020-04-12T08:21:22 | 255,002,377 | 1 | 0 | null | 2021-09-22T18:52:33 | 2020-04-12T03:38:44 | Python | UTF-8 | Python | false | false | 407 | py | from django.contrib.auth import get_user_model
from django.db import models
# Create your models here.
User = get_user_model()
class Post(models.Model):
title = models.CharField(max_length=100)
description = models.TextField()
timestamp = models.DateTimeField(auto_now_add=True)
owner = models.Foreig... | [
"ishworpanta10@gmail.com"
] | ishworpanta10@gmail.com |
37915dcccb67b3832f18cea7435c17a1d62a1f4c | 9c0f691393abbeb5754e1624e0c48dfcdf857352 | /2018/Helpers/day_20.py | 421b07af4553a3e34735608fd171a866d88b040e | [] | no_license | seligman/aoc | d0aac62eda3e6adc3c96229ca859bd2274398187 | 9de27ff2e13100770a3afa4595b15565d45bb6bc | refs/heads/master | 2023-04-02T16:45:19.032567 | 2023-03-22T15:05:33 | 2023-03-22T15:05:33 | 230,493,583 | 17 | 10 | null | null | null | null | UTF-8 | Python | false | false | 10,975 | py | #!/usr/bin/env python3
from collections import deque
import os
DAY_NUM = 20
DAY_DESC = 'Day 20: A Regular Map'
class Infinity:
def __init__(self, default="#"):
self.default = default
self.grid = [[default]]
self.x = 0
self.y = 0
def get(self, x, y):
x += self.x
... | [
"scott.seligman@gmail.com"
] | scott.seligman@gmail.com |
823a6e4a7ac767f6f79ad0b9dc76f6462561093b | a372a816373d63ad626a9947077e137eac2e6daf | /test/leetcode/test_RomanToInteger.py | e1779578e1fb78743d60ab9239d857b1810cc42a | [] | no_license | DmitryPukhov/pyquiz | 07d33854a0e04cf750b925d2c399dac8a1b35363 | 8ae84f276cd07ffdb9b742569a5e32809ecc6b29 | refs/heads/master | 2021-06-13T14:28:51.255385 | 2021-06-13T08:19:36 | 2021-06-13T08:19:36 | 199,842,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | from unittest import TestCase
from pyquiz.leetcode.RomanToInteger import RomanToInteger
class TestRomanToInteger(TestCase):
alg = RomanToInteger()
def test_one_to_10(self):
self.assertEqual(1, self.alg.roman_to_int('I'))
self.assertEqual(2, self.alg.roman_to_int('II'))
self.assertEqu... | [
"dmitry.pukhov@gmail.com"
] | dmitry.pukhov@gmail.com |
d7e5f64c16ef151c07dd2c1aa9a010ecfdcbbdcb | d72e039484da19fab5716681c7d252f2c829f6a2 | /utils/function.py | 009d57b889b54c4ff0cd949ef07119885fd20019 | [] | no_license | GanYouHeng/blog | 1d6949f8927fadf9fd72513052bfbc048cd5abf2 | 85a12f04a0819159e0314ee625986bcfb39f755c | refs/heads/master | 2020-04-29T07:27:57.455631 | 2019-03-16T09:53:02 | 2019-03-16T09:53:02 | 175,953,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | """__author__ = 干友恒"""
from functools import wraps
from flask import session, url_for, redirect
def is_login(func):
@wraps(func)
def check():
user_id = session.get('user.id')
if user_id:
return func()
else:
return redirect(url_for('back.login'))
return che... | [
"18108159775@163.com"
] | 18108159775@163.com |
fe6c0906b6711bc4dfaf0c42acab037fa002d71a | 10d98fecb882d4c84595364f715f4e8b8309a66f | /sgk/mbv1/main.py | a5714394ad7f15319cef2783b649bead6e085217 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 8,432 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d6c6ce5979c322c5f4d1974e5f166fbba3a71c96 | d5214b1331c9dae59d95ba5b3aa3e9f449ad6695 | /quintagroup.captcha.core/tags/0.4/setup.py | b66e082036a30897edf7142cd18f777739802d79 | [] | no_license | kroman0/products | 1661ee25a224c4b5f172f98110944f56136c77cf | f359bb64db22f468db5d1e411638790e94d535a2 | refs/heads/master | 2021-01-10T07:58:04.579234 | 2014-06-11T12:05:56 | 2014-06-11T12:05:56 | 52,677,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | from setuptools import setup, find_packages
import os
version = '0.4'
setup(name='quintagroup.captcha.core',
version=version,
description="A core package of simple captcha implementation",
long_description=open("README.txt").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(),
... | [
"krzroman@gmail.com"
] | krzroman@gmail.com |
e676a3151cb2474fa112a5f701513e70e2333e0c | 993ac768660b3464c88df747a36e17ea1819f6f1 | /hbase/docker-hbase/happybaseDocker/python/tpArbres/2_manipulateArbre_ensemble.py | a125e1eaf3484e043b31ad4d8493353c67120ee5 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | radioactivit/big-data | 8585d26100b2d74c6b81bba788dd434fe322f497 | 2431a1d8ca1a31480b13dfbfbc2321b9470c0281 | refs/heads/master | 2021-06-02T00:37:15.701976 | 2020-01-07T15:03:13 | 2020-01-07T15:03:13 | 114,544,896 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,298 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
familles = {
'genre': {'genre':13, 'espece':11, 'nom_commun':16, 'variete':12},
'infos': {'date_plantation':14, 'hauteur':8, 'circonference':7},
'adresse': {'geopoint':18, 'arrondissement':3, 'adresse':5}}
import happybase
import sys
table_name = "arbre_paris"... | [
"marin.franck@gmail.com"
] | marin.franck@gmail.com |
07262dbe6905bb6823f24993e371e4527c3ad7b4 | 7837bf43c268886e841952447965b71c6b5d45e8 | /PeopleCounter.py | dab60e82da1671208d29430a2a2f98886cbb5204 | [
"MIT"
] | permissive | SiddiqMohammed/Rain-Room-OpenCV | 1217ecc19d68523e9dee11aaf4ffd610da40d446 | a77062c1a1450ada65d1fc126125b2f7d5bf97a6 | refs/heads/master | 2022-12-11T13:09:05.785091 | 2020-09-08T19:36:11 | 2020-09-08T19:36:11 | 292,779,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,380 | py | import numpy as np
import cv2 as cv
try:
log = open('log.txt',"w")
except:
print( "No se puede abrir el archivo log")
#Contadores de entrada y salida
cnt_up = 0
cnt_down = 0
#Fuente de video
#cap = cv.VideoCapture(0)
cap = cv.VideoCapture('Test Files/videos/TestVideo.avi')
#Imprime las propiedades de cap... | [
"noreply@github.com"
] | SiddiqMohammed.noreply@github.com |
ff1d23ecb15e23777cc2a8d28f1806e3988ce4cc | 4b25d88dec4b3239684cb2c7d837be75e6efa511 | /__init__.py | d58b296601b8fcaf4717c1182c907b42c81cb5c5 | [] | no_license | k155ir1/ml2 | 5758d4f7422c6cf1b230c25c3ae990e2e491c741 | cab775a0bd8268b643cb3ffda59158e292437ad9 | refs/heads/master | 2020-04-13T02:21:17.225729 | 2019-01-04T15:21:47 | 2019-01-04T15:21:47 | 162,900,286 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # -*- coding: utf-8 -*-
"""
ML-2
~~~~~
ML-framework for simple and easy implementation of classifiers.
:copyright: (c) 2018 by Aleksej Kusnezov
:license: BSD, see LICENSE for more details.
"""
__version__ = '0.1'
| [
"noreply@github.com"
] | k155ir1.noreply@github.com |
a900c62f14aada3437cc2084d664da44f7b1628c | 0311aaa76aad3f0f92cadca2804bc3fb94f73dec | /tests/conftest.py | 917f120a3e837c7703e3acf7c79800c9e249e6ff | [] | no_license | atarancon/flask-mega-tutorial | d446199ad082a83d57051803be2b1b6dd7ac51cb | 071436a70ad663e24e0e10159dcc221f58b770e7 | refs/heads/master | 2022-12-13T03:02:10.857182 | 2020-02-10T18:02:03 | 2020-02-10T18:02:03 | 227,940,690 | 1 | 0 | null | 2022-12-08T03:31:22 | 2019-12-13T23:49:47 | Python | UTF-8 | Python | false | false | 2,501 | py | import pytest
from config import setting
from app.app import create_app
from app.extensions import db as _db
from app.models import User
from config.setting import TestConfig
@pytest.yield_fixture(scope ='session')
def app():
"""
Set up our flask test app, this gets executed only once
:return: Flask app... | [
"ataranco@umail.iu.edu"
] | ataranco@umail.iu.edu |
17d518711e1de807039c58db780f7a15ce57d99f | b40445f5070b9c0c1358034fe74b2492612fc9cc | /new/models.py | a107d410749ee8c0477affb844401fedb57b2ba6 | [] | no_license | rahilfaizan/maindj | 9901e37f8b6e45d5169605ff183473dc9eb5ee7b | d5cd21cf0da82c5af9b67d8a0c2a02b8c1fccd5d | refs/heads/main | 2023-06-17T14:04:30.313221 | 2021-07-12T06:36:43 | 2021-07-12T06:36:43 | 386,177,513 | 0 | 0 | null | 2021-07-15T05:41:44 | 2021-07-15T05:41:43 | null | UTF-8 | Python | false | false | 564 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
from django.urls import reverse
#u
class Usermodel(models.Model):
user_name = models.CharField(unique=True,max_length=50)
password = models.CharField(max_length=50)
user_type = models.CharField(max_len... | [
"sandeepbk01@gmail.com"
] | sandeepbk01@gmail.com |
02188a1abc50946d4badece32429520bca6491a3 | 97754328eefb53cd8dc2aee0dbc452fff9ebfea5 | /alistirma3.py | eafdb91aced34323af64e5d73bb1a4e3ea415bfa | [] | no_license | OzgeSevgiMert/Alistirmalar | 3766cf985bec6d8c647140e0ad1a4cf3e9a2f158 | a91be55779aa028bf204278f768a3eea216c0021 | refs/heads/main | 2022-12-30T11:47:39.400405 | 2020-10-20T11:59:57 | 2020-10-20T11:59:57 | 305,692,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | fact=1
sayac=0
for i in range(1,10000):
fact= fact*i
sayac += 1/fact
if i==10000:
break
e= 1+ sayac
print("e:",e)
| [
"noreply@github.com"
] | OzgeSevgiMert.noreply@github.com |
c391f8f9748fe696e8d837e10fe114a3f6e24301 | dc5db257646214f1140931f2d27bf1755f99a934 | /src/libs/enhancing.py | 0812e391c87e1a40287ca2d30ffc07f883ff8b8f | [] | no_license | mollihua/FingerSecure | ed54a12af6fcbccfe3c71e6c9961c7e4cae057ea | 300a859864456d24987496efb516d45e632b91e2 | refs/heads/master | 2020-12-28T12:07:36.478942 | 2020-09-21T06:52:01 | 2020-09-21T06:52:01 | 238,326,505 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,644 | py | import math
import numpy as np
import scipy
from scipy import ndimage, signal
import warnings
warnings.simplefilter("ignore")
import cv2
cv2.ocl.setUseOpenCL(False)
from libs.processing import thin_image, clean_points
def enhance_image(image: np.array, block_orientation: int = 16, threshold: float = 0.1,
... | [
"mochenserey@gmail.com"
] | mochenserey@gmail.com |
730edb27719a3962eac1676de8595e04b42efd24 | 1e1435cf6b89c9d60ad31c43761be8a718a1020f | /flask/Scripts/rst2html.py | 0ce75a5f4508ebe42bc61f063214cbc22e5b5b24 | [] | no_license | voronin601/vk_proof | 287ff7eae03b4d26c174c3f0851ffb33e13a8bef | 80ddd28fed5c3cb8d7875aca5a19ed45e8cc51ca | refs/heads/master | 2023-03-20T21:54:46.650064 | 2020-04-29T20:00:50 | 2020-04-29T20:00:50 | 260,029,871 | 0 | 0 | null | 2021-03-20T03:47:05 | 2020-04-29T19:59:28 | Python | UTF-8 | Python | false | false | 626 | py | #!e:\work\vk_proof\podpis\flask\scripts\python.exe
# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML.
"""
try:
import locale
local... | [
"vovavoronin1998@gmail.com"
] | vovavoronin1998@gmail.com |
e7573b39be3b536a953e2ef64a93f715acb75c24 | a41a0514992cb24ad21caefbd536adda019b6e0e | /single_cell2marker.py | ad2a57501bcaf8f2b62a2e7ef03e006cc34b218b | [] | no_license | stephengao0121/SI231-project | 89c9aa0e0cfc6ee1f0bd42f30e908b98f441bb3c | 5aace0baeae3fb4b7db845c7ad2d3ce7d301126b | refs/heads/main | 2023-02-04T18:41:52.825083 | 2020-12-22T11:34:08 | 2020-12-22T11:34:08 | 322,760,390 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | '''
Prepare the marker matrix from single cell data
author: panxq
email: panxq@shanghaitech.edu.cn
'''
import argparse
import numpy as np
import pandas as pd
import scanpy
def set_parser(parser):
'''
Set the parser
Keyword Arguments:
parser - argparse.ArugumentParser type, parser to be set
'... | [
"827019851@qq.com"
] | 827019851@qq.com |
2dab798c00432625c88bf3e1a0ba98adf19055aa | 66f66155a7f9dd11b0f1bff092411523ac9366fc | /leds/led_service.py | eb8c0e366d071087962ac0f832286847c68f0c9a | [] | no_license | GarnetSquadron4901/rpi-vision-processing | c1807239a530f35a4dd513db89771a371ab6df56 | 92ccee0d1ac8fa6f9f3ba2017a8e1aa1ae4f4897 | refs/heads/master | 2021-05-31T14:49:27.649798 | 2016-03-27T18:52:04 | 2016-03-27T18:52:04 | 52,922,315 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | # NeoPixel library strandtest example
# Author: Tony DiCola (tony@tonydicola.com)
#
# Direct port of the Arduino NeoPixel library strandtest example. Showcases
# various animations on a strip of NeoPixels.
import time
import sys
import math
import Pyro4
import threading
from neopixel import *
# LED strip configurati... | [
"ryannazaretian@gmail.com"
] | ryannazaretian@gmail.com |
4c7dff0f3048c5057e8104ea43beb06aba713674 | cae86200ff25ff941f7bacbe9b363e6604b83122 | /zw/rainUtil.py | de1929c5648b548e6e3b4cdb974cd6c8af437e35 | [] | no_license | enniefu/CIS-ML | 835ddedc3f7d052027163dd646081988c49d9d62 | 0617742dfe111e2eb2f3e49fea982bc5820c75e9 | refs/heads/master | 2020-06-22T15:32:07.126125 | 2019-08-01T08:37:50 | 2019-08-01T08:37:50 | 197,738,019 | 0 | 0 | null | 2019-07-21T08:22:09 | 2019-07-19T08:50:22 | Python | UTF-8 | Python | false | false | 7,089 | py | import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
from keras.utils import normalize
from scipy import stats
from sklearn.feature_selection import SelectKBest, chi2
from sklearn import preprocessing
import seaborn as sns
import matplotlib.pyplot as plt
pd.set_opti... | [
"934406854@qq.com"
] | 934406854@qq.com |
02f18ec302f421dfa21b570e9bae1c13fb43e29f | 207a7ad4f5817b1c694b9af889b5aa4a5ca43b56 | /LanBroker/landbroker/apps.py | 2b8623f763ca66ea1217e00a63099e4a058eac1d | [] | no_license | wilsenmuts/LandBroker | 81b37c3ab7a18a1cab97092f6708d768e8cbfba1 | fbd8737069c6dbcb0b020b822da38a6eed5f8347 | refs/heads/master | 2020-12-26T06:18:26.294451 | 2020-10-30T11:10:13 | 2020-10-30T11:10:13 | 237,413,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class LandbrokerConfig(AppConfig):
name = 'landbroker'
| [
"wilsonmutebi41@gmail.com"
] | wilsonmutebi41@gmail.com |
7635478e2b2018690ee0956d2047ed7f2ae3e0b5 | fa2ede8940d284fc80e8e74b42bfb4b9b8791967 | /plots/fig3/Ropt_vs_T_comparison.py | 6dcbc95074d61582954ed06c35d18806fffe6d9f | [
"BSD-3-Clause"
] | permissive | lrudelt/hdestimator | 73c9c1a45618cdc8c9743b7038d6f9f3f9ffedfd | 415f8d7482d6538fd761fba8d1be758be2819aca | refs/heads/master | 2023-01-09T12:43:42.985878 | 2020-11-10T13:28:18 | 2020-11-10T13:28:18 | 278,210,799 | 0 | 0 | null | 2020-07-08T22:55:40 | 2020-07-08T22:55:39 | null | UTF-8 | Python | false | false | 6,196 | py |
"""Functions"""
import os
import sys
from sys import exit, stderr, argv, path, modules
from os.path import isfile, isdir, realpath, dirname, exists
from scipy.optimize import bisect
import csv
import yaml
import numpy as np
import pandas as pd
# plotting
import seaborn.apionly as sns
from scipy.optimize import bisect
... | [
"lucas@viboras.lmp.ds.mpg.de"
] | lucas@viboras.lmp.ds.mpg.de |
69aa981fa4ca59e2b4d194f6c7f3461ca39a987d | 87410d147f3b708f3c047dd605e571ac0f564a3e | /HousingData/HousingData/run.py | c9eae93cd9aca336a13cc0128222ed02f0b9bb18 | [] | no_license | zoudaokou0804/SH_Life | 88617bc0bf8f14fd2691db463effcbfac1f5062b | 4d273b8da098a2133ded6b4aa8286fcc6f6c4519 | refs/heads/master | 2020-12-31T10:36:07.802585 | 2020-02-08T06:29:26 | 2020-02-08T06:29:26 | 239,003,990 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | #!/user/bin/env python
# -*- encoding:utf-8 -*_
'''
@File:run.py
@Time:2020/02/08 02:11:50
@Author:zoudaokou
@Version:1.0
@Contact:wangchao0804@163.com
'''
from scrapy.cmdline import execute
import os
from Handle import handle_data
# 获取当前文件路径
dirpath = os.path.dirname(os.path.abspath(__file__))
#切换到scrapy项目路径下
os.chdi... | [
"39996528+zoudaokou0804@users.noreply.github.com"
] | 39996528+zoudaokou0804@users.noreply.github.com |
09f6d1fb57112c1f50258c21e64e2daf37b9d68a | 078b4d2495d2b915b53771dda298095551807202 | /django/filter/urls.py | 8284862edb76b97dc6d23e5450f47b998212d239 | [] | no_license | sashpro/you_posting | c9dd9c4ade23ac284647604054c66ac5c18db6fb | 8a9972735c6d4f70dfd2bb8cccbde5d4e401cacb | refs/heads/master | 2021-07-03T18:30:29.287727 | 2017-04-07T08:12:20 | 2017-04-07T08:12:20 | 87,197,892 | 0 | 0 | null | 2021-06-10T20:06:11 | 2017-04-04T14:40:03 | Python | UTF-8 | Python | false | false | 165 | py | from django.conf.urls import url
from filter import views
urlpatterns = [
#url(r'^$', views.index_filter),
url(r'^get_channels/$', views.filter_channels),
] | [
"sashpro@mail.ru"
] | sashpro@mail.ru |
d57ffa4da9a341d5cc7564a22c3065a2bb5f8ab7 | cbe264842df4eae3569b28ed4aae9489014ed23c | /books/PythonCleanCode/ch2_pythonic_code/caveats.py | 1f330412a4fd8ef9851949c867192bfbd60a2f7d | [
"MIT"
] | permissive | zeroam/TIL | 31e176c2f4c3e1ef72b1155353690cc2f7160f96 | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | refs/heads/master | 2021-07-23T01:43:34.135033 | 2021-07-10T06:47:17 | 2021-07-10T06:47:17 | 167,952,375 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | """Clean Code in Python - Chapter 2: Pythonic Code
> Caveats in Python
"""
from collections import UserList
def wrong_user_display(user_metadata: dict = {'name': 'John', 'age': 30}):
name = user_metadata.pop('name')
age = user_metadata.pop('age')
return f'{name} ({age})'
def user_display(user_metadat... | [
"imdff0803@gmail.com"
] | imdff0803@gmail.com |
e98351b25584ebae053f2d95eeee850cea227ab6 | 671878e08ad7c1f273df9b77f8dc47d85997243b | /edinburgh_materials/hawaii-plot.py | 22555a79aed4dadd132b87ac48fd1b38257db994 | [] | no_license | BritishGeologicalSurvey/python-clinic | 3e1c0458d8dc9849c17f8556bc6dcb06b9d930dd | 7a2836d6a3a23c74c6e2a475a0c5d9ab923019f6 | refs/heads/master | 2023-08-08T04:53:02.765057 | 2023-03-21T16:28:13 | 2023-03-21T16:28:13 | 201,021,399 | 1 | 1 | null | 2023-07-25T21:21:54 | 2019-08-07T09:48:26 | Jupyter Notebook | UTF-8 | Python | false | false | 1,042 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 30 13:03:36 2019
@author: ahall
"""
import pandas as pd
from matplotlib import pyplot as plt
import datetime
names=['year',
'month',
'decimal date',
'average',
'interpolated',
'trend',
'num days']
df = pd.r... | [
"jostev@bgs.ac.uk"
] | jostev@bgs.ac.uk |
0deac75a47407a99954d3757cf9236fad478eefb | ba71d99e2b21fa006e34d2e5057ede6691231ea5 | /venv/bin/easy_install-3.6 | 8610ad0c28dd03c08b33719d92f1560b631bd64f | [] | no_license | imvivek71/DjangoRest | c541097439c88fa7ff2a7af75382d55eba4ae1f5 | fe5d5c92d0ae7deb35519dabece17840f9946d9a | refs/heads/master | 2020-05-01T23:45:17.319370 | 2019-03-27T09:15:38 | 2019-03-27T09:15:38 | 177,667,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | 6 | #!/home/vivek/PycharmProjects/DjangoRest/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"vivekgoswami71@gmail.com"
] | vivekgoswami71@gmail.com |
e30aca7014068a8caa8a74971f7570e9ea7895d6 | caab7613d987576c81b5823711c669aa922a2569 | /randompaths/drunk.py | 235aab9a0b109e2b153ce0a9bb68b26b7f7eb57d | [] | no_license | pabloantipan/statistic-computing | a4a3a1b0ff077922eb4ba81021a072d114dee420 | 893bf5497ba33d931e1298af361a7fbff7af1d29 | refs/heads/master | 2023-04-13T22:23:28.179570 | 2021-04-22T17:56:31 | 2021-04-22T17:56:31 | 360,635,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from random import choice
class Drunk:
def __init__(self, name):
self.name = name
class TypicalDrunk(Drunk):
def __init__(self, name):
super().__init__(name)
def walk(self):
result = choice([(1, 0), (-1, 0), (0, 1), (0, -1)])
# print(result)
return result
| [
"pablo@"
] | pablo@ |
3747bf5aa3872e8330f62268b8a1445cfa36170f | bc6fe053b1b36ccfa03f7e2a4f1d514657b43e84 | /tatk/evaluator/multiwoz_eval.py | ab56800bf25c670ab3261e1907ffa332dc461b9f | [
"Apache-2.0"
] | permissive | sunweibo/tatk | 9bdf785140ad222ac377cd90186c2365fba4a349 | 81594e30a5410aba98b90d7cac47d31e25bb666c | refs/heads/master | 2020-06-13T20:43:33.019642 | 2019-07-03T03:14:20 | 2019-07-03T03:14:20 | 194,605,366 | 0 | 0 | null | 2019-07-01T05:27:49 | 2019-07-01T05:27:49 | null | UTF-8 | Python | false | false | 11,531 | py | # -*- coding: utf-8 -*-
import re
import numpy as np
from copy import deepcopy
from tatk.evaluator.evaluator import Evaluator
from tatk.util.multiwoz.dbquery import dbs
requestable = \
{'attraction': ['post', 'phone', 'addr', 'fee', 'area', 'type'],
'restaurant': ['addr', 'phone', 'post', 'ref', 'price', 'area', 'f... | [
"truthless11@gmail.com"
] | truthless11@gmail.com |
f577a3b03a97fbc52623dc8f9709605b6a1264ce | 09ed2cc42182379e25050f7977c6d5dbb4625b9b | /help/urls.py | a4199889cf8ed205eccf4ac80f18c02aac8e31bb | [] | no_license | pravu02280/NewEmployeeManagement | 21b18655a72415b5d25600649f6ce7ebb013b74e | 10b65c58356680fb52add5faa5cfb52c25524593 | refs/heads/master | 2020-03-20T20:33:40.457708 | 2018-06-16T07:20:25 | 2018-06-16T07:20:25 | 137,693,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from django.urls import path
from . import views
app_name = 'help'
urlpatterns = [
path('help/', views.HelpView.as_view(), name='help'),
]
| [
"ajaykarki333@gmail.com"
] | ajaykarki333@gmail.com |
2493401a3937714c9f738d96ff417df94d1d831b | d4068f40b36613e2899d40c80d776b98c6986e9d | /test/test_findx.py | 954bf196e0550a1b5508854070c9b0d8cc088146 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jayvdb/findx | 4952a10d8248b9d0cc2549c29d2d184056ec8e36 | 14fab1cd4140432e9482b55410ac651c31b1d59b | refs/heads/master | 2021-01-16T20:44:10.925139 | 2016-05-19T01:02:19 | 2016-05-19T01:02:19 | 61,614,151 | 0 | 0 | null | 2016-06-21T07:56:55 | 2016-06-21T07:56:55 | null | UTF-8 | Python | false | false | 6,351 | py | #!/usr/bin/env python
import unittest
import findx
class TestFindx(unittest.TestCase):
def test_io_error(self):
with self.assertRaises(IOError):
raise IOError()
def test_has_meta(self):
f = findx.Findx()
self.assertTrue(f.has_meta('one*'))
self.assertFalse(f.has_... | [
"drmikehenry@drmikehenry.com"
] | drmikehenry@drmikehenry.com |
59c5ad5afc59d98e891abcb08c9188c3899965a2 | f3db01c17883059b71f82feb17ebc9a5825321a9 | /LinkedList/linked list.py | 87cc9cbd15d88c64a06697ea06028d81c11af181 | [] | no_license | RoshanXingh/DataStructure | 14cebe54b52189e77bee58ec4461187e03ed898d | 716249f9ce91f97d7e9df2b2a9e1048fd7f96980 | refs/heads/master | 2023-03-20T22:49:04.362335 | 2021-03-03T11:33:38 | 2021-03-03T11:33:38 | 333,363,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | class node:
def __init__(self, val):
self.val = val
self.next = None
class llist:
def __init__(self):
self.head = None
def disp(self):
temp = self.head
print("linked list is:", end = "")
while(temp):
print(temp.val, end = " ")
temp =... | [
"roshanrajsingh38@outlook.com"
] | roshanrajsingh38@outlook.com |
068d8dcf221bf47491b057fbc7f3fdc5dde47b3d | bf8f258b02611260c406b1f320c7b4e6bc6820bb | /srm/migrations/0015_auto_20180312_1716.py | fe71aaf55689d86baed36fc555c0cf277d14b398 | [] | no_license | Tagolfirg/kmvit | ccc248e516a10c677dcad0e4706bc754222f732c | 4ac1b1604dbe634bd74de0970512619158874858 | refs/heads/master | 2020-07-06T12:18:42.473774 | 2019-06-07T09:54:00 | 2019-06-07T09:54:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-03-12 14:16
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('srm', '0014_deal_description'),
]
operations = [
... | [
"root@justscoundrel.fvds.ru"
] | root@justscoundrel.fvds.ru |
dcb1463527e4ee20e0e214ae36dd87a6f99ce861 | 2a7fe6bba27b7fa29d1ceb274cba28469e1db21e | /Assignment 3/Source/svm.py | f63dcea7e8b78f4350d6bf3c9d1c851729c2369f | [] | no_license | iamgroot42/ML_assignments | 51625b86589fb15bb8b1c288c198660f1b77eb21 | c37b3dfb6f25217f24fe639cf33fc2a8a643127e | refs/heads/master | 2021-04-30T22:48:32.439363 | 2017-08-21T06:24:48 | 2017-08-21T06:24:48 | 66,487,399 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,563 | py | import misc
from sklearn.svm import SVC
from sklearn.preprocessing import label_binarize
from sklearn.multiclass import OneVsRestClassifier
import matplotlib.pyplot as plt
import numpy as np
from sklearn.externals import joblib
import warnings
# Ignore warnings based on convergence because of number of iterations
warn... | [
"anshuman14021@iiitd.ac.in"
] | anshuman14021@iiitd.ac.in |
59d852a4343291babb24cabd51079b6380b8f50e | c7eefcabbbfa6efa94962494273dbb8f5d7fa29f | /tienda_mascotas/Tienda.py | fa18e5df3bc54de9f7a6fa8df7fdae2e00a8ccc3 | [] | no_license | parra06/taller1_lab_Python | 3f330623f2028c97090cc97cb14d1fe1e02284a9 | d575f59ba12a8c2f0e64204fe348406715261286 | refs/heads/main | 2023-08-11T06:33:07.863089 | 2021-10-05T00:52:54 | 2021-10-05T00:52:54 | 413,626,836 | 0 | 1 | null | 2021-10-05T13:29:59 | 2021-10-05T00:42:25 | Python | UTF-8 | Python | false | false | 7,890 | py | import os
import uuid
from tienda_mascotas.Dominio.Cuidador import Cuidador
from tienda_mascotas.Dominio.Especificacion import Especificacion
from tienda_mascotas.Dominio.Inventario import Inventario
from tienda_mascotas.Infraestructura.Operacion import Operacion
from tienda_mascotas.Dominio.Perro import Perro
from ti... | [
"santiago.parra.0276@eam.edu.co"
] | santiago.parra.0276@eam.edu.co |
2418b92d287ca09345d43822beb2153d2bca0a13 | 3facea714ad064ed6170b1a49cc5dec7c5aa2b6e | /app/logging.py | f5f1eb89be77ed2eae009aed1496560ef62f2edd | [] | no_license | harindu95/CommentsMicroservice | b7da125eb85e9adc172584a972280fd5bc8c87be | 22d9bd058de5ae4347d3ed2bdf61708cfd807517 | refs/heads/master | 2022-10-20T08:01:30.413533 | 2020-04-03T01:45:04 | 2020-04-03T01:45:04 | 241,959,341 | 0 | 0 | null | 2022-09-16T18:21:43 | 2020-02-20T18:27:37 | Python | UTF-8 | Python | false | false | 248 | py | '''Global Logging configuration for the project'''
import logging
from datetime import datetime
filename = 'log/' + str(datetime.now()) +".log"
logging.basicConfig(filename=filename, filemode='a',format='%(asctime)s - %(message)s')
log = logging
| [
"harindudilshan95@gmail.com"
] | harindudilshan95@gmail.com |
75546a1cf320ecaf0eff09383bfb5530a403722d | c32abaf581b88e01969a8476e13eafcd382705df | /doc/sphinxext/compiler_unparse.py | 9d86f6e19ddec89bfe74041f493b0223a2c7d58d | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | juhasch/scikit-rf | c0e06573c545e0c115d34331f9e9d70243736412 | 3d51ba6c21b9a7a40cb7c3a6e7de4aae302c8a13 | refs/heads/master | 2021-01-17T18:15:07.976393 | 2016-08-24T15:26:06 | 2016-08-24T15:26:06 | 25,217,149 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,457 | py | """ Turn compiler.ast structures back into executable python code.
The unparse method takes a compiler.ast tree and transforms it back into
valid python code. It is incomplete and currently only works for
import statements, function calls, function definitions, assignments, and
basic expressions.
... | [
"arsenovic@virginia.edu"
] | arsenovic@virginia.edu |
4de84c65144d32f737bd1494faf70002d7bcf4cc | acee5b8a6ce1a3652ee56779b816b3c5b6860473 | /core_currucular/1_computer_vision_deep_learning_and_sensor_fusion/6_Camera_Calibration/1-6-12_correction_for_distorion/correction_for_distrorion.py | adff0f6c8abd323939a82c678f45a9e443c98357 | [] | no_license | willembressers/Self-Driving-Car-Engineer | 72404d836c25c707c4881b5a6f07e1fac7a61d49 | b7fe4239322a0e15ae94700356ce20bcfbbead55 | refs/heads/main | 2023-06-25T14:32:56.043728 | 2021-07-21T09:55:33 | 2021-07-21T09:55:33 | 333,805,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | import pickle
import cv2
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
# Read in the saved objpoints and imgpoints
dist_pickle = pickle.load( open( "wide_dist_pickle.p", "rb" ) )
objpoints = dist_pickle["objpoints"]
imgpoints = dist_pickle["imgpoints"]
# Read in an ima... | [
"dhr.bressers@gmail.com"
] | dhr.bressers@gmail.com |
2a1ccbdec65259db16ecf3ce096abf6a859872e8 | 463b0163a19b92250f2afb4164834a3f49a7a022 | /predict_service/__init__.py | 8469f5e29b3fdf4fccc486ef821f5885214afdb5 | [] | no_license | jaeoheeail/carouhack_car_price | d0e0a46ff41b507811e536a2f56a91dd03b00fe7 | 8bf46e394ada8a305ce1ba3e58a7593c987884b1 | refs/heads/master | 2022-12-12T03:04:24.208799 | 2018-11-29T06:09:04 | 2018-11-29T06:09:04 | 159,538,672 | 0 | 0 | null | 2022-12-08T01:19:31 | 2018-11-28T17:18:56 | Jupyter Notebook | UTF-8 | Python | false | false | 509 | py | from flask import Flask
from flask.ext import restful
from flask import make_response
from bson.json_util import dumps
import generate_model as gm
app = Flask(__name__)
# generate model
gm.generate()
def output_json(obj, code, headers=None):
resp = make_response(dumps(obj), code)
resp.headers.extend(header... | [
"joel.foo@thecarousell.com"
] | joel.foo@thecarousell.com |
d4680cbab2555a1a950320a97cbd4c41a6a47632 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03274/s114027037.py | 2b2da66514e2ca781e41c1741d1a6fb5f0ce210e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | n, k = map(int, input().split())
x = list(map(int, input().split()))
x_neg = []
x_pos = []
for xx in x:
if xx < 0:
x_neg.append(-xx)
else:
x_pos.append(xx)
x_neg = x_neg[::-1]
ans = float('inf')
if k <= len(x_neg):
ans = min(ans, x_neg[k-1])
if k <= len(x_pos):
ans = min(ans, x_pos[k-1... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
867512a6e0488410abd923d4f58989172dc54f99 | 05f9b3014a16c66d11315fb6f85b801bf49b7273 | /test-repo/fabscript/openstack/glance.py | 31524f4c3c2a7e08ebd666923b04f5bd54a29670 | [
"MIT"
] | permissive | syunkitada-archive/fabkit-fablib_openstack | b645a6a8646ab5c8a9d75a44b62d10db8e04a436 | 5edea4f8eab26adb7e8b031acc6b8ce8f9060eb6 | refs/heads/master | 2023-05-12T23:47:24.617656 | 2018-05-13T13:55:55 | 2018-05-13T13:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | # coding: utf-8
from fabkit import task, parallel
from fablib.openstack import Glance
@task
@parallel
def setup():
glance = Glance()
glance.setup()
return {'status': 1}
| [
"syun.kitada@gmail.com"
] | syun.kitada@gmail.com |
7491127d0c31d6e8396cb3a68a1ab0110dc69489 | a9113018b40043c1785b83e9cd1ef34d12586f22 | /Idawof_odj.py | 8c78566e071d4aa89313023454c4b8ba89ad58a4 | [] | no_license | mareku/Idawof_odj | 1880188b43e40c0d73021c095ef0bf9b30feb45b | a64541f84a0d593cc796f2428d00acf2230128df | refs/heads/master | 2020-06-07T10:30:17.299626 | 2019-06-20T23:51:59 | 2019-06-20T23:51:59 | 193,000,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,498 | py | # -*- coding: utf-8 -*-
import sys
import glob
import csv
import os
import shutil
import codecs
import re
import dircache
import lib.time
import lib.fold
import lib.name
import lib.filemove
# fuwファイルを読み込む
def chkcsv(s_file):
fopen=open(s_file, 'rb')
try:
#fuwファイルの設定を読み込む
for row... | [
"0day.kiddie+Git1@gmail.com"
] | 0day.kiddie+Git1@gmail.com |
d811341a8c4ae0850f3214d241293fa71c7afea8 | 6b5c466d250a53d63de039fbf4ee7da9f176b2dd | /Codeforces Problems/Drinks/Drinks.py | 1d139fb9f7a2d8bfaf7f8e3b06ab11693086a6c8 | [
"MIT"
] | permissive | Social-CodePlat/Comptt-Coding-Solutions | d57e59e71a176612905f3d40adf86d8a2221f9c4 | 240732e6c1a69e1124064bff4a27a5785a14b021 | refs/heads/master | 2023-04-21T09:23:52.073090 | 2021-05-27T18:20:55 | 2021-05-27T18:20:55 | 303,801,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | n=int(input())
arr=[float(x) for x in input().split()]
perc=((sum(arr)/(100*len(arr)))*100)
print("{:.11f}".format(perc))
| [
"rajattheonlyhero@gmail.com"
] | rajattheonlyhero@gmail.com |
68c058d787413bd34d8500a3f70478e263c2b758 | 7312266874e50682cf909f4b77260c9a69f13999 | /python/packages/scipy-0.6.0/scipy/sandbox/timeseries/tests/test_dates.py | 2bdd73247012993079b6d4fa2caf808d0c77d668 | [
"LicenseRef-scancode-egenix-1.0.0"
] | permissive | mbentz80/jzigbeercp | e354695b90a72c7fe3c5c7ec7d197d9cbc18d7d9 | 1a49320df3db13d0a06fddb30cf748b07e5ba5f0 | refs/heads/master | 2021-01-02T22:44:16.088783 | 2008-08-27T23:05:47 | 2008-08-27T23:05:47 | 40,231 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 47,237 | py | # pylint: disable-msg=W0611, W0612, W0511,R0201
"""Tests suite for Date handling.
:author: Pierre Gerard-Marchant & Matt Knox
:contact: pierregm_at_uga_dot_edu - mattknow_ca_at_hotmail_dot_com
:version: $Id: test_dates.py 3040 2007-05-24 17:11:57Z mattknox_ca $
"""
__author__ = "Pierre GF Gerard-Marchant ($Author: mat... | [
"mb434@cornell.edu"
] | mb434@cornell.edu |
7cf1e70487f372ffe71d4eef590134c767624115 | 1d080e3ebf1825ac74e7ea3be4b9a9e4cdb3bb0c | /Class2_Python3/Homework Aufgabe 2.3.py | c06a9ceaa12288e1382b1ed6c68ed9679c59d769 | [] | no_license | SariFink/wd1-20200323 | 61168f1a446b9eb4909fa914ef8f5e95da07be28 | 950d061abdad0c49fa5cd98a0b1db8b5fdf224b5 | refs/heads/master | 2021-05-24T12:22:00.394007 | 2020-05-03T11:09:29 | 2020-05-03T11:09:29 | 253,559,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # Sometimes you'd like to make some string lowercase. For example, you have a string like this:
#
# "Today Is A BeautiFul DAY"
# And you'd like to make it like this:
#
# "today is a beautiful day"
# There is a very nice solution in Python to do this. Use Google search and find out how to do it.
#
# Where would this com... | [
"fink.sari@gmail.com"
] | fink.sari@gmail.com |
019faa8e9013ea673b664a28a30f07cdc41adfd6 | 8cef9162a14d6d5c2e2253fc6d912b5aef52f687 | /set-morn.py | bad3f47bd1307e9cfb9ac0f4e42fe82392526ed6 | [] | no_license | 7ooL/home_auto_scripts | 9b75755ac4e464e49aba870ac3cbb2997ce7b022 | 2ad224b9b2bd9c3d7b53cb774db17dc696a1f869 | refs/heads/master | 2022-12-15T18:31:06.117914 | 2020-09-20T20:25:31 | 2020-09-20T20:25:31 | 98,122,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import myhouse
import pyInfinitude.pyInfinitude
import os, sys, datetime, time
import logging
import os
def main(argv):
now = datetime.datetime.now()
logging.info('Running set-morn script')
home = myhouse.Home()
home.public.set("mornings","updating", "yes")
home.saveSettings()
end = datetime.datetime.n... | [
"mr.matthew.f.martin@gmail.com"
] | mr.matthew.f.martin@gmail.com |
eeb5b87a30485c9e62c25f1a79691e9e6f9c4142 | 0e8836c5202e5bb389870df6a2727cd49b192daa | /peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.py | 8eac0974dd570242db4a70bf7fb68c6a97fc935a | [] | no_license | OnlyLeetCoder/LeetCode | a0e3d1b1360a7e04533649ab62274f2e32dec2bf | 190fe578eab02548f7e2fd5471cef14469e63501 | refs/heads/main | 2023-07-05T19:44:06.396815 | 2021-08-22T17:08:17 | 2021-08-22T17:08:17 | 387,091,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | class Solution:
def peakIndexInMountainArray(self, arr: List[int]) -> int:
for i in range(1, len(arr)-1):
if arr[i-1] < arr[i] > arr[i+1]:
return i | [
"87592768+OnlyLeetCoder@users.noreply.github.com"
] | 87592768+OnlyLeetCoder@users.noreply.github.com |
77029a6329b00c293d80af7760c89f8db105eb59 | 78bc1615df60a593ea1b19febbff91ca1990f98f | /portfolio/manage.py | 2126344d46b079788a2de26abc0106c37014ab6c | [] | no_license | mgeraci/portfolio | 0010ee36584c5822d8e641521e343a7491ce2262 | e7c6ed40227f6ac614663bcb98bb639fe0d2b267 | refs/heads/master | 2023-07-20T00:17:49.516598 | 2023-07-13T00:18:07 | 2023-07-13T00:18:07 | 51,189,359 | 0 | 1 | null | 2023-07-18T20:31:02 | 2016-02-06T04:28:11 | JavaScript | UTF-8 | Python | false | false | 258 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "michael_dot_com.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"me@mgeraci.com"
] | me@mgeraci.com |
bf76f20dd5bbe81aaa16548f337c6de6d6e46d7d | a33f4e8eff21965e234531d1375b113ad1bb2064 | /qa/rpc-tests/maxblocksinflight.py | 76e553ee707ff7584f6c10614ca992bc7eb50e66 | [
"MIT"
] | permissive | zero24x/innova | c80d5abf71b515e395c99c9544ea4673bd450b4e | cde2cb27dd359d54b693d13a246583010101413a | refs/heads/master | 2020-03-21T06:35:07.634999 | 2019-06-07T15:17:27 | 2019-06-07T15:17:27 | 138,229,700 | 0 | 0 | MIT | 2019-06-07T14:38:17 | 2018-06-21T22:53:20 | C++ | UTF-8 | Python | false | false | 3,733 | py | #!/usr/bin/env python2
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
import logging
... | [
"root@DESKTOP-N2BRCQD.localdomain"
] | root@DESKTOP-N2BRCQD.localdomain |
7edffcac268c2ecc9f54017338ffdc0fd54d47bd | 4e3fcb8e40752d7df86a069d771c398a0801236a | /exchange_rate.py | db5cce2e3904be81a4eae567ac2ddfb402306f31 | [] | no_license | Gchesta/assignment_day_3 | fb8040b696037b3e2fed6627addc40b14bfe3084 | a8e6bce2e2e2bb90f82b78ff7c681ae6743663c1 | refs/heads/master | 2021-01-12T00:40:23.686367 | 2017-02-08T14:01:51 | 2017-02-08T14:01:51 | 81,293,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py |
def find_exchange_rate():
"""This is a simple command line application to convert one currency into the other
using the fixer.io API"""
from urllib2 import Request, urlopen
import json
#taking user inputs
curr1 = input("Convert FROM (e.g USD, GBP):")
curr1 = curr1.upper()
curr2 = input("Convert To (e.g G... | [
"elimushwari@gmail.com"
] | elimushwari@gmail.com |
11cced50a072f7285e48fe1f90871ba4d26499d4 | 00d5c1760d4ec54238e02400683670832f5e0722 | /main.py | 4ddbe04cec6ab7f250dea8dba41609866c60098d | [] | no_license | rafaelandrade/twitter-dataanalysis | c8ddc5a0cd09e74410c074b1de397db4376e7ed5 | 92fcd710266c89b12fad785c59f3679c6c4859ad | refs/heads/master | 2020-09-07T18:00:24.464667 | 2019-11-11T01:06:02 | 2019-11-11T01:06:02 | 220,869,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | #importing library calls tweepy
import tweepy as tw
#credentials
import credentials.credentials as cr
#API - with twitter keys
auth = tw.OAuthHandler(cr.consumer_secret(), cr.consumer_secret())
auth.set_access_token(cr.acess_token_key(), cr.acess_token_secret())
api = tw.API(auth) | [
"rafasouza@protonmail.com"
] | rafasouza@protonmail.com |
dc62c2a6d968f42f6bacae2d04cf425b49f9a6b8 | 383e72352efce1631107ae87138930d92beb4b74 | /web_server/app.py | 1aff8ea31409b4fa28b1f53657f25b5b6029942f | [] | no_license | xeonselina/terminal_tools | bf032a9a886759f5ba7350b24b2d3ea65db99f06 | 72161cec0823b0d6c8262695e0e927b17eca4ce6 | refs/heads/master | 2021-01-11T23:33:48.312841 | 2017-03-31T06:02:51 | 2017-03-31T06:02:51 | 78,601,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,620 | py | # coding=utf-8
import tornado.escape
from tornado import ioloop
import tornado.options
import tornado.web
import tornado.websocket
import tornado.gen
import time
import json
import tornado.httpclient
from tornado.concurrent import Future
import zlib
import os
import requests
import tornado.httpserver
from Connector.Dir... | [
"junming.pan@cimc.com"
] | junming.pan@cimc.com |
315d72af834a6d2b7b8f27b7b1a8abb3749beb4c | ef61c5f177ee44ac08325335fc28a12f3fccbb58 | /multiple_interactors_sample/gyaan/interactors/presenters/dtos.py | 8f079a22414d8b3a6adca3c0fec653af4333e0b6 | [] | no_license | bammidichandini/resource_management-chandini | 3c11c7b2eb5e2f8d3df5b55e4d3ee86a27ed5c3a | aa4ec50f0b36a818bebc2033cb39ee928e5be13c | refs/heads/master | 2022-12-01T19:59:25.366843 | 2020-07-23T09:10:42 | 2020-07-23T09:10:42 | 269,610,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | """
Created on 11/06/20
@author: revanth
"""
from dataclasses import dataclass
from typing import List
from gyaan.interactors.storages.dtos import DomainDTO, DomainStatsDTO, \
UserDetailsDTO, DomainJoinRequestDTO, CompletePostDetails
@dataclass
class DomainDetailsDTO:
domain: DomainDTO
domain_stats: Dom... | [
"chandini.bammidi123@gmail.com"
] | chandini.bammidi123@gmail.com |
caec951e632d67746caf8f1d17a4617f90d38e62 | 9397cb0c035204652fc99554fe848427b5fcb8ab | /hn_hiring_analysis.py | 8e62bf201c5f188db5414a2df423e3c3bcbc2f1b | [] | no_license | iblaine/hn-whoshiring-analysis | bf15bcd6a1838b7bee231a64bd237460ff1f3d83 | 46352014956891819d9b14850227ecf77311554f | refs/heads/main | 2023-07-20T04:02:53.066088 | 2023-07-13T02:26:09 | 2023-07-13T02:26:09 | 384,028,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,320 | py | # %%
import html
import json
import logging as log
import os.path
import re
import sys
from datetime import datetime
from typing import Dict, List, Tuple
from urllib.request import urlopen
import pandas as pd
from dateutil.relativedelta import relativedelta
from pandasql import sqldf
from selenium import webdriver
fro... | [
"belliott@onemedical.com"
] | belliott@onemedical.com |
31ad3cbce963b797afbb69ec236ca012a25b0668 | c807ab961d0dea5eb3936547e843673247639a07 | /Personel/Akshay/python/Assingment_1/2.squareroot.py | 0a55d90b9800dbd85b433f12985729bf1767b510 | [] | no_license | shankar7791/MI-11-DevOps | dbac94ca1fb4627ae44658701bcddcd22c65a3d4 | 63a0a65b05192439575ed2c47a6c3d33c5be87d2 | refs/heads/main | 2023-07-12T20:33:30.121801 | 2021-08-13T03:01:17 | 2021-08-13T03:01:17 | 355,145,424 | 0 | 4 | null | 2021-08-12T19:31:44 | 2021-04-06T10:19:10 | Python | UTF-8 | Python | false | false | 79 | py | import math
a = input("what do you wnat to square root : ")
print(math.sqrt(a)) | [
"akshay.patil5596@gmail.com"
] | akshay.patil5596@gmail.com |
06ef8f522a1f1f2eab2f5e32ce654eb89032fab2 | 486df73bb95a225ee405575aa6915a28f205dc56 | /weblogic_shutdown.py | 8cec55df686ceef6b325b55997dbab5ca904ad15 | [] | no_license | asdg-asdf/pyscripts | 8162ac690bdc472aedcbb4e33eceffe2f24caec0 | 269de7c5f7ec9d2da74790a35bc218d3f6634565 | refs/heads/master | 2021-01-24T04:20:21.898971 | 2019-03-29T08:58:08 | 2019-03-29T08:58:08 | 122,933,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | #!/usr/weblogic/bea/oracle/wlserver/common/bin/wlst.sh
import sys
print "shutdown testappsrv server....."
connect('weblogic','weblogic','t3://localhost:7001')
shutdown('testappsrv','Server','false',1000,'true', 'false')
print "shutdown testappsrv server Success........................"
| [
"noreply@github.com"
] | asdg-asdf.noreply@github.com |
1922f3173afe74ca57b506cdd6eed4c76a7f6572 | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_11/masa_project/branches/masa/hr_recruitment_budget/models/__init__.py | 8ee6f5f30b06f0e3515e4f5c44a97e3c72a8193c | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# NCTR, Nile Center for Technology Research
# Copyright (C) 2018-2019 NCTR (<http://www.nctr.sd>).
#
##############################################################################
from . import hr_recruitment... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.