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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f36d02da184f8af38501b9b4024f49f2818710a7 | 17104ec32410aa75638b6264f8ec7621d4722f13 | /settings.py | 4267c87782fb790f392d0efbf3a1c4da4f305697 | [] | no_license | kdudkov/modbus_server | fd7ee367658f5974cf2366f73c4649fd51ad4719 | 28376345d71f095f482db5237f533f86f2aedfd8 | refs/heads/master | 2021-06-04T04:12:36.631039 | 2018-02-04T19:55:59 | 2018-02-04T19:55:59 | 56,672,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | from translators import SimpleChiniseBoard
modbus_serial_port = '/dev/rs485'
translators = [SimpleChiniseBoard(1), ]
| [
"kdudkov@ya.ru"
] | kdudkov@ya.ru |
2e0178ccf2d9b0262a0c5b3da2ca9630a3ca4b9f | 7cc44140110528c3eb3b0ef141d85500d506c390 | /projets/CHALLET GITENAIT/projet5.py | 5a4ca0c99ce249284cea501f2a5503d5a9682dab | [] | no_license | cedric-lemery/ISN2020 | 3d15568dfde4cafe03a5cd994957e42ac0018fef | a814dd91d0ecacfbcf5af16e4c0001d6e20b3e24 | refs/heads/master | 2021-03-29T04:23:42.424393 | 2020-06-14T17:42:55 | 2020-06-14T17:42:55 | 247,919,858 | 1 | 4 | null | 2020-06-14T17:31:23 | 2020-03-17T08:44:29 | Python | UTF-8 | Python | false | false | 4,019 | py | #tristan
#audric
#Flappy bird
import pygame
import traceback
from random import randint
import time
from pygame.locals import *
pygame.init()
temps = pygame.time.Clock()
largeur= 1200
hauteur= 600
fenetre= pygame.display.set_mode((largeur,hauteur))
pygame.display.set_caption("Flappy Bird")
fond... | [
"32592390+cedric-lemery@users.noreply.github.com"
] | 32592390+cedric-lemery@users.noreply.github.com |
0569a217747c9a5c1fadbd6e98e8480130bbee8d | bd5b3934969ebf4f693ceb4be17a68f9c3ebd414 | /beginPython/fluentPython/ch08/copytest1.py | ba170cc4288d8b197b1b26738b0672ae5925b8f2 | [] | no_license | lyk4411/untitled | bc46863d3bbb2b71edf13947f24b892c2cf43e1a | 875b7dfa765ffa40d76582d2ae41813d2e15c8bd | refs/heads/master | 2021-04-06T09:09:08.977227 | 2021-03-10T02:56:34 | 2021-03-10T02:56:34 | 124,990,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | a = [10, 20]
b = [a, 30]
a.append(b)
print(a)
from copy import deepcopy
c = deepcopy(a)
print(c)
print(c[2])
print(c[2][0])
print(c[2][0][2])
d = c[2][0][2] | [
"moneyflying_2006@hotmail.com"
] | moneyflying_2006@hotmail.com |
6e898979b150fb54a4595eb314dab1b451458b57 | 2f48a4adb131621c7ad4d772af67b2c40f2f41d7 | /Dev/cfehome/src/cfehome/settings/local.py | 5b2998780c13424b1ac9087a958d349feb9b9ee3 | [] | no_license | akashbijwe/Python | ad0f6ae36e41e08a4ed24bfdcefde3287cefeb14 | 17948ece6835e240584d6835cce66eb75c4f1b22 | refs/heads/master | 2022-11-02T00:13:19.858003 | 2018-07-27T11:45:13 | 2018-07-27T11:45:13 | 141,707,337 | 2 | 1 | null | 2022-10-21T13:18:59 | 2018-07-20T12:05:30 | Python | UTF-8 | Python | false | false | 3,116 | py | """
Django settings for cfehome project.
Generated by 'django-admin startproject' using Django 1.11.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"mr.akashbijwe@gmail.com"
] | mr.akashbijwe@gmail.com |
afe4f7e00298821574b0f0210c6711e31cc6fca0 | d0a358ca8fe4f2bf8743354bb8ab5ceab656bdc7 | /alignment/wham/models.py | bdaae23a78d1d6563fb1a044370eb3ad3c3dbfbe | [] | no_license | winobes/lasn | 910b8bcd940dddee143e50264c4491e3092b1edc | ebef896ea64aa30c3be9e6f445dd09a235e15696 | refs/heads/master | 2021-01-24T08:20:05.138210 | 2019-04-13T17:03:04 | 2019-04-13T17:03:04 | 69,143,253 | 4 | 1 | null | 2017-11-17T22:49:29 | 2016-09-25T04:15:49 | Python | UTF-8 | Python | false | false | 1,577 | py | import pandas as pd
import pystan
def fit_wham_nosubpops(reply_pairs, markers, sample=None):
# merge the marker usage columns for the reply pair
for m in markers:
reply_pairs[m] = list(zip(reply_pairs[m+'_a'], reply_pairs[m+'_b']))
# reshape
df = pd.melt(reply_pairs, id_vars = ['user_a', ... | [
"winobes@gmail.com"
] | winobes@gmail.com |
970f789de95468e7ab88ed4a5cb7f0c5f50a547c | 24a4bf21aa59350b016853349b0dfaa8c971516a | /YounJongSu/mid_hw/matrix_chain_multiplication.py | d18e61ef6538df4117430b1067f539e7ddd1981e | [] | no_license | oereo/Algorithm_thursday | 3f73791c10496d577dec3a6e424fc0dfae5f42c0 | 6850d7a4385bd33166c06ed4228428f376327e4e | refs/heads/master | 2022-09-11T16:37:03.108128 | 2020-05-30T12:12:35 | 2020-05-30T12:12:35 | 263,600,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | import sys
def MatrixChainOrder(p, n):
m = [[0 for x in range(n)] for x in range(n)]
for L in range(2, n):
for i in range(1, n-L+1):
j = i + L - 1
m[i][j] = sys.maxsize
for k in range(i, j):
q = m[i][k] + m[k+1][j] + p[i-1]*p[k]*p[j]
... | [
"dbs106@gmail.com"
] | dbs106@gmail.com |
b3d768c3ef0a4d459076b7697959c0d53bdb2fa1 | 17b1249a8d7868ce0f56e7b539308e571bcaf888 | /conftest.py | a746df4229b24bbc82707f61853dcfce7b54425c | [] | no_license | UyliaGor/lesson_3.6_step9 | 4041b586de9e3b936ad132abdde7ebd193724c89 | fbd16002cbf5527285aa98650ed0c3049c1c885f | refs/heads/main | 2023-07-09T00:49:04.445614 | 2021-07-22T09:35:22 | 2021-07-22T09:35:22 | 388,182,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import NoSuchElementException
def pytest_addoption(parser):
parser.addoption('--browser_name', action='store', default='chrome',
help="Choose browser: chrom... | [
"jkireenko137@gmail.com"
] | jkireenko137@gmail.com |
4b307fe96486875b343a028769a3cd2960ea4026 | da459298c4bdbb745f4ed80ce1c9da15dd8fbb34 | /demisto_sdk/commands/lint/resources/pylint_plugins/certified_partner_level_checker.py | 981ddc9f3d5f604f670e1dfe61b03fc2be380a78 | [
"MIT"
] | permissive | demisto/demisto-sdk | af998a87523d03097f725ed8f31f6a44f4605ef2 | 3169757a2f98c8457e46572bf656ec6b69cc3a2e | refs/heads/master | 2023-08-22T03:44:31.654275 | 2023-08-21T14:45:22 | 2023-08-21T14:45:22 | 219,291,269 | 63 | 75 | MIT | 2023-09-14T14:41:12 | 2019-11-03T11:36:13 | Python | UTF-8 | Python | false | false | 8,826 | py | # You can find documentation about adding new checker here:
# http://pylint.pycqa.org/en/latest/how_tos/custom_checkers.html#write-a-checker
"""
#### How to add a new check?
1. Chose the lowest support level that the checker should check.
2. Add a new checker in the `<support>_level_checker.py` file.
1. Add a new ... | [
"noreply@github.com"
] | demisto.noreply@github.com |
5d047cf6f9557497961864d7edee842ef2bdf485 | 135d94d4d5c9f9d7cf242f9be17d8cdef2ec5c02 | /02Python基本语法/10模块/random模块.py | 9f6d4bd0443d35facb4a54c85dcfa68f8ee9b984 | [] | no_license | CodingHaHa/PythonBase | ad0982f93cfd9ffa850424538af0072076bfc8b9 | 51da00cb81851b9301045796aa3e32eb52293443 | refs/heads/master | 2021-01-20T21:37:29.502478 | 2017-09-27T16:05:39 | 2017-09-27T16:05:39 | 101,774,891 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by fengL on 2017/9/4
import random
#1:返回0-1直接的随机数
print(random.random())
#2:返回一个范围内的随机整数
print(random.randint(1,8))#返回1-8包括8在内的随机整数
#3:返回一个随机字符
print(random.choice("hello"))
print(random.choice([1,2,8,9,5,3]))
print(random.choices(["hello",15,"abc",1010]))
pri... | [
"645528331@qq.com"
] | 645528331@qq.com |
cb8e0c1ccc59a707870cdfaf0dcc196eab7b9667 | 654f667027a96234c9243b588a9ceba22707f0ce | /image_gallery/urls.py | 903aff6b64da102aca33317f476dd02f58824020 | [] | no_license | sabsekr/ImageGallery | 1e9c3820a5913a3e58a45ecec3055136bf3df500 | cfa2982531bc345b6a8f052035906839347df9dc | refs/heads/master | 2020-12-02T06:06:43.752484 | 2016-09-11T19:31:36 | 2016-09-11T19:31:36 | 67,949,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from django.conf import settings
from django.conf.urls import url
from django.conf.urls.static import static
from . import views
"""
ex: /imagegallery/5/
ex: /imagegallery/add/
"""
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^(?P<pk>[0-9]+)/$', views.ShowPhotoV... | [
"sabsekr@gmail.com"
] | sabsekr@gmail.com |
ef9831a4ec3f53c650cd71d2f9e61f0cadb9b5ee | 1c5d7d4156bf22832dac3eb80016f9e92eccce02 | /Bens_code/sprint_1_code.py | 837e07fd37d549aa666f27f49bf9b6d926b96a06 | [] | no_license | kaissaradi/Checkers-Survival | dfafb7e6ba00060ff18d6b2492f0e429ed0f1bb1 | 31dbf00c98ca8c2aa5040abeb840092e8aef895d | refs/heads/master | 2022-11-25T19:52:59.960851 | 2020-07-15T01:52:05 | 2020-07-15T01:52:05 | 279,734,570 | 0 | 0 | null | 2020-07-15T01:46:41 | 2020-07-15T01:46:40 | null | UTF-8 | Python | false | false | 2,589 | py | import random
print("test file") #testing if file works
class item:
"""Item class of the game."""
def __init__(self, name, str_desc):
"""Creates an item object.\n
parameters: name, str_desc"""
self._name = name
self._str_desc = str_desc
def get_name(self):
ret... | [
"benjamin.condrea@gmail.com"
] | benjamin.condrea@gmail.com |
645ffb55785736ab413eafd83055b6a5cf76c0ad | d177a5a49fcfb2fbaabb8254029f32708115e404 | /scorch/WikiList.py | c78ad2fb958dba6e8df5d8fc885f52114bfeb66f | [
"LicenseRef-scancode-public-domain"
] | permissive | pmachapman/singrcnz | b985175de4322723c09898c0ef2b193845c8bf6b | bd099df66f4d40ecb1c201c969acba526bba8b53 | refs/heads/master | 2022-12-23T02:23:03.129270 | 2021-02-11T10:43:44 | 2021-02-11T10:43:44 | 194,562,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | #! /usr/local/bin/python
import sys, os
from glob import glob
import fnmatch
def link(song):
link = song.replace(' ', '_').replace(';', '%3b')
return 'http://hymnal.ws/public/Songs/%s.htm' % link
def listPsalms(dest, filename):
print >>sys.stderr, 'Working on "%s"' % filename
song = os.path.basename(... | [
"berwynhoyt@users.noreply.github.com"
] | berwynhoyt@users.noreply.github.com |
8ca06a4fb7458b5fab1dd5ea0ab800643ed04f7d | 3cda9193890d149833ae022539d91cdb6fab9cbf | /api/news/models.py | eb1146a15ef8540de24b3e4e6b3d36b5267d40ca | [] | no_license | ITT13021/share-your-story-backend | 1f49d79c4326c423801618ab095f05ca2de4cd28 | e29f592eb7b363a17d2891e4d041aff484d5b4a6 | refs/heads/master | 2020-03-07T21:16:47.948076 | 2018-05-08T09:04:02 | 2018-05-08T09:04:02 | 127,722,235 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from api.user.models import User
class AbstractAuditCreate(models.Model):
create_user = models.ForeignKey(User, models.DO_NOTHING, related_name='%(app_label)s_%(class)s_create_user_set', blank=True, null=... | [
"473457683@qq.com"
] | 473457683@qq.com |
f141eec00b50fc9b1d9c129ec4d8dc3f8b6e3292 | f56a22bd81264edf0b18ba9fa2d9aa504f7579cb | /main.py | 7eaacf94041457e17b229528b285399e6511898b | [] | no_license | omega-photonics/dragon-pyBOTDR | 7dfa99441e0e9c44e9cd2e21e561207b4be9f67f | 8996b474028a8404affc87f0e1ff6aa413100451 | refs/heads/master | 2016-09-06T11:35:46.932293 | 2012-08-07T20:28:20 | 2012-08-07T20:28:20 | 5,084,196 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import sys
from PyQt4 import QtGui
from mainwindow import MainWindow
def main():
app = QtGui.QApplication(sys.argv)
wnd = MainWindow()
wnd.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()
| [
"gleb.budylin@gmail.com"
] | gleb.budylin@gmail.com |
2241964cc9bed0e9b197a44c20608f0c0f5af726 | d3fab385fadb66b9d86e7c7d7094319b85a225a0 | /pyCalculator.py | 281ad662d4ad314b12f1c35e61b80d9c021aa036 | [] | no_license | karenmcewen/pyCalculator | 03b8a4d628220c94607b0444fa6a95853ffb5142 | a9a5f763dec29fe35cdeea2afd7a00b62f838c51 | refs/heads/master | 2020-03-19T07:15:19.948674 | 2018-06-12T00:43:42 | 2018-06-12T00:43:42 | 136,099,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,373 | py | # this is a simple python calculator that does not use NumPy
def menu():
print('MENU')
print('1: Add +')
print('2: Subtract -')
print('3: Multiply x')
print('4: Division /')
print('5: Square x^2')
print('6: Exponent x^y')
print('7: Square Root x^0.5')
print('Press any other number to... | [
"karenmcewen.engineer@gmail.com"
] | karenmcewen.engineer@gmail.com |
2678eae76cccda14c085c8bec4b17a3fd445b084 | cb8c110b66eb53b1d9b8a057c3f5ea2875282e76 | /greatkart/urls.py | 3b48a686d0e9311868f9744896b8133338a02afb | [] | no_license | sampanar/greatkart | 02611ee4520db85ca403b03e7daec0bf5a5bae3f | e3826c9adfe8b2d4838e24f1bb4000cdd6816dd6 | refs/heads/main | 2023-06-17T23:16:25.873164 | 2021-07-16T12:28:47 | 2021-07-16T12:28:47 | 378,828,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | """greatkart URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"sampan.arora22@gmail.com"
] | sampan.arora22@gmail.com |
d2df054bc8bcfdd22a460700a2a251b842cf4b38 | 1997039813917d5723e0db44f0271e3c08f401a6 | /Python/capitlize.py | 7f1771c5fc6cfe8cbcca7226bbcf3f1f2056bc02 | [] | no_license | 7Aishwarya/HakerRank-Solutions | 6fe0f331d1c8e9a0b4c6da662658fc3c3ab83098 | a33740d0fbdb5a3b2984e87ea904a5e359bb8fa9 | refs/heads/master | 2021-07-23T18:57:09.324414 | 2020-07-07T13:33:05 | 2020-07-07T13:33:05 | 194,402,004 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | '''You are asked to ensure that the first and last names of people begin with a capital letter in their passports.
For example, alison heck should be capitalised correctly as Alison Heck.
Given a full name, your task is to capitalize the name appropriately.'''
#!/bin/python3
import math
import os
import random
im... | [
"7aishwaryasharma@gmail.com"
] | 7aishwaryasharma@gmail.com |
eea76d555f147fc3a42c95e7b875e4c2f188b39b | ea41c6aecd5613551e4d689441227927726c5956 | /twitter_client/twitter_full.py | cfb2842668eaf6cb75f1ab7478899d9f2cd54877 | [] | no_license | filipcima/spja-course | e9efcaec5e419e89743e197b86e6d7a04172e494 | da1297850eddd2ed3ab853d50794e61bb4cdbb69 | refs/heads/master | 2021-05-07T07:51:35.305801 | 2017-11-06T10:34:53 | 2017-11-06T10:34:53 | 109,270,716 | 0 | 0 | null | 2017-11-02T13:48:53 | 2017-11-02T13:48:53 | null | UTF-8 | Python | false | false | 1,907 | py | import json
import re
import urllib.request, urllib.error, urllib.parse
import tc_auth
PINK = '\033[95m'
RESET = '\033[0m'
BLUE = '\033[94m'
GREEN = '\033[92m'
WARNING = '\033[93m'
RED = '\033[91m'
class Tweet(object):
def __init__(self, from_user, text, geo):
self.from_user = from_user
self.text... | [
"jan.gaura@gmail.com"
] | jan.gaura@gmail.com |
2f89a47fc5df0e949f3b465976d52f2158fbeed9 | 0c80a8a8cc8cb2b8ed552b1f2cde7bd8fe14c4f4 | /SmallLedgerSite/migrations/0004_auto_20190810_1052.py | 66313fccae993881b79a60f19137d8508a144c59 | [] | no_license | Tenchrio/smallledger | 489498dce7f4b93f48790ae29453a8ad773cb044 | 15296a8f7351e1dc94ae04bf9c2ebb94e001d1fb | refs/heads/master | 2022-05-16T03:04:57.871955 | 2019-09-10T19:12:25 | 2019-09-10T19:12:25 | 203,612,051 | 0 | 0 | null | 2022-04-22T22:12:28 | 2019-08-21T15:22:52 | Python | UTF-8 | Python | false | false | 445 | py | # Generated by Django 2.2.4 on 2019-08-10 10:52
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('SmallLedgerSite', '0003_auto_20190810_0326'),
]
operations = [
migrations.AlterField(
model_name='i... | [
"chrisvannooten@hotmail.com"
] | chrisvannooten@hotmail.com |
1e044eaac95ce45cb6c996e9cae893b570490893 | 428f788e24387b8d0c71a04d221bf40dc85840e1 | /Methods/kernels.py | 6c53720a27fb039fea83258eca442183bdd38727 | [] | no_license | wendixuan/Thesis_Project | 08f382f5ba922b377148d50a60beaeb340dec1cd | efd00f349a2dff1909f17ee9455379bf6ebeb1d2 | refs/heads/master | 2020-06-30T19:04:19.500412 | 2016-09-05T20:07:16 | 2016-09-05T20:07:16 | 67,286,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,271 | py |
######################
#
#This code was modified basedon the code of 'Kernels for sequentially ordered data' written by F. J Kiraly and H. Oberhauser.
#
#############################################################
######################
#
#This code can be use to do SVC with bag of features kernel, sequential kernel... | [
"noreply@github.com"
] | wendixuan.noreply@github.com |
e8ce66cb451166e57756c3b243911ae9d5f057c7 | 3948f21c00c4eb31d1a31f702f2ab44b4b5d53b5 | /fabfile/aws_ssh.py | d8e5edc409f3a53433592c8ae5263215adb68e63 | [] | no_license | cwurld/Django-Fabric-AWS | f85b24fffd8e3b7e85e26a99f36080aa9bf547a3 | 621851ccc3d48569f97005ab7050989f5c77aed7 | refs/heads/master | 2021-01-20T23:45:12.363771 | 2014-09-03T23:16:00 | 2014-09-03T23:16:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | #!/usr/bin/env python
import subprocess
from project_conf import fabconf
if len(fabconf['EC2_INSTANCES']) == 0:
print "Error: you need to add the instance domain name to project_conf.py"
else:
cmd = 'ssh -i ~/.ssh/%s %s@%s' % (fabconf['EC2_KEY_NAME'], fabconf['SERVER_USERNAME'], fabconf['EC2_INSTANCES'][0])
... | [
"cwurld@yahoo.com"
] | cwurld@yahoo.com |
4a932772a4f8979c35efa0e079839b3304fb886b | 7fd955ef5e793bde3d16a73b16df1d8a9063175a | /Function_201704013_박현주/function.py | 32686c10c7031c8120ced64245fd39422918367a | [] | no_license | hjpark1397/Python_practice | 7decb1a31c6cda03deca52c2ca3ad8bb4e3e5c3f | 5edce56eb9d50bb62668b7ebc24c8ba9e31e6bc6 | refs/heads/master | 2020-05-04T20:08:59.556420 | 2019-12-24T04:46:52 | 2019-12-24T04:46:52 | 179,424,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | def f(x):
return 2*x+7
def g(x):
return x**2
x=2
print(f(x)+g(x)+f(g(x))+g(f(x))) | [
"hjpark1397@naver.com"
] | hjpark1397@naver.com |
d4a2c585f89207cf0f85b769520fcfeeed9e915f | 283bbebacdbc028d05949d6b65cb69046f59061a | /Project_3-Basic Algorithms/problem_1.py | 6a5534b8bcb587185988666e42fbe0f7ceaf8684 | [] | no_license | mohitgureja/DSA_Nanodegree-Python | f324e02fe9f7a4711383066d38223720ea5b7a23 | 4267183df499e05efd3d528114d0c2c42aec1029 | refs/heads/master | 2021-05-23T09:34:25.233681 | 2020-07-25T11:13:23 | 2020-07-25T11:13:23 | 253,223,318 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,059 | py | def sqrt(number):
# if number is 1 return 1 as the number 1 is square of itself
if (number == 1):
return 1
# set globally max perfect square value and max Floor value to 0
global maxSquareValue
maxSquareValue = 0
global maxFloorValue
maxFloorValue = 0
def findSqrt(number... | [
"gurejamohit.32@gmail.com"
] | gurejamohit.32@gmail.com |
deb5f2b72979cfd127edf7c11a14da041eea92b6 | 11e383e9dd72548a9333f2270a2f707e2e221e64 | /famOasis_Web/dh.py | c144cd719d50f0f22b675b21a308073cf538446c | [] | no_license | ajaykumar1018/famOasis | 6edba8c5c7d720e79973960d38855f4288ae78ee | 1f6dfb60d13d2239f5be4bcdceba1608a9606196 | refs/heads/master | 2022-10-14T10:19:10.221257 | 2020-06-13T08:02:03 | 2020-06-13T08:02:03 | 255,266,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import pickle
from Depression_detection_tweets import TweetClassifier
from tes import answers,session
from textblob import TextBlob
f = open('my_classifier.pickle', 'rb')
ff = open('my_classifier2.pickle','rb')
sc_tf_idf = pickle.load(f)
sc_bow = pickle.load(ff)
an = answers.query.all()
# text1 = answers.query.fiter_... | [
"42745121+ajaykumar1018@users.noreply.github.com"
] | 42745121+ajaykumar1018@users.noreply.github.com |
787ee0eb14a92213c08a371b3ade200df4900c40 | e4e4512859cc7b84236ec8ae9d90df614f6087b2 | /anagrams.py | e49126cda7a8a0f9c78300872fe01a0bef76b2c3 | [] | no_license | csepdo/codecool | 5bceaeb9dccbc7dbfbd547a0546308aa057c7f2a | a7219f73f4104763e54f4b438e8a9d47a2a26fbe | refs/heads/master | 2020-03-27T15:28:57.304461 | 2018-09-07T21:37:14 | 2018-09-07T21:37:14 | 146,720,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | import sys
from itertools import groupby
file = sys.argv[1]
with open (file, 'r') as f:
anagrams = f.read().splitlines()
anagram_groups = [list(group) for key, group in groupby(sorted(anagrams,key=sorted),sorted)]
print('\n'.join('{}. {}'.format(*k) for k in enumerate(anagram_groups))) | [
"arodzeta@gmail.com"
] | arodzeta@gmail.com |
4423dbbd57cd1e8af4efb574b2b4bd76ccb3b0bd | 097bbe7b57927d90d47345e2f8f2d4b259975c98 | /tests/genmake.py | 3e63e59dce1f38902da937055be3df075a2366fe | [
"BSD-2-Clause"
] | permissive | sudokuhk/libfresample | e4fda01d4f92851f523a4987bd4d4ea8c9a891b8 | 884c39a71a3af579c40eb2798854b82bf54a4b37 | refs/heads/master | 2021-01-24T04:13:09.611311 | 2012-10-17T16:28:08 | 2012-10-17T16:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,990 | py | #!/usr/bin/env python
try:
from cStringIO import StringIO
except ImportError:
from io import StringIO
class Makefile(object):
def __init__(self):
self._fp = StringIO()
self._all = set()
self._targets = set()
self._phony = set()
def add_default(self, x):
self._all... | [
"depp@zdome.net"
] | depp@zdome.net |
7125798784ef01fa24733603fcc0ad6664d8c0ec | 9cc7254a81b606e139db8ca39ea3f67039e7ceda | /src/application/commands/populate_db.py | f4e712b8ac50742a000d615068ec7bb19b97e93a | [] | no_license | zxy-zxy/quiz_bot | 58523e006a5c4ef88d2def67683efdad9d161d09 | 66e8b2de69b7a45de7f8de08d62b7f897a803605 | refs/heads/master | 2023-04-12T18:19:05.123427 | 2019-06-15T19:27:41 | 2019-06-15T19:27:41 | 190,882,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,709 | py | import os
import sys
import itertools
import logging
from redis import exceptions as redis_exceptions
from application.models import QuizQuestion
from application.parser import QuizQuestionsFileParser
logger = logging.getLogger(__name__)
def run_command(quiz_questions_directory, default_encoding, files_limit=None)... | [
"sinitsinvanya@gmail.com"
] | sinitsinvanya@gmail.com |
d4847cc2ffa88846557e44295022e54e8e899956 | 164457b943d0b426e9a5e2eb57779e4e37f2d1bb | /the_tale/game/heroes/storage.py | 34abfcf90eaa1db6bd9823c436cf520f42c1ceed | [
"BSD-2-Clause-Views"
] | permissive | lshestov/the-tale | 64334fd99a442ad736d9e8a38e8f0fb52d0ebab6 | 6229edfec6420307975269be9926c68ecdefb930 | refs/heads/master | 2021-01-18T08:38:44.147294 | 2015-10-27T18:43:10 | 2015-10-27T18:43:10 | 50,228,827 | 0 | 0 | null | 2016-01-23T07:38:54 | 2016-01-23T07:38:54 | null | UTF-8 | Python | false | false | 1,984 | py | # coding: utf-8
from utg import words as utg_words
from utg import relations as utg_relations
from the_tale.game.map.places import storage as places_storage
class PositionDescriptionsStorage(object):
def __init__(self):
self.clear()
def clear(self):
self._actual_places_version = places_sto... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
17f97e77fbada90c673d10c240538123e9aa8a1c | ca2675e967d488e58386714c582c3d937e4cc2c7 | /simsms.py | 62a9fcba6139e7fc28af4e68e5291d8e52f042c2 | [] | no_license | renatick321/bot | b500e0159ae7952dce439a0d8d3d132748bbc5a0 | 21d302132f95282e2f138df9d8e0b8afed99b77c | refs/heads/master | 2022-12-05T13:18:02.771551 | 2020-08-03T10:31:02 | 2020-08-03T10:31:02 | 284,669,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,944 | py | import requests
import random
from time import sleep
APIKEY = 'JFOlfs3vSFy7YcCFzBVVKoKI7kQxJ4'
SERVICE = 'qw'
OPERATOR = None
BAD = 8
GOOD = 6
BALANCE_URL = f"https://smshub.org/stubs/handler_api.php?api_key={APIKEY}&action=getBalance"
NUMBER_URL = f"https://smshub.org/stubs/handler_api.php?api_key={APIKEY}&action=... | [
"afarut5@ya.ru"
] | afarut5@ya.ru |
6aa4e0fe0055f74b1565433911d407bbeb89fe42 | f02b21d5072cb66af643a7070cf0df4401229d6e | /leetcode/depth_first_search/737-are_sentences_similar_2.py | dd14083e5fc358f23aafd1704a573f4e43389df1 | [] | no_license | dbconfession78/interview_prep | af75699f191d47be1239d7f842456c68c92b95db | 7f9572fc6e72bcd3ef1a22b08db099e1d21a1943 | refs/heads/master | 2018-10-09T22:03:55.283172 | 2018-06-23T01:18:00 | 2018-06-23T01:18:00 | 110,733,251 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,438 | py | class Solution:
def areSentencesSimilarTwo(self, words1, words2, pairs):
"""
:type words1: List[str]
:type words2: List[str]
:type pairs: List[List[str]]
:rtype: bool
"""
if len(words1) != len(words2):
return False
graph = {}
for w1... | [
"Hyrenkosa1"
] | Hyrenkosa1 |
6ac74eecc49751a4e763521bcc7080c337b70b26 | 638e55b080837f1ee7615a67cbd878062d469121 | /NesneTabanli.py | 1e3ad58d1b28457dd703d28164a2e12770eaebe2 | [] | no_license | burakkuru5534/pythonprojects | 40e3a21c4795712a20f6c398567f44aa7f9286cd | 42eaf79b04a267a31c00272734b43f4e2c069747 | refs/heads/master | 2020-03-29T23:09:56.270840 | 2018-09-28T13:46:48 | 2018-09-28T13:46:48 | 150,459,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # class tanımlaması ve class ın nesnesini tanımlamak #
class Sinifim():
#classın değişken ve fonksiyonları
sinif_degiskeni="değişken"
def sinif_fonk():
pass
Nesnem = Sinifim()
print(Nesnem.sinif_degiskeni)
# damn it
| [
"noreply@github.com"
] | burakkuru5534.noreply@github.com |
ac61e4c05327592079b4fceaf56f8993dfe156fc | 0b22832a6f1babb063ea38774a4437702d83bf81 | /pygame_geometry/materialline.py | 5a731246f4d2885a4d79669a82a6289a73e7240e | [
"MIT"
] | permissive | MarcPartensky/Pygame-Geometry | c3d7c68bcec19092aecd3faf89b838b36f192a49 | 61abbbeac0fd351253e06b19736d9939fd5b316e | refs/heads/master | 2022-12-08T15:23:24.467015 | 2020-09-06T00:29:56 | 2020-09-06T00:29:56 | 293,174,314 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | from .abstract import Line
class MaterialLine(Line,Material):
"""Base class of the ground class."""
def __init__(self,point,angle,mass,**kwargs):
"""Create a material line."""
super().__init__(point,angle,**kwargs)
self.mass=mass
class Ground(MaterialLine):
"""Subclass of the mate... | [
"marc.partensky@gmail.com"
] | marc.partensky@gmail.com |
c961fed5839570f6d3167e4e2845df645059d079 | 2ce950f21909f6c9ed8d58b1dea4a524f90a173d | /allmessages/apps.py | d209ceccab4ab30591c4792e9ea5b5d9de12062a | [] | no_license | denyslipin/chatroom-app | 2d845c76b4557c14a272e04b699e4de02fd3e70e | 505fad9eca45000b704f16f197caf03df208bfa8 | refs/heads/master | 2023-04-03T00:41:30.589696 | 2021-03-29T19:45:55 | 2021-03-29T19:45:55 | 352,712,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class AllmessagesConfig(AppConfig):
name = 'allmessages'
| [
"den@Macs-MacBook-Pro.local"
] | den@Macs-MacBook-Pro.local |
bf7cfe2eeca247650a3cbad4ee46a6f05258f6e0 | f3a9b9c553a68c63f144129cb16bffbeb842e1db | /core/constants.py | 71a2d123c7ed97be8b08f5e4bff254c87541519c | [] | no_license | adwojak/MapGenerator | 5604742bab40b7a5f7527ab71884df3777d3a484 | d2ffb0ed1400eae3787a3dabf18241aed1ffd353 | refs/heads/main | 2023-06-11T14:12:14.910380 | 2021-07-10T20:43:26 | 2021-07-10T20:43:26 | 371,958,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | EMPTY_SPACE = "."
STARTING = "STARTING"
EXIT = "EXIT"
EASY_PATH = "EASY_PATH"
UP = "UP"
DOWN = "DOWN"
LEFT = "LEFT"
RIGHT = "RIGHT"
MIDDLE = "MIDDLE"
OPPOSITE_FACES = {UP: DOWN, DOWN: UP, LEFT: RIGHT, RIGHT: LEFT}
ROOM_KINDS = {STARTING: "S", EXIT: "E", EASY_PATH: "P", "EASY_PATH2": "H"}
| [
"dwojaka207@gmail.com"
] | dwojaka207@gmail.com |
0d8b25837532ae72462d9dab6bfd5dac50b518f6 | 026c1b047604bf572a489c916fc2423e007de84e | /pfapp/migrations/0004_user_details.py | 077de4a51d8966ca4de55421517fc4f83ccdb34d | [] | no_license | akbarali97/FarmersHub | 0015e0e107617da359fd6afc0aad36ef8cae0f35 | 2fbff85306964921a9af22ff9d78553d807eba52 | refs/heads/master | 2023-08-02T00:33:33.586064 | 2020-06-10T18:34:23 | 2020-06-10T18:34:23 | 249,766,365 | 1 | 1 | null | 2021-09-22T18:58:42 | 2020-03-24T16:57:21 | JavaScript | UTF-8 | Python | false | false | 635 | py | # Generated by Django 3.0.3 on 2020-04-23 18:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pfapp', '0003_auto_20200418_2036'),
]
operations = [
migrations.CreateModel(
name='user_details',
fields=[
... | [
"31400505+akbarali97@users.noreply.github.com"
] | 31400505+akbarali97@users.noreply.github.com |
cd156b436a035984a81714acebc4b8032ed39fee | bfc01b4240baadf0531c5dd7f1b4757a4651782e | /complex_data_structures/pythonhashmap.py | c60738b12557ec14d62bcb489ceba06ede37437b | [] | no_license | jmmander/codeacademy | f3bf9ba005fc3577dd9d42e21aafaa831facd816 | 85ea3086117117cfa124caa2838772ad02d5f08d | refs/heads/master | 2022-12-29T13:19:53.736360 | 2020-10-16T18:18:35 | 2020-10-16T18:18:35 | 259,692,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | class HashMap:
def __init__(self, array_size):
self.array_size = array_size
self.array = [None for item in range(array_size)]
def hash(self, key, count_collisions=0):
key_bytes = key.encode()
hash_code = sum(key_bytes)
return hash_code + count_collisions
def compressor(self, hash_code):
... | [
"noreply@github.com"
] | jmmander.noreply@github.com |
db8653c53cd6692d5ae90a913a5b37d457020761 | a82c25a49527f48fa16f2a5303d68458ff10bdf6 | /wagtail/mywebsite/mywebsite/blog/migrations/0002_blogpage.py | 45b40dac6c51fcf081ffcec20a8bb1d13140d9e8 | [] | no_license | vdiquez/python_practice | c5159c4ea1f8b1e667e09191198dbea3d3fbb11a | ee137e6ff1775340ec3fa6e80fb26bb68564883a | refs/heads/main | 2023-03-14T06:17:22.694692 | 2021-03-01T12:09:11 | 2021-03-01T12:09:11 | 337,362,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # Generated by Django 3.1.5 on 2021-02-09 19:36
from django.db import migrations, models
import django.db.models.deletion
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0059_apply_collection_ordering'),
('blog', '0001_initial'),
]
ope... | [
"victor.ocanto@grupodiusframi.com.co"
] | victor.ocanto@grupodiusframi.com.co |
5272bf043cf544758d30293e9dba82ea6b67d7d7 | 521c1beeb2776161ae6d550be35cd0c180887129 | /elvis/Web_selenium/test_selenium/test_gps_cloud.py | 73ba994f28f98f184e079b285b9e2ff4a64f1768 | [] | no_license | elvis2workspace/CustomLibrary | 601b552792ac2c33beeb709474f857c82793ac7e | 6449eea8aa99ca1172f54b669d97703d36132ce3 | refs/heads/master | 2021-01-23T21:33:05.617871 | 2017-09-26T01:57:48 | 2017-09-26T01:57:48 | 58,983,388 | 0 | 1 | null | 2016-12-06T09:56:14 | 2016-05-17T02:22:14 | Python | UTF-8 | Python | false | false | 5,906 | py | # -*- coding: utf-8 -*-
import time
import unittest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from elvis.utils.os_opt.file_action import *
class Gps_Cloud(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome()
self.driver.implicitly_wait(30)
... | [
"xiuhai5052@hotmail.com"
] | xiuhai5052@hotmail.com |
60def32aa20ef5dc414bd621bb9d1b9d5c1d1bc5 | be8e3c729972b429e5e2ccfd050393d70a3b26b3 | /Combine/dom-analysis.py | 777bacbc1652ab043e4806c567af84fa999b4612 | [] | no_license | sofwerx/safehouse-data-transformations | 30358f0423d5b542ce514d1ce532c5778ada822c | 602faf8788df6f8e4f9b8f9eae5d069570be22eb | refs/heads/master | 2021-04-12T08:13:31.420624 | 2018-04-23T17:12:16 | 2018-04-23T17:12:16 | 126,072,300 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py |
# coding: utf-8
# In[24]:
# Initialize Variables
# Datafile Name
datafile = "domoticz.csv"
# Data Preperation
# Notes
# Assuming Dateime is not unique
# Assuming not many nonzero variance columns
# If datarows are larger than 100,000 will only sample 100,000
# Import Libraries
import pandas as pd
from ... | [
"david.salvador@sofwerx.org"
] | david.salvador@sofwerx.org |
f16efb496479cb9615556bdaf695e3a72fd48ec9 | fd2b8a1e64f9d61ef4312ef6416c0ad257b13a32 | /Scripts/tkinter_tutorial.py | ee59f1908d87f621e00f59c8dbcd93580f68a15f | [] | no_license | David-Fde/Commander | 09414fa7120ec5e9bcff4e242784937a77e30973 | 079c8f3bc0f4f9d16cd0282af4a6f478d2f97685 | refs/heads/main | 2023-06-15T18:31:13.145142 | 2021-04-14T09:05:37 | 2021-04-14T09:05:37 | 322,359,350 | 0 | 0 | null | 2021-04-14T09:05:37 | 2020-12-17T17:00:39 | Jupyter Notebook | UTF-8 | Python | false | false | 499 | py | import tkinter
window = tkinter.Tk()
# to rename the title of the window
window.title("GUI")
# pack is used to show the object in the window
label = tkinter.Label(window, text = "Hello World!", font=("Arial Bold",20))
txt = tkinter.Entry(window,width=10)
txt.grid(column=1,row=0)
def clicked():
res = "Welcome to "... | [
"fernandezvazquezd@gmail.com"
] | fernandezvazquezd@gmail.com |
b40a54eaab98089552b8f3ec7360ea33a89a29f5 | d80ab47432a3b852b9426c5d03a549a7462e40aa | /pytorch3d/renderer/mesh/clip.py | d35e1a9a60e501cd5cf073e04bbdd403de39992c | [
"BSD-3-Clause"
] | permissive | filsv/pytorch3d | 3b37ca30f1c901f0286fea1056a2caa4d0c7e612 | b8790474f16994d75e6cf64447080f1b52bcc292 | refs/heads/master | 2023-06-13T07:26:34.317775 | 2021-06-28T13:30:27 | 2021-06-28T13:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,814 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from typing import Any, List, Optional, Tuple
import torch
"""
Mesh clipping is done before rasterization and ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
29743da945b32bb253a1d188218d8518c97ca081 | b3e385806fd08ecdf4e4f9e57a03593f76986f6d | /main.py | 70dea63c8f25c9d75b85204fc6b0889f453e98db | [
"MIT"
] | permissive | AnweshCR7/MelanomaDetection | d70f762883a9f35aad4ed4467fc7d50be4dc5caa | 186707833f9dc88b799c3aa8613e53ef762e3ad1 | refs/heads/main | 2023-02-09T05:57:55.652883 | 2021-01-01T16:10:33 | 2021-01-01T16:10:33 | 322,903,614 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,676 | py | import os
import torch
import numpy as np
import pandas as pd
import albumentations
import config
from model import SEResnext50_32x4d
from sklearn import metrics
from dataset import ClassificationDataset
from engine import Engine
from early_stopping import EarlyStopping
import ssl; ssl._create_default_https_context = ... | [
"anwesh.marwade@beyondsports.nl"
] | anwesh.marwade@beyondsports.nl |
1da97c6af4872548bebbafaac8f989b1d0ff3de2 | 4d6431b09b5db7c3cb93c047a8dc275d94e63bdb | /miscellaneous/tiny-curve.py | c6c3e6e2dd7e87809d5df233d4af05fd8c4d4aff | [] | no_license | phm87/bitp0wn | 8e0c8b3f0601fbaaa228a78f87546341989d7419 | cb8d863ad0e4ae3a239593dcb9eecfbfe159127c | refs/heads/master | 2021-10-27T19:40:50.666876 | 2019-04-19T06:43:00 | 2019-04-19T06:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,891 | py | #!/usr/bin/env python
import random
""" modular inverse """
def inv(a, n):
if a == 0:
return 0
lm, hm = 1, 0
low, high = a % n, n
while low > 1:
r = high//low
nm, new = hm-lm*r, high-low*r
lm, low, hm, high = nm, new, lm, low
return lm % n
""" Jacobian """
def to_j... | [
"mvincenti@umi.us"
] | mvincenti@umi.us |
d0d587e1b4b9469f3ac1c1243ce87a1f15209c52 | a63f1df096b93689ef96344ae75d6c2bb940bd78 | /case/data_test.py | e3659eb0dd23c71882dc1f5f949fb3a80a76da2c | [] | no_license | Remoterwls/-Selenium3-Python3-Web- | 9c292f881da30b672785bc7161a2abde42233b40 | 52681b5a7b9d0cb62248f7885d003c125b3c9f02 | refs/heads/master | 2021-09-25T21:49:46.538240 | 2018-10-26T01:29:57 | 2018-10-26T01:29:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #coding=utf-8
import ddt
import unittest
@ddt.ddt
class DataTest(unittest.TestCase):
def setUp(self):
print("这是个setUp")
def tearDown(self):
print("这是个tearDown")
@ddt.data(
[1,2],
[3,4],
[5,6]
)
@ddt.unpack
def test_add(self,a,b):
print(a+... | [
"lirui2721@126.com"
] | lirui2721@126.com |
ea4ee0db551dfcfbf277aae55fb16ea53fd98a8d | b183c98f7749a015ca420940be85f8af6c004bb3 | /easy/724.py | 169275e02d0543c1aba327ee320b67f1951cae11 | [
"Apache-2.0"
] | permissive | oneTaken/leetcode | b8cfa7e0ff42de2eaef8b64cceef4f183006612e | f9357d839ac8fa6333b0d7eeb2028ba28a63764c | refs/heads/master | 2020-03-12T10:08:12.200753 | 2018-05-05T05:12:24 | 2018-05-05T05:12:24 | 130,566,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | # solution1
# exceed time 732/741
class Solution:
def pivotIndex(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
for i in range(len(nums)):
if sum(nums[:i]) == sum(nums[i+1:]):
return i
return -1
# solution2
# exceed time 734/741
cl... | [
"pengxiaoping1993@gmail.com"
] | pengxiaoping1993@gmail.com |
ab6c6b2f9bf5e3b2a925d98eb855913d4591f5d8 | d200be757bb662cce3bb29a2302cf3356e9452c7 | /BOJ/BOJ_1260.py | 32f30c7b3d224a831be93216a59f33e32777a2ec | [] | no_license | Jun0414/Algorithm | 1140ce754a24e6116c40956f7a988fa30f618746 | ff1782914c5a270a78c90a4a12e65daa22f8ea53 | refs/heads/master | 2023-07-08T23:37:41.002949 | 2021-08-14T14:33:58 | 2021-08-14T14:33:58 | 289,309,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py |
# 기초 그래프 기본 탐색
# 문제 1260번 DFS와 BFS
# Graph Searching(그래프 탐색), DFS(깊이 우선 탐색), BFS(너비 우선 탐색)
import sys
from collections import deque
r = sys.stdin.readline
def dfs(start):
print(start, end=' ')
visited[start] = 1
for i in graph[start]:
if visited[i] == 0:
dfs(i)
def bfs(start):
bfs_heap = deq... | [
"gbwj123@naver.com"
] | gbwj123@naver.com |
a6d7cefff0cfa6857c2094941486b2270c910df7 | 14a5f9a8c95fea365f4af0a9f6e414c3347978d4 | /python/fib_tail_rec.py | ba5619bf5c7b61cd796fa2d820ebf7252392b88a | [] | no_license | carlosbazilio/lp | a61db3a37c408e9278b202d42bb1ed955aea5067 | 18720b45f581fdb13d4fb51c9f75f1bba4346217 | refs/heads/master | 2022-02-18T12:42:32.883848 | 2022-02-09T22:22:25 | 2022-02-09T22:22:25 | 24,647,667 | 6 | 10 | null | 2021-11-01T22:15:01 | 2014-09-30T17:18:25 | C | UTF-8 | Python | false | false | 192 | py |
def fib (x):
def fib_aux (x, ant, curr):
if (x == 1):
return ant
return fib_aux (x-1, curr, ant+curr)
return fib_aux (x, 0, 1)
import sys
print (fib(int(sys.argv[1])))
| [
"carlosbazilio@gmail.com"
] | carlosbazilio@gmail.com |
4feb01172bd737cfe58dbdd3b12b4c3d4d9ef263 | f167dffa2f767a0419aa82bf434852069a8baeb8 | /lib/youtube_dl/extractor/peertube.py | 3af533925c6ad9af98b31a911048ba86fa9ca140 | [
"MIT"
] | permissive | firsttris/plugin.video.sendtokodi | d634490b55149adfdcb62c1af1eb77568b8da3f5 | 1095c58e2bc21de4ab6fcb67a70e4f0f04febbc3 | refs/heads/master | 2023-08-18T10:10:39.544848 | 2023-08-15T17:06:44 | 2023-08-15T17:06:44 | 84,665,460 | 111 | 31 | MIT | 2022-11-11T08:05:21 | 2017-03-11T16:53:06 | Python | UTF-8 | Python | false | false | 28,591 | py | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
int_or_none,
parse_resolution,
str_or_none,
try_get,
unified_timestamp,
url_or_none,
urljoin,
)
class PeerTubeIE(InfoExtractor):
_... | [
"noreply@github.com"
] | firsttris.noreply@github.com |
da569cc273c2ae1901e1ae047d0991987d2a84aa | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-3752.py | 4a0c5e323805e1b8e94e96f57436f92568c87018 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,343 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
94652b2790c9e1bf47b28be0a5263c23b1653f41 | 4a2073876a2ea3cf6d12232f31d23ffbd4bbcd1d | /Animais/animais.py | 746b187ea6a96d81bef57f8fd263c0ca48ea7b6f | [] | no_license | programadorpython/PPAulasAoVivo3 | d493d466b74263f394437236afcc0c7fdc5c97c6 | b5c48590442078cba60cefa44e38a5b05d7bb648 | refs/heads/master | 2022-11-19T06:30:54.284587 | 2020-07-22T00:53:07 | 2020-07-22T00:53:07 | 281,537,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | class Animal:
"""
Modelando um animal
"""
def __init__(self, nome, idade, sexo, cor, tipo, classe):
"""
Inicializa um animal
:param nome: string
:param idade: int
:param sexo: string
:param cor: string
:param tipo: string
:param classe: sr... | [
"jefferson2004@gmail.com"
] | jefferson2004@gmail.com |
c62b581e8e42c66c37405503791022fec73e8e93 | 7fe56d3a94bcd1f44b9a949030982f6eeae5b029 | /tests/__init__.py | 1cb9b7e077b002feb8d39e3ca7b977d48303dacf | [
"MIT"
] | permissive | rcourivaud/MagicLogger | d128e78efea21243e18b96759c4b3a09022e68ff | 135f9b314428717909f4cda17298db7100b1e7d3 | refs/heads/master | 2021-07-05T16:53:06.522476 | 2018-11-19T16:32:51 | 2018-11-19T16:32:51 | 111,118,407 | 0 | 2 | MIT | 2018-06-18T09:09:20 | 2017-11-17T15:23:06 | Python | UTF-8 | Python | false | false | 70 | py | # -*- coding: utf-8 -*-
"""Unit test package for logstash_logger."""
| [
"r.courivaud@gmail.com"
] | r.courivaud@gmail.com |
bf76b1dfcf4b11203e9950456b21b7a94dcb8d0d | 17058fc47997f47f19337a2244aa69207b86273d | /misc/create_labels.py | 272f515a01f2d2191ef4ce529bc7c19da47ab053 | [
"MIT"
] | permissive | MISTLab/of-obstacledetection | da90cbb42527011d662925f5289ec5adbed2a9b3 | a2281a37b4cc6482eb87546fa414fdaa38ec04e5 | refs/heads/master | 2023-02-22T15:23:12.587480 | 2020-06-06T13:28:25 | 2020-06-06T13:28:25 | 223,396,484 | 13 | 2 | MIT | 2023-02-02T06:00:26 | 2019-11-22T12:15:52 | Python | UTF-8 | Python | false | false | 2,352 | py | #!/usr/bin/env python3
"""
create_labels.py
Script for creating labels for a new collision dataset.
Written by Moritz Sperling
Licensed under the MIT License (see LICENSE for details)
"""
import cv2
import glob
import os, sys
import absl.flags as gflags
localpath = os.path.dirname(os.path.realpath(__file__))
sys.pat... | [
"mail@nfinitedesign.de"
] | mail@nfinitedesign.de |
9f936947d909992c5e8fdc0c4e7a0cee5501ae5a | 7551f4644e2145637e9549caa2dd7dd9eaf2bc87 | /mCRPCcode/AlternativeModel_Sto_forced_LongRun/ADTplusAbi_Adaptive0_forced.py | bc6ed1d509bfac536445c5ac8d7686a68c9ad9c4 | [] | no_license | mariandm/FoundationsQBios | f3af94724b7b2c7e37aebd6454fde7632c29549c | 734d16157cafe28e795c2012b9275b881d60af92 | refs/heads/master | 2020-07-21T05:08:47.066509 | 2019-12-11T11:30:16 | 2019-12-11T11:30:16 | 206,760,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,447 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 27 16:15:13 2019
@author: mariandm
"""
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import time
import copy
start_time = time.time()
ESS = 1e4*np.array([[1.1111,0.5555,0.0000,3.3333],[1.1111,0.5556,... | [
"noreply@github.com"
] | mariandm.noreply@github.com |
9cc040fe1ae166f3a782886247586b053353c86e | 9c2b14de3cb746318aa17a67ba60fe0c48e45cba | /node_modules/mongodb/node_modules/bson/build/config.gypi | 1c1ef6cad6e7fb06cb4beb87a958f8e311a81805 | [
"MIT",
"Apache-2.0"
] | permissive | shreyaspurohit/SemanticLink | 5f0510ce32c1639d161aed73151b9c315839f9bc | 2135e5076cd39a34befc54be4e92e607d02ba8f4 | refs/heads/master | 2016-09-05T08:54:54.893557 | 2013-03-09T08:43:39 | 2013-03-09T08:43:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,815 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 44,
"host_arch": "x64",
"node_install_npm": ... | [
"shreyaspurohit@shreyas-purohit-portable.(none)"
] | shreyaspurohit@shreyas-purohit-portable.(none) |
83fad54ec14446e17e20fd4c8fe1018398d8a8c6 | 7a49864e2de257ce2f0c0845c3875d701be45687 | /shop/main_app/admin.py | 4e5381125240659c38ed749c66a6c6ff86ba516f | [] | no_license | PontificSalivan/Shop | be7b805edcbfb8c6300d42e3400dc22ed2235c4d | ab1404a6d06a918a13094567cb9006b22457455f | refs/heads/master | 2023-03-03T02:36:35.462871 | 2021-02-12T17:57:42 | 2021-02-12T17:57:42 | 337,730,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | py | from PIL import Image
from django.forms import ModelChoiceField, ModelForm, ValidationError
from django.contrib import admin
from django.utils.safestring import mark_safe
from .models import *
class NotebookAdminForm(ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
... | [
"rasen13@mail.ru"
] | rasen13@mail.ru |
63c36811234e4e17445c206a239feee4c4ae236e | e1c960d2eb1d9685acc5f72644302d711bc45dae | /sidproject/peristiwa/apps.py | 8803951246cd784e9e1c832cfc9fc8494eb1e32b | [] | no_license | prianthon/sidj | fbd3111f184423cce5032f02aa5dbcb56cd2705c | 2c0639e6f96139010a81d1c651ed88763d2c81da | refs/heads/master | 2021-01-11T09:21:49.771465 | 2016-12-24T05:28:20 | 2016-12-24T05:28:20 | 77,035,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class PeristiwaConfig(AppConfig):
name = 'peristiwa'
| [
"prianthonsubardio@gmail.com"
] | prianthonsubardio@gmail.com |
07f21dd8ea6c88a00921c3974f0b90fd6078e0e6 | 51888119e10cdff12dafb060a54824632edccf3f | /Folders/Python/Postage_old.py | f199f740817ab8b4db5d64cbd7f84eb3ac45c0ce | [
"BSD-2-Clause"
] | permissive | kuchinal/lamakaha | b64511ad8c6d2b36da5a84a266b9e7a69acd3106 | 24e3b2ff53bcac2ad1c0e5a3b9afd4593d85f22d | refs/heads/master | 2023-09-01T17:55:56.551183 | 2023-07-31T19:32:04 | 2023-07-31T19:32:04 | 182,849,747 | 0 | 0 | null | 2021-09-10T06:34:22 | 2019-04-22T19:00:02 | Python | UTF-8 | Python | false | false | 400 | py | import nuke
def Postage():
t= nuke.selectedNode()
o = t['label'].value()
x = t.xpos()
y = t.ypos()
u = nuke.nodes.PostageStamp(postage_stamp = 1, note_font_size = 20, tile_color = 4000,)
name = u['name'].value()
#p = name.replace('PostageStamp',o)
#nuke.toNode(p)
newname = u['label'].setValu... | [
"lamakaha@gmail.com"
] | lamakaha@gmail.com |
48f890e38dcc694d1833976c10b34e0c952ef6b2 | 758d063e13238a58f5212e83208ca302163e017f | /tests/func_test.py | 0664e4f147d26f5a55a303fc1bb4721614b87d2a | [] | no_license | misinglink/NLP-parser | eadd8f0d190b22d2a34fd7956dbf706edd3bb0df | adca58815755bd915f54d43e61f7c7a010657799 | refs/heads/main | 2023-03-28T11:19:49.007413 | 2021-04-01T23:51:15 | 2021-04-01T23:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | import os
import pytest
from func import get_prompt_length, less_than_500
from gptparser import make_prompts
def test_propt_length1():
assert get_prompt_length(["a word is worth how much in integers?"]) == 8
def test_two_sents():
assert get_prompt_length(["two words", "three words", "six words"]) == 6
de... | [
"cesartole73@gmail.com"
] | cesartole73@gmail.com |
9ada37e2dc34abdb0cc7a1ea982d687c03ea3cc8 | 28873fdbfb51b7ae3105ff338d83f3d8e57a3e3b | /pytorch/jklhj/DCGANs/config.py | de8a48f9452edca41d6a94c1e4717422bcba2ea6 | [] | no_license | jklhj222/bin | 7de7f54cb4d7a87053429efc3e2dd7438cb1475b | b92d6847648c43c5ccd2e348f50b0892e4913367 | refs/heads/master | 2023-04-14T14:49:06.702291 | 2023-03-24T13:15:29 | 2023-03-24T13:15:29 | 132,477,613 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | #!/usr/bin/env python3
class DefaultConfig():
use_gpu = True
num_workers = 2
input_size = 96
# for training setting
train_gpu_id = 0
train_netd_model = ''
train_netg_model = ''
train_dir = './data'
train_batch_size = 256
base_lrg = 2e-4
base_lrd = 2e-4
lr_deca... | [
"jklhj222@gmail.com"
] | jklhj222@gmail.com |
f85bca6082b992766a03e4274459537f254a3989 | 67287d3ac86c7746d0bac770d79d9a0fd1e89587 | /envs/myEnvs/CartPoleSwingUp/env/cartpole_swingup_continuous.py | f16f2628e994b24c91ca2285d36131f69273f7f7 | [
"MIT"
] | permissive | UCLA-StarAI/Analogous-Disentangled-Actor-Critic | 1c37a94dcaac61a45123125f4757fd67ff10595b | 37cb3ac7e39201a66b7e0b843dcc9926b97e0334 | refs/heads/master | 2021-07-15T07:24:50.197301 | 2021-03-18T03:10:04 | 2021-03-18T03:10:04 | 243,092,919 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,284 | py | """
Cart pole swing-up:
Adapted from:
hardmaru: https://github.com/hardmaru/estool/blob/master/custom_envs/cartpole_swingup.py
Original version from:
https://github.com/zuoxingdong/DeepPILCO/blob/master/cartpole_swingup.py
hardmaru's changes:
More difficult, since dt is 0.05 (not 0.01), and only 200 timesteps
"""
im... | [
"anjiliu219@gmail.com"
] | anjiliu219@gmail.com |
7d88d46cc5c57870e82464a384294b667819297e | 1fc11d568f5a409471c9ea06b1244f3354ef694e | /models/topic.py | 4f150dbe50cf3d49a08df3ca63c6a074766b46b0 | [] | no_license | wanlikehandsome/bbs | 022db63910eb55cb2be439ad8c0c631d02425c9f | 58cbf900035fd4c227f0b66f07484ef0311c804a | refs/heads/master | 2022-04-17T15:55:55.142185 | 2020-04-05T15:59:30 | 2020-04-05T15:59:30 | 255,565,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | import time
import json
from models import Model
from models.user import User
from models.mongua import Mongua
import logging
import os
import time
ogger = logging.getLogger("bbs")
class Cache(object):
def get(self, key):
pass
def set(self, key, value):
pass
class MemoryCache(Cache):
de... | [
"2563418641@qq.com"
] | 2563418641@qq.com |
7565385a1a71e902a08e95a08b0e9204a95bb82e | 9ad593596a4e19e5a172a350544a4d3c043dc742 | /apps/dojo_secret/urls.py | 19d8030c7ee3011fbed48e0600b0d5321b58278e | [] | no_license | cryu1994/dojo-secret | df646cf62c4aef130f005b46d834ec70456d62e0 | 27db97939bdd1acbfb79f04401869e06ccbc2461 | refs/heads/master | 2021-01-20T00:48:00.231449 | 2017-04-24T12:04:10 | 2017-04-24T12:04:10 | 89,191,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | from django.conf.urls import url
from . import views
# from django.contrib import admin
urlpatterns = [
url(r'^$', views.index),
url(r'^register$', views.register),
url(r'^success$', views.success),
url(r'^users/login$', views.login),
url(r'^user/comments$', views.comment),
url(r'^like/(?P<comm... | [
"Home@Homes-MacBook-Pro-2.local"
] | Home@Homes-MacBook-Pro-2.local |
81dc81454be87fff711af9a9957454ae444737a2 | bc31f84cc452540c955096d5ae0cd104101c1efc | /code/utils/util.py | 36176d0a9307f67c8579c60ca2d110452189f8e1 | [] | no_license | szWingLee/spsr-master | a4373182258b37128a2fe574603b011698d1cae6 | f0dff12fe2ce255c41159d946c9adace22f6a474 | refs/heads/master | 2022-12-16T07:06:31.451596 | 2020-09-20T06:12:19 | 2020-09-20T06:12:19 | 297,013,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,730 | py | import os
import math
from datetime import datetime
import numpy as np
import cv2
from torchvision.utils import make_grid
import random
import torch
import logging
####################
# miscellaneous
####################
def get_timestamp():
return datetime.now().strftime('%y%m%d-%H%M%S')
def mkdir(path):
... | [
"zirong_li@163.com"
] | zirong_li@163.com |
04397df6f9217cce1b6ef745433b2018f610d8de | 64c3095772ec4a7c395f2db508b118e9aa9f7b24 | /graphene_example/urls.py | b181effb67810659b59823b6a1e505edcdf479e9 | [] | no_license | rastukis/graphene-django-example | 8d1c8b48d923d10d7af54d9d174bb32e8927f002 | a9f3d5a04b0ca5632f9f930b2b88efb448d5a9e0 | refs/heads/master | 2022-06-20T12:56:00.374562 | 2018-11-19T19:38:40 | 2018-11-19T19:38:40 | 157,759,615 | 0 | 0 | null | 2022-05-25T00:23:12 | 2018-11-15T19:09:14 | Python | UTF-8 | Python | false | false | 1,099 | py | """graphene_example URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')... | [
"mplascencia.cruz@gmail.com"
] | mplascencia.cruz@gmail.com |
068bace6606bcfda49ebc36b73ac984d7a1fadfd | 5abce69e22007e34bc7625e862d9e082382446ff | /CommClusters/mod/gmm.py | 8f6310fb0439845eb0ffdc1ac31ca4d059e2357d | [] | no_license | zaqari/DataScideProjects | 6ee5a64275ac2436e2e377239869355262a7672c | c8d9ad862159f659acf1079bd89bd058e7f28692 | refs/heads/master | 2023-06-15T07:51:59.911606 | 2021-07-11T22:24:40 | 2021-07-11T22:24:40 | 385,058,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,187 | py | import torch
import torch.nn as nn
import numpy as np
from CommClusters.mod.sel import *
from sklearn.datasets import make_spd_matrix
class gMM():
def __init__(self, K, dims, eps=5e-3):
super(gMM, self).__init__()
self.means = None
self.vars = torch.cat([torch.FloatTensor(make_spd_matrix(... | [
"zrosen@uci.edu"
] | zrosen@uci.edu |
684cdd7584314554e56bbb62b5727417812180d0 | cd05fd22fc567700cc00a484b34faa8004fc597d | /自研究/pyqt学习/maindemo.py | f1cc6eab13fa60c518e8fc7a7cdee4fdb1d6b61d | [] | no_license | kcc666/py | 342647ed9c898933daa86b2cb4d4e7cbc233e9d4 | 4a27d18ac5c730e9203085c9f929c3bab3422c30 | refs/heads/master | 2021-07-25T09:59:39.814794 | 2020-08-18T02:21:32 | 2020-08-18T02:21:32 | 207,763,736 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from PyQt5.Qt import *
class Window(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle("学习")
self.resize(500,500)
def setup_ui(self):
pass
if __name__ == '__main__':
import sys
app = QApplication(sys.argv)
window = Window()
window.show()
... | [
"463217787@qq.com"
] | 463217787@qq.com |
eea4371df9310b44093e939f0f47fa6ba184bcde | 6d4a47b2533145e7f7e62b1c77c51916a0b27784 | /ProjectFiles/Python/BattleShipGameFiles/EnemyShipAI.py | a5eaf18f4017be95af82647b1ad523af354471b2 | [] | no_license | srjamesjr/srjamesjr.github.io | 4094176dabc426d198c1a29e42fdedcf99cff07d | 5dc88c83daed1398edce7359b6f58967e0bd20d6 | refs/heads/master | 2020-04-25T15:15:06.526843 | 2019-11-21T05:16:58 | 2019-11-21T05:16:58 | 172,871,861 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,817 | py | import random
def EnemyShipPlacement():
enemyLocation = [0, 0, 0, 0, 0] #ship, rotation, side, X, Y
FoeBoardMatrix = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
... | [
"noreply@github.com"
] | srjamesjr.noreply@github.com |
0ce55e334a15902480268b7355fc7dfe902c439a | ab3deecc4de4e30cfbbb1173763126034ca76c83 | /venv/lib/python3.7/collections/abc.py | 7e605fa09413bcee5e2727939a003fe259a9262e | [] | no_license | AnthonyLimo/BuildForSDGs-Demo | 03def04795c90f2b51ef5c1e83a8674346eafc98 | 2cb40918cb882e96a79eaf064cf2052fe1b591eb | refs/heads/master | 2022-12-08T04:24:52.282525 | 2020-09-03T15:18:04 | 2020-09-03T15:18:04 | 292,526,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/collections/abc.py | [
"anthony.kiplimo@africastalking.com"
] | anthony.kiplimo@africastalking.com |
cf6bee7e32c961feb62eafd9e9a45399bdaf7ce4 | 27b6efd482e4feaf423583a5e9533e232404a340 | /main.py | 523be34a994d5761aff11d78884c24aa973c9ccd | [] | no_license | kimduuukbae/FindLostItem | 2b6909ccd32828281c02ba88e9fb64205ed4719e | dcc04798c6135e0f671c1ecfdd89aec5775071f7 | refs/heads/master | 2020-06-15T03:55:50.239636 | 2019-07-04T08:12:22 | 2019-07-04T08:12:22 | 195,197,425 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 9,139 | py | from urllib.request import urlopen
from urllib.parse import urlencode
import urllib
import xml.etree.ElementTree as ET
from tkinter import *
from tkinter import ttk
from enum import Enum
import smtplib
from email.mime.text import MIMEText
import telepot
import folium
import selenium.webdriver
import requests
my_token ... | [
"39338850+kimduuukbae@users.noreply.github.com"
] | 39338850+kimduuukbae@users.noreply.github.com |
16850e52f133d71fefd06f2429f65610e2cdaf0f | ab19c3757766f00c7414aa10641f8c7e6321375d | /h.py | 93769797074788cc1586538c20c074f4ac20bd00 | [] | no_license | HHariHHaran/python-programming | 2c70ff0c4b24ae48b8096075a29ffc0edfe1ef00 | c2db869e352d7ee22d499dd772f5cb2285b2822f | refs/heads/master | 2020-04-19T09:19:56.918989 | 2019-01-22T09:50:28 | 2019-01-22T09:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | A = int(raw_input())
for i in xrange(A):
print "hello world"
| [
"noreply@github.com"
] | HHariHHaran.noreply@github.com |
08c724928dd870fb1914f496ecb1e8eed4e0ac31 | 0b12e31cafa598c163d2cc53706df193a73e31e3 | /pro/urls.py | 007cf0e8282f4b0d91c9e0b96e3c5297850817bf | [] | no_license | getopen/pro | 6a4dba774558e1de0419a4c6daf030ee360d68fd | 97e939d26d9fdaf54f05f3cd4a9b32a6722d0ac3 | refs/heads/master | 2021-07-06T09:35:18.077577 | 2017-09-30T16:07:06 | 2017-09-30T16:07:06 | 100,471,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | """pro URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based v... | [
"zhuoqun527@qq.com"
] | zhuoqun527@qq.com |
b29528a81fe99fcf38ac6da0494cc7091dd75dcb | cba4a94cb34c0d5305146f9cab9caeebc40ab11a | /lib/miband2time.py | 48b23e27652c543e704bd87560b1f1399eaedf2b | [] | no_license | 4m1g0/PyBand2 | 73f0687a498dc448200baeda4cf87962826a14c7 | 06bd92d790576a3794279040976a80bb8d2fcc17 | refs/heads/master | 2020-03-22T05:28:30.153367 | 2018-07-02T15:15:15 | 2018-07-02T15:15:15 | 139,568,415 | 1 | 0 | null | 2018-07-03T10:40:38 | 2018-07-03T10:40:38 | null | UTF-8 | Python | false | false | 4,101 | py | import calendar
import datetime
import struct
class MiBand2Time:
def __init__(self, device, year, month, day, hour, min, sec=None, weekday=None, dst=0, tz=4):
# Infer precision from parameters if not specified
self.device = device
self.year = year
self.month = month
self.day... | [
"trigork@gmail.com"
] | trigork@gmail.com |
96aa6cddb47242fd1fd40905f7a76afab1cc358a | a34ed23c7aea6f363d589055057092ec65d96597 | /mapstory/settings/__init__.py | 9c925ff4c80ca5db5e7f87fea6fdec58bf02f168 | [] | no_license | jsiochi/mapstory-geonode | 471bfdbb4a0a79a4fe2f17addaec355d73fb078f | 41e1caccbdeb1cdeabdd3f03cc14af72d768d9da | refs/heads/master | 2021-01-17T21:37:24.578904 | 2014-09-09T17:01:25 | 2014-09-09T17:01:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,774 | py | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2012 OpenPlans
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either versio... | [
"planablediglet@gmail.com"
] | planablediglet@gmail.com |
0a69d80d2290b6f3660527d5d070753aadf125cd | ec6e842aa3ae88e576fb6dec291f0d068ea42fea | /sloth/annotation_containers/darknet.py | 55e0491b8dd4f9c99c48f08dc085f39223239e40 | [] | no_license | PalouseRobosub/vision_dev | 697b84c6200718b1c3c8821dcebf487513ef5501 | cb30bf9918cecb57e44b72e69592789c27115046 | refs/heads/master | 2021-01-23T15:59:16.183537 | 2018-06-06T21:50:56 | 2018-06-06T21:50:56 | 93,279,883 | 1 | 1 | null | 2020-07-22T01:40:48 | 2017-06-03T23:50:39 | Python | UTF-8 | Python | false | false | 6,342 | py | from sloth.annotations.container import AnnotationContainer
import os
import struct
import imghdr
class DarknetContainer(AnnotationContainer):
def get_image_size(self, fname):
print("Getting image size of {}".format(fname))
'''Determine the image type of fhandle and return its size.
from ... | [
"seanp@kallaher.org"
] | seanp@kallaher.org |
45743441ca09f232e46a89061c07576fb6fc06f8 | af30f87a267495b204e5b5cc5be8f9244bb77747 | /afib_diagnosis/venv/Scripts/django-admin.py | fbf52d82cf4a49bc54383da34610a0950ea17c1f | [] | no_license | hollandsean/FYP-Web | bc9517507f8e78f8b02044f7225e6ae5b453de26 | e179e872d590bc5d94ac1e8b11775c044d66e3a1 | refs/heads/master | 2020-03-17T19:22:53.467343 | 2018-05-17T20:24:10 | 2018-05-17T20:24:10 | 131,615,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #!C:\Users\sean\Documents\FOURTH_YEAR_SES_TWO\PROJECT\AFIB\afib_diagnosis\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"sean.holland@mycit.ie"
] | sean.holland@mycit.ie |
3aceae95ee0d6b94bb559db47039e4e77469f3b2 | 09478b6d8a1b785067a550fab4d3ef6445c18f58 | /Flask/06.10/employee.py | d0766fce71ce8467a4607d5f89fbbde65bfb35a0 | [] | no_license | Mikeyc85/QA-Training | a8c003d9dfe9ccde11bcce8753ae1d8815c89406 | ef33a8b7d2a3430fd0847de434fec370f5460a62 | refs/heads/main | 2023-08-13T04:21:30.457583 | 2021-10-13T19:50:00 | 2021-10-13T19:50:00 | 406,368,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,816 | py | from flask import Flask, render_template,request,redirect
import mysql.connector
db=mysql.connector.connect(host="localhost",user="root",password="root",database="employees",auth_plugin='mysql_native_password')
cursor=db.cursor()
app = Flask(__name__)
@app.route("/")
def homepage():
cursor.execute("s... | [
"noreply@github.com"
] | Mikeyc85.noreply@github.com |
7841a010dbd4becdaddb5035acd0c8bf901d297e | 22940905e1622b06670a585956007569b74ce306 | /DeepLearningApp.py | f9b400abf39e64edc6d433bdbf5acb81458938bb | [] | no_license | DuongQuocVuong97/streamlit | 3cc883daa11ee1c3437f6dc1e81b4a4c27d2df73 | 54feb11b68ee9a81ab1162a1fec792db4b611cd4 | refs/heads/main | 2023-07-10T21:50:16.653967 | 2021-08-24T08:00:40 | 2021-08-24T08:00:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,895 | py | # Import Dependancies
from datetime import date
import yfinance as yf
from plotly import graph_objs as go
import streamlit as st
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import MinMaxScaler, StandardScaler
from sklearn.metrics import mean_squared_error... | [
"noreply@github.com"
] | DuongQuocVuong97.noreply@github.com |
19980c6f1fb1f32f16324e451c5252e77f2d892d | 484b03da7d3eabc8887e0f5a6be6c2287b0ebcc4 | /fanta/fantaapp/models/models_old.py | 927ccbdc96583b931e3d572b048ff91e843cad8b | [] | no_license | abenassen/holyfootball | 4ad3d025692f4dd0d7d5b09f8a190f131da4ca57 | cd41a44b33276b8ff1a5d3d50f944f526826abd5 | refs/heads/master | 2020-12-03T00:20:13.079415 | 2017-09-02T09:50:23 | 2017-09-02T09:50:23 | 96,015,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,956 | py |
nome_turni_coppa = [u'Finale', u'Semifinale', u'Quarti', u'Ottavi', u'Sedicesimi', u'Trentaduesimi', u'Sessantaquattresimi', u'Turno Preliminare']
votoprimavera = {'P': 3.5, 'D':4.5, 'C':4.5, 'A':4.5}
ruoli_lunghi = {'P': "Portiere", 'D':"Difensore", 'C':"Centrocampista", 'A':"Attaccante"}
ruoli_lunghi_plurali = {'P':... | [
"abenassen@users.noreply.github.com"
] | abenassen@users.noreply.github.com |
e8c097049a41c7f9bd4cff7d1c145fb15c0ccdff | 3d457fa0163f68df31327dcd6a28e0f950adec9a | /vbmc4vsphere/vbmc.py | 23100a37dd8f565e889145512606f58f275b5bd0 | [
"Apache-2.0"
] | permissive | aksoydoruk/virtualbmc-for-vsphere | ed63f49ce11f8b17c2f6e023e34f04c27d049c37 | 03cb2befb17d830fcd4d686a641e8aaa052f4117 | refs/heads/main | 2023-08-15T09:52:28.878208 | 2021-10-16T04:38:59 | 2021-10-16T04:38:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,237 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"2920259+kurokobo@users.noreply.github.com"
] | 2920259+kurokobo@users.noreply.github.com |
fa1a2a2da4ce8b7c223ecec643abba112a7b6263 | bb10451047bf3d8e6b5c37a0bbf2a73729340260 | /preprocessing/tracking.py | 5e7c829ed110b26db2fd923b1821afa467ad4fc8 | [] | no_license | jocelynqiaoqian/Computer_Vision_Project | cc9724d9c49ad5c3cfc8fcaa0b6a560d3c246852 | 3899690107d2f6b52220e731379152ce60a4b76d | refs/heads/master | 2021-05-04T14:03:28.979975 | 2017-11-21T02:14:56 | 2017-11-21T02:14:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | import cv2
import sys
(major_ver, minor_ver, subminor_ver) = (cv2.__version__).split('.')
if __name__ == '__main__' :
# Set up tracker.
# Instead of MIL, you can also use
tracker_types = ['BOOSTING', 'MIL','KCF', 'TLD', 'MEDIANFLOW', 'GOTURN']
tracker_type = tracker_types[4]
if int(minor_ver) ... | [
"jf773@cornell.edu"
] | jf773@cornell.edu |
fbe792816c6f306d39a1d6f860a9c02c7704b0a8 | 2c54a93bb144871a821ccc87f67f0b98a9140a5b | /.metadata/.plugins/org.eclipse.core.resources/.history/c7/e01b29f4b39900171d01ac63d6c54cb2 | 689f146401abceab6d37c8d3f12859cf3e418bad | [] | no_license | hashem65/SwarmInteligenceOpt | 02ea0ad1cee4e422358f0fffec22cf40aeab940c | 091eb75a1003bb7c6b349c5e9a2b66f3c65ab893 | refs/heads/master | 2021-09-09T10:27:51.311955 | 2018-03-15T06:43:25 | 2018-03-15T06:43:25 | 104,139,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,127 | #!/usr/bin/env python
from numpy import array
from random import random
from math import sin, sqrt
iter_max = 10000
pop_size = 100
dimensions = 20
c1 = 2
c2 = 2
err_crit = 0.00001
class Particle:
pass
def f6(param):
para = param*20
para = param[0:20]
num = (sin(sqrt((para[0] * para[0]) + (pa... | [
"hyou267@aucklanduni.ac.nz"
] | hyou267@aucklanduni.ac.nz | |
e8fe52a1dfc9be4acfa62d7b5331c459b99b3c95 | f22d4319e6f848202fe847f9190b78ceaae8ed12 | /envExemplo/Lista15/cotacoes.py | d24d99c34eac2570cbd61758b10295c149e9ff19 | [] | no_license | AlexandreLouzada/Pyquest | 7ecc0a3e3002df169bd53ae99e66c54019782698 | 29f0e67e5902fad0fc336ece63c9e5d3868d6b09 | refs/heads/master | 2023-08-30T22:54:46.438567 | 2023-08-21T19:04:39 | 2023-08-21T19:04:39 | 248,549,732 | 10 | 4 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import requests
def obter_cotacao_moedas():
url = "https://api.exchangerate-api.com/v4/latest/BRL"
response = requests.get(url)
data = response.json()
if response.status_code == 200:
return data["rates"]
else:
print(f"Erro ao obter as cotações de moedas: {response.status_code}")
... | [
"professorlouzada@gmail.com"
] | professorlouzada@gmail.com |
119eaee92a26b990c18be5c539d66fc169f18d94 | 6f9573c6ebc9d6431f610c540e281db11362cb43 | /tree.py | f4c38bff6e4f261e805e802e0a30c11610383431 | [] | no_license | llkhacquan/url-remove-prediction | ac92fd3ffcd4ec6593f39d20bdfd96c7de4d0166 | 5d4a61e0305d41892b5481d765f7a1930c11f47b | refs/heads/master | 2020-05-17T08:21:39.739323 | 2019-05-04T08:05:37 | 2019-05-04T08:05:37 | 183,603,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | import numpy as np
import pandas as pd
import sys
import os
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassifier
from sklearn.linear_model import BayesianRidge
from sklearn.metrics import accuracy_score, classification_report, confusion_matrix
from sklearn import tree, p... | [
"quannk@coccoc.com"
] | quannk@coccoc.com |
a100b36ab4229b73b6da9f86bed3a4cf38b9a2ef | 42cb644e9e3aab54d0ed32c33e7772c0f9716c07 | /task3/prog/publ.py | b0ea392105d2b00bf316e0a6dcf424620dbc6fbb | [] | no_license | tyomaz/practica2020 | 864cbbc58aab90a430ec84decd89298ccebff570 | 15a2b35e0926d2a40221357feed37af27150fcc2 | refs/heads/master | 2022-11-25T20:05:58.330691 | 2020-07-24T07:31:40 | 2020-07-24T07:31:40 | 276,693,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | import time
import random
from multiprocessing import Manager, Process
from influxdb import InfluxDBClient
class Var:
def __init__(self, name, begin_value, change_range):
self.name = name
self.value: float = float(begin_value)
self.change_rate: float = float(change_range)
print(se... | [
"noreply@github.com"
] | tyomaz.noreply@github.com |
4609e99a44628726eb2f9570506891c0b578045c | 495db4d37d0bf4f19d12cbae49768c517c8ab701 | /09_numerosRomanos.py | 1722936b21a0aa6182b57c71192df2651da0d872 | [] | no_license | anbreaker/retosKeepcoding | 34b786489071c064e1b0ec2182d40e7c92b84575 | 96eed8c53daccb88ac53671dfd6f107f0f63fd55 | refs/heads/master | 2020-08-24T18:04:37.385885 | 2019-12-12T23:02:06 | 2019-12-12T23:02:06 | 216,878,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | # Conversor de numeros romanos en python
# I 1 | V 5 | X 10
# L 50 | C 100 | D 500 | M 1000
# valoresNumerosRomanos = {1: 'I', 5: 'V', 10: 'X', 50: 'L', 100: 'C', 500: 'D', 1000: 'M'}
numRomanos = {'M': 1000, 'CM': 900, 'D': 500, 'C': 100,
'XC': 90, 'L': 50, 'X': 10, 'IX': 9, 'V': 5, 'I': 1}
d... | [
"antunez19@gmail.com"
] | antunez19@gmail.com |
d429f1a177c70f82dd239485cf71663e94656612 | aef5738b63824bfb3e04bbfbe490c4cdbf2737c7 | /samples/Ex_Files_Python_Gen/Ch3/03_02/coroutine_example.py | 62536c0a3a74284ea008918ae9dd0366201c56f3 | [
"MIT"
] | permissive | akashtalole/python-samples | 15a25287153d0f19b2f0f3dd14bdac606f585c1d | 9dc9ed9410f210b09154bd53efe1b741a15907a4 | refs/heads/master | 2023-05-22T22:13:45.934692 | 2022-05-07T05:29:02 | 2022-05-07T05:29:02 | 206,237,129 | 4 | 0 | MIT | 2023-05-01T21:15:20 | 2019-09-04T05:17:11 | Python | UTF-8 | Python | false | false | 105 | py |
def coroutine_example():
while True:
x = yield
#do something with x
print x
| [
"taloleakash@gmail.com"
] | taloleakash@gmail.com |
ccf3fe025541d9a45220bd61197b51888b9e6af1 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /base/lib/python2.7/site-packages/wx-3.0-gtk2/wx/tools/XRCed/plugins/xh_gizmos.py | 4e7490542a4986d421022ee395919f575e443028 | [
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-free-unknown",
"Python-2.0",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 5,971 | py | # Name: gizmos.py
# Purpose: XML handlers for wx.gismos classes
# Author: Roman Rolinsky <rolinsky@femagsoft.com>
# Created: 09.07.2007
# RCS-ID: $Id$
import wx
import wx.xrc as xrc
import wx.gizmos as gizmos
class LEDNumberCtrlXmlHandler(xrc.XmlResourceHandler):
def __init__(self):
... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
fa3dd38cf2d1bec4b0d05019fd7694eb7cf0d6f1 | 7786df1ff60e537760e6e18e5955b1330c57c282 | /pytorch.py | a377420c2804342705f424d81f57d692c900c427 | [] | no_license | dheidenr/ipavlov_course | 3186bb064c9f65d3369537288fcb2a2f0062995f | 2e3765150805d49e1cbeba2fe367616d9437789f | refs/heads/master | 2021-02-11T01:44:15.679322 | 2020-06-04T13:52:35 | 2020-06-04T13:52:35 | 244,439,172 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import torch
print('hello')
a = 10
b = a
b = 2
print(b)
a = (1, 2, 3)
b = list(a)
| [
"work-post@bk.ru"
] | work-post@bk.ru |
a7589f94310be332d65680e35115af8b6f847f08 | db869da1bcbc5584a3af8c109656b3ef9710ad83 | /tools/colored-hangul-image-generator.py | 137d432b1f0c29d25b94fb168d7f0cc4dcf457c6 | [] | no_license | lionem2018/Skeletonization-for-color-character | b70dabf669bfecc2dd5d7d53784c0554e8c2e080 | 17cd311db3ca8168eca2c275e5fec02469017aed | refs/heads/master | 2020-05-27T01:32:37.325491 | 2019-06-18T08:37:39 | 2019-06-18T08:37:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,786 | py | #!/usr/bin/env python
import argparse
import glob
import io
import os
import random
import numpy
from PIL import Image, ImageFont, ImageDraw
from scipy.ndimage.interpolation import map_coordinates
from scipy.ndimage.filters import gaussian_filter
SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__))
# Default d... | [
"lionem2018@gmail.com"
] | lionem2018@gmail.com |
8eb8b78a3c73b4e6636cc5e1e1f54ed35cbe219d | 2a9dff1294b9ee2eec1195d41b7d861206ea6f5d | /clean/old/main_proto.py | 17178770bfed6e29735c7ab231132251a4fed2e2 | [] | no_license | HanEmile/Heidelberg | a4dce19d5542a77ec417ee30ca8e715a6d227bf2 | a64a41ff5c15b433d6b89d6014f33ec7ef91c146 | refs/heads/master | 2020-12-02T21:20:22.783224 | 2017-08-14T17:06:25 | 2017-08-14T17:06:25 | 96,296,221 | 0 | 2 | null | 2017-07-12T15:02:48 | 2017-07-05T08:30:22 | Python | UTF-8 | Python | false | false | 2,788 | py | import math
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
from scipy.interpolate import InterpolatedUnivariateSpline
import os
from multiprocessing import Pool
# custom imports
import heidelberg as hd
import variables
import constants
#####
# README!
# generate eaven distibuted coordinates and... | [
"emile.hansmaennel@gmail.com"
] | emile.hansmaennel@gmail.com |
30562d714d8e90497a2db796240e4ac888916f25 | 717442f6b0b497ea18c37de75f5ce5dac4768aef | /scrapers/scrapers/spiders/lydias_spider.py | e966c68fb38f1e1161a44f8eaa4068c8a62a909c | [] | no_license | marjevtic/testMarko | 6c327ec7286ee0ece21c0d237bae861dac91d45f | 336f1b35c99c4521ea833337a558ab0d2aa1222d | refs/heads/master | 2021-01-22T04:48:42.197965 | 2012-09-10T07:39:28 | 2012-09-10T07:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,173 | py | from scrapy.contrib.spiders import CrawlSpider
from scrapy.selector import HtmlXPathSelector
import modules.basic_func as basic
from modules.zmags_xml import VariantsXml
from modules.excel import DictExcel
from modules.exception import ZmagsException
from modules.terminal import DatabaseTerminal
from project_modules.ly... | [
"mjevtic@extensionengine.com"
] | mjevtic@extensionengine.com |
1e47e3d1f3d6edfccee973842260a0ec8c1f4e93 | 3e3741d9ea06f1dcd560e27145256bd3177bed14 | /04_爬虫/week2/day05/02useragent.py | 65cea4e5ead7b25600a44ab4929ef7260b41121d | [] | no_license | Lousm/Python | 778bc730db09ab135bf53c7b62af29df2407199a | d3f19600012b3576cd5d58df510c17590fcaec14 | refs/heads/master | 2020-03-26T16:40:01.188306 | 2018-11-06T03:56:20 | 2018-11-06T03:56:20 | 145,116,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from fake_useragent import UserAgent
ua = UserAgent()
print(ua.ie)
print(ua.chrome)
print(ua.google)
| [
"mr_lousm@163.com"
] | mr_lousm@163.com |
ea6f1fcff5a5681c6f1b5caf3bb61ce8170f5177 | 4e21181a535165d85d63aa9878583f1365143a49 | /parser.py | be8b1558f444ec2b66bff4a9d26820e2063cb6a2 | [] | no_license | redbassett/Jump | 6c649d32f8785b92a88e06692718dd79fde74407 | 482a054b1b9606ba770217fb1a714b6dabb66bab | refs/heads/master | 2021-01-13T02:18:19.568135 | 2012-04-30T14:34:02 | 2012-04-30T14:34:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | #!/usr/bin/env python
import os
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
DATA_DIR = os.path.join(ROOT_DIR, "data")
name = 'slicelevel'
path = os.path.join(DATA_DIR, name) + '.lvl'
with open(path, 'r') as f:
data = f.read().strip().split('\n')
#data = [[self._map.get(c) for c in row] for row in dat... | [
"redbassett@gmail.com"
] | redbassett@gmail.com |
3bebefafd93efc9e06e2a2522f2a259352ae32b7 | 1110dc34c9d7e68ff60fc4d2b35c34c7f09bb015 | /utils.py | 46e586aa50323d85aba1074eba6914bf06df63f7 | [
"MIT"
] | permissive | rienafairefr/light-automation | 52ad88786471062639e3a6e31808fefdf61bc2fe | d782523db38d5f1f5832626aa5352c5ad7cae36e | refs/heads/master | 2021-05-08T09:17:15.749340 | 2017-10-18T13:52:21 | 2017-10-18T13:52:21 | 107,105,705 | 0 | 0 | null | 2017-10-16T09:21:05 | 2017-10-16T09:21:05 | null | UTF-8 | Python | false | false | 283 | py | from random import randint
def random6():
regs_values = [0] * 23
indices = []
while len(indices) < 6:
val = randint(0, 22)
print val
if val not in indices:
indices.append(val)
regs_values[val] = 100
return regs_values | [
"(none)"
] | (none) |
44f97dd07f1884ec7681c265df7b56cb53d814f1 | 5e11802ab90a382a711845951662f4f3df112bf1 | /mc/cooperatives/migrations/0005_auto_20140930_1939.py | 540d073303c3ff19a300c22d56853c5941138ed5 | [] | no_license | banquito/dj_mundo_cooperativo | 464327c95b2875da761456c5a4047ad7ba81e117 | 774557e6ea7a2f433c9b10440c77e12c910d6493 | refs/heads/master | 2016-09-05T13:57:23.712432 | 2015-06-08T21:14:58 | 2015-06-08T21:14:58 | 24,514,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,403 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cooperatives', '0004_auto_20140930_1832'),
]
operations = [
migrations.CreateModel(
name='Assembly',
... | [
"tiko2015@gmail.com"
] | tiko2015@gmail.com |
fcb11cc2d7e9117ffe7eb3f979746f69470c5c21 | ee00f05260720d38fe2b5942fec050299d7e7409 | /app/__init__.py | 22158ee41e93cd0747ce31131003612b54bf2ce0 | [] | no_license | atjessehill/Assignment-5 | be7c55cd0d24d473b2211bc043a45783c75c9f22 | 0f1a65fb9dda5b5b749ab2ee77d3874f3d6cf435 | refs/heads/master | 2020-03-22T14:50:16.772752 | 2018-07-09T02:27:29 | 2018-07-09T02:27:29 | 140,209,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | from flask import Flask, jsonify
import json
data = {"1": "Jesse", "2": "Jonathan", "3": "Luisa", "4": "Ana Maria", "5": "James"}
app = Flask(__name__)
def get_all_customers():
return data
def get_customer_by_id(id):
for key, value in data.items():
if key == id:
print(key)
pr... | [
"j_hill14@u.pacific.edu"
] | j_hill14@u.pacific.edu |
260f5017feb5cabc9ecfe4f0f55bf860eda03bef | 6320f2d56bd8fe12196fb1547f2b3553caaf7483 | /Prac2_Ejer_6.py | 962e86f7b37fa5796e6a040e8dbd33d950b5878d | [
"MIT"
] | permissive | TomasFisica/Redes_Prac_4 | 8d15bfb620a677ec22fbdfd2da899ebfc197e539 | fa594f088b2089ef789e014f564548388b4954c4 | refs/heads/master | 2022-10-22T13:16:50.083692 | 2020-06-10T18:24:48 | 2020-06-10T18:24:48 | 265,703,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,669 | py | import numpy as np
from matplotlib import pyplot as plt
class Neu_tgh():
"Neurona cuya funcion de activacion es la tangente hiperbolica"
def __init__(self,num_entrada):
self.num_entr=num_entrada #Numero de entradas más el bais
self.Pesos=np.random.randn(self.num_entr+1,1)
self.Grad_Loc... | [
"tomas.garcia.fisica@gmail.com"
] | tomas.garcia.fisica@gmail.com |
a12499d02081c3a097095e5f9b609a3d9730a9a4 | d9fb5fa6b69d8ad0e9608c98903ac83e84da25b3 | /live_iniciando_django/urls.py | 3c93ea96cc3475389e75545875aaaf0c0f304fc4 | [] | no_license | schoolofnetcom/live-iniciando-django | bf80b71a868e1aba92b55e27c42672db68b4a26f | a991d6e9ec45421d393ca9d3b0cca86140b2537d | refs/heads/master | 2021-04-09T13:03:29.591181 | 2018-03-16T03:34:44 | 2018-03-16T03:34:44 | 125,459,068 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | """live_iniciando_django URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home... | [
"argentinaluiz@gmail.com"
] | argentinaluiz@gmail.com |
431cefec3649a3cd0e8cc6955a40346b2f736fec | 9dcbe30676e2df00b3d7cb308885cb17dda89494 | /qa/rpc-tests/qtum-condensing-txs.py | 050b0348d84a904922a29e7b8ea59a5ef75a8368 | [] | no_license | bkartel1/chat_wallet | 9d901067b4bf140c20e82a0ff3e42cddfc1706b3 | d8919bfd4bae461992ff84dc8a66ea01d78a7c5b | refs/heads/master | 2020-03-16T20:17:48.112412 | 2018-04-25T13:43:41 | 2018-04-25T13:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,384 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
from tes... | [
"eug.ray@hotmail.com"
] | eug.ray@hotmail.com |
8984d7b687d64f3221ccef0626348690949d4c6e | 6346faf720a7bcedcb6b87c63291b1249df1cbcc | /django_dropbox_csv_export/integrations/tests/test_models.py | 5e7a87265dd1852e9997b70fd6864436f3a9ea04 | [
"MIT"
] | permissive | zkan/django-dropbox-csv-export | d0e50fa589b1681386b64a105200cb0f11e6ab30 | 5e77c539d84acf59d6f1dc1ffe3515b13fc34565 | refs/heads/master | 2021-07-18T01:19:24.355752 | 2017-10-25T13:18:34 | 2017-10-25T13:18:34 | 108,135,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | from django.contrib.auth import get_user_model
from django.test import TestCase
from ..models import Integration
class IntegrationTest(TestCase):
def test_save_integration(self):
User = get_user_model()
user = User.objects.create(
username='kan',
password='12345',
... | [
"kan@prontomarketing.com"
] | kan@prontomarketing.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.