blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d06e206e8b683c34aafebd71428cc565b30b695e | f181a143fdb57a972fa6328d431e7828ac3cb419 | /customer/migrations/0001_initial.py | 19ec942e63ae1c14704ffd11082eca6202c52d7b | [] | no_license | VaibhaviShewale/betterclean | 2157601c3a92dbabf574879c16bdfcbdd0dbdc9d | 91b23e97aa4b73b3e6072f142dfef319a8d90e50 | refs/heads/master | 2023-09-02T02:00:25.200782 | 2021-10-24T07:34:03 | 2021-10-24T07:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # Generated by Django 3.2.2 on 2021-10-14 06:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ReviewData',
fields=[
('id', models.BigAuto... | [
"kunalumaji@gmail.com"
] | kunalumaji@gmail.com |
05fba388f75094a68827032ee32db261d37e6a53 | 64acb957de11ee4cd5e7b2f606066d26c63be004 | /gan/my_dataset.py | 5d93089d77083db80904804c7bb817f77389bb10 | [] | no_license | oycq/complete_image | 9cb6008e1bae2cccc0791c1b9a5f9f5df98372fc | 0c34559637b85a4754b41581fd38837129af1f70 | refs/heads/master | 2020-12-05T06:06:30.808884 | 2020-01-19T16:18:23 | 2020-01-19T16:18:23 | 232,030,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | import cv2
import glob
import os
import numpy as np
import random
import torch
from torch.utils.data import Dataset
from torch.utils import data
L = 640
D = 320
def get_object_box_color(obeject_id):
b = (obeject_id // 9 - 5) * 30 + 150
g = (obeject_id % 10 - 5) * 30 + 150
r = (obeject_id % 9 - 5) * 30 + ... | [
"490746960@qq.com"
] | 490746960@qq.com |
13ef81d0170c88304adc0fe294d740fb507ae0ef | 7755efce8e5ec81943ceb491590fae29eaad798a | /Codecademy Lesson 3 Control Flow/L3.5_Boolean_Operators_And.py | 8413b9f09629808f478ec877dbcf37d340a3cfe0 | [] | no_license | jashidsany/Learning-Python | 01b3f2f207dfdf6d31f9ca9f5abd38aab710ba1d | 2c9926fd1b159441cbe8e9e30f0804d99b936573 | refs/heads/main | 2023-02-20T03:59:15.123009 | 2021-01-25T01:12:19 | 2021-01-25T01:12:19 | 319,205,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | statement_one = (2 + 2 + 2 >= 6) and (-1 * -1 < 0)
print(statement_one)
statement_two = (4 * 2 <= 8) and (7 - 1 == 6)
print(statement_two)
def graduation_reqs(gpa, credits):
if gpa >= 2.0 and credits >= 120:
return "You meet the requirements to graduate!"
| [
"noreply@github.com"
] | noreply@github.com |
a49a3a9df059178fcfcbfe92c216811392ccc507 | b8496da85857892f9ce663d3c7274f7c21bef1a9 | /Alexa 2.0.py | 584b1cc036ee8da6ffa0b9ba774e4dbd30cde631 | [] | no_license | subham-misra/Alexa | 193f493b56c67c8e3c8e1ba3b02a9f097328c76b | 20bf7d399113b0fb09b24554a4a3d34b0ee1c90c | refs/heads/main | 2023-06-29T16:43:22.673053 | 2021-07-28T16:04:55 | 2021-07-28T16:04:55 | 390,411,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,754 | py | import speech_recognition as sr
#import pywhatkit
import wikipedia
import datetime
import sys
import pyjokes
import pyttsx3
import webbrowser
import os
from PyQt5 import QtWidgets, QtCore, QtGui
from PyQt5.QtCore import QTimer, QTime, QDate, Qt
from PyQt5.QtGui import QMovie
from PyQt5.QtCore import *
from... | [
"noreply@github.com"
] | noreply@github.com |
c348b8fbf62271f2569db6ac5e932e2083f492cd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02687/s366330739.py | 8212de878e4731ef97587ca957ac1639f31d7b1e | [] | 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 | 148 | py | # A - A?C
# 'ABC'には'ARC'を、'ARC'には'ABC'を返す
S = str(input())
if S == 'ABC':
print('ARC')
elif S == 'ARC':
print('ABC')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7eea268ae57a352984eaf5f57eb88b9296a428b9 | 90f178bccfc0c26039b19aea9a9076555d2015b0 | /crawling_e_commerce/settings.py | 271fc097a4d5fd5b0cda7a031d07455b433bddee | [] | no_license | KoTA208-2017/crawling-ecommerce | fdb274051727631c9b2f7e8e53c221b6a32af62c | 02febc39acea26b4dc132a9a07e444f81176dbb1 | refs/heads/master | 2022-11-23T16:00:01.912938 | 2020-06-14T14:15:13 | 2020-06-14T14:15:13 | 262,975,653 | 0 | 1 | null | 2020-06-14T14:15:15 | 2020-05-11T07:52:11 | Python | UTF-8 | Python | false | false | 3,374 | py | # -*- coding: utf-8 -*-
# Scrapy settings for crawling_e_commerce project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/e... | [
"mufida.nuha.tif17@polban.ac.id"
] | mufida.nuha.tif17@polban.ac.id |
e7e53ac52d511c29a75377854f965c7a431e0eb2 | 4fc3f48e874d96046585bfa7c6adec22beaa22d1 | /barrierOption_pricing.py | f7be53cc9c6bc17b23c59a9bfad31a9237d571cd | [] | no_license | amosgPyt/optionPricing | 6f969aa5855a0b456264c4a4f02b14e3b35ffb81 | 397a001cd3c2259bfa69bd282e17e3d0e665734e | refs/heads/master | 2020-09-05T16:12:12.597001 | 2019-10-17T07:58:51 | 2019-10-17T07:58:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,665 | py | ###################################################
# -----------package-----------load-----------######
###################################################
import math
from scipy.stats.distributions import norm
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from random import seed, gauss
from ... | [
"499123398@qq.com"
] | 499123398@qq.com |
3ce273ff7c46fa17acd4b7832d4e488d178af564 | c5278643c1df2a0c1a83156f764ba7b2ebcc8cb8 | /hc/api/tests/test_pause.py | e6c3d4142b8b6977190901b14f8e040aea1f06a6 | [
"BSD-3-Clause"
] | permissive | protostartup/healthchecks | a5757584c4506282d488aff207676f54241c975c | 25e48f1b9fff10866e4d6a0f875912527a5160bc | refs/heads/master | 2020-04-11T15:24:42.495688 | 2018-12-14T16:58:35 | 2018-12-14T16:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | from hc.api.models import Check
from hc.test import BaseTestCase
class PauseTestCase(BaseTestCase):
def test_it_works(self):
check = Check(user=self.alice, status="up")
check.save()
url = "/api/v1/checks/%s/pause" % check.code
r = self.client.post(url, "", content_type="applicati... | [
"cuu508@gmail.com"
] | cuu508@gmail.com |
6cef1edb21f6590ba2daacb940e5c1c977acda84 | fe053b6315d7c4bcc763168b1af98b7efc7d4c9d | /04.Chapter4.py | e88659ad66289b7013371aa3cbb862a48dc1e801 | [] | no_license | nathanworden/learning_python | a07937351b58c48dad7541c08208260839b244b7 | 6d6471673e35fb6bddb4703260cd85435256c384 | refs/heads/main | 2023-06-14T04:38:47.385506 | 2021-06-27T15:12:24 | 2021-06-27T15:12:24 | 363,701,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # Everything is an object in a Python script
# Python programs can be decomposed into modules, statements, expressions, and objects
#1 Programs are composed of modules
#2 Modules contain statements
#3 Statements contain expressions
#4 Expressions create and process objects | [
"worden.nathan@gmail.com"
] | worden.nathan@gmail.com |
d3854df5c0cfad528f8a66d04ee219f3398b3031 | f572e0a4b843ed3fd2cd8edec2ad3aab7a0019d3 | /ows/wcs/v20/exceptions.py | 8b2d542a5baad97f4eec81ecbf70515ef3aeeb76 | [
"MIT"
] | permissive | EOxServer/pyows | 9039c8ed7358c98d736e2b8fd9f47be944f0b0a1 | e09310f992d6e69088940e9b5dbd7302f697344b | refs/heads/master | 2022-10-09T23:27:43.884159 | 2022-10-04T10:03:25 | 2022-10-04T10:03:25 | 218,005,699 | 1 | 1 | null | 2022-01-04T13:36:06 | 2019-10-28T09:01:51 | Python | UTF-8 | Python | false | false | 3,719 | py | # ------------------------------------------------------------------------------
#
# Project: pyows <http://eoxserver.org>
# Authors: Fabian Schindler <fabian.schindler@eox.at>
#
# ------------------------------------------------------------------------------
# Copyright (C) 2019 EOX IT Services GmbH
#
# Permission is ... | [
"fabian.schindler.strauss@gmail.com"
] | fabian.schindler.strauss@gmail.com |
f3dadbe55dd50c162510c82e57373c2044e4a8ca | 901a79e83628de1334281bfeef21a4cc67e520cf | /mysite/settings.py | 7eb7760b57beed08eefe01bb01b2d818778c549d | [] | no_license | spshah18/mediumeditordemo | 32a5ae860b722c4e36e7d09ec1ed1f63baacacce | 81fd953f4025ce257c1b94d08012c4fef26fdb97 | refs/heads/master | 2020-05-19T15:49:48.915198 | 2019-05-05T23:05:35 | 2019-05-05T23:05:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,259 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Bu... | [
"spshah18@asu.edu"
] | spshah18@asu.edu |
721b5a8403681de0d88555628173820df82670b2 | 34077c4b546c9a98ba2cedc58061508c91315227 | /carreira-python/python3/jogos/venv/Scripts/easy_install-script.py | bb22315c9bfa62bfa7ca397e34d7f27ed62f69c4 | [] | no_license | CodexZombie/EstudosWeb | c068aa3e7f00fa234f46198078b7cc386fd5beac | 6206ddb453a4713dd114e20709e7349639258e74 | refs/heads/master | 2021-07-05T08:41:25.667408 | 2019-03-20T03:14:05 | 2019-03-20T03:14:05 | 144,349,746 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!D:\EstudosWeb\carreira-python\python3\jogos\venv\Scripts\python3.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__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\.p... | [
"walvesdg@gmail.com"
] | walvesdg@gmail.com |
7a0ca2decb249fa1a7a0d3111f4bf6b46ae338d1 | 0a4f8db07dcb9070a8c5c05d6d56022d5c47a182 | /bnnip/utils.py | a209d657a59fc3e64b1e77716796121adcf2189e | [
"MIT"
] | permissive | lekah/BNNIP | c5016d4f45bda49ca8bfc059f8a1b9781d41c429 | fd62b94fb36167be045f0489f932a120f3391373 | refs/heads/main | 2023-08-21T15:34:17.138593 | 2021-09-22T14:17:24 | 2021-09-22T14:17:24 | 409,231,050 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | import torch
from torch.nn.utils.convert_parameters import _check_param_device
class AttributeDict(dict):
"""
Utility to allow ad.foo to access values inside dictionary
"""
def __getattr__(self, attr):
return self[attr]
def __setattr__(self, attr, value):
self[attr] = value
cla... | [
"kah@zurich.ibm.com"
] | kah@zurich.ibm.com |
b1231c2090737f0873c547c84671ce743af50fc3 | 2801515040ce99a8947cf624602ff47c9cd41c7c | /pylifter/recycle/xlsxReadData.py | 955ae228064488ed71a4c9aa15db7b6c48ee9281 | [
"Apache-2.0"
] | permissive | yindaheng98/LittleProgramSet | 9bf789d0b3cd127ebdc2f808ad9b4d1b2607912f | e45d76c5f082ec91def63089f5a10473b6762cf1 | refs/heads/master | 2023-01-09T09:31:27.570710 | 2022-12-27T14:53:07 | 2022-12-27T14:53:07 | 183,003,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | import xlrd
from datetime import datetime
from recycle.xlxsDatetimeToTuple import xlxsDatetimeToTuple
def xlsxReadData(engine, table_name, path, sheetnum=0):
# 将path路径的excel表格中的数据读入engine所对应的数据库
workbook = xlrd.open_workbook(path)
sheet = workbook.sheet_by_index(sheetnum)
for i in range(1, sheet.nrows)... | [
"yindaheng98@163.com"
] | yindaheng98@163.com |
3c42b23c08e4c916bb8fcd17e2521c2594420d2a | 5e249f607779c9989b47dd0564c0076cef9814f5 | /utils/datasetfolder.py | 724c89ea1c927b345ccb678e567db1b99847120f | [] | no_license | khtao/yolov3-pytorch | 3aee19487ae9e96a29d25245e3f450006e7c3789 | cc145c86b19f7e3fc411d24beb7c4be4565e793f | refs/heads/master | 2020-03-24T00:38:28.614370 | 2018-07-25T13:06:49 | 2018-07-25T13:06:49 | 142,300,546 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | from torch.utils.data import dataset
import os
import cv2
import numpy as np
from utils.utils import list_file_tree
class PathologyDataset(dataset.Dataset):
"""Face Landmarks dataset."""
'''
./dataset/
train/
neg/
pos/
test/
neg/
pos/
'''... | [
"noreply@github.com"
] | noreply@github.com |
8553f0c871bde12dbc816afa5fefb05a875b926d | af936a771867fe4a7e88cdbf093629af931327ff | /deeptxt/optimizers/adagrad.py | f48870f45bcae95f88fd289f34bec3622551bd1c | [] | no_license | shamilcm/deeptxt | 2055e0ff92c408ed7dbf6316a72b4af207def239 | e6dbe0af0e2e79f677f7844a7cf8fce87358b671 | refs/heads/master | 2021-01-20T02:38:03.461863 | 2019-11-06T08:44:08 | 2019-11-06T08:44:08 | 89,433,823 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | from __future__ import absolute_import
import theano
from theano import tensor as T
from .optimizer import Optimizer
from ..nn.initializers import Initializer
class Adagrad(Optimizer):
"""
Adagrad optimization
Implementation of the Adagrad optimization algorithm
# Arguments
learning_rate: ... | [
"shamil.cm@gmail.com"
] | shamil.cm@gmail.com |
cf062af05f153d4fa76712fd18e2a330faa64eee | 2436f3f3dcb0a017965279076954a9a8c96b743c | /Main.py | 72dff42ed030c124c8990d7454998c4a84aa0eeb | [
"Apache-2.0"
] | permissive | samuelterra22/Data-Mining | f9187f4d9e52024e724ea37887c4d61032967401 | 0237bc6e86f28f7bf1306dfb60c41987f5e41bbd | refs/heads/master | 2021-08-31T10:14:38.918181 | 2017-12-21T01:59:47 | 2017-12-21T01:59:47 | 114,924,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import scipy.stats as stats
import seaborn as sns
from matplotlib import rcParams
import statsmodels.api as sm
from statsmodels.formula.api import ols
df = pd.read_csv('kc_house_data.csv')
# print(df.head())
# print(df.isnull().any())
# print(df.d... | [
"samuelterra22@hotmail.com"
] | samuelterra22@hotmail.com |
d4e0bae3805afbac2f13e7fb4aaa6af639b860f7 | 297497957c531d81ba286bc91253fbbb78b4d8be | /testing/mochitest/pywebsocket3/mod_pywebsocket/util.py | 351ca9fac84852ce0760931431fd2b91c8ebd766 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 10,317 | py |
"""WebSocket utilities."""
from __future__ import absolute_import
import array
import errno
import logging
import os
import re
import six
from six.moves import map
from six.moves import range
import socket
import struct
import zlib
try:
from mod_pywebsocket import fast_masking
except I... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
787f762d601d2ee8abd53a212a90c0eb7f9d1280 | 3371732de453ca47ef00619a7bbb3a1a67b5ed90 | /usuarios/views.py | 735ff8c8dbd5fda7ac5501056190dd5afd394d34 | [] | no_license | LuisCatasus/Django_Models_User | 0eb545c6964d7dbff806167dbbdca22c4951b49f | d58f54505dd00fca73090259e5304c8cf35af8c6 | refs/heads/master | 2023-04-01T06:49:42.514577 | 2020-08-02T00:43:13 | 2020-08-02T00:43:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.views import View
from usuarios.forms import CustomUsuarioCreateForm
from usuarios.models import CustomUsuario
from django.contrib import messages
def register(request):
if request.method == 'POST':
form = CustomU... | [
"matheusmonteiroalves@id.uff.br"
] | matheusmonteiroalves@id.uff.br |
75f729bc861f9e09e111d25926334f32e7145824 | 099deeb2c308bdc00a2c423743e4b2aacdac866c | /week1/searching_lyrics/youngyun.py | ba410784e8f79a376a70247b82107a7c61ea8364 | [] | no_license | Joonsun-Hwang/coding-test-study-lamda | 76fed2f18a3220f6731775984425dff49b4379eb | 0632ec9dd60024203ed10ebeab07aa7da4782806 | refs/heads/main | 2023-05-01T21:31:48.174944 | 2021-05-05T09:48:23 | 2021-05-05T09:48:23 | 329,205,708 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | # 지나치게 코드가 길며 시간복잡도도 상당히 좋지 않음 글자를 하나하나 맞춰보는 경우 O(n^3)인 경우도 생성됨
def solution(words, queries):
answer = []
print(words)
for query in queries:
match = 0
for word in words:
flag = True
j = 0
i = 0
if len(word) != len(query): # 애초에 길이가 다르면 비교 가치... | [
"fightnyy@naver.com"
] | fightnyy@naver.com |
aec98a6c7f1944baa6fd27a6ecf9f0ca61fb45e8 | cfa632132cd29a0b58e7f45b441ea4f62b0f5eba | /flytekit/models/admin/workflow.py | 91e82252b40cf9f189066fa756e314dbf9e671ad | [
"Apache-2.0"
] | permissive | chixcode/flytekit | 5b4f2e687e82a0d6527411afcdaf0929a94adb13 | f901aee721847c6264d44079d4fa31a75b8876e1 | refs/heads/master | 2020-08-24T00:06:02.808187 | 2019-10-14T18:34:19 | 2019-10-14T18:34:19 | 216,729,272 | 1 | 0 | Apache-2.0 | 2019-10-22T05:22:01 | 2019-10-22T05:22:00 | null | UTF-8 | Python | false | false | 3,275 | py | from __future__ import absolute_import
from flytekit.models import common as _common
from flytekit.models.core import compiler as _compiler_models, identifier as _identifier
from flyteidl.admin import workflow_pb2 as _admin_workflow
class WorkflowSpec(_common.FlyteIdlEntity):
def __init__(self, template):
... | [
"matthewsmith@lyft.com"
] | matthewsmith@lyft.com |
b3afe55fffeda671f0363abb51fa4c1e66106c94 | 79ed3f72555aad8548634f523f775f34cfe166e7 | /catch/datasets/hag1.py | fdae6eb661d5e4cfaa9398d0e382898e7a03c753 | [
"MIT"
] | permissive | John-Bioinfo/catch | a2ab188ed598767e7759f74227f24af2b284b379 | fe63b86bc41396c1da0b449ac440c6ae9e52b2c5 | refs/heads/master | 2020-03-18T09:29:10.315733 | 2018-04-17T18:36:47 | 2018-04-17T18:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | """Dataset with 'Human associated gemyvongvirus 1' sequences.
A dataset with 2 'Human associated gemyvongvirus 1' genomes.
THIS PYTHON FILE WAS GENERATED BY A COMPUTER PROGRAM! DO NOT EDIT!
"""
import sys
from catch.datasets import GenomesDatasetSingleChrom
__author__ = 'Hayden Metsky <hayden@mit.edu>'
ds = Geno... | [
"hmetsky@gmail.com"
] | hmetsky@gmail.com |
8bcc40ad696dc14b4d851289c506cf12e3278b8b | 6c7a9e4bca9828325219cfca420dae8567bd180d | /code/lib/dataset/__init__.py | 66ee71bb3c8bfb0381f5bebb5c69546754e49c5d | [] | no_license | PYGang/lumbar_project | b91717b6c3174de753da2afb56232c95cd6b0c8f | a8531aa3a87237a454ab7ac663906824e487ec06 | refs/heads/master | 2022-12-14T23:57:01.848387 | 2020-08-23T06:53:05 | 2020-08-23T06:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __futu... | [
"lianjunwang@sf-mail.com"
] | lianjunwang@sf-mail.com |
e51ebc17d32c53b6a368d0019d094b269df2bf23 | e44d77c4d22a9cd0aa0a536d6d4e522359eedc81 | /trialscompendium/trials/api/urls.py | eb740a50c49131d2158a35228430de7d7ed74501 | [
"MIT"
] | permissive | nkoech/trialscompendium | cfd3f65a88a32e3f71bc27cba6a4ae777e319af4 | 9cd2c28a22957b84d97d87eb6b7b9b1b8616bacb | refs/heads/master | 2021-01-01T04:54:18.162744 | 2018-04-17T15:40:05 | 2018-04-17T15:40:05 | 97,270,861 | 2 | 2 | MIT | 2018-02-15T09:48:23 | 2017-07-14T20:36:19 | Python | UTF-8 | Python | false | false | 1,414 | py | from django.conf.urls import url
from .views import (
plot_views,
trial_yield_views,
treatment_views,
)
# Treatment URLs
urlpatterns = [
url(
r'^treatment/$',
treatment_views['TreatmentListAPIView'].as_view(),
name='treatment_list'
),
url(
r'^treatment/create/$',... | [
"koechnicholas@gmail.com"
] | koechnicholas@gmail.com |
5dc9f34b4e005f45a1c293e238160b432f5820c1 | 82aba914cce06de513f72824c5a3d18ae3646da4 | /Triples_of_Latin_Letters.py | a368a8137f57a397a62f7a3a9536ed466f4dc35d | [] | no_license | Kyanit3/Programming-Fundamentals | 7c6180ea71a181b7f2ed3e751498390c50d70230 | 7b4af39e96c1cb2b8f4cca658ac57fe2aeccb9e5 | refs/heads/master | 2022-12-11T14:40:28.127063 | 2020-08-11T18:27:49 | 2020-08-11T18:27:49 | 267,403,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | num = int(input())
for i in range(0,num):
for k in range(0,num):
for j in range(0,num):
print(f"{chr(97 + i)}{chr(97 + k)}{chr(97 + j)}")
| [
"georgipetrow00@gmail.com"
] | georgipetrow00@gmail.com |
761d376738dff5065eb205f52483975c3895404c | 11e3ca0f8332835bd28ed69b20729079d071289c | /devel/lib/python2.7/dist-packages/custom_sys_msgs/msg/_TrackPathActionResult.py | 53fa8b36dc54d0f018d69916ce9299010e3403e2 | [] | no_license | huan-holmes/roswrok | 7d90cdb97f3b8af849968de0e498df64448454bd | 3d7b15cd53a5f14e40538c1b8fc330e96ae8d379 | refs/heads/master | 2022-12-08T13:12:31.850804 | 2020-09-08T01:47:38 | 2020-09-08T01:47:38 | 293,672,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,026 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from custom_sys_msgs/TrackPathActionResult.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import custom_sys_msgs.msg
import genpy
import actionlib_msgs.msg
import std_msg... | [
"1124782663@qq.com"
] | 1124782663@qq.com |
1a9adb679879e2543ec9b2ab25ece1e16b986fb3 | d569476dd95496339c34b231621ff1f5dfd7fe49 | /PyTest/SampleWebsite/tests/Pages/FeedbackForm.py | 9cd2c00d4dbc8431b3b190dfb5b56ffb0c4b290f | [] | no_license | monteua/Tests | 10f21f9bae027ce1763c73e2ea7edaf436140eae | 553e5f644466683046ea180422727ccb37967b98 | refs/heads/master | 2021-01-23T10:28:49.654273 | 2018-05-09T09:11:30 | 2018-05-09T09:11:30 | 93,061,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,914 | py | from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.common.exceptions import NoSuchElementException
#page URL
base_url = "CLASSIFIED"
# page locators
page_logo = "logo"
company_moto = "//*[@class='col-xs-8 align-center']//p"
company_name = "//*[@c... | [
"arximed.monte@gmail.com"
] | arximed.monte@gmail.com |
bc29b15eabbd22e4af5e1f1da7d7846fe6fa794d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_387/ch136_2020_04_01_12_06_52_438302.py | 5a78febe80669c25bdb2163ef7afb2a5b120d898 | [] | 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 | 1,151 | py | import random as rnd
def dicas(soma):
num1 = int(input('Primeiro número: '))
num2 = int(input('Segundo número: '))
num3 = int(input('Terceiro número: '))
nums = [num1, num2, num3]
if soma in nums:
return("Está entre os 3")
else:
return("Não está entre os 3")
dado1 = rnd.randin... | [
"you@example.com"
] | you@example.com |
1b748902903c60969cc84f3c2ff0c43c78765de4 | 03e1bef3d11a7b925b43b18f002c74ffd82d170c | /caffe2/python/layers_test.py | 77918792a46a814f8fff3ea91477245fdf0efeee | [
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | ConeyFly/caffe2 | 7f921816e9585ec2a49889d2500be50b4e0c9c8b | bcf8f149b3bf05611c7f7e1c769b75f5bc49cdc7 | refs/heads/master | 2021-01-01T04:04:23.326615 | 2017-08-19T01:19:21 | 2017-08-19T01:19:21 | 97,118,593 | 0 | 0 | null | 2017-07-13T12:08:39 | 2017-07-13T12:08:39 | null | UTF-8 | Python | false | false | 32,695 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import hypothesis.strategies as st
import numpy as np
import numpy.testing as npt
from hypothesis import given
import caffe2.python.hypothesis_test_util as hu
from caff... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
d419c397527157686280ea0cda0a32752c3dde98 | 84f9ca2161b9a260a55a8b6e1f4efc8de6bacb15 | /contrib/devtools/fix-copyright-headers.py | 9c92ed907755eaa37de348fba25e82559d974e9f | [
"MIT"
] | permissive | fngtrade/firstcoin | 1d2352e5c87593d2d51fd78ba4c7ddcc5e89bbb1 | d7ee42952bd611c62a83154151ec883e23f8593a | refs/heads/master | 2021-05-12T10:28:26.167239 | 2018-01-13T15:26:39 | 2018-01-13T15:26:39 | 117,353,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | #!/usr/bin/env python3
"""
Run this script to update all the copyright headers of files
that were changed this year.
For example:
// Copyright (c) 2009-2012 The FirstCoin Core developers
it will change it to
// Copyright (c) 2009-2015 The FirstCoin Core developers
"""
import subprocess
import time
import re
CMD_GI... | [
"fstc@protonmail.com"
] | fstc@protonmail.com |
2df191702adc5996c9ef206f9f4573764fa97117 | dacbed71189512ae874c39084c3e46a628aac71b | /askisi6.py | 7f0f9b8f84538cabdb363b3830674a27f1909f1d | [] | no_license | StratisZx/ErgasiaPatsaki | da8f10a54e40a83df6bc3fee5ef95cf7fe2fbaeb | 9fd183f27dfeb7871f07734c27482364ddf9eaca | refs/heads/master | 2020-04-22T18:13:46.451202 | 2019-02-14T06:42:57 | 2019-02-14T06:42:57 | 170,570,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,849 | py | import random
import re
import time
from string import ascii_lowercase
def setupgrid(gridsize, start, numberofmines):
emptygrid = [['0' for i in range(gridsize)] for i in range(gridsize)]
mines = getmines(emptygrid, start, numberofmines)
for i, j in mines:
emptygrid[i][j] = 'X'
grid = getnu... | [
"noreply@github.com"
] | noreply@github.com |
a851acd9da4bc6fa17af7afb1b7034c4c9c89e31 | c84c8cf40782823774a99c4c011356bc26b91717 | /code/LDA_initial_out.py | a89933f1bb393d72c214ab3499714848572d7839 | [] | no_license | karlroush/WF_CAC_2019 | 26e872ff7ccbc9b578205eadab494ec2e752326c | 3b558f838c39202440d33bc0553258888323ffe7 | refs/heads/main | 2023-07-11T01:39:33.487894 | 2021-08-12T00:13:39 | 2021-08-12T00:13:39 | 395,116,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # -*- coding: utf-8 -*-
"""
This file outputs the data from the initial LDA analysis
@author: kroush7
"""
from config import *
import csv
def LDA_output(res_topic_num, res_subtopic_num, IDs, res_score, res_subscore):
# print(IDs)
# print(res_score)
data=[['topic', 'sub_topic','dataset_id', 'topic_confidenc... | [
"karl.roush+github@gmail.com"
] | karl.roush+github@gmail.com |
1ff7150d441748700bb9d35cdfb5b9a96f31d079 | 052978b67ae2ae27bb35e3c5323ca66038e51b9c | /stProject/Btx/venv/Lib/site-packages/elasticsearch/client/cat.py | 441e2e88b29d11a7aed7d4a2ddf8897770ae0552 | [
"Apache-2.0"
] | permissive | AliTaheriNastooh/someTempCode | f01018f2f1bdb72b74c2f5931ca5702ba9ca1833 | e5a25b25a408925cee3916be4dadd60d87086470 | refs/heads/master | 2021-01-05T07:33:16.719927 | 2020-09-08T17:29:25 | 2020-09-08T17:29:25 | 240,933,752 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,997 | py | # Licensed to Elasticsearch B.V under one or more agreements.
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information
from .utils import NamespacedClient, query_params, _make_path
class CatClient(NamespacedClient):
@query_params(... | [
"r.baharlooei@yahoo.com"
] | r.baharlooei@yahoo.com |
1fac3a8023554ce28625fcba3dd2aa11dd2a10c3 | 7438ab37ee53088114c875592ba8c4a995b6ffdf | /prog_b6/prog_b6_Raul.py | 6dca6da1d87c2a8aebc3867b554ff174794f3a18 | [] | no_license | accuray/programas_b | 239d37e2a11023619cbe66e3e17eecd4654c1db7 | bb1ceddae6a37bae55469a0200cde753bcb10ae3 | refs/heads/master | 2023-02-15T15:42:48.771039 | 2021-01-10T01:22:00 | 2021-01-10T01:22:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | '''
Usuario: Raúl @spleyades (en Telegram)
Detalles: Crea un programa que imprima en pantalla la si el dispositivo host
tiene conexion a internet
'''
import os
import platform
def hay_conexion_internet():
conectado = False
# Uso el comando ping para acceder a un servidor siempre activo, en este
... | [
"70590945+AprenderPython@users.noreply.github.com"
] | 70590945+AprenderPython@users.noreply.github.com |
d935ec322e374a79355eca8bdc598cb4f8ae4d41 | c4506383b9d556170376d5230fef69f0ead36a86 | /Flask/elastic_search/data.py | a2a0fb5ad8a2c6877b4298d63ef1284dbe50be2d | [] | no_license | HackRx2-0/ps1_gecko | 18840c916fc77fba1a57fd3d4f960b728b91e49b | 398c199b01aec945b1e967f1bced51fa1d2ec051 | refs/heads/main | 2023-06-21T01:03:35.011088 | 2021-07-25T12:14:07 | 2021-07-25T12:14:07 | 388,513,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74,742 | py | class Data:
def __init__(self):
data = [
{'title': '5 Personal Finance Tips That Will Help You Manage Your Money Better', 'content': '\n \n <p style="text-align: justify;">Cracking the code to personal finance may not seem easy at first. But if you have the right tips guiding you, you’ll find ... | [
"noreply@github.com"
] | noreply@github.com |
7e8b533133d8b487bd8221442c8f76305895f087 | f2d8654b2dfb327a0970b6115fa450df2ca05faf | /pyduplicate/data/const.py | 4a891e5fe47da3cff045d8a71d20de934da589c2 | [
"MIT"
] | permissive | Clement-O/python-duplicate | 7c5549ed0fe28e0fb9c444e56e87ee992acd18ae | 4505076567a7cd8cc0904a6e0ca21f26c6c9dd2d | refs/heads/master | 2020-07-13T20:24:34.505175 | 2020-02-02T15:39:35 | 2020-02-02T16:10:14 | 205,147,959 | 0 | 0 | MIT | 2020-01-12T17:41:10 | 2019-08-29T11:29:17 | Python | UTF-8 | Python | false | false | 74 | py | UNIQUE = 'unique'
DUPLICATE = 'duplicate'
CREATE_UNIQUE = 'create_unique'
| [
"o.clems@hotmail.fr"
] | o.clems@hotmail.fr |
0f4aaf1913e904c2aa767b8653cd38ce34ff30bf | 18eef6419da5721139df45b92c7557dbfa654347 | /apps/users/migrations/0004_auto_20180529_2258.py | 40546c416a804fa94b82a01a3ea68690b306a82b | [] | no_license | taoing/pymx | a36989f805c760b535954a0056dcbd8180b32ea3 | 3f24b8d417f1c1896cab73c623ab9774807f520d | refs/heads/master | 2020-03-18T20:58:37.435126 | 2018-06-09T15:16:49 | 2018-06-09T15:16:49 | 135,250,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | # Generated by Django 2.0.3 on 2018-05-29 22:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20180529_1658'),
]
operations = [
migrations.AlterField(
model_name='user',
name='address',
... | [
"="
] | = |
f0ac9ae13d2122d7c283b67e7d26a9210686fa38 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/fiftyPercent/rank_4q5e_G.py | afe9e17d1c84d179371c4fcf47787fee1df0ea11 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,390 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
5e7091b272e1c54fd1d9e6183d695cda270d7e0f | bd24225084894aa7e40f9d37f84b1e5d8da0cb1c | /python_basics/src/fundamentals/f_15/FileIO.py | a9395c9bea7cf791fb2402df8f6d2829160dfede | [] | no_license | rajiv0903/Python | 42baa696027eed9796853c7081553ece65350453 | 7bc6e377bb2d4b0906df03df84b149acfe7e08ce | refs/heads/master | 2020-03-27T08:18:58.310239 | 2018-11-14T16:01:05 | 2018-11-14T16:01:05 | 146,243,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | '''
Created on Aug 12, 2018
@author: rajiv
'''
import sys
#Default Encoding
print(sys.getdefaultencoding())
#Writing text to file
f = open('wasteland.txt', mode='wt', encoding='utf-8');
f.write('what are the roots that clutch, ');
f.write('what branches grow\n');
f.write('Out of this stony rubbish? ');
f.close();
... | [
"rajiv.juprod@gmail.com"
] | rajiv.juprod@gmail.com |
463d3021e5c445bf421f70d66e3b6bd3b076fa33 | 68d190c5a6873abc8c245fd13341842a2bd2dd23 | /QulaificationRound/Q3.py | 82c5931e06a660df5c72c3b36a03987b4f3aa42e | [] | no_license | algostructures/GoogleCodeJam | cd5c8efca423580ef469b479a41638369c9a351f | 15783f19bc4934aed5ba8fec060e87103600cf88 | refs/heads/master | 2021-01-20T02:28:36.892814 | 2016-06-26T03:44:38 | 2016-06-26T03:44:38 | 57,599,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,926 | py | #-------------------------------------------------------------------------------
# Name: Google CodeJam Probelem 3(Coin Jam)
# Link: https://code.google.com/codejam/contest/6254486/dashboard#s=p2
#
# Author: Saurabh
#
# Created: 09/04/2016
# Copyright: (c) Saurabh 2016
# Licence: <your licence>
... | [
"noreply@github.com"
] | noreply@github.com |
762bbd897e6f2e90c32606aa1aa9c01022761f67 | 27a4eaa9b7052d3d65dd6c63952ac3055c73fbf0 | /ztst/tweet_100th.py | 1d0d4b8246f3b8f2602b011ce8729e61c5b6ef7b | [] | no_license | tobby2002/vec4ir | 84f4695dc0a58f6cca6aff3c970167893a5d8c68 | 8acd1e91cd9eb0a8625bdf18cc3c37d2b7cc2a44 | refs/heads/master | 2021-06-19T20:42:15.913189 | 2021-03-21T10:31:35 | 2021-03-21T10:31:35 | 190,150,202 | 0 | 0 | null | 2019-06-04T07:19:09 | 2019-06-04T07:19:09 | null | UTF-8 | Python | false | false | 1,135 | py | from sklearn.feature_extraction.text import TfidfVectorizer
words = ['the cat sat on the mat cat', 'the fat rat sat on a mat', 'the bat and a rat sat on a mat']
tfidf_vectorizer = TfidfVectorizer(min_df=1, use_idf=True)
tfidf_matrix = tfidf_vectorizer.fit_transform(words)
terms_name = tfidf_vectorizer.get_feature_names... | [
"tobby2002@gmailcom"
] | tobby2002@gmailcom |
8e16e0bd7871dd557df86e72052bdcb86cadbeb7 | 34dcc580c301efc5796fcf08b36a75df402fb988 | /examples/test_neuro/scripts/neuro_strong.py | f39ddb1333d39bf23100279d4153051fdf0d30eb | [
"MIT"
] | permissive | riadhou/PASC_inference | a520a23ee20c35e46bfd84201c67da2434244066 | de66682f07b65dd21c7ada2fda05f21156e8cf6d | refs/heads/master | 2021-09-28T02:50:11.315746 | 2018-11-13T16:46:37 | 2018-11-13T16:46:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,230 | py | #
#
#
# import my stuff
from common_batch import write_batch
from common_batch import commit_batch
from common_batch import show_jobs
import os, shutil, sys, getopt
# parse input arguments
if len(sys.argv) < 2:
print 'neuro_strong.py <epssqr>'
sys.exit()
epssqr = sys.argv[1];
spgqpsolver_eps = "1e-6";
proble... | [
"lukas.pospisil@vsb.cz"
] | lukas.pospisil@vsb.cz |
396e5b33aa1c7bb304b0785bb82b1573c352d6c1 | 5598c24e484177d6a5b0772013247e3118c6dcf1 | /spatialmath/base/__init__.py | 8546e1251ff85aa70bc62e59f7205d645f82cc31 | [
"MIT"
] | permissive | krenshaw2018/spatialmath-python | 587136040267984cd6a431eaae3e89c8d740a7f9 | 95629b378422d58a4c77c62ebf3b189ef7a42824 | refs/heads/master | 2023-03-28T21:14:03.992328 | 2021-04-06T10:36:53 | 2021-04-06T10:36:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,058 | py | # Part of Spatial Math Toolbox for Python
# Copyright (c) 2000 Peter Corke
# MIT Licence, see details in top-level file: LICENCE
from spatialmath.base.argcheck import * # lgtm [py/polluting-import]
from spatialmath.base.quaternions import * # lgtm [py/polluting-import]
from spatialmath.base.transforms2d import ... | [
"peter.i.corke@gmail.com"
] | peter.i.corke@gmail.com |
24b0ef97881bd12bc460067ad47dc0254598e299 | e9f8d015a3257104640c5989a4165e2d30f8f564 | /jobs/migrations/0003_auto_20150614_1654.py | 9d955c5d6a432ea6fbbd5cbe3338c31e27c35484 | [
"MIT"
] | permissive | pythonph/pythonph | 956d5e4c881401c1149bbd3908ce84cb87951b21 | 4fa329b134ba0f96c4d57ff23aceb81fd7b536f0 | refs/heads/main | 2023-04-17T20:39:55.864426 | 2023-03-31T14:58:24 | 2023-03-31T14:58:24 | 28,942,531 | 25 | 28 | MIT | 2023-03-31T14:58:25 | 2015-01-08T01:21:35 | SCSS | UTF-8 | Python | false | false | 629 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('jobs', '0002_job_application_email'),
]
operations = [
migrations.AlterField(
model_name='job',
name... | [
"hello@marksteve.com"
] | hello@marksteve.com |
dde958abd51a4cbd3ab0be409fb6839c745be6c5 | 12af3a7b1b1c77fbb9fb0bb21e481efd9ac74abc | /pchome/pchome/csvstore.py | 98fa8d7cfcba46db79312042017f7b5f2b4aea9b | [] | no_license | JunEden/scrapy | 04a7ec32182eea122fa9e79e612681c9e5fc57cd | dee0eed9479503368147de5abb692891ca459ae2 | refs/heads/main | 2023-03-22T02:22:32.333949 | 2021-03-18T12:21:44 | 2021-03-18T12:21:44 | 349,051,792 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | import os
import csv
import logging
from pchomedao import Save
def singletonDecorator(cls,*args,**kwargs):
instance = {}
def wrapperSingleton(*args,**kwargs):
if cls not in instance:
instance[cls] =cls(*args,**kwargs)
logging.info('new instance')
return instance[cls]
return wrapperSingleton
@singletonDe... | [
"noreply@github.com"
] | noreply@github.com |
d72b555b7cb78b59f1bc22973844f2856fde64e9 | 0e32f58ea94c898aee048c3181f3c44c8c7b3f09 | /pull_branch.py | c857e35e599ff399ebe05dd42a66f86206e462d1 | [] | no_license | oulib/illiad-web-manager | 60c828f00b9ac3ba1b60e437fac71665d877ff78 | 9dd5cacf1db4eb9e450f64f1eda66a7699321214 | refs/heads/master | 2022-12-30T01:50:30.110345 | 2020-10-06T15:23:34 | 2020-10-06T15:23:34 | 295,766,363 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,429 | py | import requests
import secrets
from zipfile import ZipFile
import datetime
import time
import os
import shutil
import sys
import logging
def pull(branch, targetDir, git_repo, user):
# Get Releases
repo_releases = requests.get("https://api.github.com/repos/" + git_repo+ "/tags", auth=user).json()
... | [
"9438817+codybennett@users.noreply.github.com"
] | 9438817+codybennett@users.noreply.github.com |
7f4f6dc4aceff10b6bbf67daff605692bd017395 | cd08fe6948d6b743419cc5904764374dfaa7a0e2 | /apps/accounts/migrations/0001_initial.py | a140f0102164820ce482bef0d4416ca27406e347 | [] | no_license | divisible-by-hero/central-station | 2af493097be75a3c0299d9a10e76fafa8896cb66 | f6bc8a9cb9a502ffc49164187ebdcde2b51619c5 | refs/heads/develop | 2021-01-20T02:20:39.027229 | 2014-01-29T20:11:12 | 2014-01-29T20:11:12 | 955,878 | 5 | 1 | null | 2014-01-29T20:11:12 | 2010-10-02T03:08:57 | Python | UTF-8 | Python | false | false | 11,106 | 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 'Account'
db.create_table('accounts_account', (
('id', self.gf('django.db.models.... | [
"dstegelman@gmail.com"
] | dstegelman@gmail.com |
4d39d846840e01114a83ec7bece187bdf76b160d | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/kusto/v20210101/event_grid_data_connection.py | a5730756f74d4be6193881f22a8298b833bd3bfb | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 24,727 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
80517945188af380bca8e4b933cf378338461e8b | ce1d48765b7cf98d06d134514e991ba4f842b928 | /secrets.vcs.py | ce68de348b1c87ee4efb9ad4af4453d5c304cd36 | [] | no_license | ririw/bird-catcher | f92952a99ccd060f48491127618ebab2d5f043cf | 720d390f7d8615d501e07cfb838fcc5320390e3c | refs/heads/master | 2016-09-06T11:56:20.370586 | 2012-10-10T05:11:01 | 2012-10-10T05:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | consumer_token = "Your app's consumer token"
consumer_secret = "Your app's consumer secret"
access_key = "Your OAuth access key"
access_secret = "Your OAuth access secret"
firstUser = {}
firstUser['id'] = 20
firstUser['name'] = 'jack'
firstUser['followers'] = 2003219
firstUser['friends'] = 1172
| [
"richardweiss@richardweiss.org"
] | richardweiss@richardweiss.org |
482a8b9237a2c8bf0e2469c9062327966a46c836 | ccc407c900ac36c57f2716adcdd28f38108d62ef | /models.py | a2cb7960d1b4b75f3ca645404af912b5cd09e2ce | [] | no_license | uditduhan23/YT_FastAPI_Celery_Redis_Flower_Introduction | d1b3f2f361ae0dc11be39eded78ccde45724b45e | 124b35e3af08330cd89f3658906ec54b2f623b46 | refs/heads/main | 2023-06-16T23:30:36.456816 | 2021-07-16T14:42:16 | 2021-07-16T14:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from sqlalchemy import Column, DateTime, Integer, String
from sqlalchemy.sql import func
from db_conf import Base
class Post(Base):
__tablename__ = "post"
id = Column(Integer, primary_key=True, index=True)
title = Column(String)
author = Column(String)
content = Column(String)
time_created =... | [
"veryacademy@gmail.com"
] | veryacademy@gmail.com |
cb2159ccee2c2cd4924834e00a477336634e42de | 493341d27f9b32a35075aeed58125d6242259142 | /node_modules/bcrypt/build/config.gypi | ef2b03547a125476406b20177fb9716a152f37f5 | [
"MIT"
] | permissive | rajayogan/mails-backend | ffc3651a623ad4fdff310ef469fa5cb48a2c4fa5 | 8368cf9a9d394c5c71915b6535fecb9ed671ea0c | refs/heads/master | 2021-04-05T23:38:37.194064 | 2016-07-20T23:11:15 | 2016-07-20T23:11:15 | 63,820,664 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 3,938 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"gas_version": "2.23",
"host_arch": "x64",
"icu_data_file": ... | [
"rajayogan27@gmail.com"
] | rajayogan27@gmail.com |
91181c0b68730ffb54611139fe33385617432ba9 | 54a1a50e423a921d8069236819c51626ea681f01 | /lean/tests/first_tests.py | 784bddf16595f75fd271cdad912dcbe2d4bd1252 | [] | no_license | markng/pisa | 47b95bb9f2e4a7306e45292e98831c0d64720b56 | f5e48670f4c9aa215b4d44052e51f044c0e07805 | refs/heads/master | 2021-01-10T07:18:38.639556 | 2016-03-26T10:57:48 | 2016-03-26T10:57:48 | 54,775,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | # coding: spec
from expects import expect, be
from noseOfYeti.tokeniser.support import noy_sup_setUp
from unittest import TestCase
import nose
it 'exists':
expect(False).to(be(True))
| [
"mng@liquidweb.com"
] | mng@liquidweb.com |
9e2df97d58052f8c1631ac45d42b4ab43d90a5fd | fc46f2778be59688e47166c8e90d5e8d07d29dc1 | /django_backend/UserGroup/models.py | 1916dd1a80d257b5dfce90c5ee4ee46e43e10d87 | [] | no_license | mmeerrccyy/synergy_way | 9710cd096fbdc0386c570b668d0a520c7ea4fc5b | 064104b7dc634d15a9fb7663d2095234bdb1cfb4 | refs/heads/master | 2023-08-26T13:04:29.347909 | 2021-10-09T22:00:24 | 2021-10-09T22:00:24 | 415,409,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from django.db import models
# Create your models here.
class CustomUser(models.Model):
username = models.CharField(max_length=45, unique=True)
created = models.DateTimeField(auto_now_add=True)
group = models.ForeignKey('CustomGroup', on_delete=models.RESTRICT, null=True, blank=True, related_name='users'... | [
"taras.mercury@gmail.com"
] | taras.mercury@gmail.com |
ecb3f9ac751f9a4587fd65400da8ba7148a1de44 | f8556db88694c57e57aa996d0db59eac50366aab | /api/schemas/songs_schema_db.py | c7a6dc25dc9871e13e1b304f984dae766db6991f | [
"MIT"
] | permissive | barckcode/api_salsa | 667ac69c24f2cb31479364414edc977f78c28199 | 4345d3b249646bb4055147f2481912a9c10ed7e2 | refs/heads/main | 2023-08-21T19:15:19.059618 | 2021-10-01T10:01:53 | 2021-10-01T10:01:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | import datetime
from typing import Optional
from pydantic import BaseModel
class SongsModelDb(BaseModel):
id: Optional[int]
name: str
departure_date: datetime.date
| [
"barckcode@gmail.com"
] | barckcode@gmail.com |
d4c9539c852f32e2700a86e1717cfb60dcc9f849 | 8dbba6ad04ee7cf97e0b44970be858df5115c60e | /archeage_web_crawler/settings.py | 9f4c2b5006923145e91d23dd8c785a0deeb7e9cd | [] | no_license | calanchue/ArcheageWebCrawler | 3a494fbdd7f6bd1b1c1053c53c03ac788d6de125 | 09867bb6ad0d4b04944f0e629926da6ae47d2c3d | refs/heads/master | 2021-01-25T00:09:56.799460 | 2016-10-06T05:30:39 | 2016-10-06T05:30:39 | 8,072,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,662 | py | # Django settings for archeage_web_crawler project.
import os
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS as TCP
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backe... | [
"calanchue@naver.com"
] | calanchue@naver.com |
2ae22923dfc74228994f3bee953bc4431f2a9e04 | a2837a58873805da2f5bc63ff73dfcf869759387 | /public_method/log_method.py | b222ed0074d22d1be5fd19f319e2319a0beb3e7a | [] | no_license | liufubin-git/python | 7e6c9d1db0e6ce39263ec4391c928f09fd7de558 | eae782a78ffde1276a0812a43d7deefb0bdedeb4 | refs/heads/master | 2023-03-25T13:57:24.447255 | 2021-03-25T09:59:43 | 2021-03-25T09:59:43 | 302,522,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | # -*- coding: utf-8 -*-
"""
@Time : 2021/3/12 15:19
@Author : liufubin
@FileName: log_method.py
@description: 测试日志公共封装方法
"""
import os
import logging
# 定义日志的绝对路径
base_url = r"D:\pycharmproject\lfbTest\log"
class Logger:
def __init__(self, file_name, clevel=logging.DEBUG, flevel=logging.INFO):
"""传入... | [
"742956902@qq.com"
] | 742956902@qq.com |
5e9827f8768acaf7d676c41e6bab1b7f546b6b6b | 16faf365b6175c0193554aa52291f2d40f19953f | /script/test_dep_params.py | 3e4c8c7abb8502ee25d9c9f476bb08e0521de69d | [] | no_license | waq1314/testIRHMEmp | fd987470eaa77758edce24a001e42ce976f9a035 | 04a00e3266767bd5586fef6eb1cf4cd3697d11ec | refs/heads/master | 2022-10-11T14:22:57.135256 | 2020-06-12T13:31:56 | 2020-06-12T13:31:56 | 271,805,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,063 | py | # 导包
import unittest, logging
from parameterized import parameterized
from api.dep_api import DepApi
from api.login_api import LoginApi
import app
from utils import assert_common, read_dep_data, read_dep_login_data
# 创建测试类
class TestIHRMDepParams(unittest.TestCase):
# 初始化unittest的函数
def setUp(self):
#... | [
"2503770244@qq.com"
] | 2503770244@qq.com |
86f2bdaa873d82c38171fe326a3b4c7b88d19e4f | c68d3e6787a8ac627fc1e865089deda9bfa04688 | /test/test_bessel.py | b5fcc92026bfa7907919ccb5690884177b5fb525 | [] | no_license | artidoro/vivo | 570933379ec06a1293b9a4bfddb3830168da200b | 1297966fad7554486f40a8e6c7878dbc987990e1 | refs/heads/master | 2021-02-18T20:39:35.578995 | 2020-04-13T16:41:47 | 2020-04-13T16:41:47 | 245,234,356 | 2 | 0 | null | 2020-04-17T23:38:04 | 2020-03-05T18:06:23 | Python | UTF-8 | Python | false | false | 1,832 | py | import torch
import math
import numpy as np
from scipy.special import iv
"""
vMF distribution
p(e(w); µ, κ) = C_m(κ) * exp(κ * (µ @ e(w)))
C_m = κ ** (m/2 - 1) / ((2 * pi) ** (m/2) I_(m/2 - 1)(κ))
p(e_tgt; e_pred) = vMF(e_tgt); e_pred) = C_m(norm(e_pred)) * exp(e_pred @ e_tgt)
NLLvMF = - log(C_m(norm(e_pred))) - e_p... | [
"brendon.boldt@gmail.com"
] | brendon.boldt@gmail.com |
089a89857138031b10406f4fcb2f102aeb2a120d | 510ec21522651fe320f65f2978ecf7cb4a93b97a | /app/arcane_real_estate/app/type/schema_test.py | f6575b2346dbc8bacda36861bc0ae7adc318f5dd | [] | no_license | NanoPish/arcane | 93131bea3861da6d56606bde777821b940612c00 | 07bbc8feecfaef95674741454f9ec31539565eae | refs/heads/master | 2022-08-04T09:03:05.133278 | 2020-01-24T18:29:13 | 2020-01-24T18:29:13 | 234,338,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | from pytest import fixture
from .model import Type
from .schema import TypeSchema
from .interface import TypeInterface
@fixture
def schema() -> TypeSchema:
return TypeSchema()
def test_TypeSchema_create(schema: TypeSchema):
assert schema
def test_TypeSchema_works(schema: TypeSchema):
params: TypeInte... | [
"paul.belloc@epitech.eu"
] | paul.belloc@epitech.eu |
d06f9c02053dbaa64d0db28cc52b7690a08a2160 | adc6d8ee596e4710c3241332758bb6990bdd8914 | /subData/ejemplos ROI/ROI_V3.py | 48e1600ee1a3a5b4fbd7593a1e7397eb9abe764a | [] | no_license | NatalyTinoco/Trabajo-de-grado_Artefactos | cf9491c47a8a23ce5bab7c52498093a61319f834 | 5cc4e009f94c871c7ed0d820eb113398ac66ec2f | refs/heads/master | 2022-03-20T00:51:48.420253 | 2019-11-24T19:10:40 | 2019-11-24T19:10:40 | 197,964,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 15 22:32:38 2019
@author: Nataly
"""
import cv2
import pylab as plt
from matplotlib import pyplot as plt
import numpy as np
from pylab import *
from readimg import read_img #leer imagines ### img=read_img(imgfile)##
from skimage.morphology import disk
from skimage.fil... | [
"51056570+NatalyTinoco@users.noreply.github.com"
] | 51056570+NatalyTinoco@users.noreply.github.com |
d6ab9dc28e83ae2bbdb2a09423fbbd775f1261f2 | ff11b40cf4d57bc7ac673cd575f29be1cf8ad177 | /jdk-1.5-parent/console-parent/console-templates/src/main/resources/org/wicketstuff/console/templates/jython/WicketClearPropertiesCache.py | 3fc77521cf4253d1da7c0c0ca3c98f88e11bd9a8 | [] | no_license | felipefedel/core | 70ca3c02dd772b0a7e60bd79fbef24982fb03344 | b9d2d71f1a2f4588de86e395dc8a25509c6e4459 | refs/heads/master | 2020-12-25T10:59:11.652297 | 2011-08-09T17:40:36 | 2011-08-09T17:40:36 | 2,162,036 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | pf = application.getResourceSettings().getPropertiesFactory()
pf.clearCache()
print "cleared"
| [
"nick.wiedenbrueck@gmail.com"
] | nick.wiedenbrueck@gmail.com |
e2cc047b7cd5216552d5667bf63496afc02e548b | e74463d223acfe6b849177177cb409060e7a44d1 | /Data Structures and Algorithms/01 Algorithmic Toolbox/Week 4 - Divide-and-Conquer/poly_mult.py | 3d6d01b5f543a0a0108a339b3a2bfa564fdb5742 | [] | no_license | AlexEngelhardt-old/courses | 24f4acf6de22f6707568024c5ee4a2fde412e461 | 739be99265b0aca1c58abe6f107b4c49de055b9d | refs/heads/master | 2023-05-05T22:25:50.327739 | 2020-12-09T14:57:46 | 2020-12-09T14:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | def lfill(arr, length):
"""Prepends [0] elements to arr so that its total length is at least length."""
return [0] * (length - len(arr)) + arr
def poly_mult_naive(A, B):
"""Naive O(n^2) implementation of polynomial multiplication.
A and B are coefficient arrays:
Example
-------
A = 3x^2... | [
"alexander.w.engelhardt@gmail.com"
] | alexander.w.engelhardt@gmail.com |
d46c7e58abc3648273a301b1ff3f9c4f7e2b1214 | 2c0e8fa208f59fb3d23c7257cb9cff426fa16d85 | /ga4gh/backend.py | 2fdefbd883323811fd1ec9d7abe5a4cb4bec5766 | [
"Apache-2.0"
] | permissive | melaniedc/server | db24c37bf0e778630d0910a1101eeb908647b02e | 9fe974e421d2e4d3510e7928053edbbce47fd4bb | refs/heads/master | 2020-02-26T16:09:18.162175 | 2015-01-30T14:52:46 | 2015-01-30T14:52:46 | 26,870,317 | 0 | 0 | null | 2014-12-05T20:26:25 | 2014-11-19T16:28:39 | Python | UTF-8 | Python | false | false | 6,006 | py | """
Module responsible for handling protocol requests and returning
responses.
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
import ga4gh.protocol as protocol
class Backend(object):
"""
The GA4GH backend. This class provides metho... | [
"jk@well.ox.ac.uk"
] | jk@well.ox.ac.uk |
5ce5f2cf954cae97c1c9194545becd34013023ca | a71f058f6edc3539f114c9cb1a9f0e4d711d0722 | /Geohack/settings.py | 6382bce0967893ff20af5d4bd70760e2edc2e9c9 | [] | no_license | Kakoedlinnoeslovo/geohack | b57d334eef95c42f5ffa1ca8b043532ddb15dd3e | 0652f85e4edc9c65d20b355a91543ffcb5e4f299 | refs/heads/master | 2020-03-17T02:22:05.655746 | 2018-05-14T19:11:22 | 2018-05-14T19:11:22 | 133,187,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | """
Django settings for Geohack project.
Generated by 'django-admin startproject' using Django 2.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | [
"roma-degtayrev@mail.ru"
] | roma-degtayrev@mail.ru |
5b01a0dbeb188b5186ce2c9757ac5da7a4312aa3 | 8e00a42f935ee15ed0dd27241f30fd2a909891c2 | /config.py | 481a95097620da6d15f1258a08e9dbf541d129a4 | [] | no_license | MrBrunotte/Microblog | c17965cc34b42332b95748adae75bd0abdd17996 | b1f33a843d717685481c22ab203c740a589177f2 | refs/heads/master | 2020-06-30T10:44:22.527410 | 2019-08-11T15:00:40 | 2019-08-11T15:00:40 | 200,802,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = Fal... | [
"mrbrunotte@gmail.com"
] | mrbrunotte@gmail.com |
9eb3b5e4e4cdd96a839e5c24b404869c18d5e9ee | 480e33f95eec2e471c563d4c0661784c92396368 | /GeneratorInterface/GenFilters/test/test_isotrack_cfg.py | af5d058a84dc0c93779710cc9bfda12f465b9313 | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 1,710 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
process.load("Configuration.StandardSequences.Services_cff")
process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
process.load("Configuration.EventContent.EventContent_cff")
process.lo... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
3c21c874290414cd6192f699632f2e64c674bd1f | 46e1db8df96707d3a2effbdea6d06e3622c7ecd7 | /tensorflow/contrib/distributions/python/kernel_tests/mvn_diag_plus_low_rank_test.py | 834877769e887b902f79ddb94aaedbc9cdc313f3 | [
"Apache-2.0"
] | permissive | adammalpass/tensorflow | eeb8973fcd220b55118207703919aa9df71506f4 | b340000aeeb2eae9b48354e42177fb03b30860db | refs/heads/master | 2021-01-22T08:33:52.824616 | 2017-02-20T09:04:33 | 2017-02-20T09:04:33 | 81,909,244 | 1 | 0 | null | 2017-02-14T05:37:57 | 2017-02-14T05:37:56 | null | UTF-8 | Python | false | false | 16,462 | py | # Copyright 2016 The TensorFlow Authors. 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
3b4b994f7f601322b86399b6db227a2450c6d160 | 3137890ca9260f294e9271a1b0d8302d664b2b67 | /ex1/11_for/for.py | 6235d374661272cbdc2080e2840afd30d8c6ccdd | [] | no_license | huitianbao/Python_study | 1815a82bee907543d9899e6fd641940f0dab5189 | 91e5b3ca4f5ef0da07ebbcc308a6859e4397505c | refs/heads/master | 2020-04-26T16:43:12.450561 | 2019-03-01T10:41:58 | 2019-03-01T10:41:58 | 173,689,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | #!/uer/bin/python
import time
num = 0
# for x in range(100):
# print x,"this is ",x
# for x in range(1,101):
# num=num+x
# print num
# for x in "dfghjklljfghjkl":
# print x
s = [1, 2, 3, 4, 5]
# for x in range(len(s)):
# print x,'hello world'
# for x in s:
# print x;
# =====================... | [
"1622162492@qq.com"
] | 1622162492@qq.com |
de747df6d9a508372bb51e7bccfc136bdb88d5b3 | 61c19513982fd790d9ef3e576323dcc6da723b7b | /app/handlers.py | e2d53aa6538344372943e45e6a186aa0f0bf8220 | [] | no_license | tatiano/SmartHomeNode | 8f6fd81ff3baee9d97f28d91e8fe32c35a7efcc0 | 2a4f897cab9391146a9c509b6ca2c13ce214635d | refs/heads/master | 2023-03-15T14:36:25.038630 | 2020-10-04T13:54:43 | 2020-10-04T13:54:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py |
class Const(object):
"""
Class to make variable constant in Python
* Example:
```python
c = Const(ONE=1, PI=3.14259)
print(c.ONE)
c.ONE = 22 # Will trigger ValueError
```
* Return:
* All python datatypes
* Exception:
* ValueError
"""
def _... | [
"mats.eriksson@exsensia.se"
] | mats.eriksson@exsensia.se |
0e91187cd1c363c623c71648471d0a741b416aba | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/accounts/migrations/0118_auto_20190430_1544.py | 87abb4310a3d8a0e7ce02fa18928b782a13d894b | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.1.7 on 2019-04-30 13:44
import diventi.accounts.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0117_auto_20190430_1543'),
]
operations = [
migrations.AlterModelManagers(
name='diventiuser'... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
5d459c8f59a0fcb653d05d3d69886f6aaaa71def | f1919cf55f5638be697819e565d95d4c98cdfd48 | /appgarb/migrations/0001_initial.py | 9dee7520f0094e4c0eb359f4a37e83ff5529d0ae | [] | no_license | Alex111cat/SmartGarbage | 97af72e4fdf16b7997e76fc846a60f54b4a3fed7 | b61024bea3f9432e26ea22ba67cc97c38cd8659c | refs/heads/master | 2023-04-27T03:15:58.233065 | 2021-05-09T19:30:05 | 2021-05-09T19:30:05 | 365,825,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,971 | py | # Generated by Django 3.1.5 on 2021-05-01 00:40
import datetime
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"alnovikov@miem.hse.ru"
] | alnovikov@miem.hse.ru |
37ed26d4f7d5ec91f1a98a342f825e76e9ac59af | d32536da2d2d1fa6642683179dde0a1cd21fc2f8 | /resources/lib/controllers/channels.py | 68c738dba24698ed362d8eec567876d8f9f4c8d5 | [
"MIT"
] | permissive | crabvk/plugin.video.movix | 09871fb4cc6c4769f3ae36460ca3cbac9a1ac5e7 | 6117da60e0347cca56050828e3246b5960a1bb66 | refs/heads/master | 2023-05-24T17:04:49.743652 | 2023-05-07T13:56:46 | 2023-05-07T13:56:46 | 256,035,518 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | import xbmcplugin
import xbmcgui
import resources.lib.api as api
import resources.lib.utils as utils
from resources.lib.translation import _
@api.on_error(lambda r: r.redirect('root', 'index'))
def index(router, params):
handle = router.session.handle
token = router.session.token
paginate = utils.addon.ge... | [
"vyachkonovalov@protonmail.com"
] | vyachkonovalov@protonmail.com |
7d8996f2266f4ca3814431bc9929251ffd4b09bc | 51636a6c14fcaa40ed43a3f0ca1eea6c7b64eeb3 | /reinforcement/valueIterationAgents.py | f6d30a79020987af549ef8db3b5e2b3188e165cd | [
"MIT"
] | permissive | yzj-again/CS181 | 76e4b54ad8a13bffc793a7bee8d1b07b7b4685fd | 133ed1437561a4a458fc38f4ed2afa716f117c42 | refs/heads/master | 2023-02-19T18:29:47.135630 | 2021-01-22T07:45:57 | 2021-01-22T07:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,585 | py | # valueIterationAgents.py
# -----------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to ht... | [
"chibinzhang@hotmail.com"
] | chibinzhang@hotmail.com |
9968458e13544aa5327e6cf2c794b27bbafaf7db | 3c8827db86f20c5728158e8cd6aa81eb3c13cb8b | /wakesnet/manage.py | 29fd6d7656bafdc655ffedeebbdf25c5aff5ac90 | [
"MIT"
] | permissive | jmintel7/social_network | 12afdb60b3e013f0ca3296f43bb392683e24f399 | 430cb58da02e7f5ccb15f8b5424fcd0761e11d89 | refs/heads/master | 2020-08-14T08:14:30.357783 | 2019-10-14T19:37:44 | 2019-10-14T19:37:44 | 215,129,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wakesnet.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"jmintel7@gmail.com"
] | jmintel7@gmail.com |
58afd8e194a66d93081d602c1b5562695a2aacc7 | 7e41d70ee3bf07dc3043afef020cde173d5fb0bc | /airflow_client/client/model/resource.py | 4db2b1d4fdbe4e8423ff2bc14774439fc6e6dd11 | [
"Apache-2.0"
] | permissive | apache/airflow-client-python | fb11789076bfed191d730c459c84273781d50246 | 38d55888f7533253857baa878322007f4581fc21 | refs/heads/main | 2023-09-05T18:23:37.049610 | 2023-08-23T13:10:27 | 2023-08-23T13:10:27 | 275,569,232 | 251 | 44 | Apache-2.0 | 2023-08-23T07:49:13 | 2020-06-28T11:20:41 | Python | UTF-8 | Python | false | false | 19,801 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
9720b397cbc8cd2c66fa38cabf689b20b781de7c | 1c0ef3e1a1ad33fbf6c7d49857ff42d85c859da2 | /date/date0817/class1.py | f603d41831140d956c4deb136fffd62c044edb86 | [] | no_license | s570504071/learngit | 1f18525382a6edbaf1ffbd8d07652e382e60cff3 | 8215c175ef0b270bc877474a9d6986952065c648 | refs/heads/master | 2021-09-08T17:40:24.424038 | 2018-03-11T13:35:33 | 2018-03-11T13:35:33 | 105,953,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | class c1(c2,c3):
def setname(self,who):
self.name=who
i1=c1('bob')
i2=c1('mel')
print i1.name
| [
"570504071@qq.com"
] | 570504071@qq.com |
3e036e276640d9c2da31ce3c38fa68d0687dca9e | 4e432db63eb6b0e3dba12a09ca9405aea2c229ed | /models.py | fe096064578354fb9b6e004ae2e31fecdc8aa7ea | [] | no_license | KritiBhatia/django-book-record | 842cb120687f928ac4b759e10f1d6ecc08935d14 | dbcbf4508dab0f6ab7b68a855a6700d6fd3788a9 | refs/heads/main | 2023-01-28T21:18:47.513442 | 2020-12-11T11:47:02 | 2020-12-11T11:47:02 | 320,556,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from django.db import models
class Employee(models.Model):
eno=models.IntegerField()
ename=models.CharField(max_length=30)
esal=models.FloatField()
eaddr=models.CharField(max_length=60)
def __str__(self):
return self.ename
| [
"noreply@github.com"
] | noreply@github.com |
d02f06d35f7d783eea32c5aa7952e01a19410317 | b7f36f13b15b9ae9d8ff58199dc18cfadc67023b | /src/lc0_az_policy_map.py | f7a2dff9788963fc9dd70762fe6e43602c53f27e | [] | no_license | advait/lc0-transfer | c59cbb64a77edb8b55231aa347d743ec8d64d9a9 | 500fb7f22bce2daca30f3ab7c4e2207ec121d95f | refs/heads/master | 2020-05-18T10:46:32.755580 | 2019-05-01T02:43:33 | 2019-05-01T02:43:33 | 184,359,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,297 | py | #!/usr/bin/env python3
import sys
import numpy as np
from .policy_index import policy_index
columns = 'abcdefgh'
rows = '12345678'
promotions = 'rbq' # N is encoded as normal move
col_index = {columns[i]: i for i in range(len(columns))}
row_index = {rows[i]: i for i in range(len(rows))}
def index_to_position(x):
... | [
"advait.shinde@gmail.com"
] | advait.shinde@gmail.com |
78d8ff1315659190e523ddabf9753cb6e744b0aa | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fv/rtsvcbdtobdatt.py | f1ffb7ed17d1fb278b7698c60d82bd28d78ea0a0 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,548 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
fa43a838c4978b258a9605d31ab39eb249c8b487 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /thing_and_time/year/different_group_or_way/own_hand/bad_woman/old_week.py | 9639b61edb0de71dc9e7ec473e80b69899594523 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py |
#! /usr/bin/env python
def great_week(str_arg):
year_and_day(str_arg)
print('way_and_little_place')
def year_and_day(str_arg):
print(str_arg)
if __name__ == '__main__':
great_week('want_first_time')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
85858a9e401ac0e3d50eaf34cc4cb785ca8aaf19 | 1dccb74674fc5c81692e851735d3302610bb5ef1 | /weekly report/赵普/2018.9.3——2018.11.2/Python学习笔记与代码/Test code/PythonTest4/PythonTest4/main.py | 84fd0541901ca66fb36510d3e85c102acaaed3e4 | [] | no_license | Automation-Seu/Lab-stuff | 47773ab276ee45118cfe5250c5e80d2b585c8472 | 7825f81312dc03ea0593c7612a1324fb221b007d | refs/heads/master | 2020-04-04T00:12:46.396498 | 2020-03-03T00:54:26 | 2020-03-03T00:54:26 | 155,644,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | print("this is main.py")
import os
os.system("py -3 ifTest.py")
os.system("py -3 ifSentence.py")
os.system("py -3 ifAndList.py") | [
"noreply@github.com"
] | noreply@github.com |
4fb0587ecefb339bb21f3860de550cb150cf0369 | 7e564e539db72f8fa73a32a335114793df715d2f | /stores/models.py | c76a8c3e1f2f8b71b7e0bdfc2166055e559460e6 | [
"MIT"
] | permissive | kirega/stocks | e3976ad2cb039fa7ac4607241d2a279accbba235 | 11b0d86054bb54feca5a59d40ddd50f11ce216da | refs/heads/develop | 2022-12-10T09:51:33.188847 | 2019-03-22T10:06:49 | 2019-03-22T10:06:49 | 175,512,328 | 1 | 0 | null | 2022-12-08T04:52:20 | 2019-03-13T23:07:35 | Python | UTF-8 | Python | false | false | 324 | py | from django.db import models
# Create your models here.
class Store(models.Model):
name = models.CharField(max_length=255)
location = models.CharField(max_length=255)
capacity = models.PositiveIntegerField(blank=True, null=True)
def __str__(self):
return '{} - {}'.format(self.name, self.locat... | [
"joseph.mutiga@gmail.com"
] | joseph.mutiga@gmail.com |
1aaf94941509d6657afde305abf9e24c8dc3abe3 | 3c1a4179e46f7d361059be21b2c1a43993bf65a8 | /11.树/树的递归/101.Symmetric Tree (Easy).py | 789db5a2033163585d0c95d08884439907703443 | [] | no_license | longshuicui/leetcode-learning | 1e982dbd20b08fb7a76c7bf87a5b2bff4e68ce32 | de0386c7301cddc6eef8aaca8ca2d4a40e8bfac1 | refs/heads/master | 2023-05-29T19:52:01.140545 | 2021-06-03T02:48:17 | 2021-06-03T02:48:17 | 337,602,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | # -*- coding: utf-8 -*-
"""
@author: longshuicui
@date : 2021/2/9
@function:
101. Symmetric Tree (Easy)
https://leetcode.com/problems/symmetric-tree/
题目描述
判断一个二叉树是否对称。
输入输出样例
输入一个二叉树,输出一个布尔值,表示该树是否对称
题解
判断一个树是否对称等价于判断左右子树是否对称,
1.如果两个子树都为空指针,则他们相等或者对称
2.如果两个子树只有一个为空指针,则他们不相等或者不对称
3.如果两个子树根节点的值... | [
"lscui@vova.com.hk"
] | lscui@vova.com.hk |
2b72601aa35f22fe7285d28cc4fd151b2cd8bd11 | fa798e1779af170ee31bfd710a6faca9904a99ef | /6day/2. parameter2.py | ee3813869b83825983ac1f98dfcf349e50f27af4 | [] | no_license | itwebMJ/pythonStudy | 1c573f98b78ce8c9273ae17a44d59a5a26c61b2c | 8ea3112c9c587b6aeb8a5fa6ef715053286fbaae | refs/heads/master | 2023-06-28T05:37:29.239010 | 2021-08-06T08:01:54 | 2021-08-06T08:01:54 | 375,879,186 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | def f1(*x): #가변인자. 튜플로 받아옴
print('함수시작')
for i in x:
print(i)
print('함수 끝')
def add(*num):
s = 0
for i in num:
s+=i
return s
def main():
f1()
f1('aaa', 'bbb')
f1('ccc','ddd','eee','fff')
s=add(1,2,3)
print('add(1,2,3):',s)
s=add(1,2,3,4,5)
print('ad... | [
"rlaalwn61@naver.com"
] | rlaalwn61@naver.com |
847572bca0968733191b1a2b732263fce52874bb | 58c82deb2b6d5ad77eca46537bc98133c7a9f365 | /mniststuff.py | 8a7b28d3524215ec1d16b94825b71e78f167743b | [] | no_license | PerthGoat/juggernautsGAN | fb2d8ec7c605d474775a195560b072d545c5acfb | ffcd2d6a189fda8626f7dbb1ca6bbc66e3ce8ff3 | refs/heads/master | 2023-03-30T01:16:57.965394 | 2021-04-06T00:56:32 | 2021-04-06T00:56:32 | 337,470,642 | 1 | 0 | null | 2021-04-06T00:56:32 | 2021-02-09T16:44:11 | Python | UTF-8 | Python | false | false | 1,761 | py | import torch
import torchvision
import torchvision.transforms as transforms
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import numpy as np
from tqdm import tqdm
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.conv1 = nn.Conv2d(1, 5, 3) #convolu... | [
"rybothecamel@gmail.com"
] | rybothecamel@gmail.com |
3f72c481ca01adc01b3586629f7ef8971957621b | 5475adba82eecfe37d9d5d3f4faf98c3916ab38c | /lesson_7/exercise_6/my_inv_kb.py | a4a755404e84b664c5ed774f03f7709010116827 | [] | no_license | cdelbrug/anisble-class | 93373cb49174aadaa631128052b9fd9d2f8addc3 | 1f45b1e272f88b70a53469f0c92d244f2f953e7c | refs/heads/master | 2022-09-29T02:29:21.806578 | 2020-06-04T16:43:36 | 2020-06-04T16:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,911 | py | #!/usr/bin/env python
"""
Ansible dynamic inventory experimentation
Output dynamic inventory as JSON from statically defined data structures
"""
import argparse
import json
ANSIBLE_INV = {
"all": {
"vars": {
"ansible_connection": "network_cli",
"ansible_python_interpreter": "/home/c... | [
"caleb.delbrugge@intlfcstone.com"
] | caleb.delbrugge@intlfcstone.com |
9f55f8e376210ed4f32a255f43a2e2372c23a574 | 8583d704ecfcbd14ae590ba7f7210a2302ade5e8 | /config.py | ea80c3be94d3182679ebd13ee9130c972c5f6d54 | [] | no_license | jmaroeder/wattsup-poster | 077dbd09a8d42c4ecc07c7cfe120b3df357392a1 | 2910c16a7562272baa448ef9aa90fb3ff402b123 | refs/heads/master | 2021-05-29T16:35:58.220898 | 2015-06-04T16:00:33 | 2015-06-04T16:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # Linux default
# SERIAL_PATH = '/dev/ttyUSB0'
# Mac default
SERIAL_PATH = '/dev/tty.usbserial-AD02022O'
UPDATE_INTERVAL = 300
POST_URL = 'http://wattlog-hathawaybrown.rhcloud.com/measurements/'
POST_USERNAME = 'secret'
POST_PASSWORD = 'secret'
| [
"james.m.allen@gmail.com"
] | james.m.allen@gmail.com |
d7cadf05cf410500013836c138a65129dfd1a7e7 | 0c11d581fa04e99960c6f5fcb8e9cfd188451a95 | /Information Security/Lab3/setup.py | fc4ea076203f5a96ddee25dd98b9e39e2ec35b52 | [] | no_license | Vanchez23/VIHT | c907229935978d1044446ecb3c5a78be3e82866a | fd8530d92667e9d88e6b2a830c72ec091a3a59b6 | refs/heads/master | 2020-03-30T13:54:07.329480 | 2019-05-05T13:36:25 | 2019-05-05T13:36:25 | 151,292,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from cx_Freeze import setup, Executable
setup(
name = "Freelance",
version = "1.0",
description = "Freelance Parser",
executables = [Executable("PrivacyPolicy.py")]
) | [
"bukunivan23@gmail.com"
] | bukunivan23@gmail.com |
fe6eb6766bddca0cda94ac4719dea56be6aa33ce | 65830f3fd1abd1bae68b0a89c77244f7d25d14c4 | /easylinkage/__init__.py | c83ede5ed4e3931c86416a2712ebcd85abfdd2a7 | [
"MIT"
] | permissive | ersilia-os/easylinkage | 2324957f0dcb61580fe9ddb1286808547ad0bb96 | 390fff38bb6ad474e70abecb0fab49b41572802a | refs/heads/master | 2022-11-23T23:49:07.407386 | 2020-07-30T13:08:10 | 2020-07-30T13:08:10 | 203,118,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | __all__ = ["algorithms", "postprocessing"]
import recordlinkage.config_init # noqa
from recordlinkage.index import FullIndex
from recordlinkage.index import BlockIndex
from recordlinkage.index import SortedNeighbourhoodIndex
from recordlinkage.index import RandomIndex
from recordlinkage.classifiers import *
from rec... | [
"mduran@ALOY17.local"
] | mduran@ALOY17.local |
430400a477c6d5ddc458784abdd68e1536c37106 | 8a4ba59012227e9d69f215bef11d48eccadfd0eb | /oracle1.py | 0b2629eb9b5e8816149e61decf64900efa5be9c4 | [] | no_license | dwijdeep/python | 2958f7516f0cb5fab31eb24fc96a28e0fc2a9711 | 38834fd981fbe1992a69110b756b0551169238e1 | refs/heads/main | 2023-08-31T11:32:19.176755 | 2021-10-01T11:59:16 | 2021-10-01T11:59:16 | 412,447,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | l=[1,2,3,5]
x=l[0]#1
y=l[-1]#5
for i in range(1,y):
if i not in l:
print(i) | [
"noreply@github.com"
] | noreply@github.com |
b3bcac61808534e11cb1da0504ac8237f8e56aa3 | 233692c01e4f3cb9a00c933b932dae93d560a5e8 | /bot/__main__.py | c94cba9f6de1b16c1e3b42737486b9884f7c1994 | [
"MIT"
] | permissive | uvobot/testing-archlinux-repository | d6f6836f986ae898be48fd65e6bc79244fa35445 | f7956eb824596c9d7fd86bf835de3bfa88fc4e7c | refs/heads/master | 2020-06-17T17:46:38.087052 | 2019-07-19T04:31:26 | 2019-07-19T04:31:26 | 195,997,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | #!/usr/bin/env python
"""
Copyright (c) Build Your Own Arch Linux Repository developers
See the file 'LICENSE' uor copying permission
"""
from environment import environment
from interface import interface
from repository import repository
from validator import validator
from core.contextual import get_base_path
fro... | [
"developer@lognoz.org"
] | developer@lognoz.org |
d594976c71a71dee03a06c97b4225da81f63733e | 4c807a2b3df7d9967b0b4abb6baaa0f1e76afc81 | /server/__init__.py | cfbe3a896bfb1e930c1330da0a11f0e952d66883 | [
"MIT"
] | permissive | luiscaputo/voter-app | 0aea7a5d115f695330712d77af9c136af8ad5d95 | 0d6b844aab964f74edcde6e3e0697abb0049f7bd | refs/heads/main | 2023-03-29T15:09:11.568689 | 2021-04-09T12:44:43 | 2021-04-09T12:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,959 | py | from socket import *
from sys import base_exec_prefix, set_asyncgen_hooks
from dataBase import JsonFiles
## ____ ON BUILDING ______
class Server:
serverName = "localhost"
serverPort = 12000
serverSocket = socket(AF_INET, SOCK_STREAM)
serverSocket.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) ## I the port i... | [
"true4321king@gmail.com"
] | true4321king@gmail.com |
2951978989a085b93e5ed9357c2bf2d6381a16a0 | 19a2378a7fc2aef762b0e3a70669208818feeaa9 | /src/transformers/models/upernet/modeling_upernet.py | 6143c57e92d598b2db52e36ef60bc3a18dff8085 | [
"Apache-2.0"
] | permissive | pytorch-tpu/transformers | 494ee005c6d156161171f2a8e60f25603189408f | 6112b1c6442aaf7affd2b0676a1cd4eee30c45cf | refs/heads/master | 2023-09-03T19:34:30.326852 | 2023-07-19T20:57:40 | 2023-07-19T20:57:40 | 220,075,881 | 7 | 2 | Apache-2.0 | 2023-09-14T17:58:25 | 2019-11-06T19:40:45 | Python | UTF-8 | Python | false | false | 17,414 | py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | [
"noreply@github.com"
] | noreply@github.com |
5577adbf39c30e7cfa89c76e8eb07f81dca2ff8c | 37c6507cb937312017fb05e1010007419e68e5a8 | /post_to_gminer/client_send.py | 94e58eb54cd07a652d151cf836a26292163b5a0e | [] | no_license | bbcf/gdv | 5fc04e186fd0487db6bce850538cba77e82b6284 | f8738e7dc49ca826e29f4454484d2da716389bd2 | refs/heads/master | 2021-01-21T19:28:54.558176 | 2011-07-01T15:01:21 | 2011-07-01T15:01:21 | 1,186,918 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | # Modules #
import httplib2, urllib
# All parameters #
args = {
'data' : '''{"operation_type":"desc_stat","characteristic":"number_of_features","compare_parents":[],"per_chromosome":["per_chromosome"],"filter":[{"name":"Ribi genes","path":"/scratch/genomic/tracks/ribosome_genesis.sql"}],"ntracks":[{"nam... | [
"lucas.sinclair@me.com"
] | lucas.sinclair@me.com |
76899b983e2ad467054a90a4de6099d345f0cb33 | 79fe6de10f9af48d25fd02e624984d05f2c580be | /iter_documents.py | 71272fc09c2b7e89bac8e474be37856e08cab749 | [] | no_license | clasocki/text_categorization | 5255d9887f910bee2779e5fb3af7005d46697a40 | d4969a554e070f7ab09f67ec0a7db7f9f608398e | refs/heads/master | 2021-08-10T14:53:42.123291 | 2017-11-12T17:45:29 | 2017-11-12T17:45:29 | 75,674,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | import re
import os
from helpers import Document
DOCS_HCI_GRAPHS = ["Human machine interface for lab abc computer applications",
"A survey of user opinion of computer system response time",
"The EPS user interface management system",
"System and human system eng... | [
"clasocki@gmail.com"
] | clasocki@gmail.com |
bfba7db224c5d590de0eaa96f0737a4849accb57 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nipype/interfaces/minc/tests/test_auto_Dump.py | bcca2a480195741d1cc2f4ccc5cdf6e3271a276a | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 1,907 | py | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..minc import Dump
def test_Dump_inputs():
input_map = dict(
annotations_brief=dict(
argstr='-b %s',
xor=('annotations_brief', 'annotations_full'),
),
annotations_full... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
0e0907a2c30e43dfe4c7e066e907fee82622fc62 | 54060498cf7bd55d606746fb957e92d00b6c00d0 | /vention_ws/src/moveit_tutorials/doc/move_group_python_interface/scripts/test.py | b32ab21c423768fa373b4cd9d2804ef229d9c15f | [
"MIT"
] | permissive | chinmaymulayy/panda_robot | b240c7bd80878e4a002c814c3a060705b70818ac | ef9df8b047d9a01d62618bad526e7d6f2b8a36b4 | refs/heads/main | 2023-02-21T21:38:54.827561 | 2021-01-25T03:41:25 | 2021-01-25T03:41:25 | 331,768,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,780 | py | #!/usr/bin/env python
# license removed for brevity
import rospy
from std_msgs.msg import Float32
from geometry_msgs.msg import Pose
from std_msgs.msg import String
import tf
import geometry_msgs.msg
from tf.transformations import euler_from_quaternion, quaternion_from_euler
import time
from move_group_python_interface... | [
"64719497+chinmaymulayy@users.noreply.github.com"
] | 64719497+chinmaymulayy@users.noreply.github.com |
0ca1c1d552e8fa8c24fcb96b77f1f6893c9c58ba | 9e6cea9fcfe5c55bce5fb0f96c0d7722e58ca489 | /code/projutils_ts.py | 6644d163d52edaecae62735a4ecacbb959c89ab0 | [] | no_license | bert9bert/forecast_wiki_traffic | 0116b359581b832522f1c06d047cdecc074140a0 | 89ed8a4a176795fd62d9bbaf5e86b94eb88dc7eb | refs/heads/master | 2021-04-18T18:45:34.624045 | 2018-10-28T18:23:33 | 2018-10-28T18:23:33 | 126,279,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,622 | py |
import numpy as np
import pandas as pd
from collections import OrderedDict
import time
import warnings
from statsmodels.tools.eval_measures import mse
from projutils import smape
import rpy2.robjects as robjects
from rpy2.robjects.packages import importr
# import r objects
ts = robjects.r("ts")
forec... | [
"bert9bert@users.noreply.github.com"
] | bert9bert@users.noreply.github.com |
1be1bbed7d3387625c039c4ccd2ba612719d214c | fa12ab2fcc2540b1d4617610369996ceb5a11501 | /assignment-3-an-object-oriented-pokedex-pikachu/pokedex_request.py | 94adfdca387b12364b55d6ee875822a660a8205b | [] | no_license | lizhiquan/learning-python | f0fd4dbc790f1881bd4f742e5996475650efaee9 | e86956c69006f96221349fe9bd4925ad2255601e | refs/heads/master | 2023-02-17T21:50:10.317836 | 2021-01-17T19:50:33 | 2021-01-17T19:50:33 | 330,473,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,518 | py | """
This module contains the PokedexRequestManager for the program.
"""
import asyncio
import aiohttp
import pokemon
from cli_request import QueryMode
class PokedexRequestManager:
"""
Manages HTTP GET requests to the Pokedex API.
"""
ENDPOINT = "https://pokeapi.co/api/v2/{0}/{1}/"
"""
Unforma... | [
"quyen.lechi@gmail.com"
] | quyen.lechi@gmail.com |
313fc8191b1743de3783064de080d33d44b1a948 | 889733653caad8d387de9b45abf1b6ae11c73f00 | /src/stump.py | 34e83e90868ac1a8174564f581fb3a4d3c65d125 | [] | no_license | wkru/car-evaluation | 3a8620cd8f6ee0305747601ffbca7d863be82a40 | 738ff24349d7ad734f24464eeeab76620434c747 | refs/heads/master | 2020-12-21T04:28:59.817009 | 2020-01-28T14:35:53 | 2020-01-28T14:35:53 | 236,307,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | import names as n
import sys
import math
import numpy as np
class Stump:
def __init__(self, features):
self.decision_dictionary = []
self.features = features
self.feature = -1
def learn(self, dataset):
self.decision_dictionary = []
self.feature = -1
counters = ... | [
"a.iskandar.j@gmail.com"
] | a.iskandar.j@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.