blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9013aa7988405a9b4e9b670a3c8d11f8d6c89835 | 64b3b667e05455f2c0a69c93dfdf2dbc0d7a75fe | /xbot_tools/scripts/odom2yaw.py | c3dfc52aa4f27e588363064643604bc9bf84f25e | [] | no_license | krovanh/xbot | 82b6af056d5bf2afb220cfdaba596fab23621f01 | 06e8b90099e81098945976b7c4e8f1c08b311692 | refs/heads/master | 2022-11-21T18:22:10.599664 | 2020-07-07T03:25:49 | 2020-07-07T03:25:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | #!/usr/bin/env python
# coding=utf-8
######################################################################################
#> File Name: auto_rotate.py
#> Author:Rocwang
#> Mail: wangpeng@droid.ac.cn;
#> Github:https://github.com/yowlings
#> Created Time: 2018年06月14日 星期四 16时14分27秒
####################################... | [
"wangpeng@droid.ac.cn"
] | wangpeng@droid.ac.cn |
c05d069f25f766339c40f654028345f19be7bb15 | 28cac5b23602862ec56d973e702c517c12326fd6 | /money/admin.py | e293ff23f8579e1735cf15bcb8bf6dc2b99b0e9f | [] | no_license | mamedxanli/magazin | 0283b7e9066e0175ae006a6c3f70109794e74136 | 7cfa890b2931bd7bab297d3d7f59c368b8165c44 | refs/heads/master | 2021-06-20T06:34:07.182935 | 2019-06-30T22:13:21 | 2019-06-30T22:13:21 | 156,974,176 | 0 | 0 | null | 2021-06-10T20:57:47 | 2018-11-10T11:22:04 | JavaScript | UTF-8 | Python | false | false | 93 | py | from django.contrib import admin
from money.models import Money
admin.site.register(Money)
| [
"mammadov.alek@linux.com"
] | mammadov.alek@linux.com |
581ea5796b807d563d1d60430cc52a42e26951b8 | 528cd83a81535a1cf55994a16710ade88d3a5449 | /tests/test_home.py | c0c1c582f090546bbc26d1d27997e5c9ea978b74 | [] | no_license | Scot3004/django-quilla-web | f8a3ed9bcec3d1ce4c7f1208266c40047e6a2f16 | 9aca2e8c2f4be7f973a81ff1c943e9f45e2300e2 | refs/heads/master | 2023-08-19T19:40:12.048894 | 2023-08-15T14:56:03 | 2023-08-15T14:56:03 | 58,422,810 | 1 | 0 | null | 2023-09-13T21:58:43 | 2016-05-10T02:17:29 | HTML | UTF-8 | Python | false | false | 400 | py | """
Test de homepage usando selenium sin ayudas, (sin patrones, tipo POM o algo por el estilo)
"""
from selenium.webdriver.common.by import By
def test_title(base_url, driver):
"""Test de la página de inicio"""
driver.get(base_url)
assert driver.title == "Python Barranquilla"
assert driver.find_elemen... | [
"scot3004@gmail.com"
] | scot3004@gmail.com |
ef5eee58ada2c24a5e1aa1cb4a8f6116aee40cb3 | 441ee65564e7135c8136d382dacd6e548cd9fcb8 | /sahara/plugins/mapr/base/base_cluster_validator.py | 9c7473bd03b0861002c173279914df6b4cea3dae | [
"Apache-2.0"
] | permissive | stackhpc/sahara | bccae95d0b8963dab1d6c1add2f6fe31fa80e8c1 | 83c7506076ee6913a381d1fda26361d9eb466e68 | refs/heads/master | 2021-01-25T09:32:55.555734 | 2017-06-08T22:21:46 | 2017-06-08T22:21:46 | 93,850,995 | 0 | 0 | Apache-2.0 | 2022-01-20T19:09:48 | 2017-06-09T11:09:22 | Python | UTF-8 | Python | false | false | 1,507 | py | # Copyright (c) 2015, MapR Technologies
#
# 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... | [
"aosadchiy@maprtech.com"
] | aosadchiy@maprtech.com |
618f7bf3ad5363970ac8447c9c1afcb17a35d486 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/1595.py | d01faf25443576147a95bda0f8e955249ad02345 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | import sys
def tidy_count(N):
number_of_digits = len(str(N))
if number_of_digits == 1:
return N
else:
total_count = 0
count_table = [[0 for j in range(1,10)] for i in range(0,number_of_digits)]
count_table[0] = [1,1,1,1,1,1,1,1,1]
total_count += sum(count_table[0])
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
411720f3def8edac72d63cae616f745db2c0b311 | 35d62f3ccf1c422b13b313c4e519a5ce335e934d | /PythonIII/Python_III/DemoProgs/sortkey.py | 86ca77ffe375df949cf29a77580f2e63cfdb4273 | [] | no_license | malaybiswal/python | 357a074889299effe6a5fa2f1cd9c50ca35652d0 | 684d24d719b785725e736671faf2681232ecc394 | refs/heads/master | 2020-05-17T22:25:43.043929 | 2019-05-08T23:41:19 | 2019-05-08T23:41:19 | 183,999,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | """
This program deals with various ways to sort one- and two-dimensional
lists. With key= you should think of the function as receiving one
element of the list at a time. In the case of the two-dimensional list,
each element is, itself, a list. The data being transformed must follow
all of the pertinent rules. Fo... | [
"malay.biswal@rackspace.com"
] | malay.biswal@rackspace.com |
700b5124c8595e09088fab3c3c7132575291b8d6 | f2b138710d3d32a7f02326f65714164855810f37 | /blog/.~c9_invoke_AndTR.py | 9ed3f32605a353273e71845ebbabde25291cc9e3 | [] | no_license | watanta/portfolio | 720f82663b5ee24b81bdc64174df3f70f51dd9c0 | 29e160ff39b7a98a4b0950b825dfb111d200faab | refs/heads/master | 2020-03-22T13:00:21.552145 | 2018-07-07T11:27:01 | 2018-07-07T11:27:01 | 140,076,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py |
from django.urls import path, include
from . import views
urlpatterns = [
path
]
| [
"ec2-user@ip-172-31-15-67.us-west-2.compute.internal"
] | ec2-user@ip-172-31-15-67.us-west-2.compute.internal |
6a07549cbf1c12c6a1f056529de46e95dbe28f89 | 49b073c87b2bc405ed0e1ec50751ab9cd247d9ea | /venv/bin/pip3 | 06fef993c588d5e64a2039f7dc896df9d43f2d36 | [] | no_license | KarlPineau/P13-donneesculturelles-algo-movie | 6f4235190a391d5a9cc8202188b885d63026e048 | c6e880b09a21dac0adc36bc2eb41e6cb47be47f9 | refs/heads/master | 2020-04-06T18:25:32.808638 | 2018-11-15T11:04:40 | 2018-11-15T11:04:40 | 157,697,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | #!/Users/karlpineau/PycharmProjects/P13-dataculture/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar... | [
"karl.pineau@ens-lyon.fr"
] | karl.pineau@ens-lyon.fr | |
589916a3fe64cb4fb3046df64f26dc4024335ea7 | 42100ccfb1ebca6c0cf3eef17acd1f6b0a38e15c | /sqlcode.py | 141ae209b2e7dd48140a6ad973950b8fba1bf794 | [] | no_license | Sanyam2112/WhatsAppChatBot | a7631e271e49357dcbad1e48e71e5485aed4be0b | eb0f5bca3b808ed28b7e91eb26025772dfed27f2 | refs/heads/master | 2020-06-10T12:38:35.581691 | 2020-03-25T09:12:52 | 2020-03-25T09:12:52 | 193,646,345 | 0 | 0 | null | 2019-06-25T06:17:01 | 2019-06-25T06:17:00 | null | UTF-8 | Python | false | false | 2,450 | py | import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome('C:\ChromeDriver\chromedriver.exe')
driver.get('https://web.whatsapp.com/')
input("Press enter")
def replymsg(v):
v.lower()
if "schemes" in v:
reply = "These are the followin... | [
"noreply@github.com"
] | noreply@github.com |
3271073143057a6f5c10c32a9663947c7ade845c | 18f7aa2a416da68c1e38587b60cfff32fbb06a63 | /Random/merge_sort.py | 6908d247d5757beee50c89fe12a05e4d22d34f1d | [] | no_license | kumaravinashm/Python-Question | d0bc837b373cb979da676f8d98faee3fb531c6d1 | 4d46a968a5aec38f494d2cc65a285c161c150c0c | refs/heads/master | 2020-06-17T19:33:52.186800 | 2019-10-04T02:50:31 | 2019-10-04T02:50:31 | 196,027,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | def mergeSort(arr):
if len(arr) > 1:
mid = len(arr) // 2
L = arr[:mid]
R = arr[mid:]
mergeSort(L)
mergeSort(R)
i = j = k = 0
while i < len(L) and j < len(R):
if L[i] < R[j]:
arr[k] = L[i]
i += 1
else:
... | [
"avinashnaa@gmail.com"
] | avinashnaa@gmail.com |
31f90e38fc0633e8bdf039de832130e8d11a1685 | 3588ff6731cddef10eedb06d3a1500e43ec981e8 | /排序算法/insert_sort.py | c6d24dddecc08456813383691ed2c518daf18cce | [] | no_license | anitazhaochen/nowcoder | 4e301354ccd4d54f622b0dd78c96c32c5b28e02a | 5df9a4208d6de969350ff7405a291c7b2c64e082 | refs/heads/master | 2020-04-02T20:40:30.584985 | 2019-11-26T08:09:36 | 2019-11-26T08:09:36 | 154,775,322 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from myutils import getRandom
from myutils import compare
@compare
def insertSort(arr):
if arr is None or len(arr) == 0:
return
length = len(arr)
for i in range(1, length):
for j in range(i,0,-1):
if arr[j] < arr[j-1]:
... | [
"zhaochensy@gmail.com"
] | zhaochensy@gmail.com |
312dade636eb5f118e4e499650b9e03c76e77e24 | 2d860475a273e4fc5906cd74a4a9a98d0e684483 | /oarias2710-iic2233-2020-2-master/Actividades/AS01/jugadores.py | 8fb395bd62358086f657c6b51312515d09482397 | [] | no_license | oarias2710/IIC2233_2020_2sem | af41501a778242661805452e77c7f4624b45c76c | a770d7b803ea23f9ebe198deabe2f4f8c3b717da | refs/heads/main | 2023-02-09T05:31:29.274385 | 2020-12-30T16:13:18 | 2020-12-30T16:13:18 | 325,592,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,860 | py | from estudiantes import Programago
import random
import parametros as p
from abc import ABC, abstractmethod
class Jugador(Programago, ABC):
def __init__(self, nombre, saludo, numero_polera):
super().__init__(nombre, saludo)
self.nerviosismo = None
self.velocidad = None
self.equilib... | [
"oaarias@uc.cl"
] | oaarias@uc.cl |
d02475a37e1fd28c5fcbc270cde64d594cefbc67 | 0a6b70c7139de6793b866c2e852528f751dfa6b5 | /link_pred.py | 7d5fb66cc1d4c84b82844c88a44489eb2401742a | [] | no_license | fatemehsrz/JAME | 3a398d19fc6dc4d7aa57bd5adc74d14caa8c0240 | 2150764074f2039257b593ff9549335a4c68af9d | refs/heads/master | 2021-07-16T13:35:49.689021 | 2021-03-15T12:18:20 | 2021-03-15T12:18:20 | 243,335,860 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,355 | py |
import networkx as nx
from sklearn import pipeline
from sklearn.preprocessing import StandardScaler
import numpy as np
from sklearn.linear_model import LogisticRegression
from sklearn import metrics
from sklearn.metrics import average_precision_score
class Graph():
def __init__(self,
nx_G=None... | [
"noreply@github.com"
] | noreply@github.com |
e5802422f5e1586de5fc03a8643b8f91e03eab64 | 95023f309f0061a9139c82b62ecc91e90bf70e76 | /Library/migrations/0011_auto_20190126_0041.py | 03db185e270c29ec93252ace2b4c5295fd5cbbcb | [] | no_license | rachanaahire/Django-CollegeDepartmentWebsite | 63f3b8e55aca9c7cb4aa4d09a60562a0c338bc49 | df19a8f2eb4a408c62b9adb7ac70a2737bfa8e27 | refs/heads/master | 2021-12-14T19:43:37.411630 | 2021-12-05T18:28:46 | 2021-12-05T18:28:46 | 224,184,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # Generated by Django 2.1.4 on 2019-01-25 19:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Library', '0010_auto_20190126_0036'),
]
operations = [
migrations.AlterField(
model_name='book',
name='course',
... | [
"58187058+rachanaahire@users.noreply.github.com"
] | 58187058+rachanaahire@users.noreply.github.com |
76f7520ec348276ea03ea5fc6b1410b0cb6b3960 | 067bd682010d7fe495ac35c601a31d37a985aa89 | /adoc/test4.py | 5755c92f071ee8ef06579a9a51bf7dfdd49306cc | [] | no_license | framr/pytudes | 17c80dc26ea5fa5ab8e08c0ae47c1cc82e452f85 | f7893c50a5301b410cade1a5f0ace34f658743fa | refs/heads/master | 2023-02-09T10:40:50.224531 | 2020-12-25T16:25:36 | 2020-12-25T16:25:36 | 225,833,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | #!/usr/bin/env python3
from itertools import groupby
def valid_number2(num):
nums = [int(dd) for dd in str(num)]
collapsed = []
for dd, it in groupby(nums):
collapsed.append((dd, len(list(it))))
prev = -1
have_same = False
for digit, cnt in collapsed:
if digit < prev:
... | [
"pavel.sht@yandex.ru"
] | pavel.sht@yandex.ru |
f12813c2503db148a1eaacc7bde00ded0464d25b | 51aa2894c317f60726fe9a778999eb7851b6be3e | /140_gui/pyqt_pyside/examples/PyQt_PySide_book/005_Lists and tables/001_Drop-down list/358_addItem.py | 49266f8f8700998f77644b2f498178ac850918ca | [] | no_license | pranaymate/Python_Topics | dd7b288ab0f5bbee71d57080179d6481aae17304 | 33d29e0a5bf4cde104f9c7f0693cf9897f3f2101 | refs/heads/master | 2022-04-25T19:04:31.337737 | 2020-04-26T00:36:03 | 2020-04-26T00:36:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | # -*- coding: utf-8 -*-
from PyQt4 import QtGui
import sys
def on_clicked():
print("Текст:", comboBox.currentText())
print("Данные:", comboBox.itemData(comboBox.currentIndex()))
app = QtGui.QApplication(sys.argv)
window = QtGui.QWidget()
window.setWindowTitle("Класс QComboBox")
window.resize(300, 90)
comboBox... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
6fe45e6ab46a1d837bc8f439c510e91a4fa929c5 | 6d9fbe6e6a2abfd8455e92f6dba67a5f02d87f41 | /lib/phonenumbers/data/region_CL.py | 3d4d764e24767605296bdc23b9705e51691eac0a | [] | no_license | JamesBrace/InfluenceUWebLaunch | 549d0b48ff3259b139cb891a19cb8b5382ffe2c8 | 332d25940e4b1b45a7a2a8200f77c8413543b199 | refs/heads/master | 2021-09-04T04:08:47.594900 | 2018-01-15T16:49:29 | 2018-01-15T16:49:29 | 80,778,825 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,409 | py | """Auto-generated file, do not edit by hand. CL metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_CL = PhoneMetadata(id='CL', country_code=56, international_prefix='(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0',
general_desc=PhoneNumberDesc(national_numbe... | [
"james.brace@mail.mcgill.ca"
] | james.brace@mail.mcgill.ca |
da3b88b2885c7cc9168a4839ac71c0bb2c7686fb | 60120043bf7964a1b185a13c3211c51f425caad6 | /AcademicProjects/COLONELS3 copy/cnn.py | 583ea46bbcb6b265430a9e69dbe540b0e5dc82fa | [] | no_license | prg007/AcademicProjectsSoFar | 15a360dea7559c133bb12acb282d660dc0d833b3 | c27c8ced06483dbfb2c2c3a9872de025a75b2e20 | refs/heads/master | 2022-11-15T16:27:38.838207 | 2020-06-26T09:04:59 | 2020-06-26T09:04:59 | 109,450,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,701 | py | import torch
import torch.optim as optim
import json
from datamanager import retrieve_image, DataPartition, DataManager
from training import Dense, ReLU, nlog_softmax_loss, minibatch_training
import math
import numpy as np
# IMPORTANT: DO NOT IMPORT OR USE ANYTHING FROM torch.nn
# BESIDES THESE THINGS
from torch.nn im... | [
"noreply@github.com"
] | noreply@github.com |
7f068be0f3ed88f297013a5af90764c373606ab8 | 60715c9ea4c66d861708531def532814eab781fd | /python-programming-workshop/test/data_structures/list/listcomprehensionall.py | db343a2519e8ef02335e917ba4bce51bc4d34be9 | [] | no_license | bala4rtraining/python_programming | 6ce64d035ef04486f5dc9572cb0975dd322fcb3e | 99a5e6cf38448f5a01b310d5f7fa95493139b631 | refs/heads/master | 2023-09-03T00:10:26.272124 | 2021-11-01T08:20:52 | 2021-11-01T08:20:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py |
one = [x.strip() for x in ('foo\n', 'bar\n', 'baz\n')]
print(one)
two = [int(x) for x in ('1', '2', '3')]
print(two)
#using a dictionary with list comprehension
d = {'foo': '10', 'bar': '20', 'baz': '30'}
three = [d[x] for x in ['foo', 'baz']]
print(three)
d = {'foo': '10', 'bar': '20', 'baz': '30'}
four = [int(... | [
"karthikkannan@gmail.com"
] | karthikkannan@gmail.com |
7edca7e1cdbd28ec2360213c9f9a879bf37cf904 | 17c03102b5ea124e072c168d3f6e91b032f3de77 | /buildsettings.py | 34fcb57881f739574d5077d0df8717ee2cf0a97b | [
"MIT"
] | permissive | randomizax/export-portals-list | 44d8221e208f9aecb21c232b1712e669186a00eb | 7ee9d8bcd822b79fd71020382889676519b74c08 | refs/heads/master | 2021-01-15T16:17:31.572095 | 2019-03-14T16:00:24 | 2019-03-14T16:00:24 | 27,567,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,333 | py | # settings file for builds.
# if you want to have custom builds, copy this file to "localbuildsettings.py" and make changes there.
# possible fields:
# resourceBaseUrl - optional - the URL base for external resources (all resources embedded in standard IITC)
# distUrlBase - optional - the base URL to use for update c... | [
"rndmxyzzy@gmail.com"
] | rndmxyzzy@gmail.com |
2fbdc36b2bbf594eb7cc85af996201d84ff990f7 | 211b5f06332a00edc39abdcf91640729d827bb11 | /pyramidpooling.py | d10967427db3123efca2efa60079665452c33ec5 | [
"MIT"
] | permissive | revidee/pytorch-pyramid-pooling | 00d107bfc2b6ac2b428ad21a2ba194bcd876d091 | d814eacc81bbc5d1826104b2046b9344b2a9c45c | refs/heads/master | 2020-05-26T11:13:35.514608 | 2019-06-21T11:22:09 | 2019-06-21T11:22:09 | 188,212,383 | 48 | 9 | null | null | null | null | UTF-8 | Python | false | false | 9,848 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
class PyramidPooling(nn.Module):
def __init__(self, levels, mode="max"):
"""
General Pyramid Pooling class which uses Spatial Pyramid Pooling by default and holds the static methods for both spatial and temporal pooling... | [
"b4b39543vb8"
] | b4b39543vb8 |
608e11389f0ecee548b0c0ee175cb0ef1bc7a32a | d7d2f984f20ea483156b9fc686dc923c792e3e7c | /scripts/test_search_input.py | 38470e8b19034f7f9b82e14600af1abf8b965801 | [] | no_license | liyonqiang/test_zj | 0a04bcc276c6dcc224968791991b93fd164160b4 | 4ba16afcaabfcd593adb5ebb667d56c1c263ef79 | refs/heads/main | 2023-04-06T08:33:33.814618 | 2021-04-24T12:20:35 | 2021-04-24T12:20:35 | 361,153,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py |
# allure 报告导包
import allure
import pytest
class TestSearchInput:
def setup(self):
pass
def teardown(self):
pass
# 1. 添加测试步骤: @allure.step(title="测试步骤001")
@allure.step(title="测试步骤001")
def test_login_001(self):
# 2. 添加步骤描述
allure.attach("步骤001描述", "此步骤会打印 001")
... | [
"820114558@qq.com"
] | 820114558@qq.com |
9123c18ddd9a16fdafcb165d54957ca128f40662 | a7d020c8df05d4980876a7b230d7702fe1a9b196 | /tests/functional/test_jobseeker.py | 2b4d1c56b22d5be61526345ccabe9b10052d05f2 | [] | no_license | temon/rpush | 7720387e265d9e5cdb70f59d67bcbf6dc4dcd7ca | dbf0f98b3e473aefebf6313c38313fcf95a81cde | refs/heads/master | 2021-01-18T05:07:58.450940 | 2017-10-31T14:26:55 | 2017-10-31T14:26:55 | 8,747,627 | 0 | 1 | null | 2017-10-31T14:26:56 | 2013-03-13T08:03:37 | Python | UTF-8 | Python | false | false | 19 | py | ## @TODO: code here | [
"rizky.abdilah.mail@gmail.com"
] | rizky.abdilah.mail@gmail.com |
73c9a3a1a9272aad188de26218cf91eb7d8d6fb3 | 063ae19b4f36ec2895dc481d33f6e43c3852e173 | /bin/flask | 78925439609ff7f9a55901c90c6280de0cae2900 | [] | no_license | arifams/lokaferi | ddb64c7146bbdb68b32f3295f87abb9773388764 | 4eec2da4c82e9cfb3428d3fd1e16eea4989899a1 | refs/heads/master | 2020-03-27T23:40:27.515476 | 2018-09-04T13:13:13 | 2018-09-04T13:13:13 | 147,337,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/Users/bang/Documents/belajar/python/lokaferi/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"arif.amsterdam@gmail.com"
] | arif.amsterdam@gmail.com | |
47d12e8660fbea5dee75365da4029327fe5a06a3 | 21e26337bc1b482d74c74316528e08dc058856d3 | /src/day-06/solution-1.py | be48a1e60d97d179af44db065eaceceb412ba635 | [] | no_license | FudgeMunkey/adventofcode-2020 | 393117157aed9050c0fb2b1e61121b825cf97306 | 6e7eb57b2d560e4378c206f49efca513f1712d3a | refs/heads/main | 2023-02-02T16:27:30.264297 | 2020-12-22T08:00:53 | 2020-12-22T08:00:53 | 317,835,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | def read_input():
# Read input
f = open("puzzle_input.txt", "r")
raw_data = f.readlines()
clean_data = []
# Clean Data
for rd in raw_data:
clean_data.append(rd.strip())
return clean_data
if __name__ == "__main__":
data = read_input()
question_sum = 0
alphabet = [0] *... | [
"u6048805@anu.edu.au"
] | u6048805@anu.edu.au |
75c901600cb02b2cab164badb64387af31b908e5 | 54060fe766a7ce368fb65b40c718320529aedc37 | /db_tools/data/product_data.py | 4f66daff268f835a54fa6babf37df33c1d1bc095 | [] | no_license | zzsen/DjangoTest | b13d839e44d536fddff660947dfa2f933da66048 | 4ce65227ed11aa44416e96960eaa71c976303959 | refs/heads/master | 2022-12-12T15:47:08.873561 | 2021-05-27T07:47:59 | 2021-05-27T07:47:59 | 206,477,417 | 0 | 0 | null | 2022-12-08T06:20:06 | 2019-09-05T04:54:04 | JavaScript | UTF-8 | Python | false | false | 36,825 | py | #!/usr/bin/env python
# encoding: utf-8
row_data = [
{
'images': [
'books/images/1_P_1449024889889.jpg',
'books/images/1_P_1449024889264.jpg',
'books/images/1_P_1449024889726.jpg',
'books/images/1_P_1449024889018.jpg',
'books/images/1_P_1449024889... | [
"zzsen@github.com"
] | zzsen@github.com |
5d949b19ac66b7471688398e07a855dfa02336dd | f1b420b0e3f44c9df9ba4e537a780de215572552 | /regex.py | d32d14ebb9457073a953cdef979d4d53c5154c44 | [] | no_license | sociopath00/PythonBasics | 9049720e8d0a3e6ea86290d26aa97a7dcd3bdd61 | 0720444042e9d67127939742021497a6f4aec97e | refs/heads/master | 2021-07-13T00:09:33.217740 | 2020-11-21T18:01:43 | 2020-11-21T18:01:43 | 219,669,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | """
@author: Akshay Nevrekar
@created_on: 6th November,2019
@last_updated_on: 6th November,2019
"""
# import module
import re
"""
Identifiers
\d -> any number
\D -> anything but number
\s -> space
\S -> anything bus space
\w -> any character
\W -> anything but character
. -> ... | [
"akshaynevrekar@gmail.com"
] | akshaynevrekar@gmail.com |
985ba7540d4a52c6e2fc483f7bf744a12568939d | e9c3e8f6ae05b0144237d01671f9a02404c43154 | /hw_timer_demo.py | 4a5fedda73c77fd651b7c016d6e9bbaa1870fc76 | [] | no_license | vtt-info/micropython-stm32-examples | b836fe8a54119fcfdd95046d4edae043a156b695 | b6bbcb98a23b615914a015c7cbdedd550f5807ed | refs/heads/master | 2022-07-27T17:38:31.202661 | 2020-05-13T10:57:20 | 2020-05-13T10:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # File: hw_timer_demo.py
# Date: 2020-05-12
# Micropython-STM31F411CE Black Pill
import utime as time
from machine import Pin
import pyb
led = pyb.LED(1) # on-board LED (blue)
# create Timer (select TIM1..TIM11)
tim = pyb.Timer( 1, freq=10 ) # 10 Hz (fast LED blink)
tim.callback( lambda t: led.toggle() )
try:
... | [
"noreply@github.com"
] | noreply@github.com |
6b61385d0fdf99629f23627dd07d90d5bf712491 | 14e3728f61b89ee20155d497bad8b15753ce5d77 | /gui.py | ff9b1f683d9abe9467556c62721303fe55bba249 | [] | no_license | jonathanvanschenck/Platformer2 | d6f121be71a10eae96cbedfd0c683c0c8ce89add | 9cf80d6bf272f4fb3fb3ea708f36ce934262cb62 | refs/heads/master | 2020-04-18T00:42:35.839136 | 2019-01-26T05:24:38 | 2019-01-26T05:24:38 | 167,087,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,253 | py | """
Main gui for game.
"""
import pygame as pg
from pygame.locals import *
import varbs
import classes
import engine
import initialize
def main():
# Initalize the Screen
pg.init()
screen = pg.display.set_mode((varbs.screenW,varbs.screenH))
pg.display.set_caption("The Judges")
# Initalized a b... | [
"noreply@github.com"
] | noreply@github.com |
c62750ec08e06522ae9aff12220e62eac5024980 | c5a7bf957611a5f825577cddd21ed1a6474e27b0 | /learning_logs/migrations/0002_entry.py | 894d779c211fc9ed330458ed4a9e5080c0769d57 | [] | no_license | o-shmidke/LearningLog | 05cd1929bb84e1a379750526eddde1e9ac00c29f | 848d84203a35029bae146e0aff5519600f6b41bd | refs/heads/main | 2023-01-31T10:26:14.057815 | 2020-12-09T12:02:41 | 2020-12-09T12:02:41 | 319,942,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | # Generated by Django 3.1.4 on 2020-12-08 05:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('learning_logs', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Entry',
... | [
"61247061+o-shmidke@users.noreply.github.com"
] | 61247061+o-shmidke@users.noreply.github.com |
b7ab17516bfe48f16e4d23abe58a871006b093b2 | ff768c02e02064459249df9190555d2e32a9ef37 | /admin/products/migrations/0001_initial.py | 384949c9126372488b0c37671a9f3ce366c66c6b | [] | no_license | Raja-mishra1/microservices_with_python | de0b25fee984084a5b03de47684c98a8bbf442ea | 5b6295a591568fa22f379c87ef579e449c697a90 | refs/heads/main | 2023-02-04T13:27:33.707466 | 2020-12-30T18:27:14 | 2020-12-30T18:27:14 | 324,816,832 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # Generated by Django 3.1.3 on 2020-12-21 18:43
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | [
"rajamishra0702@gmail.com"
] | rajamishra0702@gmail.com |
0ef962f1ba33aef4daecd4b987ab4fb573293a3a | a9f38bb28ff9bd04b151d86c653cde9f46768c7c | /medium/linkedListCycle.py | d8b96b07fc2ad820cad79b087c355a056bd0bd37 | [] | no_license | Xynoclafe/leetcode | 02388516b10b8ee6bec6ee1b91ab5681c3254d33 | 4a80f02683e7fc14cb49c07170651ea3eeb280ac | refs/heads/master | 2020-12-01T21:05:44.656581 | 2020-02-02T09:05:32 | 2020-02-02T09:05:32 | 230,770,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
from collections import defaultdict
class Solution:
def detectCycle(self, head: ListNode) -> ListNode:
seen = defaultdict(lambda: False)
node = head... | [
"gokulprem.94@gmail.com"
] | gokulprem.94@gmail.com |
3677d8a92b150fe0027aa08c9cab0b9074543e10 | c5b9e959c02397b6adb5de773eebd4cc877530da | /models.py | 96d4b736ec6db17bf855a1195c69d3dc19f95024 | [] | no_license | andriyor/soc-counter | 0335970210b0bc9549be3ec417baeca79569cc4f | 8ac74f367a7f7fa8ec5f76762be4955cac3cf641 | refs/heads/master | 2021-08-07T20:35:54.044002 | 2017-04-25T11:13:41 | 2017-04-25T11:13:41 | 83,723,726 | 0 | 0 | null | 2022-04-11T17:36:34 | 2017-03-02T20:52:53 | JavaScript | UTF-8 | Python | false | false | 1,272 | py | from flask_login import UserMixin
from flask_mongoengine import MongoEngine
from app import app, login_manager, flask_bcrypt
db = MongoEngine(app)
handle = 'rozetked'
class Links(db.EmbeddedDocument):
youtube = db.StringField(max_length=200)
twitter = db.StringField(max_length=200)
instagram = db.Strin... | [
"andriyorehov@gmail.com"
] | andriyorehov@gmail.com |
5991c89b63335624c6ba7129d7deebee22fd5e98 | 66e0ab971c9509e8ce79df6e0c5a52905c830be8 | /prob067/prob067.py | 438f596fb54fe2df9d2e878319140420543f256d | [] | no_license | davidized/euler | 0e171d6ede19d3286f282df26632b90babca7fc9 | 7c3a14febf1dedb5051dc5fd92469660f0f888f3 | refs/heads/master | 2021-06-11T15:53:05.367189 | 2021-05-29T14:45:25 | 2021-05-29T14:45:25 | 8,613,285 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 754 | py |
# Retrieve the triangle file and create lists
input = open('triangle.txt')
filelines = input.readlines()
triangle = []
for line in filelines:
line = line.rstrip()
triangle.append(line.rsplit())
rows = len(triangle)-1 #We need the number of rows so we can start one row up
on_row = rows - 1
working_row = tria... | [
"david@davidized.com"
] | david@davidized.com |
5999842176ecc8a4ae17f350b9572baf683a41cf | e17752012d3b9d65a2b444e9f73195fa89c71a00 | /repData.py | cda43a5dd0b0f03367f010144431dd3cebb1d6d8 | [] | no_license | jadenbh13/brain-text | ea5746d932671824c4e9e1771b57ef2f29f2d96a | f55ee6e750550a8cf15a70f458ee2156d2c2633a | refs/heads/main | 2023-03-30T05:39:14.390966 | 2021-04-07T16:06:37 | 2021-04-07T16:06:37 | 355,544,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,396 | py | import datetime
import random
import serial
import time
import matplotlib.animation as animation
import matplotlib.pyplot as plt
from twilio.rest import Client
from pynput.keyboard import Key, Controller
keyboard = Controller()
# Your Account SID from twilio.com/console
account_sid = "ACCNT_SID"
# Your Auth Token from ... | [
"noreply@github.com"
] | noreply@github.com |
d755d565180edb43da8505893ff541726e9d7e91 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_syrians.py | 2ea97ed156d2f2172951b08f48c5d732cd91cdcb | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py |
#calss header
class _SYRIANS():
def __init__(self,):
self.name = "SYRIANS"
self.definitions = syrian
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['syrian']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
faebb5179ffd852e252b6d8110e6dd1532dbae1a | 8a51f71741f5ec37ea5d0b1f51050f68e432241c | /src/utils.py | b74fdb434d6211ab295368c88388e467b7404418 | [] | no_license | jakm/VideoConvertor | d93c306a6f51c1a5e7b170189ab5188e0158bcaa | 5b3e7d6de2b204b0d6a9abdb14e484227a0ba993 | refs/heads/master | 2021-01-19T08:11:31.888852 | 2014-01-02T08:35:54 | 2014-01-02T08:35:54 | 3,355,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,887 | py | # -*- coding: utf8 -*-
"""
Provides miscellaneous useful functions and classes.
"""
import functools
from twisted.internet import protocol
def encode(string):
"""
Encode string with preferred encoding.
@param string str, String to encode
@return str
"""
import locale
encoding = locale.ge... | [
"jakub.matys@nodus.cz"
] | jakub.matys@nodus.cz |
5322af7f07ad32bc337c8b32e40381f72879c7a9 | 2e9d6aa04ab53ad4d9ff5c83d253d4b58e151420 | /daily_image_scraper.py | b3eaf169dffe5c7204d724242847c4123159cf6d | [
"MIT"
] | permissive | meisty/Daily-Image-Scraper | c94958c03bf9e74cc34fd634ffe69c588bf26817 | 1fa8b26e14db33e903e46d839d6138d8795347bb | refs/heads/master | 2020-04-03T10:06:44.245666 | 2019-12-02T22:36:24 | 2019-12-02T22:36:24 | 95,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | import requests, bs4, os
def getDailyImage(imageUrl):
url=imageUrl
res = requests.get(imageUrl)
res.raise_for_status
soup = bs4.BeautifulSoup(res.text, 'html.parser')
imageElem = soup.select('html body center p a img')
if imageElem == []:
print("Could not find the image")
retur... | [
"shaundixon666@gmail.com"
] | shaundixon666@gmail.com |
0c5bcc232151d3d0cfc29a8d4879ddf6f1b4e2b6 | e9ea875168e2025f10b9b103b6b1a39a038c2e60 | /python solvers/2048/GreedySearchNoRandom.py | dcb1c399e0d617c223c479d9a3167e86b48b926d | [] | no_license | greengatz/senior_project | 0dda6ef93c878aec9731ce6e25a1c37fa5f18535 | 6ab42e48583ddd4d7a13959b33f7044f63beda69 | refs/heads/master | 2021-01-15T15:36:27.085469 | 2016-08-30T03:24:34 | 2016-08-30T03:24:34 | 51,871,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,581 | py | from GameState import GameState
from random import randint
from ValueCalculator import value
from Directions import *
class GreedySearchNoRandom(object):
def __init__(self, inDepth):
self.game = GameState()
self.numMoves = 0
self.depth = inDepth
pass
'ke... | [
"jpatte06@calpoly.edu"
] | jpatte06@calpoly.edu |
ca4b35dcc9254c770b8fbcf280e5d949ec61f07e | f6cc05e5b93321e54845665464b4411612105487 | /venv/lib/python3.9/site-packages/hungarian_algorithm/tests/test_graph.py | 3eeefbe0208064fd61df3574656289951ccfee5f | [] | no_license | gostephen/Data-Structures-and-Algorithms | f46fc68e9f69e0e36fdd30ec314f5da0415686bc | 48e72e2fd595ea0a02bcb0efbdefae89b030aa6f | refs/heads/master | 2023-07-09T02:44:31.685903 | 2021-08-22T07:55:36 | 2021-08-22T07:55:36 | 392,228,795 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,432 | py | '''
File name: test_graph.py
Description: Tests for Graph methods.
Author: Ben Chaplin
GitHub: https://github.com/benchaplin/hungarian-algorithm
Package: hungarian_algorithm
Python Version: 3.7.5
License: MIT License Copyright (c) 2020 Ben Chaplin
'''
from ..algorithm import *
import unitte... | [
"57209957+gostephen@users.noreply.github.com"
] | 57209957+gostephen@users.noreply.github.com |
a50897633e5c496269182fceeef7b6dbda62131f | 88772525590667104bd070f46281694051b9bca3 | /Manager/Policies/old/wealthredistrev.py | df73e967e5d5b6e0a15ae425bcb7f24b813b8271 | [] | no_license | iFlex/SociableJavascript | 425c39d256c557207f3f620769570e6e28a3288c | ce2c600b1074d432eeb596c2f7a7a3b2cc56cdef | refs/heads/master | 2021-01-10T10:12:42.452546 | 2016-03-28T16:36:56 | 2016-03-28T16:36:56 | 43,653,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,993 | py | #Wealth Redistribution - ThDrop
#Author@ Milorad Liviu Felix
import math
#inspect and fix with extra care
MAX_THPT = 200.0
context = {}
def init(context):
context["poor_treshold"] = 0
if "csvlog" in context:
context["csvlog"].commitSchema(["totalAvailableMemory","redistributable","RichD","PoorD"])
def throughput... | [
"milorad.liviu.felix@gmail.com"
] | milorad.liviu.felix@gmail.com |
d11bc35e80312bd9d5b08d3091ee5098da77f10d | 91b8a4c7278e25012733de1af7c3f14d5d3c6688 | /reservation/migrations/0001_initial.py | bac817b9235c8d01cbaea9910699cb3cf26dcb01 | [] | no_license | FernandoSka/dogger | ab35d5730f579b5798a6f1db9e9c134a4eedb440 | b2a8a550936f4d9947518f71acf643d651c99f2d | refs/heads/master | 2020-04-18T16:19:03.458129 | 2019-01-28T18:15:26 | 2019-01-28T18:15:26 | 167,631,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | # Generated by Django 2.1.5 on 2019-01-24 07:21
import customer.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('customer', '0001_initial'),
]
operations = [
migrations.Crea... | [
"yayo280.fl@gmail.com"
] | yayo280.fl@gmail.com |
7b51afeec4b4b08650f1da993bea865407253bed | 03a210fac12f08bf66eedaa6c39431df0e980fb2 | /0x05-python-exceptions/0-safe_print_list.py | af6a0965648801e2476feab18a3fb58038d557ea | [] | no_license | jhosep7/holbertonschool-higher_level_programming | 9107daee8c6642dcbfc7d7a3957c5fdd97b3f8e2 | c16437413b6b6995d6631851a9e1c0aeb24e18e4 | refs/heads/master | 2020-09-29T04:00:11.969366 | 2020-05-15T13:37:11 | 2020-05-15T13:37:11 | 226,944,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | #!/usr/bin/python3
def safe_print_list(my_list=[], x=0):
counter = 0
try:
for i in range(x):
print("{}".format(my_list[i]), end="")
counter += 1
except IndexError:
pass
print()
return counter
| [
"jodia.ms@outlook.com"
] | jodia.ms@outlook.com |
9c4c6f65428497d682a9810ee5fcf8eca28e6d13 | 8159412a6301c7ae76242180618ec0623f6a8e99 | /Aula2/flask_templates.py | b297686f0316c12d1b3d1cc41004d6250766fa34 | [] | no_license | yama1102/python521 | bba4faf3c81d74c1b380207f787ba4e3a83883e2 | 1d84b4c44797541fc0c53fd15ee8166b25f0a88c | refs/heads/master | 2020-12-21T22:39:58.826052 | 2020-01-31T19:32:46 | 2020-01-31T19:32:46 | 236,586,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | #!/usr/bin/env python3
import flask
app = flask.Flask(__name__)
@app.route('/')
def index():
dados = {
'title': 'Titulo jinja',
'word': 'Eu sei programar',
'botao': True
}
# return flask.render_template('index.html', title = 'Titulo Jinja', index=dados)
return flask.render_te... | [
"iaferro@gmail.com"
] | iaferro@gmail.com |
bf834121013df4c7d43567494dd7c59522486142 | ac8dc0d68941644c5abb75620ea6fe093e0c9c5e | /advanced/threadingtest.py | 98a57d1bbce0e93935fc009b45f24dca4cf412cd | [] | no_license | Languomao/PythonProject | 23a04710141afadda60966d76af201574519d5a1 | c6d7103c444ea990585520a16965fad3f6b41ffa | refs/heads/master | 2022-12-19T02:08:21.209941 | 2020-09-22T10:55:10 | 2020-09-22T10:55:10 | 290,992,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | import threading
import time
exitFlag = 0
class MyThread(threading.Thread):
def __init__(self, threadName, threadID, counter):
threading.Thread.__init__(self)
self.threadName = threadName
self.threadID = threadID
self.counter = counter
def run(self):
print("开始线程:" + s... | [
"596268410@qq.com"
] | 596268410@qq.com |
a08f6064088a1e6734363005161d93dfea63de55 | 9c92b6ce98167e33cbe5535b1502c7e6c444cd7d | /constructors.py | 94ff1ee0b3b72f27debd68fd0f43572a894a87e4 | [] | no_license | seblee97/f1_fantasy | d7bf454c2c48986db0c02cd320ea7d2f209ec8ed | 231bd967f5ebffee7553ab71e85414e3781803fe | refs/heads/master | 2023-04-17T12:02:38.359698 | 2021-04-18T20:06:52 | 2021-04-18T20:06:52 | 352,050,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | import constants
from f1_objects import Constructor
mercedes = Constructor(
name=constants.MERCEDES, price=37.8, drivers=[constants.HAMILTON, constants.BOTTAS]
)
red_bull = Constructor(
name=constants.RED_BULL, price=26.0, drivers=[constants.VERSTAPPEN, constants.PEREZ]
)
mclaren = Constructor(
name=consta... | [
"sebastianlee.1997@yahoo.co.uk"
] | sebastianlee.1997@yahoo.co.uk |
13a4cfdc9105077329bdddd1b212b3f638efe040 | 3db5e39d9bbe1c86229a26e7d19e3ceb37f902e3 | /algorithm/10week/workshop1_최적경로.py | 527bc797632c491ccd80c8f088ab9cf46ba3bc3d | [] | no_license | sweetrain096/rain-s_python | 5ca2fe5e7f97a681b6e75e64264687a723be1976 | eb285eb50eeebfaa2b4a4d7816314e2073faab00 | refs/heads/master | 2021-07-19T16:06:01.389283 | 2020-05-29T14:56:16 | 2020-05-29T14:56:16 | 162,240,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | import sys
sys.stdin = open("workshop1_input.txt")
def perm(n, k, sum_data):
global result
if result < sum_data:
return
if n == k:
last_check = sum_data + abs(data[k - 1][0] - er) + abs(data[k - 1][1] - ec)
result = min(last_check, result)
# print(data)
else:
fo... | [
"gpfhddl09@gmail.com"
] | gpfhddl09@gmail.com |
50cb9be03e7a90465adb9cc4c291309a1c456643 | 2c13f599cc54be77ed202edc82422127ac52e9a5 | /led/views.py | e86d399db2d2663a65dec37287effe51560b959d | [] | no_license | Alexander3/raspberry-leds | f83129f8c6350616ecc3e28d107fe974d68d1e58 | 3970798bcd9a3d79fce289ae6878a73ff968aa9e | refs/heads/master | 2023-01-10T15:33:11.763194 | 2020-12-26T21:22:45 | 2020-12-26T21:22:45 | 170,722,411 | 0 | 0 | null | 2023-01-01T08:28:45 | 2019-02-14T16:30:02 | TypeScript | UTF-8 | Python | false | false | 1,556 | py | import json
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from pi_led.celery import app
from .domain.leds import led_strip
from .tasks import wake_me_up, display_wave
from django_celery_beat.models import PeriodicTask, CrontabSchedule
@csrf_exempt
def set_color(request):
... | [
"kawalaaleksander@gmail.com"
] | kawalaaleksander@gmail.com |
7b2521891b78babd941f5180ba79de7d9488c4e8 | ee55a6ce2197d690d5b642bf54918b1de6ad0633 | /cash/apps/cards/migrations/0001_initial.py | 4c6de5bfe7acf83cbfcb85202267d07f48845ff1 | [] | no_license | ATNC/cash | d4152dd122310ca3cbca112ef2c12cddfaa1f2c9 | 56298fab5bd9b9115fa559b357fb4d7ecf496d35 | refs/heads/master | 2021-01-11T11:17:28.499012 | 2016-02-11T22:53:21 | 2016-02-11T22:53:21 | 51,240,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-07 09:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Creat... | [
"i.khamlenko@gmail.com"
] | i.khamlenko@gmail.com |
32b642d2a024996ca327534823b55c601921ace7 | 279069128ad65c94c0cbd6fe5f79184602724ba3 | /App_assist.py | 027f160c27ec44a8d04351dcf8e766c1e85fbe8f | [] | no_license | Maxhendo/refactored-eureka | 28e2a22d8f98a41b0368599ad8571abbabe62c1f | 7ecd650eaf4b1c6872f341ea35fd17a00ae1db5c | refs/heads/main | 2023-03-15T08:49:00.281230 | 2021-02-23T04:37:04 | 2021-02-23T04:37:04 | 341,406,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | import os
import requests
from flask import redirect, render_template, request, session
from functools import wraps
def login_required(f):
"""
Decorate routes to require login.
http://flask.pocoo.org/docs/1.0/patterns/viewdecorators/
"""
@wraps(f)
def decorated_function(*args, **kwargs):
... | [
"noreply@github.com"
] | noreply@github.com |
f18ce412fbc8b06df919a3ca53bba5efec7859e7 | 2ab0791967ae3bbf52053ef82d9ca4ab14f55aac | /algorithm/python/NumberofSubarraysofSizeKandAverageGreaterthanorEqualtoThreshold/test_solution.py | 280afc783a7ccc7b1bdb8aa073f2c31688c67a7d | [] | no_license | verybada/leetcode | 8f01dde93f1cd3b0b9698029424cae262d776a48 | 1f0fc27b635bd6c3d6b0f8baad628d1a254bc143 | refs/heads/master | 2022-10-13T13:47:21.506053 | 2022-09-15T15:08:22 | 2022-09-15T15:08:40 | 41,243,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | import pytest
from .solution import Solution
@pytest.mark.parametrize(
"arr, k, threshold, expected",
[
[[2, 2, 2, 2, 5, 5, 5, 8], 3, 4, 3],
[[11, 13, 17, 23, 29, 31, 7, 5, 2, 3], 3, 5, 6],
],
)
def test_num_of_subarrays(arr, k, threshold, expected):
assert Solution().numOfSubarrays(a... | [
"adam_lin@morrisonexpress.com"
] | adam_lin@morrisonexpress.com |
03192564be49ec52d56ec49d63bc7b541888ec09 | bf5804ecc4f1730b9248974dd04a3abd4e705316 | /bitutil.py | feab605bdeea8f3221d4d6748ecbe48bd113ae44 | [] | no_license | Haretidm/Matrix | cec50cf87a7062ba6e623175fd2f7b2f03d42de1 | f0c1f4fdd9a36fddb2dc37041711aad4792a72a1 | refs/heads/master | 2021-01-23T07:16:33.572780 | 2013-08-27T10:20:29 | 2013-08-27T10:20:29 | 12,402,919 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | """
Implements several convenience operations for use with the ECC lab.
Author: Landon Judkins (ljudkins)
Date: Spring 2009
Updated by Nick Gaya, Spring 2013
Requires: fields matutil
"""
from GF2 import zero, one
import mat
import random
def str2bits(inp):
"""
Convert a string into a list of bits, with each cha... | [
"haretkip@gmail.com"
] | haretkip@gmail.com |
fa997f82b13e2be1aa2a078894efc7faea5c6144 | ca6fcc6697d08cc30ed9ce4577db42b0991b16cd | /1Scripts/TouchObjs.py | 84a917622557dabed5354df390b0cd1017fc12a2 | [] | no_license | brnold/LDBInteractiveModelProject | 139e3fb35cb99733b277223169f2979e383d0ec1 | cd7abb30c1ff480b4c5327810e5535b87643d07c | refs/heads/master | 2021-01-17T11:17:09.245811 | 2016-06-07T13:53:52 | 2016-06-07T13:53:52 | 52,618,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,354 | py | #************************************************************************************************************
# ECE 491 Senior Design
# Winter 2016
# Team 6
#
# Python Script : TouchObjs.py
# Supporting Scripts : ObjTouchCtrl.py,
#
# Purpose:
# Touch objects script. This python script module contain... | [
"brnold@oakland.edu"
] | brnold@oakland.edu |
dc746b9692d6ba2d3d49f9f8721cc97b63ddb939 | be8112d14884ce4e50aeb0cdc15cac4e459a04a1 | /backend/face-crop.py | ce9a1e7bbd57fae5b0896e7280786fe00fe0b186 | [] | no_license | apalmk/SLAC | b0a348bd7b26e2388dcdc8b89cc5abe389a778c2 | 66a3e9091368f0b5e49a6f4fb5f0f083394d4e39 | refs/heads/master | 2020-12-09T03:05:39.657209 | 2020-01-29T22:46:12 | 2020-01-29T22:46:12 | 233,172,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import os
import cv2
image_path = "images"
def save_faces(cascade, imgname):
img = cv2.imread(os.path.join(image_path, imgname))
for i, face in enumerate(cascade.detectMultiScale(img)):
x, y, w, h = face
sub_face = img[y:y + h, x:x + w]
cv2.imwrite(os.path.join("faces", "{}_{}.jpg".f... | [
"prasadatluri1997@gmail.com"
] | prasadatluri1997@gmail.com |
1097053a79b90164857c8dc4bcb6fad625bceb8e | 1c321da055cecc5dad2fc00fa327178671bf19a2 | /50/动动手0.py | 866974e850374f95fc27e98d81ed08400e4a81d8 | [] | no_license | Qiren-Wise/Python-FishC-learning | da498a10d9c501d738cf74d90fce9c0d5f41de80 | be5b6ac2cc4395dd361d51446cd266a9a49b047a | refs/heads/master | 2023-05-18T11:45:18.232922 | 2021-06-04T14:58:28 | 2021-06-04T14:58:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | # 0. 要求实现一个功能与 reversed() 相同(内置函数 reversed(seq) 是返回一个迭代器,是序列 seq 的逆序显示)的生成器。
def myRev(string):
index = len(string)
for i in range(index-1,-1,-1):
yield string[i]
for j in myRev("fishc"):
print(j,end='')
| [
"1332674941@qq.com"
] | 1332674941@qq.com |
0c1aa9e8deee657c8629444b2a96f99eef1029ab | 2bb9776f275c3c9bfb4aade6dc5dea4b8747b4eb | /search/search.py | f4ed00315a03a93d3ceaa66a46967d09c4e33a2e | [] | no_license | silverjosh90/pacmanAI | 831272d61d333fe14340a7729b4d157ab5ee5712 | ae9649dd5e6c732b1ede1ae52ce7e778832928ad | refs/heads/master | 2021-01-20T07:56:45.469992 | 2017-05-02T19:29:46 | 2017-05-02T19:29:46 | 90,070,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,218 | py | # search.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 http://ai.berkeley.edu.
#
# At... | [
"silverjosh90@gmail.com"
] | silverjosh90@gmail.com |
de1929d44d98ae36272a6cc91df53af4a41c83a7 | 579d09f04d7f1adade8213bf72439f9c9474f91a | /DoG Weighting/gridConstructionSphere2.py | 115a4ca3ec3e3dcdae6a8169a220c1cba69b7699 | [] | no_license | rmachavariani/ae2223 | b96857aa1deb22d2520d49ef2f6e88ee99c528bb | ec7110588630341620a1f4998088f1957d926676 | refs/heads/master | 2023-05-13T06:33:05.415909 | 2021-06-10T20:55:10 | 2021-06-10T20:55:10 | 346,340,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,864 | py | import numpy as np
from class_def2 import *
from class_def3 import *
from math import floor, sqrt
import time
def loadData():
''' Loads data from carMirrorData.dat
:return: nrVectors x 6 np array
'''
# load the data
t1 = time.time()
data = np.loadtxt("carMirrorData.dat", max_rows=500)
t2 =... | [
"email@gmail.com"
] | email@gmail.com |
56a0ac27d45c3d9350de507c52e868018bb99da5 | a0517ded9387212c385d5c6a2d5a921213b00c36 | /miller_ecog_tools/SubjectLevel/Analyses/subject_bri_novelty.py | b564cf595eab20fe9e57deb1cfcdfd0f3f930c8a | [] | no_license | jayfmil/miller_ecog_tools | 10e7b96090aec4f6ee906df89061494ed2b80358 | a2b7cd2b9c8ff311fd2d60916acd1959e3b07306 | refs/heads/master | 2021-06-27T23:23:07.170567 | 2019-05-10T15:46:25 | 2019-05-10T15:46:25 | 60,645,025 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 40,496 | py | """
"""
import os
import pycircstat
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import xarray
import h5py
from tqdm import tqdm
from joblib import Parallel, delayed
from scipy import signal
from scipy.stats import zscore, ttest_ind, sem
from scipy.signal import hilb... | [
"jay.f.mil@gmail.com"
] | jay.f.mil@gmail.com |
17739918d8f1c5cc8f413494bccfd308568c32fe | 79df1aa5db9fc14f8c9a84a99605c554995dae90 | /ML_builders/keywords_extraction_update_db.py | eec8ebfa73f7ad16d5c3827f5c7bf0fb9ce162eb | [] | no_license | COVID-19-Text-Mining/DBProcessingScripts | 920dc225ff19352e4c9626fb6125398b102e49ef | 6a81ce4bf89ab6a0e6e5501b514d564a560f3ba1 | refs/heads/master | 2022-10-10T14:36:41.470078 | 2021-04-01T20:44:52 | 2021-04-01T20:44:52 | 249,071,379 | 0 | 4 | null | 2022-09-30T20:12:37 | 2020-03-21T22:23:59 | Python | UTF-8 | Python | false | false | 1,900 | py | import json
from pprint import pprint
from IndependentScripts.common_utils import get_mongo_db
from keywords_extraction import KeywordsExtractorBase
from keywords_extraction import KeywordsExtractorNN
def extract_keywords_in_entries(mongo_db):
processed_ids = set()
extractor = KeywordsExtractorNN(
o... | [
"tanjin_he@berkeley.edu"
] | tanjin_he@berkeley.edu |
17e7cf7e865a2081c5c483f80afa767141dfae12 | e85e697cadabafca4c5853a30ba7851ce8925d75 | /RandomForest/eval.py | 161df5d1923b0aa13cb201b521d6637a4e370697 | [
"MIT"
] | permissive | euirim/fundraising-propensity | 811c919a381ca23610ec1c66a41e22034569742e | 33b01b04e4ef8cae10a3224b98792049e6a5fcd7 | refs/heads/master | 2022-11-25T12:26:49.366530 | 2019-12-14T03:16:22 | 2019-12-14T03:16:22 | 216,437,345 | 0 | 0 | MIT | 2022-11-22T04:51:31 | 2019-10-20T22:45:28 | Jupyter Notebook | UTF-8 | Python | false | false | 213 | py | import pickle
pickle_off = open('data/y_pred.pkl', "rb")
y_pred = pickle.load(pickle_off)
pickle_off = open('data/y_test.pkl', "rb")
y_test = pickle.load(pickle_off)
for i in y_test:
print(i)
print("Done") | [
"antli.inbox@gmail.com"
] | antli.inbox@gmail.com |
d04fc23f52eaaeb5f6834499c8a6eee5855907f6 | 3e39c0ae9ea2a438a6353e10aaf24afd794278b5 | /team4.py | 46ef7f0b24fac36608738705223d1fd74ad6ad66 | [] | no_license | prathyakshun/Extreme_TIc_Tac_Toe_Bot | 724f2d4c641bd24155362a92a43ddf462f05bd5f | f07bc479ee44c3b99db3ad701fc7d103279a9b58 | refs/heads/master | 2020-03-18T15:53:17.418913 | 2018-05-26T06:23:38 | 2018-05-26T06:23:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,597 | py | import random
from time import time
import copy
INF = 1e10
class Team4:
def __init__(self):
self.time_limit = 15
self.max_depth = 100
self.time_out = 0
self.depth = 6
self.cell_weight = [6, 4, 4, 6, 4, 3, 3, 4, 4, 3, 3, 4, 6, 4, 4, 6]
self.mapping = {'x':1, 'o':-1, 'd':0, '-':0}
def move(self, board... | [
"noreply@github.com"
] | noreply@github.com |
47c291c064e807e68a7f1ef58a24677a9fdc71c4 | a9a86dd97ac152825657571f1e94ffe01811fffe | /assets/migrations/0001_initial.py | 9e6e6ed56620e4f03efb4811e32e3f724c4a12ee | [] | no_license | Dawson0x00/AssetManage | 359ee269f2b9d88639c486093e81a19cd4696532 | 777ee250addc6465f655a6a4b9041701f6235268 | refs/heads/master | 2022-04-03T06:06:49.067648 | 2020-02-14T14:11:50 | 2020-02-14T14:11:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,943 | py | # Generated by Django 2.2 on 2020-01-13 13:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CSP',
fields=[
... | [
"jerryzvs@163.com"
] | jerryzvs@163.com |
c6fa9206cc5ff0c2d394edb90d2809935d172d50 | cefdf82a0f9b802e006c19c85f1157bc1012dec3 | /src/model_dispatcher.py | a18824f7ab365e8483623be88f0f7194139ba354 | [] | no_license | hazim111/Categorical-Feature-Encoding-Challenge | 465829b256c648f8f33f1b13f36af880b5eabb47 | 26482165ee576516c8b924714b2259d37e1115cb | refs/heads/main | 2023-01-23T10:31:43.872954 | 2020-11-10T10:07:57 | 2020-11-10T10:07:57 | 311,287,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from sklearn import ensemble
MODELS = {
"randomforest": ensemble.RandomForestClassifier(n_estimators=100, n_jobs=-1, verbose=2),
"extratrees": ensemble.ExtraTreesClassifier(n_estimators=200, n_jobs=-1, verbose=2)
} | [
"hazimmir006@gmail.com"
] | hazimmir006@gmail.com |
62018629232c1e237cabe676ac0d9f85c5b74caf | 83d4de4a66526891728f77cfcb31f3bbb1b70757 | /Training/5.python/DAY3/tik_tok/tik_menu.py | cff9a8494c8eb4b6119489a926af044ab740b4d4 | [] | no_license | sd-karthik/karthik-repo | dd2a0689bf75d90121e0d27c56a1a11b6325f470 | 5c37b943f8d1bc44a18a1d78cdbeaf22df0fae38 | refs/heads/master | 2021-01-09T06:22:50.568636 | 2017-03-19T06:54:51 | 2017-03-19T06:54:51 | 80,975,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # FILE Name : tik_menu.py
# Function : tik-tok game implementation
import os
lst1 = [['*','*','*'],['*','*','*'],['*', '*','*']]
#choice = input("Choose the player\n 1. Player_1 (0)\n2. Player_2 (1)\n")
#if choice == 1:
def matrix():
# os.system("clear")
for i in lst1:
print "\t", i[0]," ",i[1]," ",i[2],"\n... | [
"karthik.shetty395@gmail.com"
] | karthik.shetty395@gmail.com |
9393de465090e8eca76d6d35fe72c3f91592711c | e61d07975a64d95eb41e9aef88eff631be2d1e9b | /projects/flask_blueprint/jobcn/company/__init__.py | b00674aa8cf350cd8eca19a50acb27818185d0a7 | [] | no_license | yuhaoboris/LearnPythonTheHardWay | 4375c916fc1d10b9d73c2f3e7aa608c5912f05fa | 771d7f5c533109d14049f88bc6ecc03e5e1eeeca | refs/heads/master | 2021-05-31T09:02:45.983210 | 2016-04-22T09:33:32 | 2016-04-22T09:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from flask import Blueprint
company = Blueprint(
'company',
__name__,
template_folder='company_templates'
)
from . import views
| [
"yuhaobo1990@gmail.com"
] | yuhaobo1990@gmail.com |
652f47df5507cc851df7d349a9387a2aaa905013 | 36bc466d22e9eaf2056b3dd0d44fc307046d792e | /HW5/config.py | b7ba2469fee655804e3005064a90bfec2e5d38b7 | [] | no_license | jtanwk/capp30254 | 05ff8a168187fb968e02d8222801400f7a756a21 | 3e9cea4d167a4a49a5dbc3934a6fd4fddd2107f3 | refs/heads/master | 2022-07-10T19:42:09.399914 | 2019-06-02T07:59:55 | 2019-06-02T07:59:55 | 179,363,081 | 0 | 0 | null | 2022-06-21T22:02:34 | 2019-04-03T20:13:22 | Jupyter Notebook | UTF-8 | Python | false | false | 3,869 | py | # CAPP 30254 Machine Learning for Public Policy
# Homework 5 - Improving the Pipeline
# Pipeline Configuration file
######################
# 1. READ/WRITE DATA #
######################
# Filepath where input data is stored
DATA_PATH = 'data/projects_2012_2013.csv'
# Filepath where trained classifiers are stored
CLA... | [
"jon.twk@gmail.com"
] | jon.twk@gmail.com |
2bd7aacef0b5f06ea9fbbaf4f6b6fc36ab09b27c | 49bfa101bbb5ed35f9c8282ddb352ebbbfcc47cc | /DeepLearning_NeuralNetwork/ConvNets/Block.py | 523f0cfe1ee42dd2b193f3660d5ca31808720a4c | [] | no_license | sudhirkk/ML_Projects | de422ff39b7c69e54fd0a7c78f41a9628826d602 | 8acfd430cf219818fe33c08456411d9d6954c95b | refs/heads/master | 2023-04-22T14:05:43.548925 | 2021-05-04T18:27:03 | 2021-05-04T18:27:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | class Block(nn.Module):
def __init__(self, in_channel, out_channel, kernel_size=3, stride=1):
super(Block, self).__init__()
self.in_channel = in_channel
self.out_channel = out_channel
self.kernel_size = kernel_size
self.stride = stride
# This block c... | [
"heidi@Heidis-MBP.hsd1.ca.comcast.net"
] | heidi@Heidis-MBP.hsd1.ca.comcast.net |
7186bad46805eb47e6211c9419da1e7e919c2d4c | 887f2e664c6d92f17e784f57022333a2fb859d06 | /analysis/movement/simulations/topo.py | 1061723ff603246df35486ce122f83a75a02f3f3 | [] | no_license | ctorney/dolphinUnion | 1968e258c6045060b2c921bd723d0ef0daea0147 | 9d7212d172a8a48a36fc4870fcdb04d66130bb76 | refs/heads/master | 2021-01-19T04:40:57.286526 | 2017-08-17T20:44:58 | 2017-08-17T20:44:58 | 46,424,670 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,239 | py | import numpy as np
from math import pi, sin, cos, atan2
from math import *
import math
import matplotlib.pyplot as plt
import pandas as pd
outTracks = pd.DataFrame(columns= ['frame','x','y','heading','c_id'])
trackName = 'topo.csv'
# number of individuals
N=100
# set to random initial conditions on (0,1... | [
"colin.j.torney@gmail.com"
] | colin.j.torney@gmail.com |
eb54622d41e0bc71b02a07090a87baf2db7404d7 | 73989f945d779ecb83c8aaf7b854e1f6239fdd39 | /fuzzy/adaptation-iris/main.py | 1b08e9690d9752b15a2d0d28f932832ac349b812 | [] | no_license | wayter95/neural-network-exercises | c364b71b9131dde650b2a8753fd79006ce622337 | 99b97d2d2aeb1ef45505e3b054b43a33a00d5933 | refs/heads/main | 2023-05-07T22:12:08.048943 | 2021-06-08T17:49:01 | 2021-06-08T17:49:01 | 375,084,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | import numpy as np
import skfuzzy as fuzz
from skfuzzy import control as ctrl
cs = ctrl.Antecedent(np.arange(4,8), 'CS')
ls = ctrl.Antecedent(np.arange(2,5), 'LS')
cp = ctrl.Antecedent(np.arange(1,7), 'CP')
lp = ctrl.Antecedent(np.arange(0,3), 'LP')
classe = ctrl.Consequent(np.arange(0, 1), 'classe')
cs['baixa'] = f... | [
"wayter.paulo.95@gmail.com"
] | wayter.paulo.95@gmail.com |
242116a8e3514f4012a07dd058710361e5fd3378 | c1f56a01707563cbbd9784d803c015611e93aee8 | /kolibri/core/content/test/test_tasks.py | 718db2db875864bdb7fe37452fac56d21285e876 | [
"MIT"
] | permissive | swiftugandan/kolibri | 4b9a42232c27d83e1979ffc5a0172b1ccfb934db | c87008905afa785dce06e63e5189358abd5113cc | refs/heads/develop | 2022-08-03T22:50:23.008609 | 2022-07-22T09:04:54 | 2022-07-22T09:04:54 | 183,503,563 | 0 | 0 | MIT | 2019-04-25T20:14:53 | 2019-04-25T20:14:52 | null | UTF-8 | Python | false | false | 8,988 | py | import uuid
import mock
from django.test import TestCase
from rest_framework import serializers
from kolibri.core.auth.models import Facility
from kolibri.core.auth.models import FacilityUser
from kolibri.core.content.models import ChannelMetadata
from kolibri.core.content.models import ContentNode
from kolibri.core.... | [
"richard@learningequality.org"
] | richard@learningequality.org |
907377f7ea2c199b9511095ba160addc731a03bc | 3e900cb2d3cbb949b3050646ca6531f2bff86a84 | /core/Lib/codecs.py | cf82ccb4e0305b45d7291928fdd97fafe066088a | [
"Apache-2.0"
] | permissive | tuankien2601/python222 | e8043367d73d785c4281895f26487cb45b0ab812 | 205414c33fba8166167fd8a6a03eda1a68f16316 | refs/heads/master | 2021-06-21T04:47:38.784778 | 2017-08-14T10:02:33 | 2017-08-14T10:02:33 | 100,253,763 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,262 | py | # Portions Copyright (c) 2005 Nokia Corporation
""" codecs -- Python Codec Registry, API and helpers.
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
"""#"
import struct, __builtin__
### Registry and builtin stateless codec functions
try:
from _codecs i... | [
"lizhenfan902@gmail.com"
] | lizhenfan902@gmail.com |
e53a5359a67d02e0656b36d63bcba3b3e44b2b56 | cd23b0457bc02a60b89f1f52783e56cc36d85b5e | /thread/thread_condition.py | 6d246780edd0b81a190b55004966c83037b22cc5 | [] | no_license | cluo/learingPython | 65c7068613e1a2ae0178e23770503043d9278c45 | 54609288e489047d4dd1dead5ac142f490905f0e | refs/heads/master | 2020-04-01T13:04:15.981758 | 2015-02-23T13:21:31 | 2015-02-23T13:21:31 | 28,440,969 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by iFantastic on 15-2-14
__author__ = 'cluo'
import logging
import threading
import time
#consumer()要设置Condition 才能继续
#producer() 负责设置条件 并通知其他进程可以继续‰
logging.basicConfig(
level = logging.DEBUG,
format = '%(asctime)s (%(threadName)-2s) %(message)s'
)
def ... | [
"luosheng@meizu.com"
] | luosheng@meizu.com |
94e5e6c39be326578004189d03989bf0d64c771f | b038d58ff77367c52f1f9288a9c1ed3bc70846a7 | /bot.py | d549c737bc95b269bacd8b8055c07f1b6f795a2c | [] | no_license | TheTrueProblematic/TradingBot | f5a26a5fe6ae59658fc100305ee68290a454ffa2 | 9d9f157259e3c0a942a38e172a752ef3db1a0e4d | refs/heads/main | 2023-03-03T21:23:36.271194 | 2021-02-14T11:58:52 | 2021-02-14T11:58:52 | 337,211,885 | 0 | 1 | null | 2021-02-12T17:33:42 | 2021-02-08T21:16:18 | Python | UTF-8 | Python | false | false | 4,431 | py | import shrimpy
import time
from os import name
from subprocess import call
import sys
class bot:
def error_handler(self, err):
print(err)
class printBot(bot):
def __init__(self):
self.stream = False
self.clearLog()
def clear(self):
_ = call('clear' if name == 'posix' els... | [
"mwmttl@gmail.com"
] | mwmttl@gmail.com |
806443a52fc5cc7e2da8af70220f0e6289e87733 | baa1811841825b321f281112afcac1d9204509b9 | /donphan/abc.py | 746487fea16e00ecd69d09519e8c85d7a6bd689d | [
"MIT"
] | permissive | Gobot1234/Donphan | d3fcb523d33a1496a09a39d2998b11cf5cf69cfb | 1f430e98148420060f6915713e8cd25cf7be14b2 | refs/heads/master | 2023-05-06T09:38:03.219882 | 2020-09-28T16:29:21 | 2020-09-28T16:29:21 | 299,368,495 | 0 | 0 | null | 2020-09-28T16:30:53 | 2020-09-28T16:30:52 | null | UTF-8 | Python | false | false | 22,471 | py | from .connection import Connection, MaybeAcquire, Record
from .column import Column
from .sqltype import SQLType
import abc
import inspect
from typing import Any, Iterable, List, Optional, Tuple, Union
_DEFAULT_SCHEMA = 'public'
_DEFAULT_OPERATORS = {
'eq': '=',
'ne': '!=',
'lt': '<',
'gt': '>',
... | [
"josh.ja.butt@gmail.com"
] | josh.ja.butt@gmail.com |
31b76da73e6a927630716e4ec2e7a7705a409be4 | 6eda9bbe242a461eaaf8da5b320eddab46bfcf82 | /tools/jiandan_img_crawler.py | 3df53e5bdd29a71376f03019a49cd35a74153012 | [] | no_license | BriceChou/TensorflowEx | f7dd4b3e6df39546ba6f02eaf55670cd777063d4 | 87b658c62691e13aaeea3e790ac3193eabdcf489 | refs/heads/master | 2020-03-24T10:05:54.157866 | 2018-11-28T10:56:44 | 2018-11-28T10:56:44 | 142,647,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | # -*- coding: utf-8 -*-
# author @redpig315
import requests
from bs4 import BeautifulSoup
import re
import base64
from urllib.parse import urlparse
import os
#url="http://jandan.net/ooxx/page-36#comments"
url="http://jandan.net/ooxx"
def _base64_decode(data):
return base64.b64decode(data)
def saveimage(url):
image... | [
"noreply@github.com"
] | noreply@github.com |
1d35d836dd2e23513bc5bc3372b3f49c9a8a94d4 | d97d55e2e6437bf24e53d22e08c0178779e71b05 | /venv/bin/pip | cc7671217b4d72ab1e52b442af7d7db54170dc88 | [] | no_license | yhaim21/SampleApp | 3042d58c6ce29e9d7f49a2ba98ce9c369bffac45 | 7573e3bf4daa287a8a34ac03c2f295a69197831f | refs/heads/master | 2023-04-05T04:17:25.134586 | 2021-04-12T15:01:21 | 2021-04-12T15:01:21 | 348,729,245 | 0 | 0 | null | 2021-04-11T17:30:37 | 2021-03-17T13:57:07 | Python | UTF-8 | Python | false | false | 256 | #!/Users/yoavhaim/PycharmProjects/Try/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"yhaim21@gsb.columbia.edu"
] | yhaim21@gsb.columbia.edu | |
b587aded56efa552452087bc2ee9ebcc21b71490 | 38c3dd02aa8176724e2854f2dc382a1226c2336b | /Python/module/module1.py | cc0c46344ab92f31274aabf64e303b8e704f2e9a | [] | no_license | rjh211/EncoreStudy | 6d46cae9130cbc8e194095ed845b3cb8cd30e118 | ae2abf69df7fac5b259f032e79b26018a32cd5a7 | refs/heads/master | 2022-12-17T13:37:03.498567 | 2020-09-24T02:25:08 | 2020-09-24T02:25:08 | 287,887,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | num = 10
msg = 'hello'
def cnt(x):
for i in range(1,x+1):
print(i, end=',')
print()
def makeList():
print("숫자 5개 입력")
return [int(input()) for i in range(0,5)]
def sumList(lst):
return sum(lst) | [
"rjh211@naver.com"
] | rjh211@naver.com |
2dc37446c02b5ae3c76b9184b021ed6aa58ad607 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/284/89249/submittedfiles/minha_bib.py | a4e49fe59fc73927471089959c4911c71b460a5f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | a# -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
def divisor(x):
for n in range(1,x,1):
if (i%n==0):
n=z
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5d9adf11ba61d1788e85e2a90d9ac9bd66148012 | 9db04711e1f79f0957c454d65b70f7564d662c92 | /abstrys/sphinx_ext/markdown_builder.py | 6be56cbda72b1caed06def8150bc84b2b3c28765 | [
"BSD-3-Clause"
] | permissive | acsr/rst2db | 2d738bd8a9c4cc1ce88bfbf2c9a5bb9bf108156f | 7bd341aa5f6867d87cab805c42bb5835913c1ee5 | refs/heads/master | 2020-04-06T13:30:40.280624 | 2016-11-16T05:41:15 | 2016-11-16T05:41:15 | 157,502,835 | 0 | 0 | null | 2018-11-14T06:37:39 | 2018-11-14T06:37:39 | null | UTF-8 | Python | false | false | 806 | py | # -*- coding: utf-8 -*-
#
# abstrys.sphinx_ext.markdown_builder
# -----------------------------------
#
# A Markdown builder for Sphinx, using rst2db's markdown writer.
#
# by Eron Hennessey
from abstrys.docutils_ext.markdown_writer import MarkdownWriter, MarkdownTranslator
from docutils.core import publish_from_doctr... | [
"eronh@amazon.com"
] | eronh@amazon.com |
24602774257285f8b07411e318e6d8d028b70164 | fbe3a52d2dd02bec18f7f52b31e357aed192a308 | /fibonacci/fibonacci.py | 995a3f094f3311892ac15ecc3dd68895914058df | [] | no_license | lherrada/python | 8fc5bd5ceb6038479fa6347dd6c0bd6e17f92e98 | d8260f35ba91b89590ef8e489188fb80ca1aed4e | refs/heads/master | 2022-10-29T06:23:17.297554 | 2022-09-24T15:45:59 | 2022-09-24T15:45:59 | 23,411,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | #!/usr/bin/python
"""
Fibonacci numbers:
F(n)=F(n-1) + F(n-2)
with F(0)=0 and F(1)=1
This script measures execution time
for different implementation of Fibonacci
series
"""
#Iterative solution
def fib0(n):
if n == 0:
return 0
elif n == 1:
return 1
else:
F=[]
F[0:2]=0,1
for i in range(2,n+1):
f=F[i-... | [
"lherrada@yahoo.com"
] | lherrada@yahoo.com |
fdc73516cb8953e628c2d2d68b8d1de962530865 | e49c427bf83085bfdef6382addae1f9f6b976bda | /semisupervised/codes/run_dataformat7.py | 5e206df407ec67da430aedaee31f35b897e37d4b | [] | no_license | SihongHo/GMNN | 955c6815ecaa7a9ecf80c70780da1bf9551fb9bd | 30549161625a36b3e4c27bbf2f3c9d1aa4765b95 | refs/heads/main | 2023-04-16T23:54:42.606867 | 2021-04-29T06:43:55 | 2021-04-29T06:43:55 | 357,055,327 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | '''
Author: your name
Date: 2021-04-09 21:57:45
LastEditTime: 2021-04-28 21:52:55
LastEditors: Please set LastEditors
Description: In User Settings Edit
'''
import sys
import os
import copy
import json
import datetime
opt = dict()
opt['dataset'] = '../data/data_format7'
opt['hidden_dim'] = 16
opt['input_dropout'] = 0... | [
"sihong.he@uconn.edu"
] | sihong.he@uconn.edu |
7cf01f49dfc23d45d2d65cce50510aa6db352d77 | 925e088a2f1f2d9b8fcab65bd2c96cf4c4911c13 | /examples/rag/callbacks.py | 099cf2bbdfac82b0138cda3d6c4465c307ca5f5f | [
"Apache-2.0"
] | permissive | bdalal/transformers | 7e2b2920e8848a8606389fbe7346f2f470351734 | 36a19915ea4fc3dc337a310e4a1af43eb3c81c9a | refs/heads/master | 2023-01-19T18:02:18.837672 | 2020-11-17T15:35:38 | 2020-11-17T15:35:38 | 313,672,203 | 1 | 0 | Apache-2.0 | 2020-11-17T16:06:51 | 2020-11-17T16:06:50 | null | UTF-8 | Python | false | false | 4,424 | py | import logging
import os
from pathlib import Path
import numpy as np
import pytorch_lightning as pl
import torch
from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint
from pytorch_lightning.utilities import rank_zero_only
from utils import save_json
def count_trainable_parameters(model):
model_... | [
"noreply@github.com"
] | noreply@github.com |
c4c74f7c37ec7989964b84e8325dbb87bc0d6150 | df1c58facb4f0bbd0080c9cdbcbd93b580f6de60 | /litcity/wsgi.py | fed5ffe1b44e5478663f997b23e16bedf36feecb | [] | no_license | mailbackwards/litcity | 21f3f0e3817f09fca3c4900c240f38416f5a6002 | 777244b5f31e1ec8f7c842a7fb3a52f39f2bee6d | refs/heads/master | 2021-01-10T07:48:13.167925 | 2016-01-11T13:40:58 | 2016-01-11T13:40:58 | 49,340,892 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | """
WSGI config for litcity project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import Django... | [
"landrew@texastribune.org"
] | landrew@texastribune.org |
6773fb851e960887e1c84755dab1372849fe0a51 | e8f2e7c175082934d00bb4896bd47c63108a094d | /build/lib/bin/modules/usbinfo.py | db7288116d87c5d88072013546aa87c035b41aae | [] | no_license | volneyrock/SlkFormat | d0440b49a169b7c82fd888eba8f216ae75a2c645 | d3474ece9341ff6b0b99247b18b5d3bc50bf0707 | refs/heads/master | 2016-08-04T12:23:45.428711 | 2015-09-16T16:30:41 | 2015-09-16T16:30:41 | 24,955,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | #!/usr/bin/env python
#
# Copyright (C) 2014 Joel W. Dafoe
#
# 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 version 3 of the License, or
# (at your option) any later version.
#
... | [
"volneyrock@gmail.com"
] | volneyrock@gmail.com |
e2ca2a97f00dc821223253c3166a745d83176193 | 9ca48d32e4020f2bcdb94f06d19c0b7e7e72b327 | /main.py | baaa2ff72711a27458828962ade4bddfb24a87fa | [
"MIT"
] | permissive | mdhiebert/curri | 9811c251d2f002e13853533e1e206c0c27f36d44 | 24583c53ff71285b5bfb39332d286b9e58073a91 | refs/heads/master | 2022-04-10T18:16:31.788495 | 2020-03-23T16:19:40 | 2020-03-23T16:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | from curri.curri import Curri
import json
import subprocess
if __name__ == "__main__":
with open('real.json') as f:
j = json.load(f)
c = Curri(j)
with open('output.tex', 'w') as f:
f.write(c.latex())
subprocess.call('pdflatex output.tex', shell=True) | [
"mhiebert@mit.edu"
] | mhiebert@mit.edu |
b1eee9cdf730bcb24e8f4f06700f11e81bfa261c | c48c4de9d221de538ac2a0e88430e4ad1c8a060c | /Python/Server_Client/grap_with_tcp.py | 320a131e6b6ae7a188b076649369b992c66d300a | [] | no_license | AlexBracamonte/Cris_Review | f95cc90f9fee819f1b4ea3c559723574e3820e91 | d7cdd3859a1e61ee212ccf975b2ec36678ff6adf | refs/heads/main | 2023-08-14T06:07:29.649469 | 2021-09-07T17:01:43 | 2021-09-07T17:01:43 | 404,043,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import sys
import time
from PyQt5 import QtWidgets, uic
import threading
from Server_grap import Servidor
from entrada import Ui_MainWindow
class ChatWindow(QtWidgets.QMainWindow, Ui_MainWindow):
def __init__(self, *args, obj=None, **kwargs):
super(ChatWindow, self).__init__(*args, **kwargs)
sel... | [
"noreply@github.com"
] | noreply@github.com |
5cc63a29d17c2837080ef1c890b9707b076f2fb3 | 424213d62d7e88a907bfc30b52cef61f6d4b95b7 | /092 - Square digit chains/092.py | cb8be68584cd6592fdfcb4b798ef1779f1cb6661 | [] | no_license | David-Jackson/project-euler-solutions | ae1b3e88987c4e428be046cb6d9562995e0e0298 | 5ba9d9914f6d170110c4f9b533357c167b9f986d | refs/heads/master | 2021-01-19T10:43:04.444228 | 2017-03-15T18:29:51 | 2017-03-15T18:29:51 | 82,206,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | def sq_digit_sum(n):
sum = 0
while n > 0:
r = (n % 10)
sum += (r * r)
n /= 10
return sum
def sq_digit_chain(n):
while n != 1 and n != 89:
n = sq_digit_sum(n)
# yield n
return n
count = 0
i = 1
while i < 10000000:
if sq_digit_chain(i) == 89:
co... | [
"jack8679@kettering.edu"
] | jack8679@kettering.edu |
ef402514ffa3750c3a5f4891c30b7bae071489cb | 794fb34490ad5d7e1fa596f05eeffca397b1e70a | /0x16-api_advanced/2-recurse.py | e8602ca3d3ca3416bd45a699cf7c79a3e93d4c70 | [] | no_license | Fermec28/holberton-system_engineering-devops | f31b5bfc9477c530e7f5dea9e8ac054ab90965b2 | 84038ff0a859d8a0bd899f69da96e1e0f81f8a0d | refs/heads/master | 2020-04-19T12:18:15.661872 | 2019-10-11T01:33:56 | 2019-10-11T01:33:56 | 168,188,483 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | #!/usr/bin/python3
import requests
"""count number of subscribers"""
def recurse(subreddit, hot_list=[], after=None):
"""Get number of subscribers"""
url = "https://www.reddit.com/r/{}/hot.json".format(subreddit)
headers = {'User-Agent': 'Fermec28'}
payload = {"after": after}
try:
result =... | [
"fermed28@gmail.com"
] | fermed28@gmail.com |
59adda2a15017da21a6c2c57b5d17b7f569cd18b | b8a2ca045e25e6047e08ac599d6eb5bfda97cfe3 | /victimas/apps/beneficiario/migrations/0012_auto_20161120_1808.py | 208e47b2ebedd46c9a95fd0effa57e93c18b5c31 | [] | no_license | jhon-palma/vicitimas | 4c0d35766b1dd1a5700c46d1a54f2c6787638af9 | fce8d176c72108f86860217c9dead7274fccb113 | refs/heads/master | 2020-05-31T15:50:36.542537 | 2017-06-30T03:40:23 | 2017-06-30T03:40:23 | 94,037,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-20 18:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('beneficiario', '0011_auto_20161120_1554'),
]
opera... | [
"palma@Master"
] | palma@Master |
282409aca8ba67536ce6dde50f596e1447c28e90 | 2cf9f165cb4d6e8e9009d74b43020fe2d5c1964f | /chat/urls.py | 1d7d025d1f3df8c9aba0845cbb91749fc398eb6d | [] | no_license | jimy1824/chat | 29f5039c6284083b8328502932795bee586dec14 | 627ad4678c6215d37322737b38b3e5eb6d69696f | refs/heads/master | 2023-04-27T15:10:51.316824 | 2019-11-08T05:00:12 | 2019-11-08T05:00:12 | 220,081,959 | 1 | 0 | null | 2023-04-21T20:40:47 | 2019-11-06T20:17:20 | HTML | UTF-8 | Python | false | false | 224 | py | from django.urls import path
from chat import views
urlpatterns = [
path('chat/', views.ChatHome.as_view(), name='chat_home'),
path('chat_box/<int:selected_user_id>', views.ChatInbox.as_view(), name='chat_inbox'),
]
| [
"jamshaid1824@gmail.com"
] | jamshaid1824@gmail.com |
70d7fb1e3790e61c41f4c36047fb59ae40639efe | b70126739f50af4d598f4ca59806cdf34e7d06dd | /product/migrations/0055_product_offer_of_min.py | aaa570239554f5e0e34a127291ab8b2c37edf8cd | [] | no_license | sharingsimplethoughts/onlineshopping | aa1b52828819d9ab21b0405463efa9995210ec0d | c48a32dd762dd2eef81935e1645b4304d9587cc7 | refs/heads/master | 2022-11-10T09:16:21.341703 | 2020-07-01T07:29:10 | 2020-07-01T07:29:10 | 276,291,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Generated by Django 2.1.5 on 2019-05-01 13:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0054_product_min_price'),
]
operations = [
migrations.AddField(
model_name='product',
name='offer_of_min',... | [
"sukamal.sinha@fluper.in"
] | sukamal.sinha@fluper.in |
7eea7466a192f13e09aa8a8e771d0ab3d1619d30 | 3202f0a51374541fe570835d6ac5c7222a31f97c | /www/content/views.py | ed93d32561b22755dbcb6de04f25500aeda305b4 | [] | no_license | zsoobhan/fva | 435fa988210cc6e547b83485b75dddfb562584ef | e9a65d50e0608ebadff9451787f2028b01e52013 | refs/heads/master | 2021-01-10T01:51:53.487459 | 2019-05-18T23:07:48 | 2019-05-18T23:07:48 | 46,052,752 | 0 | 0 | null | 2018-08-02T15:44:21 | 2015-11-12T12:54:27 | Python | UTF-8 | Python | false | false | 1,125 | py | from django.views import generic
from django.contrib import messages
from django.utils.translation import ugettext as _
from django.core.urlresolvers import reverse_lazy
from . import forms
class ContactFormView(generic.FormView):
form_class = forms.ContactForm
template_name = 'content/contact.html'
suc... | [
"zsoobhan@gmail.com"
] | zsoobhan@gmail.com |
c602149831a9530d2932450549686b4d7807094e | 858e97af89958e27e4f3686b023e8b9cd53dc14d | /utils/cv_utils.py | 0b7b867be91a64bb4f430b6c212f31d249fd09fd | [
"MIT"
] | permissive | XLEric/ganimation | f507c92e3b2bc067238b4016d62da3da5090a2d9 | 024fdc0adbeae582a139635a5141b2737969bc48 | refs/heads/master | 2022-12-25T04:56:15.143476 | 2020-09-28T17:55:26 | 2020-09-28T17:55:26 | 299,255,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | import cv2
from matplotlib import pyplot as plt
import numpy as np
def read_cv2_img(path):
'''
Read color images
:param path: Path to image
:return: Only returns color images
'''
img = cv2.imread(path, -1)
# print(path)
# print('img shape : ',img.shape)
if img is not None:
... | [
"koke8756@qq.com"
] | koke8756@qq.com |
5bf9c75838aa2939c12ca5bb9d42717ba989e2f3 | 691e48e96cb4d676701f9f62bfb5af936d6d9cd6 | /Archive_2020/M7/turtleData.py | 03c5468877b5c04e6917f2763132d72735fdf8cc | [] | no_license | mapossum/spa | 50d263ff1986dd73692e3d0866c2299ace180e59 | 90da0167aa6cbea067c88d30aea26440b366e6b3 | refs/heads/master | 2022-05-19T08:20:53.293065 | 2022-04-13T20:35:11 | 2022-04-13T20:35:11 | 29,207,514 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | import numpy as np
import urllib.request as rq
import json
turtleID = 1
url = 'http://geo.conserveturtles.org/Tracking/GetTurtleLocationsByIdAsJson?id={}'.format(turtleID)
f = rq.urlopen(url)
turtledata = json.load(f)
#First Turtle Location
print(turtledata[0])
import arcpy
arcpy.env.overwriteOutput = True
out_path... | [
"george.raber@usm.edu"
] | george.raber@usm.edu |
343750c5461b0e9012d0135e09db96bc94d10167 | 8d489c686385bfcf507ac139f57d60a180e26ba3 | /eland/tests/series/test_sample_pytest.py | 8de43e382d26d3668a7faf679fe10a9eb4202d24 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | hyperparam-shafin/eland | d070b426e1e83667cf18aec8bfd2b2996511b7e9 | abc5ca927b10744de07f48865fb842f78b167aea | refs/heads/master | 2022-12-30T17:00:56.523262 | 2020-10-15T15:52:48 | 2020-10-15T15:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use ... | [
"noreply@github.com"
] | noreply@github.com |
cd3d91e4e7ec6e2ecde520d78cc895f4c5b05916 | f8f12e4005b33ae72440d580b5ac6047b7336222 | /accounts/views.py | f24219bb1356380a63a6a7ee72ecdfa26ff874cc | [] | no_license | memadd/BT-Real-Estate | 64f3cb61cac34240d59db409fac2afa624a473b0 | 56ba30159b1a7243fe66bd7b06b1c6d4c8cff3f7 | refs/heads/master | 2023-01-01T23:36:20.909328 | 2020-10-26T19:10:35 | 2020-10-26T19:10:35 | 291,974,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | from django.shortcuts import render, redirect
from django.contrib import messages, auth
from django.contrib.auth.models import User
from contacts.models import Contact
def register(request):
if request.method == 'POST':
# Get form values
first_name = request.POST['first_name']
last_name = r... | [
"memad632@gmail.com"
] | memad632@gmail.com |
0908d0a0d998c84abfd9765e3f32b145b93c4dcc | dd826364c4140a4357a74d5e6692959cd6a7c1da | /radial_entropy.py | c4cae7495c1b019769205497aad80cc6123cac8d | [] | no_license | bizhouxuan/streetmaps | 175c234913aab496c904c985e35deea8fe6c6b1e | d517365ec70db4e68c41fba301dd2f4eb3a13b90 | refs/heads/master | 2021-07-09T21:01:41.774505 | 2020-12-27T16:47:15 | 2020-12-27T16:47:15 | 225,814,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | import sys
import math
import numpy as np
from scipy.stats import entropy
import argparse
def print_help():
print('Usage: radial_entropy.py FILE')
print('Calculate the spatial freguency entropy of a city\'s street network.')
print('The FILE argument is the path to the file containing the two-col k distribu... | [
"wenjun.sun@gmail.com"
] | wenjun.sun@gmail.com |
cbdf9d00e07cf760b6b58be619945082252fe343 | e1ee301e51b62c675f125a970390b1b4196bd59c | /hao_prj_hhl/hao_prj_hhl/settings.py | 90588db1999841dc269ec92c66582ae856a98607 | [
"MIT"
] | permissive | haohl-keepworking/hao_keep | ee96279dc4ff86b9f5ff7fe0d89bc9fc660ba3d3 | cb0186a3378b437a1f9a4cfd066a10870180996b | refs/heads/master | 2020-08-08T19:14:33.351872 | 2019-10-09T12:42:55 | 2019-10-09T12:42:55 | 213,897,321 | 0 | 0 | MIT | 2019-10-09T12:42:56 | 2019-10-09T11:14:32 | Python | UTF-8 | Python | false | false | 3,125 | py | """
Django settings for hao_prj_hhl project.
Generated by 'django-admin startproject' using Django 1.11.18.
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/
"""
impo... | [
"you@example.com"
] | you@example.com |
e2c67a4f04dc3ad8ffe2164bf040211a72fc7928 | 2a9934228f9ee46fea03d415262ef305de937dd9 | /Lesson2/Lesson3/cont5.py | 5c97f810a812911752726bd502ff0bb1252457f5 | [] | no_license | BayanbaevIlyas/Lesson1 | d938e1e87f2802a8d3b4a3343bbe88e1c36b943a | 24f979da615ce9ebd17daf485cd6c15531bd42cb | refs/heads/master | 2021-01-25T14:10:42.067571 | 2018-04-14T05:24:59 | 2018-04-14T05:24:59 | 123,663,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | def mySum(a):
return a + 4
a =int(input('ведите age'))
print(mySum(a))
| [
"37009757+BayanbaevIlyas@users.noreply.github.com"
] | 37009757+BayanbaevIlyas@users.noreply.github.com |
d952b3d9f13cc2ab9d89bfec0fe06b5678e48bb1 | fab3a3f86e5f15f0390d2e6faa5772e387676082 | /pythonwebapp/flaskblog/routes.py | 48deb921d50e77acf12b3152bfea64134947ba18 | [] | no_license | HeinnerAmaro/bookstore | e7d7b949768db5696318faed015d5770766b1f71 | 0e8e850bdd09d5636b619ce0c556f17944ed086a | refs/heads/main | 2023-01-31T07:13:21.107664 | 2020-12-15T21:29:48 | 2020-12-15T21:29:48 | 321,792,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,305 | py | from flask import render_template, url_for, flash, redirect
from flaskblog import app, db, bcrypt
from flaskblog.forms import RegistrationForm, LoginForm,PostForm,InsertForm
from flaskblog.models import User, Post,Book
from flask_login import login_user,current_user,logout_user,login_required
from sqlalchemy.sql import... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.