blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2dd90f9d0a8bf5c956add88a4854c64195e7a328 | 6284d7a282f6508c34a74ade286344d3124007c5 | /server.py | 487468d28b6b560a49bf9da69999e291c1386ddb | [] | no_license | k-hub/movie-ratings | cd118ba5ad22486d6642cfc36e6c4ddf64cd92d3 | 593893abffbaf7296337415ed917980530739a17 | refs/heads/master | 2021-01-01T05:16:01.630156 | 2016-05-06T01:25:48 | 2016-05-06T01:25:48 | 57,918,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | """Movie Ratings."""
from jinja2 import StrictUndefined
from flask import Flask, render_template, redirect, request, flash, session
from flask_debugtoolbar import DebugToolbarExtension
from model import User, Rating, Movie,connect_to_db, db
app = Flask(__name__)
# Required to use Flask sessions and the debug tool... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
f398afa73012ee5d8503db1609f29de578e06e69 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/Surf.py | 867f58a5c5ab599827f58db2fea9624b3dbda404 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113,350 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
ba120d8ad2297c04567a816a41b868e572456e7c | 8837e0973de895880fbd536e2e7b824e06a0c53b | /05. Static and Class Methods/02. Exercise/project_04.Gym/main.py | 7b624794d595f6320b77f8ed556fc2021ae03b38 | [] | no_license | Tuchev/Python-OOP---June---2021 | 3cc5e9206f910262d567f4f151bb6cd1b17779fe | 27a0620686d547eafb466f42d951a2bdc90e7fdc | refs/heads/main | 2023-07-07T05:31:27.384073 | 2021-07-24T12:22:45 | 2021-07-24T12:22:45 | 387,717,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | from project.customer import Customer
from project.equipment import Equipment
from project.exercise_plan import ExercisePlan
from project.gym import Gym
from project.subscription import Subscription
from project.trainer import Trainer
customer = Customer("John", "Maple Street", "john.smith@gmail.com")
equipmen... | [
"noreply@github.com"
] | Tuchev.noreply@github.com |
ad38dcb07d878c84f5b81bd9944ce5bddbff6853 | 6548cb72a1ec9fad2835be2d039c9893d4cc7f0c | /CodeForces/HelpfulMaths/HelpfulMaths.py | 2cd48d0d50ecbe26935ae7c126b60e7adaa53e28 | [
"MIT"
] | permissive | bdugersuren/algorithmic-problems | 13640bf5a22a916fde8c4049d3e5e53e707fabdc | d2b3965023deafa018d783f5ce0d23dae1c890bc | refs/heads/main | 2023-03-24T12:27:10.860335 | 2021-03-21T19:09:01 | 2021-03-21T19:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | def main():
expression = input()
ones = 0
twos = 0
thrids = 0
for elem in expression:
if elem == '1':
ones += 1
elif elem == '2':
twos += 1
elif elem == '3':
thrids += 1
print('+'.join(['1']*ones + ['2']*twos + ['3']*thrids))
main()
| [
"geo.badita@gmail.com"
] | geo.badita@gmail.com |
c4af6ac4f3b8b7b14414c155611811aa2a2eea11 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /carbonui/util/sortUtil.py | 630c63b8ab979b409b262d7bf56fdf40770b56a4 | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\carbonui\util\sortUtil.py
def Sort(lst):
lst.sort(lambda x, y: cmp(str(x).upper(), str(y).upper()))
return lst
def SortListOfTuples(lst, reverse = 0):
lst = sorted(lst, reverse=reverse, key=lambda data: data[0])... | [
"le02005@163.com"
] | le02005@163.com |
3bcf078322ae579d964df68c431d2c8f4c29f199 | c291ba4506a8998df8d7f384c911f6a0a1294001 | /bai__61/CauTrucChuoi.py | 2cc3b1a07d8755446799000aea9455cb7b20fbed | [] | no_license | thanh-falis/Python | f70804ea4a3c127dcb7738d4e7c6ddb4c5a0a9d4 | fa9f98d18e0de66caade7c355aa6084f2d61aab3 | refs/heads/main | 2023-08-18T17:34:29.851365 | 2021-09-30T12:09:30 | 2021-09-30T12:09:30 | 398,952,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | """
- Chuỗi là tập các ký tự nằm trong nháy đơn hoặc nháy đối, hoặc 3 nháy đơn hoặc 3 nháy đôi.
Chuỗi rất quan trọng trong mọi ngôn ngữ, hầu hết ta đều gặp trường hợp xử lý chuỗi.
- Chuỗi trong Python cũng là một đối tượng, nó cung cấp một số hàm rất quan trọng:
object.method(parameter list)
-Các hàm xử lý chu... | [
"thanhelma2020|@gmail.com"
] | thanhelma2020|@gmail.com |
7bf1e0047a530d9dd1719be95fd901b4e3c3bb99 | f7d47249f7e74bec51eacaa05f381674b92e3611 | /interview/属性property.py | 3c2afe43812b4bef2d161d13462e5c02ba739369 | [] | no_license | jinlijiang123/crawler | f96764bc5e7ae6f254e397189c4228336889a0d1 | cd3f16d04cc7c83b78d5a78afa7a57951399d490 | refs/heads/master | 2020-06-15T19:44:48.892953 | 2019-03-26T04:35:29 | 2019-03-26T04:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # -*- coding: utf-8 -*-
不懂!!!
一.私有属性添加get和set方法 __XX
class Money(object):
def __init__(self):
self.__money = 0
def getMoney(self):
return self.__money
def setMoney(self, value):
if isinstance(value, int):
self.__money = value
else:
prin... | [
"648672371@qq.com"
] | 648672371@qq.com |
e75d6e09e3769b7572600c10891972aa35c71a29 | 3f51d8812a731fddefe80233e209ad19f1407531 | /django/form/articles/urls.py | b92978783195392394560844eb3b3b0a07008ca6 | [] | no_license | mizm/TIL-c9 | 281336cccc74809dfd5e4aa6cff0114a37059155 | 7b4c561bcbc32533852cb025a4823487caf981d6 | refs/heads/master | 2020-04-17T17:17:35.861307 | 2019-05-09T09:00:12 | 2019-05-09T09:00:12 | 166,776,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from django.urls import path
from . import views
app_name ='articles'
urlpatterns = [
path('new/',views.create, name ='create'),
path('<int:article_id>/', views.detail, name='detail'),
path('<int:article_id>/edit/', views.update , name='update'),
] | [
"didehgur1@naver.com"
] | didehgur1@naver.com |
c7c76a95e132383229ab1880ccf18627e229417e | 2a979b2dfc1e9bce8d93fb8c2d219c0122e50b66 | /SWEA_D1D2/1976. 시각 덧셈.py | 48132df3b4b80dd126a4ea219a8f86f9105af43b | [] | no_license | JohnHamm0nd/algorithm | 8b1bf1b58790da0b8c6482b6ce068fd29316a374 | 13c00cbc270cc197327e97f61f7d2ed80dc81358 | refs/heads/master | 2020-07-07T07:43:04.523954 | 2019-11-07T02:54:55 | 2019-11-07T02:54:55 | 203,294,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | """
시 분으로 이루어진 시각을 2개 입력 받아, 더한 값을 시 분으로 출력하는 프로그램을 작성하라.
(시각은 12시간제로 표시한다. 즉, 시가 가질 수 있는 값은 1시부터 12시이다.)
[제약 사항]
시는 1 이상 12 이하의 정수이다. 분은 0 이상 59 이하의 정수이다.
[입력]
가장 첫 줄에는 테스트 케이스의 개수 T가 주어지고, 그 아래로 각 테스트 케이스가 주어진다.
각 테스트 케이스의 첫 번째 줄에는 4개의 수가 주어진다.
첫 번째 수가 시를 나타내고 두 번째 수가 분을 나타낸다. 그 다음 같은 형식으로 두 번째 시각이 주어진다.
... | [
"junho313@naver.com"
] | junho313@naver.com |
7e3d14006f561e8a72914984adf13b12dfab3a88 | b48b47fcdbf46c43633be8ffaa9ad271892ebb07 | /Explanations/11-IntroToOOP__PT2/base_class_example.py | 2fafa19dcce01e304bc7fbacd84cb4e53b6fc21e | [] | no_license | DavinderSohal/Python | 92e878c2648c9507b00fef6ee7d7ae67338219d9 | 728e77c1e55aaa00a642d76dce5d6cdf56eff788 | refs/heads/main | 2023-05-12T23:41:46.226139 | 2021-05-16T16:12:01 | 2021-05-16T16:12:01 | 340,810,583 | 0 | 0 | null | 2021-04-20T09:18:00 | 2021-02-21T03:42:21 | Python | UTF-8 | Python | false | false | 237 | py |
class A:
def __init__ (self):
print("Initializing A")
class B(A): # inherits from A
def init(self):
A.__init__ (self) #Call constructor of base class
print("Initializing B")
b = B()
#b.init()
| [
"sohal00026@gmail.com"
] | sohal00026@gmail.com |
c495d41b0499d638fd6f1b6b31a43fd9aeb1a2ee | 80a3d98eae1d755d6914b5cbde63fd10f5cc2046 | /autox/autox_competition/feature_engineer/__init__.py | 54c1f55b4e4c6a8fda4cc01b63e5c77a85f20ed1 | [
"Apache-2.0"
] | permissive | 4paradigm/AutoX | efda57b51b586209e1d58e1dab7d0797083aadc5 | 7eab9f4744329a225ff01bb5ec360c4662e1e52e | refs/heads/master | 2023-05-24T00:53:37.109036 | 2023-02-14T14:21:50 | 2023-02-14T14:21:50 | 388,068,949 | 752 | 162 | Apache-2.0 | 2022-07-12T08:28:09 | 2021-07-21T09:45:41 | Jupyter Notebook | UTF-8 | Python | false | false | 782 | py | from .fe_count import FeatureCount
from .fe_stat import FeatureStat
from .fe_rank import FeatureRank
from .fe_target_encoding import FeatureTargetEncoding
from .fe_dimension_reduction import FeatureDimensionReduction
from .fe_nlp import FeatureNlp
from .fe_denoising_autoencoder import FeatureDenoisingAutoencoder
from .... | [
"946691288@qq.com"
] | 946691288@qq.com |
0dcedff9199e5313201e0475f487cf8386ed7ae1 | 5e5caf3ec6e50f1d5b5c445c462c9ce328e01e70 | /WebDeveloping/models/database.py | 0f684e48f6ae338bc45bcb6e2cfdae342394a586 | [] | no_license | janaobsteter/PyCharmProjects | f6a254e6fbc3f068e1c798d3489f52aac9c1bea3 | 2d9e14ad821a7dcec352eb3bb2d053fb49d8fb42 | refs/heads/master | 2021-07-16T23:56:41.287470 | 2020-05-12T11:59:58 | 2020-05-12T11:59:58 | 156,727,320 | 0 | 0 | null | 2020-05-12T12:05:26 | 2018-11-08T15:25:59 | Python | UTF-8 | Python | false | false | 701 | py | import pymongo
class Database(object):
URI = "mongodb://127.0.0.1:27017" #universal resource indentifier
DATABASE = None
@staticmethod
def initialise():
client = pymongo.MongoClient(Database.URI)
Database.DATABASE = client["webdeveloping"]
@staticmethod
def insert(collection,... | [
"obsteter.jana@gmail.com"
] | obsteter.jana@gmail.com |
84601ab634b5f6671bed9cde9880ffdae7c2c43a | b353fb05fd16ae7bad53d2057d71f29cfc3fd411 | /js2py/prototypes/jserror.py | 4ea19c758703e3d14cfb839db246d26c1f111fc0 | [] | no_license | barseghyanartur/Js2Py | edf06d302b0477f5854ee653a8b8a932d77cee83 | 36729de70325ad1fea251c52328bdceba9712282 | refs/heads/master | 2021-01-17T15:45:23.107297 | 2015-06-10T09:35:35 | 2015-06-10T09:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py |
class ErrorPrototype:
def toString():
if this.TYPE!='Object':
raise this.MakeError('TypeError', 'Error.prototype.toString called on non-object')
name = this.get('name')
name = 'Error' if name.is_undefined() else name.to_string().value
msg = this.get('message')
ms... | [
"piodrus@gmail.com"
] | piodrus@gmail.com |
2847ad76c81be71b6db9629a664e76824972e3e8 | 256fec0d4f8d96a37f4dfad88acd7585b5607bdb | /transit_odp/site_admin/forms.py | 90db23f1631595e21204fb1adc2ecd248e0bea00 | [] | no_license | burlacenko/bods | b13a523d2e30fab6286d7c7515abfa800afc8209 | 5a4d490fc7142715a357255eb6b48cce4ab64c10 | refs/heads/main | 2023-07-26T12:59:52.633762 | 2021-08-24T11:14:05 | 2021-08-24T11:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,559 | py | from crispy_forms.layout import ButtonHolder, Field, Layout
from crispy_forms_govuk.forms import GOVUKForm, GOVUKModelForm
from crispy_forms_govuk.layout import ButtonSubmit, LinkButton
from crispy_forms_govuk.layout.fields import CheckboxSingleField
from django import forms
from django.contrib import auth
from django.... | [
"ciaran.mccormick@itoworld.com"
] | ciaran.mccormick@itoworld.com |
53e6112d9de22126e23635425ff166548b6a3860 | dc3e0f7e75cb8bbcf6b261a607353c7036297304 | /test_autolens/plot/inversions/interferometer/voronoi.py | a60dec2df8f865a29acd45204c9a540951dc4e7d | [
"MIT"
] | permissive | a-mere-peasant/PyAutoLens | 38db2e83ba0136fe6bfc0efa404bfafb7f6379e6 | 462634ff57afde86531146a51019b47c40f10874 | refs/heads/master | 2021-03-05T04:12:39.010444 | 2021-01-08T15:46:16 | 2021-01-08T15:46:16 | 246,093,699 | 0 | 0 | MIT | 2020-03-09T17:00:55 | 2020-03-09T17:00:54 | null | UTF-8 | Python | false | false | 2,094 | py | import autolens as al
import autolens.plot as aplt
import numpy as np
from test_autolens.simulators.interferometer import instrument_util
interferometer = instrument_util.load_test_interferometer(
dataset_name="mass_sie__source_sersic", instrument="sma"
)
# aplt.Interferometer.visibilities(interferomet... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
17560bd5f9f10b9e74273cc868dfde2efc1484a4 | 709c693f7c0ee695020d74f0f4434e0e495c4b37 | /2013/fairandsquare/fairandsquare.py | da0ddb7ee812c3ceef33441eb30e83d8aeae02eb | [] | no_license | mstepniowski/codejam | 75cdf5db20c28409cecc361a653798637de6349e | c85d24f2f6d1c333acea16ce3e54b8fb0e7020fe | refs/heads/master | 2021-01-01T05:34:28.045438 | 2014-05-04T02:50:22 | 2014-05-04T02:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | # http://mathforum.org/library/drmath/view/51510.html
NUMBERS = [1, 4, 9, 121, 484, 10201, 12321, 14641, 40804, 44944, 1002001, 1234321, 4008004, 100020001, 102030201, 104060401, 121242121, 123454321, 125686521, 400080004, 404090404, 10000200001, 10221412201, 12102420121, 12345654321, 40000800004, 1000002000001, 10020... | [
"marek@stepniowski.com"
] | marek@stepniowski.com |
0555f1450060ed1571993e78c9aaa4d36810230d | 8c91c587431f1bdd635056f9c400a85f651036d4 | /myProject/settings.py | c578570541199cfbffd273935a34e23fdd1e1e9c | [] | no_license | sajjad0057/Musician-Hub--2 | fc0208ca6adac18b00c46cb2ec6b991dce154c05 | 18d5156c02a57f369c5dec3a41c45660cc78608b | refs/heads/master | 2023-01-14T16:51:45.996964 | 2020-11-26T20:31:14 | 2020-11-26T20:31:14 | 316,331,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | """
Django settings for myProject project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"sajjadhossain0057@gamil.com"
] | sajjadhossain0057@gamil.com |
5a07a92a98ffc1815112392dbca952a1a506dd2a | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/tutorial/control/summary.py | e547a4605339a90053a71c308da810726c10252a | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,291 | py | # 2016.05.01 15:25:27 Střední Evropa (letní čas)
# Embedded file name: scripts/client/tutorial/control/summary.py
from tutorial.control.functional import FunctionalVarSet
from tutorial.logger import LOG_ERROR, LOG_DEBUG
class _Flag(object):
def __init__(self, name, active, store = True):
super(_Flag, self... | [
"info@webium.sk"
] | info@webium.sk |
524aeb845c4efb6e5784fd628ae8a40f7f099a43 | 012e922a357ff60abe0dd4c1e13df2820886a7a4 | /backend/csi1_28203/settings.py | 8423d39667e59e29b80186f265f97bf7558e63e7 | [] | no_license | crowdbotics-apps/csi1-28203 | 73bc3dfca64f5517d3d9a57dd32c052ac2657394 | 5e9b9f92c97e17e6176ae8a5650470d63d19bede | refs/heads/master | 2023-06-09T16:50:24.413408 | 2021-06-24T13:18:03 | 2021-06-24T13:18:03 | 379,931,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,096 | py | """
Django settings for csi1_28203 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b38a41816cd1d881bbd42a2e2799dc9ff0537b61 | efe60e67d113ec19b0528c005597768e22c120b1 | /development/pdf_to_tiff/__init__.py | aa63407dc7c5fdf2e7951cf6b3ae3b6e06608ede | [
"MIT"
] | permissive | FujinamiRyohei/pdf_to_tiff | ef232b6da17b6c66e4ab490287ed75744e7bf138 | 11489dca943cc1f0c9dd99dc99599e2235473893 | refs/heads/master | 2022-07-13T11:39:22.562193 | 2020-05-11T09:23:59 | 2020-05-11T09:23:59 | 262,969,635 | 0 | 0 | MIT | 2020-05-11T09:24:00 | 2020-05-11T07:25:20 | null | UTF-8 | Python | false | false | 744 | py | from pathlib import Path
from pdf2image import convert_from_path
def convert(input_path, output_path=""):
path = Path(input_path)
if not path.exists():
raise Exception(f"Input file {path} does not exist.")
images = convert_from_path(str(path))
if not output_path:
output_path = path.wit... | [
"icoxfog417@yahoo.co.jp"
] | icoxfog417@yahoo.co.jp |
76c1c12c79264ef1defc9726e8e173ef03eb26e1 | 2c46d86b17ec453923aba0499f82da5c9ba1fee0 | /dashboard/migrations/0011_oopsy_points_remaining.py | be5856d15e6b246effd4d12f0243b6e8b57adaa4 | [
"MIT"
] | permissive | Tomasz-Kluczkowski/Bnice | 39d83bec0a91d410f900e641104cd90f20d05b82 | 75eb66a94a3bf3225691ed6802e674fbcf108571 | refs/heads/master | 2022-12-11T12:11:00.517685 | 2018-12-27T12:30:22 | 2018-12-27T12:30:22 | 127,747,595 | 0 | 0 | MIT | 2021-09-07T23:51:43 | 2018-04-02T11:31:57 | Python | UTF-8 | Python | false | false | 407 | py | # Generated by Django 2.0.3 on 2018-05-01 20:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0010_auto_20180501_2148'),
]
operations = [
migrations.AddField(
model_name='oopsy',
name='points_remai... | [
"tomaszk1@hotmail.co.uk"
] | tomaszk1@hotmail.co.uk |
de2d839b60a73ddb17f56fec860dc5252ab08a73 | a3bfccd69d92d29ee59ea60648e8405a746f7e90 | /pytorch/pytorchcv/models/resnet.py | 4c1470080e6caeeea23a24b7c6f159bcb1c88938 | [
"MIT"
] | permissive | semchan/imgclsmob | c007ba7c9effa66f6f6d3144f8ce1ef86d5e74aa | 9c43171207296ac420c887b3429a98c86c351992 | refs/heads/master | 2020-05-22T02:25:17.695096 | 2019-05-11T09:43:19 | 2019-05-11T09:43:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,139 | py | """
ResNet for ImageNet-1K, implemented in PyTorch.
Original paper: 'Deep Residual Learning for Image Recognition,' https://arxiv.org/abs/1512.03385.
"""
__all__ = ['ResNet', 'resnet10', 'resnet12', 'resnet14', 'resnetbc14b', 'resnet16', 'resnet18_wd4', 'resnet18_wd2',
'resnet18_w3d4', 'resnet18', '... | [
"osemery@gmail.com"
] | osemery@gmail.com |
3c8b945e4693315669386c7d5f50e30059747dfa | 89145800ada60f8d2d1b3200b6f384c1a4f8fff8 | /aparcamientos/migrations/0027_auto_20170516_0141.py | 3163e2acafbeaf03e6e8aae738f4821dca33d9f6 | [] | no_license | malozanom/X-Serv-Practica-Aparcamientos | 2f8f2cab9b9ca096ab3209d8fa6579aacbdce593 | d6da3af090aef7e8b0d23add7a5ff76f979d0311 | refs/heads/master | 2021-06-24T17:34:40.930085 | 2019-11-04T18:36:38 | 2019-11-04T18:36:38 | 90,887,116 | 0 | 0 | null | 2017-05-10T16:46:30 | 2017-05-10T16:46:30 | null | UTF-8 | Python | false | false | 440 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('aparcamientos', '0026_auto_20170516_0139'),
]
operations = [
migrations.AlterField(
model_name='preferencia',
... | [
"you@example.com"
] | you@example.com |
6830a86942fe8380c4063347288e1d54efb6ba29 | 3d40e2e449e545fc5fb4fbb9deffb7c19f74a29a | /tracks.py | 0b25c77980dddb152856656fa1017e413284d055 | [] | no_license | gaberosser/bacterial_motility | 108578ac50924cbcc66607c8d8c1c4a8d14ece89 | aecfc9694b5b5017c6b2e980c670dfaa6b3efd28 | refs/heads/master | 2020-03-31T02:27:19.802462 | 2015-02-07T15:21:06 | 2015-02-07T15:21:06 | 30,266,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | __author__ = 'gabriel'
import numpy as np
import csv
class Track(object):
def __init__(self, data):
"""
:param data: 2 x N array containing track coordinates
:return:
"""
self.data = np.array(data)
assert self.data.shape[0] == 2, "Data must be in the form of a 2 x ... | [
"gabriel.rosser@gmail.com"
] | gabriel.rosser@gmail.com |
225cfb2e22470170ea6dd0d2f269caea5c0a1559 | 7f44476812eb4f67cfc09bb1a983456cfaf769c2 | /code/numpy_neural_net.py | ea21cde783d7a9b209d0d9a7b2bd9a9a53e33adc | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jasonwei20/jasonwei20.github.io | 4ccba20594f81d1c0293b570b58456b47fb44a44 | cddac426b42f90e3363ef5ae35a296d800fc39ad | refs/heads/master | 2023-01-19T06:37:05.686731 | 2023-01-15T04:33:23 | 2023-01-15T04:33:23 | 120,841,808 | 3 | 9 | MIT | 2022-07-22T01:17:11 | 2018-02-09T01:47:52 | HTML | UTF-8 | Python | false | false | 5,558 | py | #Big credits: https://towardsdatascience.com/lets-code-a-neural-network-in-plain-numpy-ae7e74410795
import numpy as np
def sigmoid(Z):
return 1/(1+np.exp(-Z))
def relu(Z):
return np.maximum(0,Z)
def sigmoid_backward(dA, Z):
sig = sigmoid(Z)
return dA * sig * (1 - sig)
def relu_backward(dA, Z):
dZ = np.array(d... | [
"jason.weng.wei@gmail.com"
] | jason.weng.wei@gmail.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 |
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 |
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 |
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 |
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 |
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 |
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"
] | vtt-info.noreply@github.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
09976773a29250a9dfcd0ec12efbc745d44041f3 | 8750c559722f1dc63d31f2df293a7d4feb71fc09 | /molotov/tests/test_slave.py | b6e47aa94ec42664075fa8dd0387322de09b4ed6 | [
"Apache-2.0"
] | permissive | ymoran00/molotov | 4f8017a90fd71c412f08355db98c72ea106ae8bf | 2533d9653160845bd9a40defcf2e39810ad80215 | refs/heads/master | 2020-08-17T22:00:31.724709 | 2019-12-16T09:53:11 | 2019-12-16T09:53:11 | 215,716,155 | 0 | 0 | Apache-2.0 | 2019-10-17T06:11:04 | 2019-10-17T06:11:03 | null | UTF-8 | Python | false | false | 1,123 | py | import os
import pytest
from molotov import __version__
from molotov.slave import main
from molotov.tests.support import TestLoop, dedicatedloop, set_args
_REPO = "https://github.com/loads/molotov"
NO_INTERNET = os.environ.get("NO_INTERNET") is not None
@pytest.mark.skipif(NO_INTERNET, reason="This test requires in... | [
"tarek@ziade.org"
] | tarek@ziade.org |
d9715e301eb1e1ab8cd4f4bb5b5f40872bc1c967 | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/tangible/lair/base/shared_lair_base_nest_tree_lg_light.py | 32336d90d88ee6b7d6c5cf583e1323e5f98594ce | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 461 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Tangible()
result.template = "object/tangible/lair/base/shared_lair_base_nest_tree_lg_light.iff"
result.attribute... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
fdbc22579dbfd729a9c7cf738cd5dbd3f54004a6 | 2eae961147a9627a2b9c8449fa61cb7292ad4f6a | /test/test_migration_tax_return.py | 5ba3369f4cd1b2ccbec9996ca4e1a387c408f536 | [] | no_license | kgr-eureka/SageOneSDK | 5a57cc6f62ffc571620ec67c79757dcd4e6feca7 | 798e240eb8f4a5718013ab74ec9a0f9f9054399a | refs/heads/master | 2021-02-10T04:04:19.202332 | 2020-03-02T11:11:04 | 2020-03-02T11:11:04 | 244,350,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,941 | py | # coding: utf-8
"""
Sage Business Cloud Accounting - Accounts
Documentation of the Sage Business Cloud Accounting API. # noqa: E501
The version of the OpenAPI document: 3.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
imp... | [
"kevin.gray@eurekasolutions.co.uk"
] | kevin.gray@eurekasolutions.co.uk |
a83270f6d427c435029af0bb9b9d25f6cecb3ade | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/containsDuplicate_20200907094218.py | 458d5b60e59b1430badf47c2855449f00123736e | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | def duplicate(nums,k,t):
m = None
n = None
for i in range(len(nums)):
for j in range(i+1,len(nums)):
if abs(nums[i] - nums[j]) <= t:
m = i
n = j
if nums[m]
duplicate([1,2,3,1],3,0)
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
1c75042963bd56f9950d60cc193bc5c00a0a7e7d | 0a46ba3d326cdef5555c11b98310b5f56fc08a2f | /manage.py | b223d14b72cc83c63386353175b1819c7b1cc7c6 | [] | no_license | Shresth92/Linux-Shell | 9e28e21a002064a634c475982e0b2e2141c42e42 | f4a4801c893a68e8ee906c45ce88f28faf26c539 | refs/heads/master | 2023-07-19T20:29:58.613906 | 2021-08-24T12:24:08 | 2021-08-24T12:24:08 | 399,424,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'linuxproj.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
afd01547900dfcd27df8c45ee7870775aed52981 | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/rest_framework/authtoken/admin.py | 5ff4586bb84d712c171e2dbd731bc80778aa33bc | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 273 | py | from django.contrib import admin
from rest_framework.authtoken.models import Token
class TokenAdmin(admin.ModelAdmin):
list_display = ('key', 'user', 'created')
fields = ('user',)
ordering = ('-created',)
admin.site.register(Token, TokenAdmin)
| [
"amatar@unomaha.edu"
] | amatar@unomaha.edu |
a30db76393ebefe613908a95fa1ca762ddd6955b | 0f3a0be642cd6a2dd792c548cf7212176761e9b1 | /pywps_services/r_fill_dir.py | 1d7c50f29ea422d22c4fd002c9e26168161ee458 | [] | no_license | huhabla/wps-grass-bridge | 63a5d60735d372e295ec6adabe527eec9e72635a | aefdf1516a7517b1b745ec72e2d2481a78e10017 | refs/heads/master | 2021-01-10T10:10:34.246497 | 2014-01-22T23:40:58 | 2014-01-22T23:40:58 | 53,005,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,389 | py | # ################################################ #
# This process was generated using GrassXMLtoPyWPS #
# Author: Soeren Gebbert #
# Mail: soerengebbert <at> googlemail <dot> com #
# ################################################ #
from pywps.Process import WPSProcess
from PyWPSGrassM... | [
"soerengebbert@23da3d23-e2f9-862c-be8f-f61c6c06f202"
] | soerengebbert@23da3d23-e2f9-862c-be8f-f61c6c06f202 |
67597fef4367673e45e232bec60c08039351a9ac | d9e09c050ecc2aa3ca777177827deeca7c9c3bee | /message/apps.py | 775029d82c558d422f00ddaeea86ca2f278c7157 | [] | no_license | gujie1216933842/django-xadmin | f97efe514009724163a7352f3bcd9ecaece1278b | 5ab0d52f82aeaf91904a2d23c63817c2827bf860 | refs/heads/master | 2020-04-04T16:43:48.794433 | 2019-05-21T01:54:41 | 2019-05-21T01:54:41 | 156,090,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class MessageConfig(AppConfig):
name = 'messsage'
| [
"gujientsy@163.com"
] | gujientsy@163.com |
0a86057efee39b0b3b5c982b15e7923f6f5292cf | 9fd308d4a99f00a115c192fb6dedd7dd27ab9167 | /news_collector/collector/consumers.py | ec4f8c33eb77a20a9e586f09ed86ba7fd42a4407 | [
"BSD-2-Clause"
] | permissive | stephendwolff/channels-examples | dda95df8faf1454670199dca62571477b05b2a43 | 95d0c059eb31ef72da33be1b8f313cb9683b69dc | refs/heads/master | 2021-07-09T13:55:57.317191 | 2020-07-09T13:20:41 | 2020-07-09T13:20:41 | 159,024,729 | 0 | 0 | NOASSERTION | 2018-11-25T11:31:18 | 2018-11-25T11:31:18 | null | UTF-8 | Python | false | false | 1,875 | py | import asyncio
import json
import datetime
from aiohttp import ClientSession
from channels.generic.http import AsyncHttpConsumer
from .constants import BLOGS
class NewsCollectorAsyncConsumer(AsyncHttpConsumer):
"""
Async HTTP consumer that fetches URLs.
"""
async def handle(self, body):
# Ad... | [
"andrew@aeracode.org"
] | andrew@aeracode.org |
5cb7053b17dd68ccae403534b87d2ff44fd33e51 | 6ef8f94f37c52612712d2fbe8387035a8ae6c810 | /coding books/real_estate_project/realestate/contacts/migrations/0001_initial.py | b938446a8d31c389584a4f742f2eddb076e5b8b7 | [] | no_license | teefats/Converters | b54d7155c3bf36aa7b8b37a95bb91b1b03362fe9 | 6534353f91edf09ad61a672455332b04b64168fa | refs/heads/master | 2023-02-23T04:49:58.752701 | 2021-01-25T22:33:46 | 2021-01-25T22:33:46 | 289,470,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | # Generated by Django 3.1.4 on 2020-12-22 18:53
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', m... | [
"tee_fats@yahoo.com"
] | tee_fats@yahoo.com |
04dad20bfc067a777d7795de17a2478da378fbba | 1b862f34c125ce200244dd79e4fda4b5b605ce2e | /.history/ML_T2_Validation_20210612125732.py | a3e3c1f66f5dc1ddb190e134a71155157cd4acab | [] | no_license | edwino26/CoreImages | 26085a49cf1cb79442ae563a88354b2fdceace87 | 6bf6e68cac8ab36c87b1e6ea702bfe6882b0f40e | refs/heads/master | 2023-06-22T12:53:37.344895 | 2021-07-21T04:31:44 | 2021-07-21T04:31:44 | 309,553,247 | 0 | 4 | null | 2021-04-29T23:23:15 | 2020-11-03T02:45:07 | Lasso | UTF-8 | Python | false | false | 9,251 | py | #T2 TEST DATA
# %%
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import pickle
from scipy import interpolate
from scipy.integrate import simps
from numpy import trapz
# %%
#Load Stack
UVStack = pd.read_excel('./ML_Results/T2_test/ImgStack.xls')
ImgStackk = UVStack.copy().to_numpy()
# %%
de... | [
"ortega.edwin.y@gmail.com"
] | ortega.edwin.y@gmail.com |
8aa378316fa8409276dbe8cc2831d49f52828557 | a1f050ff1ea3459f31992db46c25b245f1f13eb1 | /alembic/versions/48f67ea76ef7_update_cell_towers_with_wrong_radio_.py | a59599f69389cd1c90f41807f1f0c2a711ade1de | [
"Apache-2.0"
] | permissive | SOFTowaha/ichnaea | 9d54f1be1e837118943a60a700775d553a82147a | a2de61e13c1cde5b124e616c5bf089073b0e4037 | refs/heads/master | 2020-12-14T06:16:02.651658 | 2015-07-14T16:45:37 | 2015-07-14T16:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py | """update cell towers with wrong radio types
Revision ID: 48f67ea76ef7
Revises: 4c7e55213558
Create Date: 2014-11-10 23:13:16.333794
"""
# revision identifiers, used by Alembic.
revision = '48f67ea76ef7'
down_revision = '4c7e55213558'
from alembic import op
from datetime import timedelta
def upgrade():
# Mark... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
15e7b46383870ab558e825b1d52c2d0030ef7db3 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nue.py | 875af02bc9f65d2785cda7be249715bc61199fe7 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 122 | py | ii = [('AubePRP.py', 3), ('MarrFDI2.py', 1), ('MedwTAI.py', 1), ('WheeJPT.py', 2), ('MereHHB3.py', 1), ('BowrJMM3.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
55e7c909466519980b4dcaae21e56f28f2ac54af | 81d955c3ac886e690ceb01026ed769b1784dbef9 | /purity_fb/purity_fb_1dot7/models/policy_response.py | ca5c02eedf9b2aa95a6b2977f583dfaa910c498d | [
"Apache-2.0"
] | permissive | etsangsplk/purity_fb_python_client | bc525ef1a18f6a79c1536cb4519a7efd58d09d89 | 0807a0fa2eab273bc08f73266d9cda9fa33b37bd | refs/heads/master | 2020-06-03T05:49:03.015147 | 2019-05-16T06:11:40 | 2019-05-16T06:11:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,096 | py | # coding: utf-8
"""
Purity//FB REST Client
Client for Purity//FB REST API (1.0 - 1.7), developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
OpenAPI spec version: 1.7
Contact: info@purestorage.com
... | [
"azaria.zornberg@purestorage.com"
] | azaria.zornberg@purestorage.com |
c5057aaabc36c5537306d6779de5bee59dea985c | 89f4284d0b5b2359c5121626e1575f95fc08a160 | /HeavyIonsAnalysis/JetAnalysis/python/jets/akCs3PFJetSequence_pponPbPb_data_cff.py | 9d3a957eb125db6e53de39d8002ad948eb435477 | [] | no_license | geun-woo/Comparing-collections-in-AOD-and-in-miniAOD | e11eb48cc8ab15a07f02a08a8a46dfd9d5a4e418 | 7b6e2118b9ce733b2ebb6f26516cbc107e37b285 | refs/heads/main | 2023-01-27T21:18:37.980241 | 2020-12-04T08:24:01 | 2020-12-04T08:24:01 | 318,445,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,120 | py | import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.mcMatchLayer0.jetMatch_cfi import patJetGenJetMatch, patJetPartonMatch
from PhysicsTools.PatAlgos.recoLayer0.jetCorrFactors_cfi import patJetCorrFactors
from PhysicsTools.PatAlgos.producersLayer1.jetProducer_cfi import patJets
from HeavyIonsAnalysis.... | [
"9nukim@gmail.com"
] | 9nukim@gmail.com |
d70a38025daaf58eefa598c2aac7ca05511fe15b | 89b45e528f3d495f1dd6f5bcdd1a38ff96870e25 | /pyneng/exercises/24_oop_inheritance/test_task_24_2.py | df7d1d0e5020d5d77b947d71c9e5842d1233ba1b | [] | no_license | imatyukin/python | 2ec6e712d4d988335fc815c7f8da049968cc1161 | 58e72e43c835fa96fb2e8e800fe1a370c7328a39 | refs/heads/master | 2023-07-21T13:00:31.433336 | 2022-08-24T13:34:32 | 2022-08-24T13:34:32 | 98,356,174 | 2 | 0 | null | 2023-07-16T02:31:48 | 2017-07-25T22:45:29 | Python | UTF-8 | Python | false | false | 1,120 | py | import sys
import task_24_2
from netmiko.cisco.cisco_ios import CiscoIosSSH
sys.path.append("..")
from pyneng_common_functions import (check_attr_or_method, check_class_exists,
check_pytest)
check_pytest(__loader__, __file__)
def test_class_created():
check_class_exists(ta... | [
"i.matyukin@gmail.com"
] | i.matyukin@gmail.com |
5d8439fa2214a135726e5baa5dce052fa2278443 | f9318e10a48e9e87f7c1537c8f2e647dda677e4c | /octopus/modules/account/models.py | 5eaa56b0004cf0b9197522b3819b9ebcbfcb9909 | [
"Apache-2.0"
] | permissive | JiscPER/magnificent-octopus | 250579020ead7a8d8424e96a8c3e811b12cc4d90 | e1be9a5f779a38122c5ad9d1d5365bb9a1dc2cf1 | refs/heads/master | 2023-07-20T00:27:26.018800 | 2016-01-22T16:07:24 | 2016-01-22T16:07:24 | 46,710,009 | 0 | 1 | NOASSERTION | 2023-07-10T11:22:43 | 2015-11-23T09:29:26 | Python | UTF-8 | Python | false | false | 8,988 | py | from datetime import datetime, timedelta
import uuid
from flask.ext.login import UserMixin
from werkzeug import generate_password_hash, check_password_hash
from octopus.core import app
from octopus.modules.account.authorise import Authorise
from octopus.modules.account import dao
from octopus.lib import dataobj
clas... | [
"richard@cottagelabs.com"
] | richard@cottagelabs.com |
8028c3509aa97a331a6d7b99ce51350321766328 | 44d4a051663179ddf4a87ef607070e8abed1b94f | /ntupleAnalysis/combine_sg_templates.py | 28a420809aa3f6d3ceca23903b362057a2bf512c | [] | no_license | mbandrews/h2aa | 458471abd90dc2a80d13ad2d2428cc0567d58c89 | de1549d472f0b815236598c9676c27719b949e67 | refs/heads/master | 2022-12-09T22:08:21.235484 | 2022-12-08T03:44:58 | 2022-12-08T03:44:58 | 232,382,628 | 0 | 1 | null | 2022-12-08T03:44:59 | 2020-01-07T17:49:35 | Jupyter Notebook | UTF-8 | Python | false | false | 10,854 | py | from __future__ import print_function
#import numpy as np
import ROOT
import os, glob, re
from collections import OrderedDict
from data_utils import *
from hist_utils import *
from template_utils import *
k2dma = 'ma0vma1'
sample_sg = 'h4g'
mh_region = 'sr'
#ma_blinds = ['diag_lo_hi', 'offdiag_lo_hi']
ma_blind = 'offd... | [
"michael.andrews@cern.ch"
] | michael.andrews@cern.ch |
fdaf33e81034f26682258d4e9774164a7dcc5495 | 75616acbd19956182868b9c84ecc5805394b6ead | /src/mcdp_data/bundled.mcdp_repo/shelves/mcdp_uncertainty.mcdpshelf/droneD_complete_templates.mcdplib/drone_unc3.py | afe7dad39c9f707f868e027f87386684918dc74d | [] | no_license | fgolemo/mcdp | 16c245665d91af7f91bba8a24d4272001ce90746 | 46eb25ca85660f4d6c2f1f6d026f7e97c7977ac3 | refs/heads/master | 2021-01-21T22:14:52.599881 | 2017-09-01T18:00:55 | 2017-09-01T18:00:55 | 102,139,393 | 5 | 2 | null | 2017-09-01T17:58:36 | 2017-09-01T17:58:36 | null | UTF-8 | Python | false | false | 7,072 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from contracts import contract
from mcdp_cli.query_interpretation import convert_string_query
from mcdp_dp import InvMult2
from mcdp_dp.dp_transformations import get_dp_bounds
from mcdp_dp.tracer import Tracer
from mcdp_ipython_utils.plotting import set_axis_colors
from mcd... | [
"acensi@ethz.ch"
] | acensi@ethz.ch |
0ede59af296f0fc59c3ebe907d2a34094ab08397 | 855511810dd54fa2406442db034079f76a73f869 | /netbox_rest/models/power_outlet_nested_serializer.py | 020ff0e0ec5e77f3adc2f6c8be750a53167f50a5 | [] | no_license | jlongever/netbox-serv | 2da55778ded70031bd7500b4bf7aebb9d814dbbc | b281c7b7ef1571ad71f46dc155c2e0e2dd19b217 | refs/heads/master | 2020-09-10T02:16:23.555873 | 2018-10-29T18:29:17 | 2018-10-29T18:29:17 | 66,660,836 | 2 | 0 | null | 2018-10-29T18:29:18 | 2016-08-26T15:59:25 | Python | UTF-8 | Python | false | false | 4,622 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not ... | [
"joseph.longever@emc.com"
] | joseph.longever@emc.com |
e377594e5f0371beab20b4795da52a2a54ab5421 | 7c56dc04f467b108daac8448cd72dbb1bfa856a4 | /rulo_base/scripts/marker_display_deleter.py | 171964ac5730e838070ca2aec290877ab6056457 | [] | no_license | mtbthebest/rulo_pkg | 52217fd356e0e1c9d1bcfa2d0421c74028dc5ed6 | be626745e16924dd728ec868bdca139d3cc3b0b1 | refs/heads/master | 2020-05-21T16:57:20.663466 | 2019-05-11T09:09:57 | 2019-05-11T09:09:57 | 186,111,180 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | #!/usr/bin/env python
import rospy
from rulo_base.markers import VizualMark
rospy.init_node('display')
VizualMark().publish_marker(pose = [[0.875,0.5,0]], sizes=[[0.25,0.5,0]],color=['Green'], action= 2) | [
"mtbthebest11@gmail.com"
] | mtbthebest11@gmail.com |
3610c6ed3b1c5f6681ba03dfafb5fcab9b9e8c28 | bbb8d941d0aa439ca435e0f00ddbd7330ad2db79 | /cpp/298B.py | 3bf4354b3bd3dc349f5aa9ab1b453332f2de2395 | [] | no_license | dimritium/Code | 7ca940124074d7f7bca28559e0fe2f3cba24f846 | e6678b3dabe21fcd05e362bb8115f7812ad9abb8 | refs/heads/master | 2021-07-25T06:35:22.755474 | 2017-11-04T15:07:50 | 2017-11-04T15:07:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | t,x,y,u,v = map(int,input().split())
dic = {}
dic['N'],dic['S'] = (v-y,0) if v>=y else (0,y-v)
dic['E'],dic['W'] = (u-x,0) if u>=x else (0,x-u)
inp = str(input())
for i in range(t):
dic[inp[i]]-=1
if dic['N']<1 and dic['S'] < 1 and dic['E'] < 1 and dic['W'] < 1:
print (i+1)
break
else:
print... | [
"dimrishubhi@gmail.com"
] | dimrishubhi@gmail.com |
212c891e6bd6c95eaf41aa7a4f81f86ef392f712 | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /nemo/collections/tts/models/waveglow.py | 728b5b94b0847d355336d07d38ab339af8ae43fb | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 10,327 | py | # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
69fc109810bdba11ef99369a3bf0b956b8236af3 | 18c78788f9076dcd00c8e81ed44f1ad071d54a99 | /watson/dev/__init__.py | 2a1859899ed4eb0c6d1c8d1a37eec64a0369eaf6 | [
"BSD-2-Clause"
] | permissive | watsonpy/watson-dev | 8a2ed2caef1818972962b295d0657f24a17066e5 | 3021c736da8a70e259f9a42fde98f58eb394996b | refs/heads/master | 2020-04-12T07:23:36.610414 | 2019-10-03T04:28:39 | 2019-10-03T04:28:39 | 16,093,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | # -*- coding: utf-8 -*-
__version__ = '3.0.1'
| [
"simon.coulton@gmail.com"
] | simon.coulton@gmail.com |
e226ca5e9f7dcc2dcc6865fb1acb54a2ecb9e8fb | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_bonny.py | 148bd9e27cc23fd705e4f0abeadad4273d787796 | [
"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 | 379 | py |
#calss header
class _BONNY():
def __init__(self,):
self.name = "BONNY"
self.definitions = [u'beautiful and healthy: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self.jsondata[obj2... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
571982c13e36e737acfe0eab906bda2b4abba80a | 1e9841e16524286905151a45a7b2799bf31bef80 | /python/weld/weldobject.py | 0d20a7bf9575b6d747c19021dc7784201e9d9bd3 | [
"BSD-3-Clause"
] | permissive | rtipnis/weld | 67d97fb5e7432ff02cd61c7faa50cb75c08fb187 | 856afd942b11745de1346a13774890aab8f2d22e | refs/heads/master | 2021-01-18T16:13:55.938365 | 2017-03-29T15:26:52 | 2017-03-29T15:26:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,898 | py | #
# WeldObject
#
# Holds an object that can be evaluated.
#
import ctypes
import os
import time
import bindings as cweld
from types import *
class WeldObjectEncoder(object):
"""
An abstract class that must be overwridden by libraries. This class
is used to marshall objects from Python types to Weld typ... | [
"deepakn94@gmail.com"
] | deepakn94@gmail.com |
92e6b2b843e28579ba17f6b0349275eeb1567031 | 0dd504afca2e546dba7fd0f76d360bd92d767001 | /WebMateriel/WebMateriel/urls.py | def8f2617753fe58480fa36fdc0c3680c309610f | [] | no_license | frosqh/WebMateriel | f947a6712d11f0217a28086a7f46de630c42fbd2 | 25fb40b387895b8e0a3b38851c6fa7fe63a5c987 | refs/heads/master | 2021-01-15T19:23:05.079075 | 2017-08-10T12:32:47 | 2017-08-10T12:32:47 | 98,521,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | """WebMateriel 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')
Clas... | [
"frosqh@gmail.com"
] | frosqh@gmail.com |
9cb0c822b9409a0428ad10f8680b3db57fa48c57 | 1caf4418f3549567637f5e9893a445f52a38c6a0 | /CmsAdmin/chat_management/migrations/0007_auto_20201214_0623.py | 5b2bb92712cd4f5cfcdf784925eb8148b22c3504 | [] | no_license | Final-Game/social_network_backend | c601563e08c0fd7de72a614944f354ef8d2d31d8 | 8111787d1d20eb87733ae360d8baa745a65e2743 | refs/heads/master | 2023-03-04T21:12:43.147084 | 2021-02-23T03:45:22 | 2021-02-23T03:45:22 | 290,542,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # Generated by Django 2.2.16 on 2020-12-14 06:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('chat_management', '0006_auto_20201214_0622'),
]
operations = [
migrations.AlterModelTable(
name='message',
table='cm_messag... | [
"kakavip.198.kaka@gmail.com"
] | kakavip.198.kaka@gmail.com |
9d07c0f27c42bb0108045a40d9eb7dbef2de6311 | 6fa203114a2287cee90516b0c28806ed526c59af | /ticks.sikuli/ticks.py | 6b76c8141a2d6f51dcd125afcf0fca42ea0f6b3f | [
"MIT"
] | permissive | legnaleurc/kczzz | 1f7c239c0a296bfa6a5d120fe744068e4039d688 | 27b4d6c5ca2acfa40b8596089c24926ee2c46b08 | refs/heads/master | 2021-01-15T14:28:35.563078 | 2014-04-15T18:37:03 | 2014-04-15T18:37:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,387 | py | """
Copyright (c) 2013 Wei-Cheng Pan <legnaleurc@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... | [
"legnaleurc@gmail.com"
] | legnaleurc@gmail.com |
ea699ea0f100e72864c14303403cb58c2f0f7fa8 | 2b28dda8461d04f7e323716bb8d427b8aaeaa861 | /abps/agents/tf_agent.py | 42052e86aed54ead0c0474812dc62997029ec064 | [
"Apache-2.0"
] | permissive | arita37/google-research | c380fd94015cc032ac4c4dbafac8043fdb1b1398 | c0a3cc4b7a51d912a413b3b49adfc72d427ede17 | refs/heads/master | 2020-06-11T07:10:16.067672 | 2020-04-15T04:39:27 | 2020-04-15T04:39:27 | 193,885,957 | 1 | 0 | Apache-2.0 | 2020-04-15T04:39:29 | 2019-06-26T10:48:51 | Python | UTF-8 | Python | false | false | 12,896 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
732d0ed4ab6ded1cc33fe3f51b2bf2ec672cafff | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03095/s670915826.py | 64440ff0f18059a09c89bedf6d6406336ef58ccd | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from collections import defaultdict
n = int(input())
s = input()
MOD = 10**9 + 7
dd = defaultdict(int)
for c in s:
dd[c] += 1
ans = 0
for c in s:
dd[c] -= 1
tmp = 1
for k, v in dd.items():
if k == c:
continue
else:
tmp *= v + 1
ans = (ans + tmp) % MOD
print(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0ff79d904a9556ad274d03988184b379038beaf6 | 624cff915c8a48a2a61adfc25de3c87350ce9844 | /tfrecord_test/read_write_data_alphabet.py | 0a3bdce22e2977d45ea825c4cb86fcbfd3ba2742 | [] | no_license | LiJianfei06/tensorflow_projects | ba72775494632943e1d0adea6d0c4333b4e2e31a | 3e4e1b9aa5a5e21828bdababe0238258c7e3d5b4 | refs/heads/master | 2021-09-26T16:26:06.596237 | 2018-10-31T15:16:34 | 2018-10-31T15:16:34 | 108,412,897 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,000 | py | # -*- coding: utf-8 -*-
import os
import sys
import tensorflow as tf
from PIL import Image
import numpy as np
cwd = os.getcwd() # get dir of this file
'''
测试字母(1位)
...
'''
CHAR_SET_LEN=62
i=0
classes = ["read_test_alphabet1" ];#目录 分别改成train 和 val 各跑一次就行了
print "start..."
writer = tf.python_io... | [
"976491174@qq.com"
] | 976491174@qq.com |
2c4d06585c6d539bfd706051b98ec5f313fbf183 | fe1a29a7d855bf01c4ed45114b558bced0ec0804 | /fmriprep/interfaces/tests/test_images.py | 769920b4197513507cfa0770b73ce1ee29e3a6bd | [
"BSD-3-Clause"
] | permissive | Gilles86/fmriprep | 81bbd92976940ce13d4a16eb5bacf12f07ef67d7 | 2a7f3abfd2fbaedf6d5723d2ae1cb1df06719c19 | refs/heads/master | 2021-04-06T01:57:10.922131 | 2018-11-06T15:31:26 | 2018-11-06T15:31:26 | 124,859,471 | 1 | 0 | BSD-3-Clause | 2018-11-06T15:31:28 | 2018-03-12T08:47:00 | HTML | UTF-8 | Python | false | false | 1,582 | py | import time
import numpy as np
import nibabel as nb
from nipype.interfaces import nilearn as nl
from .. import images as im
import pytest
@pytest.mark.parametrize('nvols, nmasks, ext, factor', [
(500, 10, '.nii', 2),
(500, 10, '.nii.gz', 5),
(200, 3, '.nii', 1.1),
(200, 3, '.nii.gz', 2),
(200, 10... | [
"markiewicz@stanford.edu"
] | markiewicz@stanford.edu |
16350d00410a83b60aa81d4fa4682febb4676bdd | 79f5836b7d57491cf4afe5cb37829b6e7a5fc919 | /pypersonaljs/userprofiles/forms.py | d23d83f7a13aa7fdc50f6e8aaa09e5733a831a18 | [] | no_license | raultr/pypersonaljs | c73633c9de91a502973fb25833943da2fdbfbc6d | 2240281b787ad99718f3c33a82c90b012c051208 | refs/heads/master | 2020-06-05T15:51:14.196096 | 2014-10-15T05:43:24 | 2014-10-15T05:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
class UserCreationEmailForm(UserCreationForm):
email = forms.EmailField()
class Meta: # Los metadatos del modelo son cualquier cosa que no sea un campo, como opciones de ordenamiento etc.
mo... | [
"raultr@gmail.com"
] | raultr@gmail.com |
e8292ab56623d082a4df801bc85d3510d93e9e0c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/51/usersdata/112/20132/submittedfiles/listas.py | 27d04e5c7a413ab60435e151738266fa6a376f8f | [] | 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 | 585 | py | # -*- coding: utf-8 -*-
from __future__ import division
a=[]
n=input('Digite a quantidade de componentes da lista:')
for i in range (0,n,1):
a.append(input('Digite um termo para a lista:'))
def maiordegrau(lista):
novaLista=[]
for i in range(0,len(lista)-1,1):
degrau= a[i]-a[i+1]
if degrau<... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
25341fe3172b4fcba3b7e2bc8ad263c6c28a89ec | 5d2404f62e58d5fd1f6112744ff32c3166183ac7 | /Exercicios/ex108/Python/001.py | 65695743c0faab299ec542ae576ec145b6f2ddfc | [] | no_license | Leownhart/My_Course_of_python | 236cfc84d841c5883e5aa1cc0c0730e7a9a83c40 | 5abb21f8cdad91ab54247a007d40bf9ecd2cff8c | refs/heads/master | 2020-08-28T15:04:33.628086 | 2020-08-24T19:25:39 | 2020-08-24T19:25:39 | 217,733,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | nome = input('Qual é seu nome: ')
print('É um prazer te conhecer', nome)
| [
"francisco.amartins.al@gmail.com"
] | francisco.amartins.al@gmail.com |
0d083cae2df4edec00670567e405a0a1ccc4257d | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/sttjos003/question2.py | 97d3cbe868f887de61aca563b4638d1bc9cfe3f8 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | x = eval(input("Enter the hours:\n"))
y = eval(input("Enter the minutes:\n"))
z = eval(input("Enter the seconds:\n"))
if 0<=x<=23 and 0<=y<=59 and 0<=z<=59:
print ("Your time is valid.")
else: print ("Your time is invalid.")
| [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
4aa8a044cdcfff84d8219d84ffc30787b29ed860 | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/networkx/algorithms/centrality/second_order.py | a2f7e08673d7b05bcac49a6d87ba22eb3e430e3d | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:fc91806315a276fed68e64083fcbf17d49835828313d7b5ba7bf85770cb10c96
size 5251
| [
"Nqk180998!"
] | Nqk180998! |
646eac986ee475f1d1b26c745914378256fa0d0a | 2bb35ad7d29ea8f847c154c33155a5db35dd7054 | /intron-lengths.py | e3a73cd0d620055a2d12356300911bd30b118c3f | [] | no_license | standage/pdom-long-iloci | 8167ed9a41dcd679f3c2c95c0ed0787cd51f03f4 | 3d10a4403c2b58800b9d55ca2d015d19f298dd04 | refs/heads/master | 2020-07-08T00:28:04.474439 | 2015-01-15T20:09:20 | 2015-01-15T20:09:20 | 29,302,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/env python
import sys
for line in sys.stdin:
if "\tintron\t" not in line:
continue
line = line.rstrip()
fields = line.split("\t")
length = int(fields[4]) - int(fields[3]) + 1
print "%d\t%s" % (length, line)
| [
"daniel.standage@gmail.com"
] | daniel.standage@gmail.com |
12fdbf5c1707841953fd6a8f2dd975abc732107e | 99d17ddba93db1105e8941b1b592d9d9e22864fb | /superset/migrations/versions/2022-07-19_15-16_a39867932713_query_context_to_mediumtext.py | 92b8ad115a88e59d5d76203db94d851900d9b967 | [
"Apache-2.0",
"OFL-1.1"
] | permissive | apache-superset/incubator-superset | f376dc15d6e2187d0b65a0dc5476d6c6c3378f21 | 0945d4a2f46667aebb9b93d0d7685215627ad237 | refs/heads/master | 2023-03-15T04:12:40.478792 | 2022-07-25T14:44:43 | 2022-07-25T14:44:43 | 146,225,581 | 21 | 20 | Apache-2.0 | 2023-03-13T16:00:14 | 2018-08-26T23:56:08 | TypeScript | UTF-8 | Python | false | false | 1,575 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | apache-superset.noreply@github.com |
0a18e390b26a67628cf9d2e0cf55c7f4d08dd0ae | 4a1cd91e0acab3ecb61bc0f106ff81e5045f7f7e | /docs/conf.py | 2c6eb74e0bb64af7569b8e6f333391acf3547b25 | [
"Apache-2.0"
] | permissive | cnheider/vulkan-kompute | bc077ba271467accd84dce649b63c3a72b9b8c7a | 267f92763ee7743549a4d5299fee61054bbb4689 | refs/heads/master | 2022-12-29T04:11:17.028571 | 2020-10-18T20:30:43 | 2020-10-18T20:30:43 | 305,489,881 | 0 | 0 | NOASSERTION | 2020-10-19T19:18:34 | 2020-10-19T19:17:55 | null | UTF-8 | Python | false | false | 3,014 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
... | [
"axsauze@gmail.com"
] | axsauze@gmail.com |
017dfdcf97f4bd76bbc4c3d70549a31e1a70242e | 8d803886230e7bb5ad71e7888c6f85ab10ffe4e4 | /game.py | ac6fe944e6b034a03136b9c271d12dc44f0d405a | [] | no_license | swappt/blip-app | 4b22b5ba6f37a214e14951248029140357f6e7b3 | c4072d62128e7c78b4708e6f980d967c266a9f2e | refs/heads/master | 2021-06-23T06:03:21.038527 | 2017-08-22T21:38:01 | 2017-08-22T21:38:01 | 93,765,776 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,252 | py | from kivy.uix.widget import Widget
from kivy.uix.image import Image
from kivy.core.audio import SoundLoader as s
from kivy.properties import ObjectProperty, ReferenceListProperty, StringProperty, ListProperty
from kivy.clock import Clock
from kivy.vector import Vector
from math import atan2, degrees, sqrt
from ceil im... | [
"judewrs@gmail.com"
] | judewrs@gmail.com |
3303ff0cbd345273c2b2dfde872c4afda3671818 | 716d33e4c7d86ebfab6336b17a5d72445e0a4ee6 | /elme/util.py | 8efd9e9a3094a5703024045835f4832ef8e541c5 | [] | no_license | ponty/electronic-measurements | c3490b074eeb1b78c4e2f461757531091f7bd2bc | c73f225acb09a7857671e15a10f8903fd07d15e2 | refs/heads/master | 2021-01-17T08:12:27.349118 | 2016-04-24T18:34:06 | 2016-04-24T18:34:06 | 9,584,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,389 | py | from __future__ import division
from _abcoll import Iterable
from abc import ABCMeta
from decotrace import traced
from math import log10, floor
from path import path
from traits.has_traits import cached_property, HasTraits
from traits.trait_types import Float
from traits.traits import Property
import itertools
import t... | [
"ponty@home"
] | ponty@home |
f2f18feb78bb57e885545e87271cc0b04ccceec9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03693/s331495019.py | 1bc3a45ced13dc618cee214f2df8431ffafa47ad | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | A = list(input().split())
a = int(''.join(A))
if a%4==0:
print("YES")
else:
print("NO") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
159fa5f03b2d821ed8834004b59783aebc4cc800 | e02787bf797d1a8dec205b26a3f4595e8acdb14e | /weather/venv/bin/pip3.8 | 3483b39860909365e45d8104f01dd612f478b579 | [] | no_license | Beketx/System-Programming | e7466b04ad31859bb42dbee735435b2a8813258f | 62d26300a654d9f6d7d54f2c7edb4319f61a265f | refs/heads/master | 2023-04-24T19:26:10.135105 | 2021-05-01T22:47:56 | 2021-05-01T22:47:56 | 363,521,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | 8 | #!/Users/beket/Desktop/weather/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())
| [
"beketsk@gmail.com"
] | beketsk@gmail.com |
0f5cb5c56f5a1bced6a67315058f788a42c51cde | 0d382132f5c8a39e38bc244ccd176ebd51a7ba65 | /school_system/events/migrations/0001_initial.py | c51e59296c8fd0c80590b9f6fb6f366a1cd258e5 | [] | no_license | Umutonipamera/python_web | 55caee9968e60e16c48a65074e98d9a8bd4abc59 | ce42588debf43c802a4a1d22921b00eabb4ddf9e | refs/heads/master | 2023-07-02T15:17:34.348743 | 2021-08-07T11:20:13 | 2021-08-07T11:20:13 | 380,297,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | # Generated by Django 3.2.4 on 2021-08-07 09:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Events',
fields=[
('id', models.BigAutoFiel... | [
"umutonipamera@gmail.com"
] | umutonipamera@gmail.com |
3f9e5f581e023ba7f621f64a9cadd775a808b038 | a9094cb78d271f1ffa93a38c7a5f57e3381bbf23 | /venv/Lib/site-packages/setuptools/monkey.py | 7dee5306104294de71d21ef22a879ad9b19e2442 | [] | no_license | AndrewChuma/hw1 | 7c083546f6d3a63db21d76c0bc96ddf91a300764 | 44438596198e6ec1a2670a7025e938ef433a2bf2 | refs/heads/master | 2023-01-04T22:45:49.399636 | 2020-11-09T17:27:18 | 2020-11-09T17:27:18 | 311,410,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,199 | py | """
Monkey patching of distutils.
"""
import distutils.filelist
import functools
import inspect
import platform
import sys
import types
from importlib import import_module
import setuptools
__all__ = []
"""
Everything is private. Contact the project team
if you think you need this functionality.
"""
def _get_mro(c... | [
"andreychuma.1989@gmail.com"
] | andreychuma.1989@gmail.com |
f1b4408ccc11a37503c8e88abfed55428a4e1f87 | eb54a89743222bc7d72cf7530e745b8986cad441 | /leetcode/reorderLogFiles.py | 57581d8ffc24cab2abe4beb018fc1c5de83d34b6 | [] | no_license | ugaemi/algorithm | db341809e2497b36e82fc09939ae8e3f1ca7d880 | e4f57f01d21f822eb8da5ba5bfc04c29b9ddce78 | refs/heads/master | 2023-01-10T05:16:55.167675 | 2023-01-04T13:12:20 | 2023-01-04T13:12:20 | 200,671,606 | 3 | 10 | null | 2022-02-27T12:52:31 | 2019-08-05T14:28:56 | Python | UTF-8 | Python | false | false | 1,019 | py | import unittest
from typing import List
class Solution:
def reorderLogFiles(self, logs: List[str]) -> List[str]:
letters, digits = [], []
for log in logs:
if log.split()[1].isdigit():
digits.append(log)
else:
letters.append(log)
lette... | [
"u.gaemi@gmail.com"
] | u.gaemi@gmail.com |
dcd207835617f1fa41d1eeddd307aa6eba0e229f | afea9757be324c8def68955a12be11d71ce6ad35 | /willyanealves/customer_service/migrations/0033_auto_20201130_1435.py | 6dea2e44c0a57dfccf39d0ceaa5e8a1d1daee75d | [] | no_license | bergpb/willyane-alves | c713cac3ec3a68005f3b8145985693d2477ba706 | 8b2b9922ba35bf2043f2345228f03d80dbd01098 | refs/heads/master | 2023-02-10T19:57:50.893172 | 2021-01-11T16:17:14 | 2021-01-11T16:17:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # Generated by Django 3.1.2 on 2020-11-30 17:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer_service', '0032_auto_20201119_1333'),
]
operations = [
migrations.AlterField(
model_name='customerservice'... | [
"jocsadm@gmail.com"
] | jocsadm@gmail.com |
fac8c6280b7d5fda9305be852dff9e57bb627c9c | 0554673bf51c8403e2b6395a35a74f508f45b9b3 | /src/restaurants/views.py | c1ecfa57bb3de975c5bcea9abcfd70fdb3283596 | [] | no_license | niketanmoon/Restaurant_picker | 690191929c3dbbc45a31f1ef66bd516094ccc759 | 5acbe5fea1ead4ce2e48618ee8ab5328e38a1f58 | refs/heads/master | 2023-05-04T01:28:39.443639 | 2019-09-22T12:12:36 | 2019-09-22T12:12:36 | 209,234,547 | 0 | 0 | null | 2022-11-22T04:15:15 | 2019-09-18T06:29:02 | Python | UTF-8 | Python | false | false | 1,812 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.db.models import Q
from django.shortcuts import render,get_object_or_404
from django.http import HttpResponse,HttpResponseRedirect
from django.views.generic import TemplateView,ListView,DetailView,CreateView,UpdateView
from restaurants.forms import ... | [
"niketanmoon@gmail.com"
] | niketanmoon@gmail.com |
6bd9c1ecde594634b6574841db4846632abbba24 | 4f5935bf51aa8877c1f8f5c73c1b35204b88bc84 | /build/catkin_generated/order_packages.py | d3549e8f89f207dc8949ffdfbba308eb41bb959a | [] | no_license | gracedotdotdot/agv_car | 3825c39703fd5bb4096a7c1d080b9b6cc48f7ade | b8fe67bd4ef1a0fb83e4519fab89f640e9675c97 | refs/heads/master | 2022-12-06T08:49:37.110090 | 2020-09-03T06:19:52 | 2020-09-03T06:19:52 | 285,483,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = '/home/an/Desktop/catkin_ws/src'
whitelisted_packages = ''.split(';') if '' != '' else []
blacklisted_packages = ''.split(';') if '' != '' else []
underlay_workspaces = '/home/an/Desktop/catkin_ws/devel;/opt/ros/melodic'.split(';') if... | [
"gracelin0827@gmail.com"
] | gracelin0827@gmail.com |
6d865c4ecfe61a60e721e3446ef6de397661c13e | 288dc5bae00181c95c5bf952343314f3a216fd9a | /corepython2/Ch13/roundfloadtest.py | 9c03f9191001c5efb1eab2a81bd46ab34618f22e | [] | no_license | joyc/python-book-test | 93cd32fcf9bf12260b1a91893971c38499347120 | 968913d7b8b3baba2b755d9edcdacef850ab4b61 | refs/heads/master | 2022-12-11T14:38:04.661344 | 2019-03-11T15:27:20 | 2019-03-11T15:27:20 | 96,122,367 | 0 | 1 | null | 2022-12-08T02:09:53 | 2017-07-03T14:57:26 | Python | UTF-8 | Python | false | false | 371 | py | #!/usr/bin/env python
# -*- codcing:utf-8 -*-
class RoundFloatManual(object):
def __init__(self, val):
assert isinstance(val, float), \
"Value must be a float!"
self.value = round(val, 2)
def __str__(self):
return '%.2f' % self.value
__repr__ == __str__
rfm = RoundFl... | [
"joyc@live.jp"
] | joyc@live.jp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.