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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1db25bdeb177e7112fd4df6cf720162c9a9839ce | 422019d363c222c87b72f1d66e6ce6162440d08c | /wego/src/googlesheet.py | 7c5681d078de408b7923a4de6a0a632d5378e2b1 | [] | no_license | miteshgala92/applicationscraping | 6a5b9e4efa956e19312c91a7d06d4e68463f1d47 | e82ce1f3d3619d9042cfac5b30d248fd1960e1fb | refs/heads/main | 2023-05-08T03:03:18.607843 | 2021-06-01T10:48:20 | 2021-06-01T10:48:20 | 301,666,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | import json
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
import pandas as pd
# If modifying these scopes, delete the file token.pickle.
SCOPES = ['https://www.googleapis.com/auth/spread... | [
"galamitesh1005@gmail.com"
] | galamitesh1005@gmail.com |
32113ab189b118bdbaf0079eb26ec17a64dd23ff | b23369a5067dd7db9660c303bb2099ae3fe55638 | /algorithm/solutions/offer/test.py | 6e1fd5c9341f39bf19a968486082cf9b91f6f1f6 | [] | no_license | blackholemedia/writings | f65153f760c469764a9acbed12f0dbf37234f6f6 | 7d54bb2b37066c454990a11d1ca72bdd39d1122c | refs/heads/master | 2021-06-11T17:07:38.773129 | 2021-03-28T10:16:44 | 2021-03-28T10:16:44 | 160,291,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | #-*- coding=utf-8 -*-
from functools import reduce
import sys
if sys.platform == 'linux':
sys.path.append('/home/alta/ds')
from mytree.binarytree import BinaryTree,TreeNode
else:
sys.path.append('c:\\users\\alta')
from datastructure.mytree.binarytree import BinaryTree
if __name__ == '__main__... | [
"jibuzhudezhanghao@qq.com"
] | jibuzhudezhanghao@qq.com |
5710ed4d4a5418f66fe349adb978a247caf11b55 | 35e6376063265f3aebbe2d2147da9e61b5bb3ef3 | /rod_align/_ext/rod_align/__init__.py | f73c1cc3eaee375d531e87ecb437d370d043bd2c | [
"MIT"
] | permissive | notantony/Grid-Anchor-based-Image-Cropping-Pytorch | 2e6fdd4280726089b2e500cc48fa14254558bf5d | 32a2dea9151c123c8e589bd196450f56cf3ef7d1 | refs/heads/master | 2021-05-25T19:29:33.876827 | 2020-09-17T17:22:58 | 2020-09-17T17:22:58 | 253,891,360 | 0 | 0 | MIT | 2020-04-07T19:23:56 | 2020-04-07T19:23:55 | null | UTF-8 | Python | false | false | 383 | py |
from torch.utils.ffi import _wrap_function
from ._rod_align import lib as _lib, ffi as _ffi
__all__ = []
def _import_symbols(locals):
for symbol in dir(_lib):
fn = getattr(_lib, symbol)
if callable(fn):
locals[symbol] = _wrap_function(fn, _ffi)
else:
locals[symbol] ... | [
"noreply@github.com"
] | noreply@github.com |
dea6f94ad5d677551c991b4885863988669f1af5 | 44846980df148e1a0621e8a359a7fd357482fd74 | /05-Inheritance/problem-5-Restaurant/project/food/cake.py | 9c455dce1d126fdbf08463332d2acb717c199373 | [
"MIT"
] | permissive | Beshkov/Python_OOP | 2dbd3383126f226895b652c4feaf8d79d867d4f8 | 297edadb3e7801dfeee5752a20aae6aead8da610 | refs/heads/main | 2023-04-03T14:24:59.218856 | 2021-04-18T15:13:11 | 2021-04-18T15:13:11 | 341,330,079 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from project.food.dessert import Desert
class Cake(Desert):
PRICE = 5
GRAMS = 250
CALORIES = 1000
def __init__(self, name):
super().__init__(name, Cake.PRICE, Cake.GRAMS, Cake.CALORIES)
| [
"alexander.beshkov@gmail.com"
] | alexander.beshkov@gmail.com |
9cebe181063772a441f7159a79ae936585a7fcd4 | fdd70388fe6189aeba7c6a2a06313666906ea264 | /gsConfigManager.py | fdf3a869fc6a6f741a55184be0d5ab5e6eb798de | [
"MIT"
] | permissive | accidentalrebel/gsConfigManager | e0312637304c2b52370875d204a2acc73a9dee32 | 03e5db7e80a41e82bce3291cf408fd0a2c8c9b8c | refs/heads/master | 2020-04-04T14:03:03.278262 | 2018-04-02T12:37:05 | 2018-04-02T12:37:05 | 155,984,874 | 1 | 0 | null | 2018-11-03T13:18:35 | 2018-11-03T13:18:34 | null | UTF-8 | Python | false | false | 2,690 | py | #!/usr/bin/env python3
# Steve Callaghan <scalla[at]amazon.com>
# 2018/03/16
import sys
import auth
import json
import export
import config
def print_json (jsonMsg):
print json.dumps(jsonMsg, indent=4, sort_keys=False)
def fail_with_error (msg):
print('Fatal Error: ' + msg)
sys.exit()
def print_help (f... | [
"stephencallaghan91@gmail.com"
] | stephencallaghan91@gmail.com |
426a56fc1b17445626f5aa5bf3af52c6f0fa5620 | 280a7abee07f47d96932ac1f7a67aa1950278db4 | /kouchan-blog/urls.py | ad9c17afcabc450f5c38247198da7e785a4de91e | [
"MIT"
] | permissive | KoukiNAGATA/kouchan-blog | 7bdb93f68cc0db87c6ceffed4c4ce72cb4c2ff82 | 51808388135eca32077ad05241a0587df0e08c25 | refs/heads/main | 2023-08-07T19:18:04.045900 | 2021-09-03T14:07:52 | 2021-09-03T14:07:52 | 366,347,065 | 0 | 0 | MIT | 2021-09-01T13:33:53 | 2021-05-11T10:46:12 | JavaScript | UTF-8 | Python | false | false | 1,506 | py | """kouchan-blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"koukinagata.academic02@gmail.com"
] | koukinagata.academic02@gmail.com |
8f426dfbfdc1c9bebf1194576c9f3d6d77e7d800 | ba14294ecd07a6c5f06a8204b298e1dfeeef7938 | /S14Q02_school_marks_with_read.py | 60717b489a107565850d102137a9c8d5d0cc05dc | [] | no_license | deepak261/python-exe | 50fd87f022d9e1b8e90661b1ce69df4ac53fbfa9 | 0bf575eebdbe4da0e3957b06aa7f0854286b73d1 | refs/heads/master | 2020-09-12T08:33:43.493309 | 2019-12-17T09:48:17 | 2019-12-17T09:48:17 | 222,369,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | '''
S14Q02
Create a text file called “students.txt”.
Each line should be of the form
“student_name : student_marks”
- Write a Python program to read the contents from this file.
- Print the names and marks of all students
who have scored more than 90% marks,
in ascending order of their marks.
'''
def ... | [
"noreply@github.com"
] | noreply@github.com |
dc468ce1b9be09aaa942aaaf98afe386e2ed2f59 | d20aa624e04cbd0c426a6b7281f3cc1ed88a75cc | /calculator-python/tests/test_parser.py | 5a86d714431e1ead59048d5c74ccbb1052e303ea | [] | no_license | kenfj/calculators | 8a0710818f030ee919908d85839e1d9228b3f9e2 | 287ccc46d9c3a63caae7ef1543c21cbf998853c7 | refs/heads/master | 2022-12-09T23:32:41.446162 | 2020-09-06T15:26:22 | 2020-09-06T15:29:17 | 293,289,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,903 | py | from tokens import Token, TokenType
from parser_ import Parser
from nodes import BinNode, NumberNode, UnaryNode
def test_empty():
tokens = []
node = Parser(tokens).parse()
assert node is None
def test_number():
tokens = [Token(TokenType.NUMBER, 51.2)]
node = Parser(tokens).parse()
assert nod... | [
"ken.fj@icloud.com"
] | ken.fj@icloud.com |
8b2d77afecc99f3f0398cd4507fc5842784c22be | c6ff580f5642b26e1c29bca11b1c8f78522289a5 | /aulaCanal/core/views.py | 684da9e536b900712e2b162fa62ab995ea0662cd | [] | no_license | cpaivaj/estadoPensante_projetoDjango | aa12126a1d14f7540f34bb5228ef83d6761a3784 | 55a28e904ab511217dfa521316e461c0b8c00252 | refs/heads/master | 2022-10-21T09:22:05.532670 | 2020-06-19T22:13:00 | 2020-06-19T22:13:00 | 273,595,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.shortcuts import render
# Create your views here.
def home(request):
template_name = 'home.html'
context = {}
return render(request, template_name, context) | [
"carlos.alberto.2012@hotmail.com"
] | carlos.alberto.2012@hotmail.com |
c4015e599f027ed19397facf0d40c886fce19fe9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_235/ch5_2019_09_30_20_38_17_649024.py | b8de2e39ea7eef630ab86123a0bf54f25a4961ab | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from math import *
def testa_primo(x): #retorna True se o número for primo
d = 2
primo = True
while d <= int(sqrt(x)):
if x % d == 0:
primo = False
break
elif x < 3:
primo = False
else:
primo = True
d = d + 1
return pri... | [
"you@example.com"
] | you@example.com |
4c4a941d44a281ad1162e35cf84b018d8526ec3a | 818cb255f3f00080a7aa68282e65f4c1d0310c77 | /django_flask_samples/try-django-19-master/src/posts/models.py | 2199bb6459b2c49a295f14443e40c119e815f209 | [
"MIT"
] | permissive | pmnyc/Data_Engineering_Collections | fdca0f9a3de71f5c9855e5bbb45c574d1062077d | b7d29cd4c134cb1252e5c45dd500d969fe0f6029 | refs/heads/master | 2021-06-24T22:15:32.913229 | 2020-11-08T10:12:04 | 2020-11-08T10:12:04 | 153,053,634 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,922 | py | from __future__ import unicode_literals
from django.conf import settings
from django.core.urlresolvers import reverse
from django.db import models
from django.db.models.signals import pre_save
from django.utils import timezone
from django.utils.text import slugify
# Create your models here.
# MVC MODEL VIEW CONTROLLE... | [
"pmiori@gmail.com"
] | pmiori@gmail.com |
8b86f4a685ad52d85f4bb1ffabcb5cf186388c82 | 0a8026a21808540a31d3e5699657df744a8a0268 | /euler/euler019.py | ccd99ff4cc8d9ae8e9cdc1c5e7569a84fe6bb95d | [] | no_license | wubek/ProjectEuler | 10208dfd1b17da3408f9cb3e973a53172c88a955 | 7ce04b80136a77bfbe9c0bf4b7a6af3c560e8b19 | refs/heads/master | 2016-09-05T14:53:58.728372 | 2015-02-10T23:04:58 | 2015-02-10T23:04:58 | 23,163,013 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | # author wukat
'''
You are given the following information, but you may prefer to do some research for yourself.
1 Jan 1900 was a Monday.
Thirty days has September,
April, June and November.
All the rest have thirty-one,
Saving February alone,
Which has twenty-eight, rain or shine.
And on leap years, twenty-nine.
A le... | [
"wiktorjanu@gmail.com"
] | wiktorjanu@gmail.com |
065a9bd04669a93db0587677142de9f98bddb0f5 | 1e37b2c02b462689e7468d58cacff1167951294a | /Exam statistics dobre pratyki.py | 46b00a8c68b6281480d3af508ac0c4f388f18946 | [] | no_license | MProMikolajczyk/Python-script | 43f00706959996b1e97980adcba19d47103f4480 | 7512c8b1aac65ba6a652d81dfed301bf2fb7b830 | refs/heads/master | 2023-04-12T23:17:39.195642 | 2019-04-02T13:04:54 | 2019-04-02T13:04:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #liczenie sumy
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
def grades_sum(scores):
count=0
for grades in scores:
count+=grades
return count
print grades_sum(grades)
#liczenie sredniej za pomoca funkcji w funkcji
def grades_average(grades_input):
average=grades_sum(grades_input)/f... | [
"marekmikolajczyk87@gmail.com"
] | marekmikolajczyk87@gmail.com |
523cb48fc3b9e7896248ac276d639d62564eebd6 | 710c2f79b3327e35fce095bb7589bdb3485bb7e4 | /vam.py | ed5ec229f582fca7fe7de87bc3edc8c7ff14eb89 | [] | no_license | Tavisca-vvinod/Transportation-Problem | 7408e9713c4ad0804da9012869feb45d9139ab60 | 6040eb6a2c34e166adfc78023de99e3e860d43aa | refs/heads/master | 2022-03-08T07:12:18.807707 | 2019-11-02T20:45:58 | 2019-11-02T20:45:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,194 | py | import sys
import numpy as np
requirement=[25,35,105,20]
availability=[50,70,30,50]
cost=[[4,6,8,13],[13,11,10,8],[14,4,10,13],[9,11,13,8]]
r=4
c=4
total_requirement=0
total_availability=0
def p_cost(cost):
for i in range(r):
print(cost[i])
for i in range(0,len(requirement)):
total_requirement+=requirement[i]
fo... | [
"noreply@github.com"
] | noreply@github.com |
50b72c5c85059bdeb4f6483199c42f82c27c6a4a | baf3996414315ffb60470c40c7ad797bf4e6897f | /12_back_dev/Flask/Udemy, Flask, Advanced REST API, codes/section04/56_creating_simple_translation_lib/start/schemas/confirmation.py | a417a6761f440dc49f74e7b019c97f6112032b71 | [
"MIT"
] | permissive | thiago-allue/portfolio | 8fbbecca7ce232567aebe97c19944f444508b7f4 | 0acd8253dc7c5150fef9b2d46eead3db83ca42de | refs/heads/main | 2023-03-15T22:10:21.109707 | 2022-09-14T17:04:35 | 2022-09-14T17:04:35 | 207,919,073 | 0 | 0 | null | 2019-11-13T18:18:23 | 2019-09-11T22:40:46 | Python | UTF-8 | Python | false | false | 310 | py | from ma import ma
from models.confirmation import ConfirmationModel
class ConfirmationSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = ConfirmationModel
load_instance = True
load_only = ("user",)
dump_only = ("id", "expired_at", "confirmed")
include_fk = True
| [
"thiago.allue@yahoo.com"
] | thiago.allue@yahoo.com |
a7323c90e60c0cf20b56805548934dc7ff65e394 | e138ae16efe8fcc87491972cd38377112b56570c | /fedex_selenium_headless.py | b716e5a069c71997da9919ecdb7445a18764b9a8 | [] | no_license | Vatsalya-singhi/Web-Automation-Fedex | c9d5c9a4affddba2c33bab62ca788adabbaad856 | b41b084018f62309b5dcd2f85b2ceff419996b8e | refs/heads/master | 2021-09-10T21:16:01.850110 | 2018-04-02T09:15:33 | 2018-04-02T09:15:33 | 126,003,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,413 | py | import time,datetime,calendar
import ezodf,pandas as pd
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
from selenium... | [
"noreply@github.com"
] | noreply@github.com |
0e15d2c51b2d7c3b97dcf953ec8c6c90cb55246b | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/google/s5_getparser_20210215174545.py | 37f5cae91e71af167eb6607e6180fc9f178c3b26 | [] | no_license | preethanpa/ssoemprep | 76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f | ce37127845253c768d01aeae85e5d0d1ade64516 | refs/heads/main | 2023-03-09T00:15:55.130818 | 2021-02-20T06:54:58 | 2021-02-20T06:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,689 | py | import shutil
from fonduer.parser.preprocessors import html_doc_preprocessor
from sqlalchemy import exc
import pdftotree
import re
from sen_parser_usable import *
from config import config
import json
import os
import posixpath
import http.server
import urllib.request, urllib.parse, urllib.error
import cgi
import sh... | [
"{abhi@third-ray.com}"
] | {abhi@third-ray.com} |
975465b086d16cb27f6ba2cd45f2c3a046e8636c | 48527cb443a1d5129ddfc230feb6a66c2ffa5f92 | /virtusa/twostrings.py | 2917397d9e6f4666168bab74b5bfa1ba231dbee2 | [] | no_license | arthtyagi/dailycode | 13c557c76ccb4855bd12f17e543151addeea9523 | ec026b438a484b26b467807822e059ba019fc8b4 | refs/heads/master | 2021-07-25T19:25:01.554898 | 2021-01-04T11:12:40 | 2021-01-04T11:12:40 | 233,267,702 | 2 | 0 | null | 2020-05-18T00:21:12 | 2020-01-11T17:12:30 | Python | UTF-8 | Python | false | false | 304 | py | def twoStrings(s1, s2):
m1 = set(s1)
m2 = set(s2)
if set.intersection(m1,m2):
return "YES"
return "NO"
if __name__ == '__main__':
t = int(input())
for _ in range(t):
first = input()
second = input()
print (twoStrings(first, second))
| [
"arthtyagi7@gmail.com"
] | arthtyagi7@gmail.com |
4edafb11a5ecab33e8f8e447c50016d11e29f1aa | 223861dd0dda7a2e4c94c81171cd2d7fb4979659 | /azure/mgmt/resource/subscriptions/operations/tenants_operations.py | 24063db6f23095981c05cbf62a64edf3ba0195a1 | [] | no_license | pexip/os-python-azure-mgmt-resource | 99bc515e3ff4c1a07458fcd2de96bb48daab1eee | f09919899900adf389baf8f96ae7117ccdbd7f1a | refs/heads/master | 2023-08-28T05:02:15.070287 | 2017-02-28T22:33:49 | 2017-02-28T22:33:49 | 54,351,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,665 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# C... | [
"jmb@pexip.com"
] | jmb@pexip.com |
5a3e12e7fb539f1bbd4918c5e539c2908bb07470 | f73ca5563e8900e1fb7b9f29c94e695402ecb051 | /relationships/exposure_nomination_relationship.py | 232c1f96213d6743dffa68af4a6638cd78201862 | [] | no_license | IceBucketScience/analysis | ad5b29307da714827a7970e55328a34fa4dda295 | d08d2951e8ed0cb75b67125cf9296552cf097565 | refs/heads/master | 2021-01-20T07:47:23.730105 | 2015-05-29T06:39:54 | 2015-05-29T06:39:54 | 35,286,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | from util.graph import Graph
import pandas as pd
import statsmodels.api as sm
import numpy as np
from util.significance import test_significance
from util.plot import add_binary_jitter, get_binary_distribution, plot_binary_distribution, plot_normal_distributions
import matplotlib as mpl
import matplotlib.pyplot as plt
... | [
"brad.ross.35@gmail.com"
] | brad.ross.35@gmail.com |
1f14d36ff7919bb1e0fe13f29300a18c34b3c7df | 5e20392dc4487c75e1e3061c1416a895317ca7c2 | /navmenu/menus.py | c201e820b7ccfbfda8a750af2181a3d3001b545d | [
"MIT"
] | permissive | rashidsh/navmenu | 7072f3cee55469ccbe7f79eb5ce81c86a3aab4bb | ec67b820462cc102417e214cd74eb7b1b97ad1f1 | refs/heads/master | 2023-08-18T02:20:26.021801 | 2021-10-03T16:56:54 | 2021-10-03T16:56:54 | 366,816,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,112 | py | import collections.abc
from abc import ABC, abstractmethod
from typing import Iterator, Optional, Sequence
from .actions import Action
from .contents import BaseContent
from .items import BaseItem
from .responses import Message
from .keyboard import KeyboardButton, Keyboard
class BaseMenu(ABC):
"""A generic menu... | [
"42511322+rashidsh@users.noreply.github.com"
] | 42511322+rashidsh@users.noreply.github.com |
6c292a191edbad614fba3c6a8a5e4449118a6ce3 | 07e23e5fc0abbbf6aa19162545321562a0fd056a | /Basic Python/Basic_python/27_assert.py | bf30490f715333860c35512278a1cd02c27543d7 | [] | no_license | Meet57/programming | 12ed9f1da93b5aa09bd5eb7f03437b39ce6aabcc | 65ee6468e592bacec13aa6eb381666350c24500a | refs/heads/master | 2021-06-15T11:29:37.530931 | 2021-05-29T21:18:21 | 2021-05-29T21:18:21 | 195,511,057 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # Python 3 code to demonstrate
# working of assert
# initializing number
a = 4
b = 0
# using assert to check for 0
print ("The value of a / b is : ")
assert b != 0, "Divide by 0 error"
print (a / b)
| [
"45942161+Meet57@users.noreply.github.com"
] | 45942161+Meet57@users.noreply.github.com |
c3a326c658642bc0f0f992e7f5184c0e1f41e2dc | 6cbfa2d9fc719ce73c2fff6696569170cf6a2cfe | /mp2/node_modules/bcrypt/build-tmp-napi-v3/config.gypi | 033aefdb875e6d80a76ef216f13860a8f8e427ba | [
"MIT"
] | permissive | unisse-courses/s14-mp15 | a68ea1f3936e6521d5e196df3e3847cd4a1664c2 | 9d92e78b8c266f1920b6ae0cacb16660973e4796 | refs/heads/master | 2022-12-26T01:03:54.074100 | 2021-03-19T12:21:27 | 2021-03-19T12:21:27 | 242,083,885 | 0 | 0 | null | 2022-12-07T13:45:32 | 2020-02-21T07:53:07 | CSS | UTF-8 | Python | false | false | 6,469 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": [],
"msbuild_toolset": "v141",
"msvs_windows_target_platform_version": "10.0.17763.0"
},
"variables"... | [
"marius_laggui@dlsu.edu.ph"
] | marius_laggui@dlsu.edu.ph |
50f43bb978b74c849a33e544f6af9ebca0ac7070 | c43109f27fc0432b8592f76106f9b9cfd971bf19 | /game_functions.py | b93cb7251469b05db38a349da3ea3cf2ecb464ba | [] | no_license | Stark-Xue/alien_invasion | ca6d8cb76ac47a24d5482613fad7970347af0014 | 80e42448f613b98f9ac6de5687119beab8ad7d2e | refs/heads/master | 2020-07-17T18:08:26.927976 | 2019-09-08T09:21:35 | 2019-09-08T09:21:35 | 206,065,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,160 | py | import sys
import pygame
from time import sleep
from Bullet import Bullet
from alien import Alien
def check_keydown_events(event, ai_settings, screen, ship, bullets):
if event.key == pygame.K_RIGHT:
#向右移动飞船
ship.moving_right = True
elif event.key == pygame.K_LEFT:
ship.moving_left = True
elif event.key == py... | [
"1539980567@qq.com"
] | 1539980567@qq.com |
2350975098b4d2adf5f678bb5e030ce99685ae81 | 2b55b0b4b153e1235cef267bc4f68040ced69398 | /node_modules/uws/build/config.gypi | e49284cf7390d90c9daf9573fec4b4dd50558f8e | [
"Zlib"
] | permissive | mfps/chatApp | 25107be7d6810973e63683ab10e2c0b1c2f8f36e | 6b0701e7ef58abaa1f3ee60b421fc1590dcbf07b | refs/heads/master | 2021-05-07T00:25:49.245260 | 2017-11-09T15:09:43 | 2017-11-09T15:09:43 | 110,129,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"f.s.wille@gmail.com"
] | f.s.wille@gmail.com |
d22cbea1818d3165db14b5717ba1432b0f7a2fda | 4059573793d0ee5b74c9dd919aa2945dad2fe426 | /Practise_stacks_queues/animal_shelter.py | 4bcc4ed0250752698c46cbac64b5eac41e6d2528 | [] | no_license | nayanika2304/DataStructuresPractice | 04ea6d9248a63983abdd2b983632ba5907eed9d4 | f3c815ff113ce3977cc743360b77fb21c9f9b383 | refs/heads/master | 2022-12-08T05:28:22.897414 | 2020-08-29T18:17:57 | 2020-08-29T18:17:57 | 282,513,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | '''
An animal shelter, which holds only dogs and cats, operates on a strictly"first in, first
out" basis. People must adopt either the "oldest" (based on arrival time) of all animals at the shelter,
or they can select whether they would prefer a dog or a cat (and will receive the oldest animal of
that type). They canno... | [
"nayanikabhargava1993@gmail.com"
] | nayanikabhargava1993@gmail.com |
199ddbd7a5a1fd27e5f784db9d5a6bfdb6c25fe0 | 2086a897538311fe25acfec950e68a447d12cb24 | /Elementary/secret_message.py | 538a8d0ddbdbf291db1aaaf4fdbee78c49bd3f5a | [] | no_license | ahrechanychenko/checkio | a9d1e154c7cd86bcad689cfabf2adc7f689d3f40 | fbbe7f6681bfa420d90a6b117f427c1adcdc6bd8 | refs/heads/master | 2021-10-16T00:19:43.413789 | 2015-10-15T18:31:06 | 2015-10-15T18:31:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | __author__ = 'levor23'
def find_message(text):
return ''.join([x for x in text if x.isupper()])
if __name__ == '__main__':
# These "asserts" using only for self-checking
# and not necessary for auto-testing
assert find_message(u"How are you? "
u"Eh, ok. Low or Lower? Ohhh.") =... | [
"levor23_git@mail.ru"
] | levor23_git@mail.ru |
dec31f9189b180e0f74278eb02c491a584c5b4c6 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/openscenegraph/all/conanfile.py | 5d6b6d3a14882b9a8393542db25bcd7838642b33 | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 22,040 | py | from conan import ConanFile
from conan.tools.files import get, rmdir, rm, apply_conandata_patches
from conan.tools.build import cross_building
from conan.tools.scm import Version
from conan.tools.apple import is_apple_os
from conan.errors import ConanInvalidConfiguration
from conans import CMake
import os
import functo... | [
"noreply@github.com"
] | noreply@github.com |
d4637ca674ee9122988a540c520dfb1108b8baeb | 7473827589ddfc0e2ad8ccf19029f5666fedffc4 | /Lab8.py | 9a6a955c7e73ef4048a52b699a7d3274b81ffc28 | [
"MIT"
] | permissive | aft0903/IA241 | 475cea78a24294bf32a2b433bd7775e1de7d6415 | c8927706cc9eed40dcaa37f51c5ac6a3994c9334 | refs/heads/main | 2023-04-19T09:06:27.789028 | 2021-05-06T04:19:31 | 2021-05-06T04:19:31 | 331,729,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | #Aileen Towner
#IA 241
#Lab 8
#3.1
def count_words (input_str):
return len(input_str.split())
# TEST: print(count_words('a string'))
#3.2
demo_str = 'hello world'
print(count_words(demo_str))
#3.3
def min_num (num_list): #function
min_item = num_list[0] #define variables
for num i... | [
"ec2-user@ip-172-31-29-152.ec2.internal"
] | ec2-user@ip-172-31-29-152.ec2.internal |
a18cbd39063799664162c48d9bf060db4e12c07f | cafefb0b182567e5cabe22c44578bb712385e9f5 | /lib/gcloud/bigtable/row.py | cb9ce2e67e3dd9f880a237df21a5ef52625a64e6 | [
"BSD-3-Clause"
] | permissive | gtaylor/evennia-game-index | fe0088e97087c0aaa0c319084e28b2c992c2c00b | b47f27f4dff2a0c32991cee605d95911946ca9a5 | refs/heads/master | 2022-11-25T20:28:23.707056 | 2022-11-07T17:47:25 | 2022-11-07T17:47:25 | 55,206,601 | 2 | 2 | BSD-3-Clause | 2018-04-19T05:41:12 | 2016-04-01T05:40:15 | Python | UTF-8 | Python | false | false | 34,378 | py | # Copyright 2015 Google Inc. 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 applicable law or a... | [
"snagglepants@gmail.com"
] | snagglepants@gmail.com |
15c810e41d2e35212936b8338a7b64880501a161 | 65686dde7560955b2b30011304df350bfb2c7674 | /publishconf.py | 9800b4c9633b7964bd468cd94f69b25655eacf16 | [
"MIT"
] | permissive | BenDoan/Ben-Doan-Portfolio | 35bde70d1b4209d80058e5cdc67f8a09dbfc7311 | 38e9fd503907deea4d3a2dcc036a72057474af02 | refs/heads/master | 2016-09-01T07:37:21.607951 | 2014-02-19T04:40:47 | 2014-02-19T04:40:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
import sys
sys.path.append('.')
from pelicanconf import *
SITEURL = 'http://www.bendoan.me'
DELETE_OUTPUT_DIRECTORY = True
# Following items are often useful when publishing
# Uncomment following line for absolute URLs in production:
#RELATIVE_URLS = False
#DISQUS_S... | [
"ben@simcaster.net"
] | ben@simcaster.net |
20308af37baed98882205bef8b536668b1c942b4 | 0edd5fc4975c112c010267ba235350d8e57e696b | /10_mongo/mongo.py | b069bb37efd5b9ffc1288ad8a35c8cd778d1289a | [] | no_license | hliu01/Softdev2019 | 33963111f502197a25bf300c066b3968e361e473 | 766d89a19cc679a68f6ff23ded7728abecbdc674 | refs/heads/master | 2022-12-10T07:00:21.025185 | 2020-04-21T12:11:16 | 2020-04-21T12:11:16 | 207,879,805 | 0 | 2 | null | 2022-12-08T07:25:08 | 2019-09-11T18:28:06 | HTML | UTF-8 | Python | false | false | 2,807 | py | #Peihua Huang, Henry Liu (Team Computers)
#SoftDev1 pd1
#K10 -- Import/Export Bank
#2020-02-28
# Name of Dataset: Current US Senators
# Description: The dataset contains basic information on all the current US Senators
# Hyperlink: https://www.govtrack.us/api/v2/role?current=true&role_type=senator
# Brief Summary: We ... | [
"hliu01@stuy.edu"
] | hliu01@stuy.edu |
287049a01cdc9d370dabf60d5f00c362488fd3f5 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/server_commands/crafting_commands.py | bda36e7403b1b53df74c775823d29c97068e6327 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,637 | py | from carry.carry_postures import CarryingObject
from crafting import recipe
from crafting.crafting_interactions import create_craftable
from crafting.crafting_process import CRAFTING_QUALITY_LIABILITY
from crafting.recipe import Recipe
from server_commands.argument_helpers import OptionalTargetParam, get_optional_targe... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
d640bf3aac532615b91484e1cd51ded14014ffbe | 17f1811abda6c828460b77f460671f9c2f464204 | /30DaysLC/min_stack.py | a81298fa266de49863efd9b54f793c1d53e3772a | [] | no_license | rishabhranawat/challenge | f10f69fc30881a0571c4321b466a89aeeb06e568 | e836343be5185f8843bb77197fccff250e9a77e3 | refs/heads/master | 2021-01-21T15:13:47.590675 | 2020-04-25T15:26:42 | 2020-04-25T15:26:42 | 91,833,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | class MinStack(object):
def __init__(self):
"""
initialize your data structure here.
"""
self.data = []
self.size = 0
def push(self, x):
"""
:type x: int
:rtype: None
"""
self.data.append(x)
self.size += 1
def pop(self):
"""
:rtype: None
"""
self.size -= 1
return self.data.po... | [
"rishabhranawat12345@gmail.com"
] | rishabhranawat12345@gmail.com |
b8d525e33f60b7ccc184e2c1f10ad0dfe3ea2c1d | 47ef11c80f1147940d5bd17d03bdf54a0cfb8648 | /rundoozer/setup.py | 0ed0a4580f83c3783ab85e48eb1022653514e4fc | [
"Apache-2.0"
] | permissive | jupierce/doozer | 71b5f686437c802e775f3137e7b494fed1d756b8 | 564ad02f01ebdb55ed176c07e36986a8b0262857 | refs/heads/master | 2023-08-27T08:17:42.634261 | 2019-10-17T14:57:09 | 2019-10-17T14:57:09 | 215,615,398 | 0 | 0 | Apache-2.0 | 2019-10-16T18:19:40 | 2019-10-16T18:19:40 | null | UTF-8 | Python | false | false | 714 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
def _get_version():
from os.path import abspath, dirname, join
filename = join(dirname(abspath(__file__)), '../doozerlib', 'VERSION')
return open(filename).read().strip()
setup(
name="rundoozer",
author="AOS ART Team",
... | [
"adammhaile@gmail.com"
] | adammhaile@gmail.com |
5cb34e4746ad5de4d2bb25315c334f9b429ceef2 | da4e01fd4e15e835a2cef4a3b9dee9ef582f1333 | /mosquitto_byte.py | 5b9f856d2dc02827d1f7a122e6a548c17dea4c1b | [
"Apache-2.0"
] | permissive | PBearson/MosquittoByte | f7a4708ce9f0c17c46cab925fce62003d0b892b3 | f93684dc660382db91a6f9dd781fe65d0b902957 | refs/heads/master | 2023-07-07T14:26:42.882500 | 2021-04-24T22:06:15 | 2021-04-24T22:06:15 | 342,062,663 | 1 | 0 | null | 2021-04-07T16:17:19 | 2021-02-24T23:18:27 | Python | UTF-8 | Python | false | false | 32,446 | py | import socket
import random
import time
import sys
import argparse
import math
import os
import os.path
import select
import subprocess
import difflib
import threading
from os import path
from datetime import datetime
from difflib import SequenceMatcher
# Remove bytes in a string
# f : the fuzzable object
# nb : the ... | [
"peabryan95@gmail.com"
] | peabryan95@gmail.com |
9f0c67b333e7ed2b34add130f79369733d59c295 | 7dea1f39db25ba8f9899bd9bf23899442cdfd2fd | /course10/newDaysBetweenDates.py | 7b61793ffab6ae9339040ba533249f38c6dfbffe | [] | no_license | skyhack1212/Udacity_cs101 | 5b3b1e899d7b7caf6792fc3a7f7c676003465cfa | a3fa82c11a3a53ccf13fa61da83099a3eab50a5f | refs/heads/master | 2021-01-02T22:56:34.014802 | 2019-01-08T12:10:08 | 2019-01-08T12:10:08 | 99,428,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | # Credit goes to Websten from forums
#
# Use Dave's suggestions to finish your daysBetweenDates
# procedure. It will need to take into account leap years
# in addition to the correct number of days in each month.
def isLeapYear(year):
if(year % 4 == 0 and year % 100 != 0) or (year % 400 == 0):
return True
... | [
"mac@MACtekiMacBook-Pro.local"
] | mac@MACtekiMacBook-Pro.local |
25c9c41636dbbcb4310599cacbafa9f03bc91f59 | 75cdf50bd85457d6a87dd4f82f59713627e6868c | /{{cookiecutter.project_slug}}/tasks/common.py | 449babb447d97ec7eff3e2b721ec4c19df8eb0e9 | [
"GPL-1.0-or-later",
"LGPL-2.1-or-later",
"ISC",
"BSD-3-Clause",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"LGPL-2.0-or-later",
"GPL-3.0-only",
"MIT"
] | permissive | RainrainWu/cookiecutter-python-template | 1d17c553cecac1514aee3858db8ac6d11c0a2769 | 5e4d4e8f8310a48117aab624f7cd3448d468c16d | refs/heads/master | 2023-02-26T06:37:23.843159 | 2021-02-10T13:49:35 | 2021-02-10T13:49:35 | 332,129,150 | 0 | 0 | MIT | 2021-01-23T04:51:54 | 2021-01-23T04:44:09 | null | UTF-8 | Python | false | false | 179 | py | VENV_PREFIX = "{{ cookiecutter.dependency_management_tool }} run"
_COMMON_TARGETS = ["{{ cookiecutter.project_slug }}", "tests"]
COMMON_TARGETS_AS_STR = " ".join(_COMMON_TARGETS)
| [
"weilee.rx@gmail.com"
] | weilee.rx@gmail.com |
e2fb15687a2fb4606ef1097d0bad75b43d927800 | c21bc0402cd6c5e337fcb72b3de65ff868c89127 | /BagOfWords/util.py | eae9474dd3dc34c5710446689ae2efbdcda80660 | [] | no_license | snayak04/SentimentAnalysis | cb4f1a45fc3f80fbe1e00807cad991281bb59988 | d9653ad67cdf502dff28f04e70436937371d9177 | refs/heads/master | 2020-04-03T21:55:08.609373 | 2018-11-22T02:22:52 | 2018-11-22T02:22:52 | 155,587,013 | 0 | 0 | null | 2018-10-31T16:11:24 | 2018-10-31T16:11:23 | null | UTF-8 | Python | false | false | 2,055 | py | import string
from nltk.corpus import stopwords
from string import punctuation
from os import listdir
from collections import Counter
### Preprocessing Methods ###
#Open file in read-only and extract content into variable 'content'
def loadFile(filename):
openFile = open(filename, 'r')
content = openFile.read... | [
"snayak04"
] | snayak04 |
c00582835f9a6cc3ab53d75912e263e4440fa610 | 68b562a4450190133575ef6f6f1dbea799c8446f | /python/CHP_model_Casadi_v49.py | 99e0a8cfe019ecb73c84b9c7581f5a2c0cf6be9d | [] | no_license | doanminhdang/chp_scheduling | ca356f8618ecde55b2b3ae34d4be305bb2244791 | 7dd0bd20f17d33b5059c819b8a9c5f56d3184912 | refs/heads/master | 2022-01-05T23:58:41.721515 | 2019-07-15T15:00:31 | 2019-07-15T15:00:31 | 110,808,675 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,707 | py |
# coding: utf-8
# In[1]:
import pylab as pl
import casadi as ca
import numpy as np
print(ca.__version__)
# In[2]:
pl.close("all")
# Parameters for experiments
## Duration and time points
hours = 24
controls_actions_per_hour = 4
t0 = 0.0;
tf = hours * 3600.0;
N = hours * controls_actions_per_hour;
time_points... | [
"minhdang@linux.com"
] | minhdang@linux.com |
6e4673accf9050042c9ffb31cffdb043d7572107 | 4e3a2a1053866ff1b3bfd5dc1a36291672d218dc | /0x05-python-exceptions/0-safe_print_list.py | 0d196d4f1229af316330cc273c0c3c422d10427d | [] | no_license | RicardoBarretoR/holbertonschool-higher_level_programming | ec423d147e7e2632fefff7e433118cf588bd43dd | 61103213102132a9764b72b4160df3fd71cce95c | refs/heads/master | 2022-12-31T10:14:01.551769 | 2020-09-25T11:58:08 | 2020-09-25T11:58:08 | 259,455,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | #!/usr/bin/python3
def safe_print_list(my_list=[], x=0):
"""prints x elements of a list"""
i = 0
try:
for i in range(x):
print(my_list[i], end="")
i += 1
print()
except IndexError:
print()
return i
| [
"richardbarrodriguez@hotmail.com"
] | richardbarrodriguez@hotmail.com |
f28cefecd13bee7dd27faed4152428c0820398b0 | 5575ac1139172a6176c7b15542bb4d916548a0f3 | /appFinal/migrations/0001_initial.py | 5470f7b2dc77fabd6c1332bdbd2d2c48ddd071e4 | [] | no_license | vordonez74/projectFinal | 7a6b5634641a7e41887c7156d8fdfd6dd949064a | 1447c1cfc6e26d93ab7bdfc398d740fe1c47754a | refs/heads/master | 2023-06-16T10:56:55.328709 | 2021-07-08T01:51:01 | 2021-07-08T01:51:01 | 383,969,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | # Generated by Django 3.2.5 on 2021-07-07 19:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Carrito',
fields=[
... | [
"vordonez74@gmail.com"
] | vordonez74@gmail.com |
adceee9749b6eb09e03688c50cda464468776591 | b65ce61b6c87ce877f24eef2e03883011a37d682 | /src/models.py | 678a367c74dfc27a7d15b92db55c7ca5baffcba1 | [
"MIT"
] | permissive | yiyg510/DSNR | 17d0ffd364a3abc40f03f4d8bb0be61dbdfa07c1 | c352e561b9caebe11a6faccb7877176bc43a7e3f | refs/heads/master | 2022-12-05T03:04:51.258751 | 2020-08-20T08:45:22 | 2020-08-20T08:45:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,008 | py | import tensorflow as tf
import numpy as np
from tensorflow.contrib.rnn import LSTMCell, LSTMStateTuple
from tensorflow.python.ops.rnn import bidirectional_dynamic_rnn as bi_rnn
import networkx as nx
class STNE(object):
############
def encoder(self,X,layers):
for i in range(layers - 1):
na... | [
"luoxx19@foxmail.com"
] | luoxx19@foxmail.com |
bd15d3f0a4cbeb2de64c1293f83467585556f5bd | 854082acbfb37f089894820ccdc722159db1503e | /pra/texwrap_fill.py | dc74e98ebd8709d92f4dd5f275a2eec1290acaa1 | [] | no_license | weekenlee/pythoncode | f9ddaada6c75e152a0be910600bb2dd27c539438 | de8f882c612947ca69f1c9ca8aa5159799ff3a56 | refs/heads/master | 2021-06-29T17:58:16.813382 | 2020-09-15T14:32:02 | 2020-09-15T14:32:02 | 139,693,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | #-*- coding:utf-8 -*-
import textwrap
sample_text = u'''helloworld hel 你好 lodjfjafhasdhfhsd;fja;ljsdflajdflajsdklfja;lsjflk;ajdfl;jkal;dfjl;jdadflk;kjakfdljajfk;ajflakjf;ajkfajfa;jfkdsjfskajf;ajdfj;akfj
'''
print(textwrap.fill(sample_text, 18))
print(textwrap.dedent(sample_text))
| [
"lwj1396@163.com"
] | lwj1396@163.com |
23f642792dce9f9470a6cbd1725e8f3806b79997 | 63a0da0d4b8a607fcf761566dc57c755b6757f6d | /counting_sort.py | 3784de74c6384131068576f87d08bf1cf9ba31be | [] | no_license | sharvani198/alg-lang | 3d28d1482c930ece1de993113b82881086a1e8e7 | 803fafe97b0ea780e14a749e1bdda496b051fd24 | refs/heads/master | 2021-09-01T10:42:59.132309 | 2017-12-26T15:11:54 | 2017-12-26T15:11:54 | 115,417,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | def counting_sort(a, k):
c = [0]*(k+1)
b = [0]*(len(a)+1)
for i in range(0, len(a)):
c[a[i]] = c[a[i]]+1
for i in range(1,k+1):
c[i]=c[i]+c[i-1]
for i in range(len(a)-1,-1,-1):
b[c[a[i]]] = a[i]
c[a[i]]-=1
return b[1:]
# arr = [2, 5, 3, 0, 2, 3, 0, 3]
# brr = counting_sort(arr, 5)
# print brr | [
"sharvani198@gmail.com"
] | sharvani198@gmail.com |
addaa3a239c37f452e9fe35c962b89e5bc2b4099 | bc0d2a64097bffbd1b718e0b6620206068620efe | /Design_Patterns/Creational/Singleton/Singleton.py | f1350ba8456b6a648f65ad09d5cf8ce2489dff8f | [] | no_license | lonesloane/Python-Snippets | 8ab7e502d8df33f07d4a46a9e3f57a1053325690 | bc596d7be03c97782036ce8199aaf97dfc8bf0e2 | refs/heads/master | 2021-01-10T08:13:43.723208 | 2019-09-14T09:56:45 | 2019-09-14T09:56:45 | 49,678,474 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | class Singleton:
__instance = None
def __new__(cls, val=None):
if Singleton.__instance is None:
Singleton.__instance = object.__new__(cls)
Singleton.__instance.val = val
return Singleton.__instance
# === Usage ===
x = Singleton()
x.val = 'burger'
print('x val: %s ' % x.va... | [
"Nyarlatothep72"
] | Nyarlatothep72 |
840b8e9a17f3feac6bbf5fba76255e63dbd08862 | 0a14f1ede647d819b23fd7aecde054d5724342e6 | /Whiteboard/longest_increasing.py | a64d153963c0c690981fd6475189dbc08a9bdc21 | [] | no_license | jenihuang/Coding_problems | f1982dc3461cefe4ae2d1720cc84fcbb4c191815 | 136f685466911971c42604e11146ec55a8313371 | refs/heads/master | 2020-04-28T18:51:10.814217 | 2019-03-23T04:13:44 | 2019-03-23T04:13:44 | 175,491,775 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | import unittest
def longest_inc(nums):
biggest = 0
count = 1
for i in range(len(nums) - 1):
if nums[i + 1] > nums[i]:
count += 1
else:
if count > biggest:
biggest = count
count = 1
if count > biggest:
biggest = count
re... | [
"jenicahuang@us-sullal2.localdomain"
] | jenicahuang@us-sullal2.localdomain |
483255496643c01322415690e91adaeb614d1348 | 81e0867d2bdf9b1ea4c59d420a7ac8b563161a9e | /POO/exercises/tv_mini_project/main.py | 8491cbee14c7bf910b578ed9cbb5e215e4b62f44 | [] | no_license | Jeremias333/python_startlatam | 0e7313578d5370a24ecf2ff71b742161f3488cb3 | 922a775d0bff5cb3b24a7e9a3ae0c8d8af5f0e90 | refs/heads/master | 2022-11-27T19:31:43.278467 | 2020-08-04T14:01:54 | 2020-08-04T14:01:54 | 271,123,557 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | from tv_model import TV
import os
def main():
os.system('cls' if os.name == 'nt' else 'clear')
#criação do objeto tv
list_volume = list()
list_channel = list()
list_volume.append(1)
list_volume.append(10)
list_channel.append(2)
list_channel.append(13)
tv = TV(list_channel, list_v... | [
"jeremiasprogrammer@gmail.com"
] | jeremiasprogrammer@gmail.com |
fe1e009d1cdaca2b9e6bebb73913ca819e8eb8c3 | c1551488f58893d38221c692208ee07af7d30d09 | /blaze/evaluator/simulator/request_queue.py | d9689d414f32124170f3e7441d1821917ac27b91 | [
"MIT"
] | permissive | muralisr/blaze | 3df2a73fea7eb9834a9689e21352504c83a7de5b | e0d183af441cfe63ba1346cd0d6d8ac76ff494ca | refs/heads/master | 2020-09-12T18:58:16.498218 | 2020-04-10T06:16:50 | 2020-04-10T06:16:50 | 215,646,920 | 0 | 0 | MIT | 2019-10-16T21:22:07 | 2019-10-16T21:22:06 | null | UTF-8 | Python | false | false | 9,496 | py | """
This module defines some helper classes as data structures for the Simulator and RequestQueue.
It also defines the RequestQueue, which simulates the network link.
"""
import copy
from collections import defaultdict
from typing import DefaultDict, Dict, List, NamedTuple, Optional, Set, Tuple
from blaze.config.envi... | [
"noreply@github.com"
] | noreply@github.com |
66278b5a3570a1dcb7de95a66ba33ae891c66cd1 | 674fadca516b1711294030d002ffde00053a84cf | /Flash/losses/losses.py | ccd9f60c0e045b33acbb87f180c9a16de80d1fe2 | [] | no_license | parth1620/Flash-trainer | 9b9bb616d61ce5452e67ee7f0b0b2f0494bab1da | 5ea43128b71c56c8e9ea850d950bf76ecc743697 | refs/heads/master | 2023-08-05T23:48:38.347116 | 2021-10-11T14:33:05 | 2021-10-11T14:33:05 | 415,963,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | import torch
from torch import nn
import torch.nn.functional as F
from torch.autograd import Variable
'''
no losses are present at this moment.
'''
class LabelSmoothingForBCE(nn.Module):
def __init__(self, smoothing = 0.09):
super(LabelSmoothingForBCE, self).__init__()
self.smoothing = smooth... | [
"pdhameliya3333@gmail.com"
] | pdhameliya3333@gmail.com |
a7e5f8c54d4ceab61f36ff05c961d5ff8c49e137 | 94ca446c0f17d640f45941fa7c83530ef2fbc099 | /wrs-remote-clients-2.0.2/python-openstackclient-3.12.0/openstackclient/compute/v2/service.py | b5b9bd5e1e2ca06a11fa24ccba389fd67680455a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rmoorewrs/tic-windows-remote-clients | c1c2b8924e90ffd2951571bc098ec9873ffd3988 | ae16ee78a720852304d79f8b86dfe44e920cc72d | refs/heads/master | 2023-05-25T13:55:55.603100 | 2019-05-31T20:59:28 | 2019-05-31T20:59:28 | 189,649,925 | 0 | 0 | NOASSERTION | 2023-05-22T20:43:59 | 2019-05-31T19:46:28 | Python | UTF-8 | Python | false | false | 6,968 | py | # Copyright 2012-2013 OpenStack Foundation
#
# 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 la... | [
"rmoorewrs@gmail.com"
] | rmoorewrs@gmail.com |
228acccc4ecfe1b296b5b1504076f808619c76aa | ffc2aec4424ecba3963d7f8b56333796b2a7c07e | /plugins/youtube.py | 1e12164a8b9b5fbe3474b1cc64e807892e4dde26 | [] | no_license | adrian17/inzbot | c73d4635cdf0231d5bcabfeff7fe38fec33c479d | 47981450bbc4af83bcc2f9178fdbcf8e1df09a17 | refs/heads/master | 2021-01-18T16:35:55.582410 | 2018-02-15T18:47:09 | 2018-03-09T22:33:49 | 29,621,285 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | from plugin_base import *
import logging
import isodate
import requests
def color(message):
return "\x033" + message + "\x03 "
class YoutubePlugin(Plugin):
"""Prints data about a YouTube video from its link."""
@on_pubmsg
@priority(80)
@pattern(R"youtube\.com\/watch\?v=(?P<id>[-\w]+)")
@pat... | [
"adrian.wielgosik@gmail.com"
] | adrian.wielgosik@gmail.com |
1dfa5e81c5286303ec01df6f942e3e040df4ca14 | 64d16fbfaa6061add61ba82ec7428fde79ce07cb | /devel/lib/python2.7/dist-packages/uuv_control_msgs/srv/_AddWaypoint.py | ad3a65813b860a4bba63d8ceafee242a1e77b06d | [] | no_license | bnb15/clearpath_ros | 519da6013eff041896695416a5411b1ba07b1532 | 2ec03826bf44e17def364784636838a1b3fc64fe | refs/heads/master | 2020-05-31T21:35:26.359260 | 2019-06-06T02:15:56 | 2019-06-06T02:15:56 | 190,498,514 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,688 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from uuv_control_msgs/AddWaypointRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import uuv_control_msgs.msg
import std_msgs.msg
class Ad... | [
"bnb15@my.fsu.edu"
] | bnb15@my.fsu.edu |
16a7313728d0e9233eb8ec1d62cdc8ee92db5597 | 6df57f3e07b40d02cf908959582457525c49e26d | /05 Variables/variables-numbers.py | ec71636db49962963ef3861673b366ec2de65466 | [] | no_license | Megamala/Learning-Python | 9763caaf35a04ea0bd7643fe876e262294ae765a | c144682e3b4ce96fcd252b6cce4b3e73b480e04b | refs/heads/master | 2021-01-17T10:33:12.933470 | 2016-06-13T17:49:59 | 2016-06-13T17:49:59 | 59,484,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | #! C:\Python31\python
def main():
num = round(42 / 9, 2), 42 % 9, float(42)
print(type(num), num)
if __name__ == "__main__":
main()
| [
"jacobrwilson@yahoo.com"
] | jacobrwilson@yahoo.com |
15b3b8fe1ccf80c4f1bb2fce47f283106b2b63c5 | 665b63dee0016b3f219b26e0f6e3dd860c0977a6 | /humset/utils/shdi.py | a3f658fd93031b189123bbe2bf4bffa9085bab71 | [] | no_license | ChristopherAbram/ResearchProjectAutumn2020 | 517d3a15c160b366882ac7304c5e3ed279c9051d | 4a954f774c24819e8fac0f8e32db457b22b59767 | refs/heads/master | 2023-01-30T16:46:44.029289 | 2020-12-12T00:48:19 | 2020-12-12T00:48:19 | 299,929,694 | 0 | 0 | null | 2020-11-25T16:22:33 | 2020-09-30T13:33:45 | Jupyter Notebook | UTF-8 | Python | false | false | 572 | py | import os
import numpy as np
import pandas as pd
from humset.utils.definitions import get_project_path
def get_shdi(country_iso_code='NGA'):
hdi_path = os.path.join(get_project_path(), 'data', 'shdi', 'SHDI Complete 4.0 (1).csv')
data = pd.read_csv(hdi_path, usecols=['iso_code', 'year', 'level', 'GDLCODE', '... | [
"krza@itu.dk"
] | krza@itu.dk |
8ebe30c87198cca38f7fa30971095fcd5e45d5d4 | fed9ad8ad28bab27a3d4fa579c5a6bf0c2b8171e | /ml_hw2/perceptron_a.py | 2ec33519b7a38f3efc12557e2dbab3d06d2e3da1 | [] | no_license | egall/Machine_Learning | 650bccd24b8ac32e07adfef5ae612d0112572603 | 616c1b150e63092aa5cba5eb931bb797096cae54 | refs/heads/master | 2021-01-19T10:26:11.157550 | 2014-11-27T02:46:59 | 2014-11-27T02:46:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | #!/usr/bin/python
import random
import numpy as np
def preceptron_algo():
my_inst_array = generate_instances_list()
w_array = [0,0,0,0,0,0,0,0,0,0,0]
y = 0
x = 0
b = 0
mistakes = 0
for i in range(0,500):
my_inst = my_inst_array[i]
y = my_inst[0]
a = np.dot(w_array, ... | [
"esteggal@ucsc.edu"
] | esteggal@ucsc.edu |
356b4e875d79d72486affcd76b9f87afeceeec89 | 2bc23edccbc37963830b1520c7124249d14d468b | /PrimaryPositionCorrection.py | a0ee6a247ba93f6c0264bd02ddcebd03b68fe221 | [
"MIT"
] | permissive | andregtorres/ISTTOK | a856351736d6b174c2eda4f5d9f7486c5bbf8c72 | 56c8c7d46ed3a473d0e5e26963197fa19e661f18 | refs/heads/master | 2021-08-02T06:07:54.821919 | 2021-07-21T20:12:45 | 2021-07-21T20:12:45 | 142,753,763 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,673 | py | #Andre Torres 5-11-2018
#run in terminal as root
#computes the 'real' position of the primary field coils
from field import *
from getMirnov import *
from scipy.constants import mu_0
import keyboard
#SDAS
shotP=44501
#Coil signals
prim, times, tbs = getSignal(ch_prim, shotP)
#mirnov signals
times, dataP = getMirnovs(sh... | [
"andregtorres@gmail.com"
] | andregtorres@gmail.com |
6c46a926d9225e406176b89f40a567506cb3720f | a6764755670483fd938c290cd4178669ee703585 | /toolkit/vector2d.py | c7523a76a8e557c0558b07f877ffc2639ac4fce3 | [] | no_license | PumpkinJimmy/pygamepp | 27b1a54100ac0703532cfa0ef80a2207ae6d3f1f | d30c729c797c4d18ee50b340363772493d4cf272 | refs/heads/master | 2021-01-20T10:24:27.425173 | 2017-09-09T00:16:28 | 2017-09-09T00:16:28 | 101,634,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,379 | py | ################## http://www.pygame.org/wiki/2DVectorClass ##################
import operator
import math
class Vec2d(object):
"""2d vector class, supports vector and scalar operators,
and also provides a bunch of high level functions
"""
__slots__ = ['x', 'y']
def __init__(self, x_or_pair... | [
"996344439@qq.com"
] | 996344439@qq.com |
dac0fb04c810b23f6daa4d74eb866acd12e58597 | 6fec54ad58eb2ca49c0efb5af17c39729de1077e | /i2c_motorcontrol.py | 2432e777072ad606d2d1c40367958732e415a447 | [] | no_license | yongkingdom/sanitizationondemandrobot_with_deliverysecured | 8c543c3a3dbf51d5c7f6671792c5f842452a6c2e | 95bcc9cd4367add8bd892aeb1d5e21c22fe42414 | refs/heads/master | 2023-04-26T05:00:16.833427 | 2021-06-05T13:15:12 | 2021-06-05T13:15:12 | 277,834,628 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | from smbus2 import SMBus
import time
address = 0x0A
read_on = 1
read_off = 0
write_reg = 0 # 0 = i2c writing is disable for motor control
# 1 = i2c writing is enable for motor control
# 2 = rf is disable for motor control
# 3 = rf is enable for motor control
... | [
"noreply@github.com"
] | noreply@github.com |
415ddf32d382ad1784dd763a346699f3e9498114 | fa63ea75ac7e25a424aee501c955ffce18b030b5 | /tests/basics/class_instance_override.py | 1ebd61d062f0acca4a70464b1ce79ac18242394a | [
"MIT"
] | permissive | HangCoder/micropython-simulator | ee72145b55c21ebc20c5ca38a95e9df26871e29a | 7fb13eeef4a85f21cae36f1d502bcc53880e1815 | refs/heads/master | 2022-02-17T22:59:59.079722 | 2019-09-09T12:19:38 | 2019-09-09T12:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | # test that we can override a class method with an instance method
class A:
def foo(self):
return 1
a = A()
print(a.foo())
a.foo = lambda:2
print(a.foo())
print("PASS") | [
"george.wort@arm.com"
] | george.wort@arm.com |
348c0d76e8311e454ffeb8f380f781cdd3e04f9e | ab60b97b72d596c0833d8b1c424a69737e768813 | /general/forms.py | 4c619967f6ee67ae00d697a7589c106eef09cdd8 | [] | no_license | Richa-09/Car-Pool-Management-System | c5ce55acafb0de01b89440aca955a15259ac6901 | bf9cccf5be8bf1e814046cc41264ae4cd9d91c1a | refs/heads/master | 2021-09-24T03:55:41.446611 | 2020-03-13T16:19:26 | 2020-03-13T16:19:26 | 245,968,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | from django import forms
class DateInput(forms.DateInput):
input_type = 'date'
class TimeInput(forms.TimeInput):
input_type = 'time'
class OfferForm(forms.Form):
destination1 = forms.CharField(label="From", widget = forms.TextInput(
attrs = {
'class' : 'form-control',
'... | [
"amanashish909@gmail.com"
] | amanashish909@gmail.com |
6c50bbd84ea20f575427c4cfbb5e4458c4e27aa5 | 22a5d684341cee8f1095c3fe193f01f40f8121db | /2019/Qualification/B. You Can Go Your Own Way/2019-q-b.py | 7c1a25eb2456f2f3582410a44bbae9eefdcc4e0f | [] | no_license | andy1li/codejam | 161b1db6faab372a4c2c4ce5956942387c650bed | 3aa6ab1673064b8c80b5f56422bd496b372b30f3 | refs/heads/master | 2022-06-28T02:42:53.980149 | 2022-06-27T20:15:11 | 2022-06-27T20:15:11 | 53,395,936 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # 2019 Qualification Round - B. You Can Go Your Own Way
# https://codingcompetitions.withgoogle.com/codejam/round/0000000000051705/00000000000881da
def solve(p) -> str:
return ''.join(
'E' if move=='S' else 'S'
for move in p
)
#------------------------------------------------------------------... | [
"li.chenxing@gmail.com"
] | li.chenxing@gmail.com |
d1ce267d0a88bfa1444e2fff0194b5aa2cd274cd | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/aio/operations/_vpn_connections_operations.py | a69c4f47e8deefb250db906418d47320e65733b4 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 36,272 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
e8036859d6eb86ecf2842b24e7d7974337d97760 | 583db8851c609f03f722884557cfc67de0ce564e | /pysmapi/interfaces/VMRELOCATE_Image_Attributes.py | 80284c22530f022bfd3a85ce3cb8de7f622ba371 | [
"Apache-2.0"
] | permissive | lllucius/pysmapi | ab0b4409bfda6a61dab7805e2033d71d09a96493 | c0d802edb58e835e4d48cb9c28ccfccfe5b5c686 | refs/heads/master | 2020-04-20T18:07:46.699611 | 2019-06-25T04:27:41 | 2019-06-25T04:27:41 | 169,009,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py |
# Copyright 2018-2019 Leland Lucius
#
# 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 domain_name applicable law or agreed... | [
"github@homerow.net"
] | github@homerow.net |
72d7ed4c9a7d93991c9ae22fdc5bf27081241d55 | b8e594b62094039547eb2068d584e5f3df3bdbc6 | /filterandgroup.py | 37bd98345f80ee783a9c9f17a9f75c3152c7c2c7 | [] | no_license | hgelfond/assignments | b5ae27d70b69e157d63bad485b5038d36cc124b3 | 673b8748c98f1dd6e3cac73ce2a068e3a0342082 | refs/heads/master | 2021-10-10T20:35:06.598235 | 2019-01-16T19:49:10 | 2019-01-16T19:49:10 | 164,486,225 | 0 | 0 | null | 2019-01-08T23:57:45 | 2019-01-07T19:59:46 | Python | UTF-8 | Python | false | false | 737 | py | from pprint import pprint
cars = [
{"model": "Yaris", "make": "Toyota", "color": "red"},
{"model": "Auris", "make": "Toyota", "color": "red"},
{"model": "Camry", "make": "Toyota", "color": "green"},
{"model": "Prius", "make": "Toyota", "color": "yellow"},
{"model": "Civic", "make": "Honda", "color"... | [
"hilary.gelfond@gmail.com"
] | hilary.gelfond@gmail.com |
04b2b23ecc92dc86537e3f3f2dd8b526dead7b52 | de156134a1b22eef9f766f06e9d0b51eefbb5de8 | /018 doubleChars.py | a7ea620ccc73ee8f1e0a8ee1a843e50c0fa4e58a | [] | no_license | 6chelo6/python-dev-fund | da00a8575e3453d860a75c21d4105956e9dda6c3 | dc6bef4921038aed5eeb10385d8ed921fc66036c | refs/heads/master | 2020-08-19T01:39:39.220670 | 2019-10-17T18:35:19 | 2019-10-17T18:35:19 | 215,860,370 | 0 | 0 | null | 2019-10-17T18:35:22 | 2019-10-17T18:31:42 | null | UTF-8 | Python | false | false | 119 | py | #!/usr/bin/env python
def double_char(str):
a = ""
for i in str:
a += i*2
return a
print double_char('Marcelo')
| [
"Marcelo Vargas@jalasoft.local"
] | Marcelo Vargas@jalasoft.local |
fa3a5f89cbe61e9cc2841cf568ba9590707d9f1b | 9ac99a99dc8f79f52fbbe3e8a5b311b518fe45d9 | /apps/performance/api/HCSSYS_Departments.py | 2c65525475a54e449c8bcf2577f5509aeb1051f7 | [] | no_license | nttlong/quicky-01 | eb61620e01f04909d564244c46a03ca2b69dfecc | 0f5610aa7027429bdd9ca9b45899a472c372c6cc | refs/heads/master | 2020-03-25T17:45:31.633347 | 2018-11-27T15:02:30 | 2018-11-27T15:02:30 | 143,994,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,381 | py | # -*- coding: utf-8 -*-
from bson import ObjectId
import models
import datetime
import logging
import threading
import common
logger = logging.getLogger(__name__)
global lock
lock = threading.Lock()
from Query import DepartmentGroup
from hcs_authorization import action_type, authorization
import qmongo
@authorization.a... | [
"zugeliang2000@gmail.com"
] | zugeliang2000@gmail.com |
cd369342bfc0279dbec7e630389ff1ade7de3026 | 2c5e83885f6802305f7d6cb3b75462c4e52a41a1 | /blog/forms.py | 46b1206e87fa68dee59b3c3b553fc5b551c5fe61 | [] | no_license | carlmachaalany/MyBlog | 51db139391610f213ef265eb084f4607b44fbf09 | 9342a8fcad29699ecd283977f04829c48693097e | refs/heads/master | 2023-02-26T18:18:20.679981 | 2021-02-08T15:07:06 | 2021-02-08T15:07:06 | 337,112,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | from django import forms
from blog.models import Post, Comment
class PostForm(forms.ModelForm):
class Meta():
model = Post
fields = ('author', 'title', 'text')
# Here we are assigning classes to some of the fields in Post. Adding the
# attrs in widgets is equivalent to adding attr... | [
"67249396+carlmachaalany@users.noreply.github.com"
] | 67249396+carlmachaalany@users.noreply.github.com |
3c33c27bdb417291386c9e4e246ff8868bfaa73f | 4ef95e264c6ebf59051b209ed4e586b49f2d958a | /process_batch.py | e6948a793566063626355eeb8354328abf7c722f | [] | no_license | quanchaozhao/digitalTibetanSymbolDemo | 99e1ef0c9b437064dd83c70b5ae8d04b55503cf9 | c5a1bde31607f62c63a93915bea196538d14cb1f | refs/heads/master | 2020-03-21T17:26:41.843938 | 2018-06-28T05:44:32 | 2018-06-28T05:44:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,357 | py | # coding:utf-8
from __future__ import print_function,division
from pic_process.img_process import line_extract, char_extract
IN_PATH = "/home/lyx2/img_in"
CHAR_OUT_PATH = r"D:\Users\Riolu\Desktop\aabbcc"
CLASSIFY_OUT_PATH = R"D:\npq"
MERGED_PATH = r"D:\merged"
SORTED_PATH = r"D:\sorted"
WRAP_SIZE = 60
# 这里用的数据是经过倾斜校正,... | [
"quanchaozhao@yeah.net"
] | quanchaozhao@yeah.net |
cf6e8391100bc3d21839923f4764aa442d4027d4 | 731f50dd747c488fab19d19f1502c5439c4ccfc1 | /feedback/reviews/migrations/0001_initial.py | 0ba05987a064a36d643b7bbd03491e038b7d684a | [] | no_license | deepakdeedar/Django | b710e0f34540fabd8e492fd854066f7b052920f5 | a8235217cfde06712a65717ad8849a5e5387370c | refs/heads/master | 2023-05-06T22:23:37.910663 | 2021-06-01T12:32:48 | 2021-06-01T12:32:48 | 361,150,332 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # Generated by Django 3.1.7 on 2021-05-30 12:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Review',
fields=[
('id', models.AutoField(a... | [
"ddeedar.cse18@chitkarauniversity.edu.in"
] | ddeedar.cse18@chitkarauniversity.edu.in |
5e7d8d53d398f90c3415f6261c9339941249e345 | 3c266f16d058e8d404727d6844d456b05e918423 | /While loop.py | 97ad28f32c80d0163b17a2faa55ae189fef309b2 | [] | no_license | Tracker71/Astr119-Week-1 | 056b12fec309a7bbc761f8a743e7f92edcc33992 | 85c78083914cc07a7d745002f601079bd8044725 | refs/heads/master | 2020-05-05T01:26:33.691541 | 2019-04-24T15:22:19 | 2019-04-24T15:22:19 | 179,603,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # -*- coding: utf-8 -*-
"""
while loop
consider object thrown up into the air
Find maximum height
"""
import numpy as np
import matplotlib.pyplot as plt
v0= 5 #m/s
g = 9.8
n = 2000 # time steps
a_t = np.linspace( 0, 1, n)
#computations
y = v0*a_t - .5*g*a_t**2
print( a_t)
print ( y)
# find max hegh... | [
"noreply@github.com"
] | noreply@github.com |
6c67aca905fda078d0b41a88abc92769843fefb5 | 015efec4aff1d0daec5dca64b158014eca8899ac | /Amazon/critical_connections.py | 05db60184734036980bf32f667e442ec5d358818 | [] | no_license | sayali-nakashe/Practice_coding_questions | cccf0802d81e19d7575533eef912c6952df36c23 | d885366f2770bbc2abd9a1021769b4dd9bfefb54 | refs/heads/master | 2020-06-20T09:59:33.921810 | 2019-12-03T04:21:25 | 2019-12-03T04:21:25 | 197,086,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | from collections import defaultdict
class Solution(object):
def criticalConnections(self, n, connections):
"""
:type n: int
:type connections: List[List[int]]
:rtype: List[List[int]]
"""
disc = [None for _ in range(n+1)]
low = [None for _ in range(n+1)]
... | [
"45084485+sayali-nakashe@users.noreply.github.com"
] | 45084485+sayali-nakashe@users.noreply.github.com |
ebf9c99ce045eb4ca45a1040dcbb3b7260122a6f | e46a34140916bd7b943c70535e2e87f290dd5724 | /ForestTest/ForestTest.py | e82c138654d854007a5987ee004b8ffb70281c92 | [] | no_license | Madi89/Fractal-Tree | db6a25a755bdfec747e875eae9ea10fca2ee6964 | 2c219f14e1b0127c7ce3fdbd8d5d0354e1f2469d | refs/heads/master | 2023-07-28T11:35:11.189106 | 2021-09-10T16:11:17 | 2021-09-10T16:11:17 | 405,140,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | import turtle
turtle.title("Fractal tree") #changes the title of the TurtleScreen
turtle.bgcolor("black") #changes the background color of the TurtleScreen
a=turtle.Turtle() #initializes a variable 'a', which we use throughout the program to refer to turtle
a.lt(90) #the turtle... | [
"hessel.m@gmx.de"
] | hessel.m@gmx.de |
8e3c8cb9ebe5542d32da283fe8b8d56411898e13 | 7d90d2ce27c6ee0af74391b09909edbd45fdc2f0 | /renix_py_api/api_gen/Dot3ahStartLoopBackCommand_Autogen.py | c2ad76c47f9cefd64511bdef10260bb7ad6ac909 | [] | no_license | gaoxingyu-hub/54testframework-master-e284 | d7ea0d4a715b65c8652430e963a86b9522a7237a | 57dd2197e7d91b8ad8fb2bd0e3503f10afa08544 | refs/heads/master | 2023-04-30T05:50:41.542402 | 2021-05-28T09:19:37 | 2021-05-28T09:19:37 | 309,922,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | """
Auto-generated File
Create Time: 2019-12-27 02:33:27
"""
from .ROMEnum_Autogen import *
from renix_py_api.renix_common_api import *
from renix_py_api import rom_manager
from .ROMCommand_Autogen import ROMCommand
@rom_manager.rom
class Dot3ahStartLoopBackCommand(ROMCommand):
def __init__(self, Dot3ahConfigs=N... | [
"gaoxingyu@example.com"
] | gaoxingyu@example.com |
548fe0be0c448638017bc8c742a173431fadef31 | 44cedd413bc869f67c0336aa8b69b5a3f12f16da | /www/cgi-bin/user.py | fddbfc03f5cfb43499ed44afb92a3d498fc4a890 | [] | no_license | ShampaSinha/PythonCGI-Automation-with-Ansible | 7a333bb65d8591d85de28f4511196ed8de8497c6 | 4dc4585cd23363eff627deffa19c046cb0886778 | refs/heads/master | 2020-12-26T10:45:39.978764 | 2020-01-31T18:00:38 | 2020-01-31T18:00:38 | 237,485,734 | 0 | 0 | null | 2020-01-31T18:00:39 | 2020-01-31T17:54:16 | Python | UTF-8 | Python | false | false | 402 | py | #!/usr/bin/python36
import subprocess
import cgi
print("context-type: text/html")
print()
var=cgi.FieldStorage()
a=var.getvalue("n")
b=var.getvalue("p")
x=subprocess.getoutput("sudo useradd {}".format(a))
print(x)
y=subprocess.getoutput('id {}'.format(a))
print(y)
z1=subprocess.getstatusoutput("echo '{}' | sudo passwd ... | [
"sanjanapatel2599@gmail.com"
] | sanjanapatel2599@gmail.com |
c6ec0ca892dcb0cde388ea4178e0c97c3f70b87f | ea089c8f997382ea0b09f5f08eb79e9a5f76707b | /tests/test_save.py | d1fe0584c69d87b8dc3e346ecf73a4e0535f1444 | [] | permissive | QPC-github/wextracto | 09489a07dde44583bbc07d19a8a06c22f0698b99 | 9c789b1c98d95a1e87dbedfd1541a8688d128f5c | refs/heads/master | 2023-07-06T08:26:06.647509 | 2017-10-24T18:54:38 | 2017-10-24T18:54:38 | 662,192,705 | 1 | 1 | BSD-3-Clause | 2023-07-04T14:54:07 | 2023-07-04T14:54:01 | null | UTF-8 | Python | false | false | 1,954 | py | import os
import errno
import pytest
from six import next, BytesIO
from wex.readable import EXT_WEXIN
#from wex.save import save_url_from_path, save_output_from_readable
#
#
#def read_chunks(readable, size=2**16):
# chunks = []
# while True:
# chunk = readable.read(size)
# if not chunk:
# ... | [
"gsbrown@ebay.com"
] | gsbrown@ebay.com |
68f874ebfa0efe7aa5cac94356e1bf0cfdd3e695 | c2cc46057130a2520c4b74b04204af77f5bdeea6 | /Assign3-kpca.py | 06c4939da94094c6e4b85799105e0484673f7961 | [] | no_license | yangs21/Data-Mining | 401e8a70ac85f02d48e33fafa99b46a0cd5194ab | 674a9210b9e2837fef7662141edd978cd394de6f | refs/heads/main | 2023-08-14T11:06:45.113216 | 2021-10-06T14:09:53 | 2021-10-06T14:09:53 | 414,228,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,238 | py | import pandas as pd
import numpy as np
import math
import seaborn as sns
import matplotlib.pyplot as plt
alpha = 0.95
'''
print("###### Linear Kernel ######")
# Load in entire dataset first:
data = pd.read_csv("energydata_complete.csv", sep=',', header=None)
# Convert the matrix into a matrix and drop the first and la... | [
"noreply@github.com"
] | noreply@github.com |
e32f13276fd6abb002fc129f39f6daa2d9db5997 | 64e457b38f2a3f0db80e55543571eb07954302af | /kafka_server.py | d2081d5665acb0203fdb21028deeab2e5bb6416b | [] | no_license | CharlesJonah/SF-crime-statistics-with-spark-streaming-1 | a120e5915fea6c05f8425493e39b2943cad3545e | af83fc8a427ce861abab0359b716714160ca4450 | refs/heads/master | 2022-12-26T16:27:49.715591 | 2020-10-11T00:42:00 | 2020-10-11T00:42:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | import producer_server
def run_kafka_server():
# TODO get the json file path
input_file = "police-department-calls-for-service.json"
# TODO fill in blanks
producer = producer_server.ProducerServer(
input_file=input_file,
topic="sf.crime.statistics.topic",
bootstrap_servers="local... | [
"erickramireztebalan@gmail.com"
] | erickramireztebalan@gmail.com |
d7ed48e2f144dfdde2a16148fa870c38f09c3a64 | ba597f50f938dea39a0e980b8fbcca8749016996 | /app_main.py | 1f02414353bcd40e3f406b5354a1090254a74be5 | [] | no_license | zhu-dev/idcard_ocr | be00d03649f6b68b1ff8fdd5476f2090aa14d20a | 0314d28d593d62c1d02d2a1650115616eb8ae5f5 | refs/heads/master | 2022-12-06T23:04:16.393841 | 2020-03-22T06:34:22 | 2020-03-22T06:34:22 | 249,125,951 | 1 | 0 | null | 2022-11-22T04:59:20 | 2020-03-22T06:24:24 | Python | UTF-8 | Python | false | false | 3,581 | py | # -*- coding: utf-8 -*-
# import idcardocr
from PIL import Image, ImageTk
from PIL.ImageTk import PhotoImage
import findidcard
import recognizeidcard
import tkinter as tk
import cv2
def process(img_name):
try:
idfind = findidcard.findidcard()
idcard_img = idfind.find(img_name)
result_dict... | [
"1215637936@qq.com"
] | 1215637936@qq.com |
8c80086394b1c7e7b1dc6a5bd735aaea141e42e5 | 25a798b43dc891260f40011c3fd30a0a079ad76c | /detect.py | a806adeac6936145afd653ba671a72884211c499 | [] | no_license | fuyunguagua/watermark_sender | 473c8293d481a471c01f71c029ea5e48bfa75684 | 5329c9e5b6fa7b32a3a00e918f8fa9be16410deb | refs/heads/master | 2020-04-09T04:37:09.488937 | 2018-12-02T08:57:58 | 2018-12-02T08:57:58 | 160,029,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | try:
import scapy.all as scapy
except ImportError:
import scapy
try:
# This import works from the project directory
import scapy_http.http
except ImportError:
# If you installed this package via pip, you just need to execute this
from scapy.layers import http
from scapy.all import *
pcap = rdpc... | [
"425006762@qq.com"
] | 425006762@qq.com |
29e4f545719e43f2a49b80ffdf16616925d10a45 | 2494b93425260afe2826b27cde13fe24fc8d85c7 | /main.py | d0ab5dfd951fff2bdd2394c9285337a4acc9350d | [] | no_license | ankituf/Speech-Recognition-System | 3dac44af5c2f96d3fb3a47704229a16901a57f1a | 011a3a7bde4285645a2d9162b18921e0534c3896 | refs/heads/master | 2021-01-23T08:34:12.681493 | 2017-09-05T22:38:05 | 2017-09-05T22:38:05 | 102,534,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | from tester import *
import os
word=[]
for file in os.listdir("test_files"):
if file.endswith(".wav"):
base=os.path.basename(file)
word.append(os.path.splitext(base)[0])
# print word
for i in range(0,len(word)):
filename = "test_files/"+word[i]+".wav"
print "said word :", word[i]
outp... | [
"ankit_agg@outlook.com"
] | ankit_agg@outlook.com |
803fc33371c41205e3598194d1c1f91265ad7010 | e0ce113811e5fc5e49c49d620284a54fbd7ed17b | /firstPythonScript.py | cded3dabb6e1817075ca2d4965a3a3b56ca13436 | [] | no_license | ztanverakul/SWC_Workshop | 9d6a37947cb67a617aa4ed0a104a8b4fc31524f7 | b38314a50af5bcb395eff722fb31e674d2f0a83d | refs/heads/master | 2020-05-29T16:34:54.319734 | 2019-05-29T21:21:52 | 2019-05-29T21:21:52 | 189,252,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | # Author: Zach Tan
# Date: 05/29/2019
# Description: First Python Script Workshop
# Collaborators: tsk tsk
import numpy as np
from math import pi, sqrt, cos
PRIMES = [2, 3, 5, 7, 11, 13, 17, 19]
def sumOfAllPrimes():
return sum(PRIMES)
if __name__ == "__main__":
x = sumOfAllPrimes()
print(x)
| [
"zata6314@colorado.edu"
] | zata6314@colorado.edu |
76a61090fc74d8ed5225d817554cbcbc9dcb39b6 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/lobby/mode_selector/tooltips/simply_format_tooltip.py | 26dbba5d74d1f6d2d0d538cdcda996ec56235958 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 890 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/lobby/mode_selector/tooltips/simply_format_tooltip.py
from gui.impl.gen import R
from gui.impl.pub import ViewImpl
from frameworks.wulf import ViewSettings
from gui.impl.gen.view_models.windows.simple_tooltip_content_model ... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
23dda399322e76d00571fdb6a25bdae6312b289c | dec1c2390df41f93e43cea6d78aee433facfef6a | /XChfut/spiders/xchfut.py | 0e6335e5698ef18307fefd976afaa96d1e8eb2fc | [] | no_license | w376692784/XChfut | 183d8a716ce255a302ccc9daf2d9c05e091e8e00 | ef4d5f64c4c794894060a79287be87108c09572e | refs/heads/master | 2020-03-07T18:38:33.537361 | 2018-04-01T16:08:24 | 2018-04-01T16:08:24 | 127,646,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | # -*- coding: utf-8 -*-
import scrapy
from XChfut.items import XchfutItem
class XchfutSpider(scrapy.Spider):
name = 'xchfut'
allowed_domains = ['xc.hfut.edu.cn']
# start_urls = ['http://xc.hfut.edu.cn/120/list']
baseURL = 'http://xc.hfut.edu.cn/120/list'
offset = 1
start_urls = [baseURL + str(o... | [
"376692784@qq.com"
] | 376692784@qq.com |
952e9a66bd22c3f99c23a479012139aa46c0c990 | 4578b30c433510cf370d51475ec11cac9c3de1cb | /serpent/wamp_components/dashboard_api_component.py | d5d6ba83642cf2c066df0bb44b7f6cf853798e4b | [
"MIT"
] | permissive | SerpentAI/SerpentAI | 0a5b2d567b50388722c3a3c5152555ce94256c49 | 00a487dd088c6ca2528d025f3273c0a796efe210 | refs/heads/dev | 2023-03-08T14:14:07.171435 | 2020-05-22T22:34:09 | 2020-05-22T22:34:09 | 88,444,621 | 7,216 | 950 | MIT | 2020-07-15T00:41:35 | 2017-04-16T21:48:39 | Python | UTF-8 | Python | false | false | 5,508 | py | import asyncio
from autobahn.asyncio.wamp import ApplicationSession, ApplicationRunner
from autobahn.wamp.types import RegisterOptions, SubscribeOptions
from autobahn.wamp import auth
from serpent.config import config
from pony.orm import *
from serpent.dashboard.models import *
import json
class DashboardAPIComp... | [
"info@nicholasbrochu.com"
] | info@nicholasbrochu.com |
455d0c34150b8e6b7ed81c6e60b50af4c973c050 | 2fb074eca893dd9ab67f430b8d8d142f7d565abd | /train.py | 7b1971074812f7540037070421fa8508d95e0a88 | [] | no_license | jireh-father/tensorflow-object-detection-framework | 63ec7225a68973ac024db90ed809dd91c6085151 | 21d2d849be31b28c7d2e34a6f589d501e1351699 | refs/heads/master | 2020-03-27T10:06:44.428006 | 2018-08-31T09:08:01 | 2018-08-31T09:08:01 | 146,396,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,470 | py | import tensorflow as tf
from data.pascal_voc import pascal_voc
from model import yolo
max_iter = 10000
pascal = pascal_voc('train')
inputs = tf.placeholder(tf.float32, [None, 448, 448, 3])
labels = tf.placeholder(tf.float32, [None, 7, 7, 5 + 20])
is_training = tf.placeholder(tf.bool, shape=(), name="is_training")
lo... | [
"seoilgun@gmail.com"
] | seoilgun@gmail.com |
97afb1da589398dcd9a82433e3d4866fe5bf319c | cb9f7b356bd0c06a88bf0ef3a3cabf6d7a8ecc03 | /tests/testSemiEmpiricalPrior.py | 57a03d12630f467bcd37d69ab58cfb352f7b7f5e | [] | no_license | jonathansick-shadow/meas_modelfit | ceace53cd8acf5723b860f80a4e8745e63a5857d | def2b87bb69b5d9cdd9d734520246b92a8a0ff29 | refs/heads/master | 2021-01-12T12:02:59.873544 | 2016-03-10T06:25:46 | 2016-03-10T06:25:46 | 45,875,371 | 0 | 0 | null | 2015-11-10T00:00:55 | 2015-11-10T00:00:55 | null | UTF-8 | Python | false | false | 4,792 | py | #!/usr/bin/env python
#
# LSST Data Management System
# Copyright 2008-2013 LSST Corporation.
#
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pub... | [
"jbosch@astro.princeton.edu"
] | jbosch@astro.princeton.edu |
09d60b3f73b86b0125b906dfd570b06727b86988 | ffd9601a04a6b00c9a0f972a93837e536d93aad2 | /posts/tests.py | 371e51fc48dd2aac74edf4f6375d6bd3cdea90dc | [] | no_license | cb-demos/microblog-backend | c2d1f28c08596cde05496dda72ae07603c4ed330 | 127d47bcdefb25de57ba876a72c25826b1cc0af0 | refs/heads/master | 2023-02-05T06:16:02.593819 | 2023-01-27T18:24:51 | 2023-01-27T18:24:51 | 240,112,247 | 1 | 62 | null | 2023-01-27T18:24:53 | 2020-02-12T20:49:32 | Python | UTF-8 | Python | false | false | 1,023 | py | from django.test import TestCase
from django.urls import reverse
from rest_framework.test import APITestCase
from .models import Post, User
class PostTestCase(TestCase):
def setUp(self) -> None:
User.objects.create(username="dinkleberg")
def test_create_post(self):
user = User.objects.get(us... | [
"ldonley@cloudbees.com"
] | ldonley@cloudbees.com |
bfa5ff371b08bf2ccfce79a077f18b3492b05cc8 | bad3aedebe6858ee5973e5ee218533027d42ec52 | /nedbankprivatewealth/spiders/spider.py | 234d865ab57a5dfaa2d47dfc93534f845f2a7199 | [] | no_license | hristo-grudev/nedbankprivatewealth | 2683106d16c1d1aade81a4494da66bc92cceb41c | ebfbadabb58e1b000af8f2df18981c010ace8237 | refs/heads/main | 2023-02-24T03:47:25.304128 | 2021-02-04T06:40:47 | 2021-02-04T06:40:47 | 335,863,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | import scrapy
from scrapy.loader import ItemLoader
from ..items import NedbankprivatewealthItem
from itemloaders.processors import TakeFirst
class CentralbankSpider(scrapy.Spider):
name = 'nedbankprivatewealth'
start_urls = ['https://nedbankprivatewealth.com/insights/']
def parse(self, response):
post_links = ... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
bada4df5ac2615720beb0b77628fc1019d21639a | 41fa204c476bf466cb4fe9deb85843d7fdbd4c4b | /test_api/migrations/0004_post_image.py | 754f536d8970af03a4d3d07e7c2224fddd4cbc4a | [] | no_license | hagull/farm_deploy | 9506b1d6dcbc513e8c4d97e9c1c8ba477fc07dd2 | 3609a33949e9deb5742263e4dd5f6c783ea5fda8 | refs/heads/master | 2022-12-15T00:35:00.572945 | 2018-12-08T06:11:04 | 2018-12-08T06:11:04 | 160,857,990 | 0 | 0 | null | 2022-12-08T01:28:03 | 2018-12-07T17:56:19 | Python | UTF-8 | Python | false | false | 393 | py | # Generated by Django 2.0.7 on 2018-11-29 16:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('test_api', '0003_remove_post_photo'),
]
operations = [
migrations.AddField(
model_name='post',
name='image',
... | [
"ts930838@gmail.com"
] | ts930838@gmail.com |
e4b5c8363171b127cdc24bc75e373ff087a01603 | 40a8f14a73385118c442db9d2153674e64341428 | /hannah.py | 3d1aabe32be9092f7cb5e88826def25318b2fcd3 | [] | no_license | JoshNHales/Textgame | b1c6c9c7f3c9f3754dcc70cb1cfcb481737d092f | 534949be70f5a9245bed04ec397fffc3a1cfccfe | refs/heads/main | 2023-02-25T20:00:18.638835 | 2021-02-02T12:03:02 | 2021-02-02T12:03:02 | 335,274,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,719 | py | import time
def guards():
print ("You hide behind the trees and escape from sight of the guards, running toward a moat you noticed earlier.")
time.sleep(1)
print ("You can either swim away to hopefully escape faster, or slowly look around the water for more clues, which will inevitably waste more time."... | [
"noreply@github.com"
] | noreply@github.com |
5efe7c96c849f2e88108d81bac384cdf96a38647 | be7ab772fff390e7ec289b3b757a96f192c5a006 | /Quantum_Chemistry_Module/Quantum_Chemistry_Module/integrals.py | 7977071f6799b1c187afa192e1c9016113260cd9 | [] | no_license | adabbott/Quantum-Chemistry-Codes | 7942083047c397928cc05999c034fbc5226156b0 | a4d0c88b2b420406344f923a8303372ebbb2237e | refs/heads/master | 2020-12-03T00:02:37.975709 | 2017-10-09T19:57:45 | 2017-10-09T19:57:45 | 95,979,183 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,753 | py | import psi4
import numpy as np
import molecule
def obara_saika_recursion(PA, PB, alpha, AMa, AMb):
"""
Performs Obara-Saika recursion routine to fill in all integral cartesian components recursively
Used to construct overlap, kinetic, and dipole integral x, y, z component arrays
Parameters
--------... | [
"adabbott@uga.edu"
] | adabbott@uga.edu |
b918dc04443cb9a0487a0dc88494dc203026ba04 | 3670f46666214ef5e1ce6765e47b24758f3614a9 | /oneflow/python/onnx/flow2onnx.py | eb6a28b9f6f89bc89bd0997f5913badf7895c364 | [
"Apache-2.0"
] | permissive | ashing-zhang/oneflow | 0b8bb478ccd6cabea2dca0864defddab231919bf | 70db228a4d361c916f8f8d85e908795b479e5d20 | refs/heads/master | 2022-12-14T21:13:46.752535 | 2020-09-07T03:08:52 | 2020-09-07T03:08:52 | 293,535,931 | 1 | 0 | Apache-2.0 | 2020-09-07T13:28:25 | 2020-09-07T13:28:24 | null | UTF-8 | Python | false | false | 11,725 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | noreply@github.com |
39413d80c0324f3a64e68c37da15be92d9800182 | 4b2b37d70dbc7959a340736d2b5dcf5a2d53c19f | /data/CurrencySymbols.py | 18d2f1c0195755417198f6f8ff7e9e31a3f01a39 | [] | no_license | brunoqs/world-cities-mongodb | de5a16fa41d31bcc32df80d90a2f06f5723a4bb1 | b84ac4068d70ce613377e2dce3888e14e91886a9 | refs/heads/master | 2022-04-19T19:58:29.452822 | 2020-03-26T19:28:24 | 2020-03-26T19:30:32 | 250,352,313 | 0 | 0 | null | 2020-03-26T19:26:47 | 2020-03-26T19:26:46 | null | UTF-8 | Python | false | false | 2,286 | py | CURRENCY_SYMBOLS = {
"AED": "د.إ", "AFN": "؋", "ALL": "L", "AMD": "դր.", "ANG": "ƒ", "AOA": "Kz",
"ARS": "$", "AUD": "$", "AWG": "ƒ", "AZN": "m",
"BAM": "KM", "BBD": "$", "BDT": "৳", "BGN": "лв", "BHD": "ب.د", "BIF": "Fr",
"BMD": "$", "BND": "$", "BOB": "Bs.", "BRL": "R$", "BSD": "$", "BTN": "Nu",
"... | [
"albertgaohy@gmail.com"
] | albertgaohy@gmail.com |
b35ec13793a4249fefe3e3d0a0d66070e12c7018 | a97950354333339cefea7dee152915bbfd2207f7 | /First steps in Python for the CDI course/lab0CDI_4.py | 9372bf69f07de8728a8030900c03ef38576a63f7 | [] | no_license | Fibernalia/CDI | 92366ab1829e0d20f0e9876f4d64ec8503451998 | 569b91408ebf81813fc1cd507e2556ddd1e3bef4 | refs/heads/master | 2020-12-03T00:07:22.621629 | 2017-07-01T23:31:29 | 2017-07-01T23:31:29 | 95,990,286 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | def decode(bstr,C):
output = ""
aux = ""
for bit in bstr:
if not aux:
letter = [tupla[0] for tupla in C if tupla[1] == bit]
else:
letter = [tupla[0] for tupla in C if tupla[1] == aux+bit]
if not letter:
aux += bit
else:
output +... | [
"dagarofiber@gmail.com"
] | dagarofiber@gmail.com |
648af8987d7edd9ccf4f4543106244e033244c02 | fe474e37f5900e90e9c98c3cc35b0f2702db848e | /algo/src-go/archive/train.py | 7d4893e38d88ddc166aa3c7d90b94d2acdeed76a | [
"MIT"
] | permissive | RunanWang/somewhere | 81c910ee151ac820bfd3b3f859dfbc1751c28d22 | 0ba93a3f5f91042b4910171dda981f6c863ee581 | refs/heads/master | 2023-01-13T18:03:06.810551 | 2020-11-14T11:10:59 | 2020-11-14T11:10:59 | 220,627,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,216 | py | #!/usr/bin/env python
# coding: utf-8
# In[54]:
import pymongo
import pandas as pd
myclient = pymongo.MongoClient("mongodb://182.92.196.182:27017/")
mydb = myclient["kit"]
rec_col = mydb["records"]
item_col = mydb["items"]
user_col = mydb["users"]
store_col = mydb["stores"]
records = rec_col.find({},{"_id":0, "quer... | [
"1070623719@qq.com"
] | 1070623719@qq.com |
b2f924ba5a1716e08f73ad21a4493d819683c942 | 8899e36880a4e883e24df38e6f4f875696e5b3ca | /3/snake/snake_Joystick_detail.py | 6e1f7c43e993f4b0449feb0da57d3bbf4f2dbabb | [] | no_license | alexliradesign/Examples | 6dcf9d9bc81f0a6a5cfcc713d31a342693f6a8b4 | d859dce23e30b6d52b0fe97339db177f8dbe93b9 | refs/heads/master | 2023-07-16T18:45:44.579076 | 2021-08-18T13:56:51 | 2021-08-18T13:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,693 | py | from pycm import *
import time
import math
_RATIO = 1000
m_anJoystick = []
m_nCnt_Motor = 13
class CVar:
IsTorqOn = False
nScreenWidth = 0
nScreenHeight = 0
nTouch_XY_X0 = 0
nTouch_XY_Y0 = 0
nTouch_Pos0 = 0
... | [
"ojw5014@hanmail.net"
] | ojw5014@hanmail.net |
21c757132b5efe4d0f056e1b1c85ed1f16fb2d31 | 55f5e9c2b9c380f96df08fbc84bd22f62a1b5e1e | /test/test_del_project.py | 535c23be5c330c0b09b60882dce4cf5a60aaaf3c | [] | no_license | Pav4l/python_training_mantis | 253796d9e0fd093c6ff126c30ee1527273e02ef2 | 854c6316602d708e38aeba6703678022011b6736 | refs/heads/main | 2023-02-08T11:30:21.814222 | 2020-12-28T21:37:13 | 2020-12-28T21:37:13 | 324,232,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from model.project import Project
import random
import time
def test_delete_project(app, db):
app.session.login(username="administrator", password="root")
if len(db.get_project_list()) == 0:
app.project.create_new_project(
Project(name="project_new", description="description_of_project", st... | [
"pavel.gorev@gmail.com"
] | pavel.gorev@gmail.com |
022a339815b4954a268433d73ec778c395697598 | 91d550f23c8716eb06171f41f2fd54d3e2d17a04 | /TODO/TODO/urls.py | 75325eecc7589786bd31fb38b63530acaaef9d7b | [] | no_license | johannesWestenhoeferGit/scalors-assignment-backend-todo | b5c5470b6d9112452f1a82732ee946f1108e1df9 | 362d974430f85e52086d79fc4220290c751a1c08 | refs/heads/master | 2020-04-07T10:51:13.982057 | 2018-11-19T23:24:20 | 2018-11-19T23:24:20 | 158,300,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | """TODO URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"45103219+johannesWestenhoeferGit@users.noreply.github.com"
] | 45103219+johannesWestenhoeferGit@users.noreply.github.com |
8b96e9d557d751f2c9526a8cb1b5538429eb1fd4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_320/ch27_2019_08_25_20_47_12_525740.py | c391f466c3525e388a6b3bf0875801b34bc00de8 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | pigas = int(input('Quantos cigarros você fuma por dia: '))
anos = int(input('A quantos anos você fuma: ')) * 365
roubo = pigas * anos
dia = 24 * 60
roubo = roubo * (10/dia)
print(round(roubo)) | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.