blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9498b785c929e3d32d42560f88c9a3cb94906f44 | a4c4fdab8dfe1d2ec0668f40a1a7494584995bc8 | /ticket_sales/migrations/0005_auto__add_field_product_ordering.py | d0cd668d271369d3a0b9149c2de94b40b362bc17 | [] | no_license | japsu/lipunmyynti | fcf87f03ade10f17cb65f48bf6f1b71ca2dc48f1 | 521754b8136bc4e634866776e35217589db31dae | refs/heads/master | 2016-08-04T08:14:33.098651 | 2014-01-03T14:10:50 | 2014-01-03T14:10:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,601 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Product.ordering'
db.add_column('ticket_sales_product', 'ordering',
se... | [
"santtu@pajukanta.fi"
] | santtu@pajukanta.fi |
5fb283cf5046eb8fcd9be60b9db8a6c48a1d8373 | e2fe15caa1d179e92fef23d3083e84090caa887b | /CodingChallenge/Haley_process.py | df76facb661d33d53ceafe65bf8d35131cf9210b | [] | no_license | brentporter/SimpleVueJSLeafletMap | 5587990370b13049cef37fa865bf03e98346a3b6 | 61758d9e7dd746519524987a84dfffd0946ca0b8 | refs/heads/master | 2020-05-31T18:19:09.794989 | 2019-08-02T14:31:01 | 2019-08-02T14:31:01 | 190,430,985 | 1 | 2 | null | 2019-06-20T14:19:45 | 2019-06-05T16:33:46 | Vue | UTF-8 | Python | false | false | 5,294 | py |
#
# Haley Sanchez
# MAGIC - Flood Response
#
all_Temps = [] #added
avg = 0.0 #added
o = open("paradiseca_l8_tirs_k_20181007.txt", "r")
c = open("paradiseca_l8_tirs_c_20181007.txt", "w")
f = open("paradiseca_l8_tirs_f_20181007.txt", "w")
c.write(o.readline())
l = o.readline()
r = l.split(" ")
rows = r[9].split("\n")
c... | [
"noreply@github.com"
] | brentporter.noreply@github.com |
cb622aa0277ba77f2a376d872264b679a43a34b7 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/502.py | 2e58e1cfd13b9f3b2dbd39e4bbfbd77517c7ce21 | [] | 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 | 665 | py | from itertools import chain
def status(cube):
a=(cube[0],cube[6],cube[12],cube[18])
b=(cube[3],cube[7],cube[11],cube[15])
lines=cube.split('\n')
for line in chain((a,b),lines,zip(*lines)):
if ('.' not in line)and(line.count('T')<2):
if 'X' not in line:
retur... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5ffd130c93b0c35879f63a38d729d11ec0e3f05e | a97bc5f7012739c3a9c46257ccb36bea544868ab | /class/Inventory.py | 6a0af87df37a12f93c88ec3f1fec6ea93b6824f2 | [] | no_license | Cyber-code/Projet_python | 27d6cdee9c49e801b0ea4d1b10c2d3a3956535b3 | 48534c5fc26e5663346559729b44d4fbc39b2855 | refs/heads/master | 2023-04-30T11:29:58.158747 | 2019-12-13T16:26:48 | 2019-12-13T16:26:48 | 220,233,420 | 0 | 0 | null | 2023-04-21T20:44:08 | 2019-11-07T12:35:47 | Python | UTF-8 | Python | false | false | 1,217 | py | class Inventory:
"""
Inventory class instantiate a inventory object which is a character's caracteristic.
It contains the list of objects, amount of gold, armor slot, jewels slot and weapon slot.
"""
def __init__(self, objects=[], gold=0, leftHand=None, rigthHand=None, jewel1=None, jewel2=None,... | [
"nicolas.schmitt@isen.yncrea.fr"
] | nicolas.schmitt@isen.yncrea.fr |
2c9cffc45656b637e2ad575d403136f256c96aea | 8264b7b699ba0cfbb55b69e24de30dac974af59c | /kale/loaddata/video_multi_domain.py | 437888db345eababbad7cf802e3019a8b7d77edc | [
"MIT"
] | permissive | JulienYulinMa/pykale | 63e093c9dc41e9b9f86a56d9523d10908d34ce71 | 8177ad9a79b3f6d96b3538a34a67514cf1a82b0b | refs/heads/main | 2023-04-26T00:41:15.997369 | 2021-05-20T15:53:00 | 2021-05-20T15:53:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,447 | py | # =============================================================================
# Author: Xianyuan Liu, xianyuan.liu@sheffield.ac.uk or xianyuan.liu@outlook.com
# Haiping Lu, h.lu@sheffield.ac.uk or hplu@ieee.org
# =============================================================================
"""Construct a dat... | [
"xianyuan.liu@sheffield.ac.uk"
] | xianyuan.liu@sheffield.ac.uk |
91ae4c7ce6a2bcc0bb06688c6407a3b68a6f9a4b | 61704c2c92d650f311447d4432a2acfd4d09c4af | /main.py | 184cd95e1bc4d3a57559b8514b3b68cbfb548521 | [] | no_license | AllenJShi/WeChat | 96e78ce73e7874009774d589555a898359b92661 | e0194aeab0973619eb9aec87068404729d5336b1 | refs/heads/master | 2022-12-03T21:12:15.636983 | 2020-08-23T03:40:38 | 2020-08-23T03:40:38 | 288,250,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# filename: main.py
import web
from handle import Handle
urls = (
'/wx', 'Handle',
)
class Test(object):
def GET(self):
return "hello, this is handle view"
if __name__ == '__main__':
app = web.application(urls, globals())
app.run()
| [
"allenjunsheng@gmail.com"
] | allenjunsheng@gmail.com |
2c63152886a759572313fc66b29e71496024554a | 6470dc699cc8ddb117d0c949dc839cf15f8b5f3e | /Variable correlation.py | 8d0282fd788e38481aebf9acc8744ab83ed5b82c | [] | no_license | JiahaoChen177/final-project | 21ebba02c3b348d7772419a6a06fb9fc63321d9c | a4fd7d68c5f4dcd7463e00ae9f38f40304cdf2e4 | refs/heads/main | 2023-04-15T08:11:37.554916 | 2021-04-30T16:36:53 | 2021-04-30T16:36:53 | 363,191,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 13 20:36:43 2021
@author: Jiahao Chen
"""
import pandas as pd
import seaborn as sns
data = pd.read_csv(r'NTN-data.csv')
data.head()
data_var = data[['Ca', 'Mg', 'K', 'Na', 'NH4', 'NO3', 'Cl', 'SO4', 'pH']]
data_var
sns.heatmap(data_var.corr(),vmin=-1, vmax... | [
"noreply@github.com"
] | JiahaoChen177.noreply@github.com |
fe1346157b25fcdbfcec8afd8992c39c27b4810f | 54abd5a6dc3607b16f7f9b872bd230a8d50c390c | /Python2.7/HTML/HTML.py | 8c1fc63ce42a69fd2dd036f47e57ed2d4b8d34e7 | [] | no_license | zym1115718204/mygit | a7c57cf93d0975ce9f1c1388a81924bfaa8f80db | 428b70d688080768f5bc7b8b80215661dc829454 | refs/heads/master | 2021-01-21T12:53:44.237682 | 2016-04-18T11:23:00 | 2016-04-18T11:23:00 | 55,469,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | #!/user/bin/python
# -*- coding: utf-8 -*-
#filename:HTML
from HTMLParser import HTMLParser
from htmlentitydefs import name2codepoint
class MyHTMLParser(HTMLParser):
def handle_starttag(self, tag, attrs):
print('<%s>' % tag)
def handle_endtag(self, tag):
print('</%s>' % tag)
def handle_... | [
"zym1115718204@163.com"
] | zym1115718204@163.com |
59f762dbd740848498df3ffc2fe417d5410db50b | 2898b1102ae90223490ea239d8683130e2c334de | /python/src/sample1.py | b779b9eabc140870bbcf114d9cb5030061476010 | [] | no_license | kyukio413/ex21 | b621096c56a4ed4d48334262a9c0682abfeb2279 | c8902f73fd8ba8d5cab4c36f92118412a05d21d4 | refs/heads/master | 2023-03-28T04:40:47.317428 | 2021-04-07T04:10:04 | 2021-04-07T04:10:04 | 355,387,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0, 100, 0.5)
Hz = 5.
y = np.sin(2.0 * np.pi * (x * Hz) / 100)
plt.plot(x, y)
plt.savefig('test.png')
| [
"dzungarian@gmail.com"
] | dzungarian@gmail.com |
e0f989552808dac805e96ac320457b7df3f0e941 | 71123cfce3fccb7a1b8038e9e999bc4dc3d13a53 | /src/ast.py | 58bf6d5ff2a4a2bd6898f338a5a942c80ca64e36 | [] | no_license | fred-direne/ecom06_compilador | 38de1a3de4ccab45e30d03a2b63ce01b814e1990 | fe72c8dfb1944a610bef4e30d4465abb0d99b20e | refs/heads/master | 2022-03-01T20:37:23.054028 | 2019-10-28T14:28:22 | 2019-10-28T14:28:22 | 213,926,902 | 0 | 0 | null | 2022-09-09T19:46:39 | 2019-10-09T13:31:31 | Python | UTF-8 | Python | false | false | 7,578 | py | from src.errors import *
class Programa():
def __init__(self, statement):
self.statements = []
self.statements.append(statement)
def add_statement(self, statement):
self.statements.insert(0, statement)
def eval(self, env):
result = None
for statement ... | [
"leonardocosta013@gmail.com"
] | leonardocosta013@gmail.com |
228e05a08f5d3258187f846828e169149c0f49e7 | 3099ac2fa4a4b16ea35dbf6faef03351b7551430 | /server/src/component/level/CharacterLevelComponent.py | 3c95f3555d289afc97ba675ffe4b8397b32090ee | [] | no_license | freedream520/sanguogame | a63fad15aaedeefd412515082409e4dd04858755 | 1019a8f22fd6b96e33d61fd3a5ada59e72f312cb | refs/heads/master | 2021-01-14T11:38:59.954478 | 2014-06-30T16:07:37 | 2014-06-30T16:07:37 | 25,525,558 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,040 | py | #coding:utf8
'''
Created on 2009-12-2
@author: wudepeng
'''
import math
from net.MeleeSite import pushMessage
from component.Component import Component
from util import dbaccess
from util.DataLoader import loader
class CharacterLevelComponent(Component):
'''
level component for character
'''
def __i... | [
"shadowinlife@gmail.com"
] | shadowinlife@gmail.com |
8dd5effacf8a5cd73146dd427ec175f35bcd0883 | bd1e283b66ea5c89d40a048e48a0f175c0062348 | /railroad/modes/movetrackobjectmode.py | 66bb5f8e80d479eb0198ec8f3244e9d52f1ed558 | [] | no_license | boberstarosta/railroad | 76e8de50415bc27e8cd38ab9e5435fdb5fd8a437 | 3c5c1ff1651d663f2374bdb1c95e86ebf2b7a21b | refs/heads/master | 2020-03-30T05:12:30.627984 | 2018-10-06T15:33:08 | 2018-10-06T15:33:08 | 150,786,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py |
import pyglet
from .. import geometry
from .basemode import BaseMode
class MoveTrackObjectMode(BaseMode):
name = "Move track object"
def __init__(self, app):
super().__init__(app)
self.active_to = None
def apply_position(self, mouse, to):
nearest_segment = self.app.network.get_... | [
"boberstarosta@gmail.com"
] | boberstarosta@gmail.com |
d98c762be03d1b8666775fff3909b4bf759ac3f0 | 9fb9eedff043bf706e34df741f91e91fbe7eadb5 | /sandbox.py | e36a68b9dd85dfddf0b018b47670eba4fda62b41 | [] | no_license | zhengyuyu/sandbox | 2bbde89b88cab2910a0eeb9c661d9bfa7cd40db6 | a10ccedb95eb8341f894a1e90a49adf008d3dbef | refs/heads/master | 2021-01-18T14:10:20.943286 | 2013-09-17T21:26:32 | 2013-09-17T21:26:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,613 | py | import signal
import __builtin__
class SandboxError(Exception):
pass
class TimeoutError(SandboxError):
pass
def make_secure():
""" Clear the unsafe builtins. Reference: https://isisblogs.poly.edu/2012/10/26/escaping-python-sandboxes/ """
UNSAFE = ['open',
'file',
'exe... | [
"nuistzyy@gmail.com"
] | nuistzyy@gmail.com |
40b76af72aec1dc5a3e6b91f4e5e44e96c66ae8e | adf60ace632d9958d2c555a4dadc6b9a4c872532 | /mrf/celestial.py | aeac80d61add50f5ed43f21428b81806051caba4 | [
"MIT"
] | permissive | johnnygreco/mrf | 5d515dda630ab4ed2367bfec20434a0c07149169 | e7d5d30c03b9b273fb3537da591acf9c19030eeb | refs/heads/master | 2020-07-04T04:03:20.511519 | 2019-08-13T04:01:15 | 2019-08-13T04:01:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,127 | py | import os
import copy
import scipy
import numpy as np
import matplotlib.pyplot as plt
from astropy import wcs
from astropy.io import fits
from astropy.table import Table, Column
import astropy.units as u
from astropy.coordinates import SkyCoord
from .display import display_single, SEG_CMAP
from .utils import img_cuto... | [
"jiaxuan_li@pku.edu.cn"
] | jiaxuan_li@pku.edu.cn |
0ca4959de6189a20037715a3f49bfe953201051a | 214e9b526572a6a47e2ebbe8e84e940515a5ab1e | /wikipedia_random.py | 953900997fe5019e55130666ac2073bd72f9e392 | [
"Unlicense"
] | permissive | GabinCleaver/Wikipedia_Random_Article | 920dcd8ebb432fbb0a84a43c309d4bda09de2ed8 | c767a86a5ae9f2a8c6f4c0bcf77ff024976ce541 | refs/heads/main | 2023-05-10T16:02:04.193490 | 2021-06-05T17:08:43 | 2021-06-05T17:08:43 | 374,166,152 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | from bs4 import BeautifulSoup
import requests
from colorama import Fore, init
init()
try:
res = requests.get("https://en.wikipedia.org/wiki/Special:Random")
res.raise_for_status()
wiki = BeautifulSoup(res.text, "html.parser")
r = open("random_wiki.txt", "w+", encoding='utf-8')
hea... | [
"noreply@github.com"
] | GabinCleaver.noreply@github.com |
9d24b9db84aebb68970665b9b994d650ffa461e9 | 0544ff7fc0736d2f6dded68e5ae27f4e2ddf7a06 | /sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_sql_pool_blob_auditing_policies_operations.py | 9108426818f5f91c6798e42456dd8b7b978c8b93 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | dhanizael/azure-sdk-for-python | 160469181f80593b0dff9104a8eb0d5b781722a9 | 17a1d048a8be4c869c7b943b2aff5a0c8213652e | refs/heads/master | 2023-03-04T14:47:54.334635 | 2021-02-10T20:16:40 | 2021-02-10T20:16:40 | 337,845,515 | 0 | 0 | MIT | 2021-02-10T20:37:41 | 2021-02-10T20:30:09 | null | UTF-8 | Python | false | false | 13,482 | 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"
] | dhanizael.noreply@github.com |
a269b1d07daab4d38f2a6fa322b72ded7dcdeb1c | 3ec7e13a28fe72d5a4c676ffe0738d8ae4a6aa51 | /day7/day7.py | 2a0161eaaeb3e97e92a4c1a0f0d6140b4d5d3787 | [] | no_license | tibdhond/advent-of-code-2019 | 2a23d63f635e3406e1de6d6c2d68b544f11f57c5 | 2523846e8689c7083e767712cb8b3dfe659dc9d4 | refs/heads/master | 2020-09-24T06:15:47.420059 | 2019-12-17T11:18:55 | 2019-12-17T11:18:55 | 225,685,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,724 | py | from itertools import permutations
import threading
stdin = []
thread_turn = 0
def add(array, index, params):
value1 = array[int(array[index+1])] if params[-1] == "0" else array[index+1]
value2 = array[int(array[index+2])] if params[-2] == "0" else array[index+2]
array[int(array[index+3])] = str(int(valu... | [
"Tibo.DHondt@UGent.be"
] | Tibo.DHondt@UGent.be |
de8d2940a82ec1a961cce3d822626965552a1b0e | ef3ecda07a9c7e0c380a18fb249e6c8232757f83 | /DjangoDir/PRDProject/PRDApp/forms.py | 1da07852d113c27b3211a4e48bac5d8f1542bac1 | [] | no_license | Harry050/DRF_practice | 1f8ae439b6b5fedea5e923bf93352186ff6cf13b | a67f17b2a140bbf16959b197ab4e081a2ec03e1f | refs/heads/main | 2023-06-16T10:35:56.169137 | 2021-07-14T02:54:16 | 2021-07-14T02:54:16 | 385,797,476 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django import forms
from .models import Process, Process_Thread, Process_Sub_Thread, UserProfile
from django.forms import ModelForm
class CreateUserForm(UserCreationForm):
class Meta:
model = User
... | [
"singh.harish050@gmail.com"
] | singh.harish050@gmail.com |
9681ef10bf650fe0a735453a0b8947a17d656494 | 61f543a87f506fceb1c0ffe8334fc46e23291751 | /lab-2.py | 623dde2bdb405d0e1fdee8d8248f3f9eb148a7a6 | [] | no_license | tkamag/python-reviewer-test | 2465939c7df4ab38d2a25638d63396c1d616296f | 206aae402b1ac8933e13288e41871d7a78fc944a | refs/heads/main | 2023-07-16T05:08:32.179284 | 2021-08-16T21:48:24 | 2021-08-16T21:48:24 | 396,701,066 | 0 | 0 | null | 2021-08-16T21:48:25 | 2021-08-16T08:40:50 | Python | UTF-8 | Python | false | false | 817 | py |
operations_count = 0
def main():
ask_again = True
while(ask_again):
a = input("Enter the numerator: ")
b = input("Enter the denominator: ")
result = perform_division(a,b)
print(result)
ask_again = input("Do you want to perform another operation? Enter yes or n... | [
"thierry.kamagne@gmail.com"
] | thierry.kamagne@gmail.com |
c9e4676b255b0e9278769a7fba0086e707c3e0d9 | f7cca57165872df8eb4a21904eb20b45cc742e92 | /sokubaikai/urls.py | 6f6e5529201930fca1ef9320f09ef865c81fa2b5 | [] | no_license | hirotb/sokubaikai_manage | e550bab6f21c9060aeebd672946c026f3b85bf23 | 0ef8b1c163f3bf26a5b0ed1c514166e7f885c12c | refs/heads/master | 2020-04-22T18:57:45.703024 | 2019-02-14T22:24:35 | 2019-02-14T22:24:35 | 170,593,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | """sokubaikai_app 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')
Clas... | [
"a@example.com"
] | a@example.com |
005104a1ab267b5e9e5e794dae9db08901943e52 | ace682cba55e65ec1e07f4943d74e1d23b070b48 | /demo5.py | ce995ec9df09faef8fe527ce9c7ec4b744ea28bf | [
"BSD-3-Clause"
] | permissive | andy31lewis/brySVG | 122e4ecf52fc94cc5952a7cd05e6019ba875b812 | a504d95214418aa5c0138992bc1c5355dfa1cf28 | refs/heads/master | 2021-08-16T18:07:14.061378 | 2021-06-12T16:50:27 | 2021-06-12T16:50:27 | 140,744,896 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,520 | py | from browser import document
import brySVG.drawcanvas as SVG
def onButtonClick(event):
event.stopPropagation()
buttonid = event.currentTarget.id
for button in buttons.values(): button.setFillColour("pink")
buttons[buttonid].setFillColour("lime")
canvas.setTool(buttonid)
cursorname = buttonid if... | [
"a.lewis@mathsanswers.org.uk"
] | a.lewis@mathsanswers.org.uk |
9aba9166ea828d0f0f34e028541acae11ebffba2 | e3376c04ecca6eaf0186f8a38eef245e03ddbe92 | /Modulo1/02_Segunda_Semana/Condicional1.py | a64afd04945e083015e229abfb35aab17db5c33a | [] | no_license | lamorenove/Ejercicios-Python | d0b31810ba5d0e6d4ab922b5e325ed76cc57e324 | ee26d1dd30db8c7e088a668e11dc635b779d933a | refs/heads/master | 2023-06-24T05:46:33.383620 | 2021-07-22T17:20:23 | 2021-07-22T17:20:23 | 385,313,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | '''
CONDICIONAL SIMPLE
Para escribir progrmas útiles, casi simpre necesitamos la capacidad de comprobar ciertas condiciones y cambiar el comportamiento del programa.
Las sentencias concidionales nos dan esta capacidad. La forma más sencilla es la sentencia if
'''
'''
Algoritmo que pide un color, si se digita el color ... | [
"lamorenove@gmail.com"
] | lamorenove@gmail.com |
6d0cba5ca8241ae0bba222073319191563f8268c | 5c31875cd922113a89fd2fde355c4dce03968249 | /framework/views.py | 095db861ec8970dd2efbce50f952865d57fa2bf3 | [] | no_license | AndreaBravi/red-crows | 1f75a5c2b047f60015bfd527c5f4cf11970d458a | c333d5083f9e7cd2dec701f103134971bfbfcdb2 | refs/heads/master | 2021-01-19T17:41:58.366116 | 2015-03-18T01:43:10 | 2015-03-18T01:43:10 | 31,160,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,449 | py | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.views import generic
from framework.models import Choice, Poll, Musician, Review, Reviewer, Music
from framework.forms import MusicianForm, ReviewerForm
class In... | [
"abravi@apple.com"
] | abravi@apple.com |
1095ed5e0a63b1a5cd770baaadf5d0f94e2770b7 | 32cb0be487895629ad1184ea25e0076a43abba0a | /LifePictorial/top/api/rest/HanoiDataserviceWriteRequest.py | 4546e30919759891e21635e1140fc9b81459efb1 | [] | no_license | poorevil/LifePictorial | 6814e447ec93ee6c4d5b0f1737335601899a6a56 | b3cac4aa7bb5166608f4c56e5564b33249f5abef | refs/heads/master | 2021-01-25T08:48:21.918663 | 2014-03-19T08:55:47 | 2014-03-19T08:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | '''
Created by auto_sdk on 2014-02-10 16:59:30
'''
from top.api.base import RestApi
class HanoiDataserviceWriteRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.app_name = None
self.data = None
self.params = None
def getapiname(self):... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
2575dcbfeb15eeac9bc117f6e1b0c41e27116d61 | b4eda202d51e2677f6f1584ed8371ff36f12b421 | /easy/number_len_sort.py | 608cf8bdb994d686008a6b1281ecbcd009d487d8 | [] | no_license | OM-Ra/interview_python | af3d66049aa985ae2fc2f1deb30988f7245a7a8c | 70d4464d9b54a5fce1a51765fa86688af3d1a8de | refs/heads/master | 2023-08-31T14:59:20.894025 | 2021-10-21T18:52:28 | 2021-10-21T18:52:28 | 386,342,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | # -*- coding: utf-8 -*-
'''
Напишите функцию, которая будет принимать список чисел и возвращать
список тех же чисел, но в отсортированном виде.
Сортировать числа нужно по их длине.
Число, состоящее из одной цифры, будет идти первым,
а число с наибольшим количеством цифр — последним.
Если два и больше чисел имеют оди... | [
"syndeft@gmail.com"
] | syndeft@gmail.com |
03cea530563ac06991a2fb6e489a54a8b9af1f84 | 2a069c0c4ed0261f7252c8ada8cd727f138c5f62 | /homework/jinx.py | 17cf8a77266b85705d2e0d1bb321c0fe578c518a | [] | no_license | 790212828/python_pratices1 | 7c9d919df3649e3cca966de0bb7054e08f3efa60 | 925c391e0fb1c7d73b8c04d5fb052b66f819e118 | refs/heads/master | 2023-04-22T11:38:41.422725 | 2021-05-02T09:15:45 | 2021-05-02T09:15:45 | 363,607,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from ez import EZ
from hero import Hero
class Jinx(Hero):
hp=1000
power=210
name = "Jinx"
hero_line = "Jinx 进攻"
# def fight(self,enemy_hp,enemy_power):
# final_hp=self.hp
# final_enmey_hp=enemy_hp
#
# final_hp=final_hp-enemy_power
# final_enmey_hp=final_enmey_hp... | [
"790212828@qq.com"
] | 790212828@qq.com |
5459506df297d93b8fd7fb89dd2efc2325135cc4 | 04b777aa3ac3ad998c388e2a74cf90f9babccddd | /plane_main.py | 747eca293e04fbadf88353a96f146f3d447d2af2 | [] | no_license | Sleepybear32-E/Sleepybear.github.io | b6b34e2206b5af452b396c4158e0bda35c9b11a5 | 3a3d700b7b56cdb9f09876399d3c04282a35ed07 | refs/heads/master | 2020-03-25T08:44:30.639799 | 2018-08-05T16:43:19 | 2018-08-05T16:43:19 | 143,630,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,245 | py | from plane_sprites import *
class Planegame(object):
def __init__(self):
# 1.设置游戏窗口
self.screen = pygame.display.set_mode(SCREEN_RECT.size)
# 2. 设置标题
pygame.display.set_caption("Michael's PLANEGAME")
# 3.创建游戏时钟
self.clock = pygame.time.Clock()
#... | [
"noreply@github.com"
] | Sleepybear32-E.noreply@github.com |
88a98959dc34080d7672403f049a3d324137a9f1 | 71c433c0b1ac502e2099346cdfcf071429683dbf | /checkout/tests/__init__.py | 3f62ea7ccd270a59728e9f580874df7edb802aa4 | [] | no_license | mrd136/BDMS-ERP | 54c04bd96ed72cb74dadbb11539a0f32574c7f97 | 7187bf22cfc879aa55af49491885dfe382a88992 | refs/heads/main | 2023-08-02T17:02:13.734237 | 2021-09-14T20:16:11 | 2021-09-14T20:16:11 | 406,798,326 | 0 | 1 | null | 2021-09-15T14:22:28 | 2021-09-15T14:22:27 | null | UTF-8 | Python | false | false | 217 | py | # Copyright 2021 Vauxoo (https://www.vauxoo.com) <info@vauxoo.com>
# License OPL-1 (https://www.odoo.com/documentation/user/13.0/legal/licenses/licenses.html).
from . import test_checkout
from . import checkout_data
| [
"michael@sunguza.com"
] | michael@sunguza.com |
7e35f883917daa22e345865897b179caecaa535c | 5a3d41024bf4c1d2a0c6bdabe160333066cd34b7 | /ocdaction/tasks/migrations/0005_created_initial_anxiety_score_model_rename_task_name.py | 51ed5c41016af020ecc5900da67f7955a306f5ad | [] | no_license | HJSFoundation/ocd-action | 6271ef9cf5e8225c85f94f409d721dcc00870910 | c90409bb56dc709b974ffc7b68fa2f8f4bb9aae9 | refs/heads/master | 2021-06-21T13:51:20.183751 | 2017-08-29T21:22:44 | 2017-08-29T21:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2017-02-05 13:58
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tasks', '0004_created_initial_anxiety_score_model'),
]
operations = [
migrations.Ren... | [
"Masher@iMac.home"
] | Masher@iMac.home |
ff0442a8f224f25bec3735cab46e6f77f63da826 | 7a3757a341fb1c5a06482e2e5cb066a967a6eff5 | /app/schemas/similarity.py | 257682f2095194b137bd953deb64c0a4640937e0 | [
"MIT"
] | permissive | ninoseki/uzen | 4bff6080b9c0677dcf25abc0f104eca3fb92ed8a | 2a0065aa57fe3891c46e1174c1dc9aab673e52a8 | refs/heads/master | 2023-09-02T01:59:18.893712 | 2022-08-28T09:49:12 | 2022-08-28T09:49:12 | 241,092,872 | 87 | 9 | MIT | 2023-06-01T01:08:05 | 2020-02-17T11:37:59 | Python | UTF-8 | Python | false | false | 1,485 | py | from functools import lru_cache
from typing import List, Optional
from pydantic import Field, validator
from app.schemas.base import APIModel
from app.schemas.snapshot import PlainSnapshot, SnapshotSearchFilters
class SimilarityScan(APIModel):
"""Similarity scan payload"""
html: str = Field(...)
thresh... | [
"manabu.niseki@gmail.com"
] | manabu.niseki@gmail.com |
c1f138c3870e76e44ee79a563e9a268b36afc646 | 285539d4997b438eed0a428171ec5685594b5b8c | /my_library/model/__init__.py | 5a0a48f1a634290133deb544cab4d6bce397a01e | [] | no_license | p-null/Forum-Data-Mining | 671ef3fffd3bf59b14f5def57a1f825f7b6212d6 | 35b3139c709a1157ebe5288993a5c941b1043ebc | refs/heads/master | 2022-03-22T21:06:28.567450 | 2019-11-22T05:26:45 | 2019-11-22T05:26:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | from my_library.model.text_classifier import TextClassifier | [
"tingkai.zhang@outlook.com"
] | tingkai.zhang@outlook.com |
58d19a48f36d79f7d419d5fb3667070e294f8251 | b0bba8c8838e4c3c57ecd969216bc15c74d435fa | /Scripts/ReplaceMesh.py | 5da723df0a42f9a1558ff36cf0043abd4682d311 | [] | no_license | MikeWhitaker/GameResource | a6258b17529837a9a31e8190a602d1d100c5aa67 | 58e08c58825cc4a3f950355befb6714e7515ee4a | refs/heads/master | 2021-01-13T08:53:23.317330 | 2016-11-22T09:31:00 | 2016-11-22T09:31:00 | 72,001,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | import bpy
# the name of the mesh to copy to all selected objects
mesh = bpy.data.meshes["Cube"]
for o in bpy.data.objects:
if o.select:
o.data = mesh | [
"whitaker.mj@gmail.com"
] | whitaker.mj@gmail.com |
d8470e59e499648032b0b3332133ee5aa0924156 | 457258ba74e4e6a6ba90dfcca405d71e04892bde | /interpolation/smolyak/grid.py | f16123952f36cfa40a973cb78e25fb61dcb7ae62 | [
"BSD-2-Clause"
] | permissive | EconForge/interpolation.py | 4683f30157c2cf4738de837f2dec8eb2dac865cf | 19b2cd3882003c19b7aeb7c35fca5cdad3fe1d5e | refs/heads/master | 2023-08-08T06:52:03.394943 | 2023-07-25T20:57:21 | 2023-07-25T20:57:21 | 8,406,709 | 116 | 37 | BSD-2-Clause | 2023-07-25T20:46:36 | 2013-02-25T10:03:49 | Python | UTF-8 | Python | false | false | 25,964 | py | """
This file contains a class that builds a Smolyak Grid. The hope is that
it will eventually contain the interpolation routines necessary so that
the given some data, this class can build a grid and use the Chebychev
polynomials to interpolate and approximate the data.
Method based on Judd, Maliar, Maliar, Valero 2... | [
"pablo.winant@gmail.com"
] | pablo.winant@gmail.com |
fd9a95536b8e4efdee560f0e82b8a24dfa6888e8 | d674f1b1b47d4e526e28c23372fda453b86dc456 | /TreeMaker/TreeMaker/python/__init__.py | fe1dca774304ed083c9e9ef6bb9f66a7688b9785 | [] | no_license | amkalsi/TauPOGUpgrade | 5ac29a8f1dd2fcfca922aa3ca88cca95cad5f72a | d348d2325051c783f12c79df721b415f50b89c45 | refs/heads/master | 2021-01-18T17:18:51.785086 | 2015-03-10T08:07:28 | 2015-03-10T08:07:28 | 24,678,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | #Automatically created by SCRAM
import os
__path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/TreeMaker/TreeMaker/',1)[0])+'/cfipython/slc5_amd64_gcc472/TreeMaker/TreeMaker')
| [
"rimmy330@gmail.com"
] | rimmy330@gmail.com |
c47e5b5332aeb48b3740fc45c304e312bb2cc8c8 | 454d2dd8e8d181e8bd40e6c20a7a275699377ef6 | /Prac_04/total_income.py | 4524a4603e6aa44d82279e9850f8ed6dedd5afa2 | [] | no_license | RioThomas/CP1404_Practicals | d9af835ce2c23621d4e1385f60f5a69f5f21eadb | 2e9c725937155c82d8d5945bf9822fa405cca214 | refs/heads/master | 2022-11-04T16:33:17.974862 | 2020-06-18T02:09:20 | 2020-06-18T02:09:20 | 245,760,239 | 0 | 0 | null | 2020-06-18T02:09:21 | 2020-03-08T05:53:15 | Python | UTF-8 | Python | false | false | 694 | py | """
CP1404/CP5632 Practical
Cumulative total income program
"""
def main():
"""Display income report for incomes over a given number of months."""
incomes = []
number_of_months = int(input("How many months? "))
for month in range(1, number_of_months + 1):
income = float(input("Enter income fo... | [
"53397329+RioThomas@users.noreply.github.com"
] | 53397329+RioThomas@users.noreply.github.com |
f391b8bbfac34b2969f7efedd758ba809ad3b557 | 4dbebba87a95bfa435081921100b9b78c6b91d4c | /firstpython.py | 6dd7f8b8c003b8cd09f1c9ce196a32caa0379e7e | [] | no_license | Ken-Wise/testrepo | de724149c91684edfc11806688fbd4c8d22a63d1 | a0e4ac574e568b2865da9a9afe1abab0a1736754 | refs/heads/main | 2023-03-14T15:53:28.861112 | 2021-03-02T04:33:12 | 2021-03-02T04:33:12 | 343,634,843 | 0 | 0 | null | 2021-03-02T04:33:12 | 2021-03-02T03:34:26 | Python | UTF-8 | Python | false | false | 51 | py | #Display new Python File
print("New Python File")
| [
"noreply@github.com"
] | Ken-Wise.noreply@github.com |
7e2b85418ffafc13fefe95746e1074280425aa4d | 1b3728d0de91d746afc1f649eff289b79e910958 | /newsapp/admin.py | b0e7bf6bdf00a93f80fb06ececac193a80c39619 | [] | no_license | vgaicuks/django-newsapp | 396d8a96ceaaf2d5bce9c0c143204b53ff5d2d2b | 9c544e01ffa06f516e2c25a5e1be0b900146caed | refs/heads/master | 2021-01-15T10:24:54.885193 | 2014-10-29T21:19:16 | 2014-10-29T21:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from .models import New
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
if 'modeltranslation' in settings.INSTALLED_APPS:
from modeltranslation.admin import TranslationAdmin
ParentModel = TranslationAdmin
else:
... | [
"a@trialine.lv"
] | a@trialine.lv |
bdfadb61a7aac33e0ace7546d022b20ae19335d9 | 3db588499dd7c86db6104fb206bfa256c660c526 | /src/mydlgo/tests/test_gtp.py | 632cabf3ca504a51dc716a01f59f43d357c416d5 | [] | no_license | SojiroNishimura/my-dlgo | 1837e400782fd4bb7dbc83e16a410c5f0a67bcbc | aafc46e76bf20c70a548a36e6761d9f2c5a9a40a | refs/heads/master | 2020-08-02T04:55:57.831640 | 2020-06-23T11:24:19 | 2020-06-23T11:24:19 | 211,241,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | import pytest
from mydlgo.gtp import CommandType, Command, Color, Point, Vertex
@pytest.fixture(scope="module")
def P():
from typing import NamedTuple
P = NamedTuple("P", [("row", int), ("col", int)])
return P
@pytest.mark.parametrize("size", [9, 13, 19])
def test_boardsize_with_valid_size(size):
... | [
"sjiro.nishimura@gmail.com"
] | sjiro.nishimura@gmail.com |
cff530542f2cad59bae355c3551746f6d0b674fa | 9967f075b8386c5a0d1f5db72b822e45842cd174 | /manage.py | 6ed771f6709cebe5fb1191c5d5296a30201564d0 | [] | no_license | hardtosaygoodbye/homestay | 6f62eb8a3d2716c4940414663337a0dad5f250bb | 8be4c28a56c38406e4e025eadbdd1b4bdb089a9a | refs/heads/master | 2020-04-11T07:18:15.406454 | 2018-12-22T05:56:49 | 2018-12-22T05:56:49 | 161,606,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'homestay.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are... | [
"hardtosaygoodbye@sina.com"
] | hardtosaygoodbye@sina.com |
fbb8527899cf6672f63cfc73def7ed71402a62cc | b8260b664833f6edbe61ba226a32cb22c9afb72a | /osmnx/truncate.py | a9e8e0550a16a4afea579b09952ced70238cfa7c | [
"MIT"
] | permissive | PratipRana/osmnx | a6cd515945e84f1c6a0552df21b1000e36da5ed9 | 9e063d441163c3b1e40390ab21838cc5f2b36410 | refs/heads/master | 2022-09-06T13:34:53.556633 | 2020-06-01T15:15:34 | 2020-06-01T15:15:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,217 | py | """Truncate graph by distance, bounding box, or polygon."""
import geopandas as gpd
import networkx as nx
import pandas as pd
from shapely.geometry import Point
from . import utils
from . import utils_geo
from . import utils_graph
def truncate_graph_dist(G, source_node, max_dist=1000, weight="length", retain_all=Fal... | [
"boeing@usc.edu"
] | boeing@usc.edu |
c02a249003fd8e35d1379a6b5eab282f99f928e1 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/T11-FC-SP-POLICY-MIB.py | 9a640419ee5d983b90b82003634a6b2ec6febda3 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 66,483 | py | #
# PySNMP MIB module T11-FC-SP-POLICY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/T11-FC-SP-POLICY-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:07:33 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
44dfc718b6e3fc2f1c65e8c1d482ac4b732644a6 | 6f7e6d4225919b65829ce29f23527b36ac04d77d | /kik_profile/urls.py | abe54215cef16bbe3562f644cfc0cd68ab4d370d | [
"MIT"
] | permissive | kimilguk/Django-kimilguk | 1756a7f5dbd84380571314656add53f4fd7f837a | d110ff68015832fa7c94a4fa23a3e8881fc3520c | refs/heads/master | 2023-05-03T06:06:44.982206 | 2021-04-30T04:10:31 | 2021-04-30T04:10:31 | 362,828,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('list/', views.career_list, name='career_list'),
path('award/', views.award_list, name='award_list'),
path('award/create/', views.award_create, name='award_create'),
path('award/read/<int:pk>/... | [
"boramcom@daum.net"
] | boramcom@daum.net |
5ae0c6fffbf2bcf472e2f4fa5da1974390f29cff | d666fc9cfbbf59253b744ee0664803a51bbb1898 | /scripts/sac_env/local/bin/pygmentize | 328b06da4fe80de1b302b4c195a4e2b0d431263a | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | akshay-sharma1995/sac | 0968ca50b85e700d0816c03f3d3aa5ce7b9f20d7 | 0c506e8f4f4d7323d88f007476721537e7fb8817 | refs/heads/master | 2020-09-23T14:10:39.697595 | 2020-02-13T16:01:54 | 2020-02-13T16:01:54 | 225,518,093 | 0 | 0 | NOASSERTION | 2019-12-03T03:00:56 | 2019-12-03T03:00:55 | null | UTF-8 | Python | false | false | 260 | #!/home/abhijeet/Desktop/abcd/sac/scripts/sac_env/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"akshay.iitkbkn@gmail.com"
] | akshay.iitkbkn@gmail.com | |
65f5de6be9f02e05e865abdddf6e58ab8f868791 | b5238647ba5c961f74ccbfd0f39d402ab0c45029 | /correlation/scatters1.py | ccef3dbf50c6832120ff0930b11aca0453da15a2 | [] | no_license | KenoLeon/PythonDev | 5582427d1c4b0eca48e323cc27235db4aff679c9 | ca64aba94e1c4cb12661e83ab1b5f40700aa6c06 | refs/heads/master | 2021-05-11T07:51:28.017239 | 2020-08-08T18:45:25 | 2020-08-08T18:45:25 | 118,033,531 | 1 | 9 | null | null | null | null | UTF-8 | Python | false | false | 650 | py |
#Import Libraries
from bokeh.models import HoverTool
from bokeh.plotting import figure, show, output_file
import pandas as pd
# Read Data
df = pd.read_csv("correlation/weatherIceCream.csv", usecols=['Date','AVG temp C','Ice Cream production'])
hover = HoverTool(tooltips=[
("(Temp,Ice Cream Production", "($x, $y)... | [
"me@k3no.com"
] | me@k3no.com |
968d49da59f36b79b4d99e991e0797c40b6cbe57 | 6d66584d18e581cb9e90a7c2daab2709c545666d | /subscriber/src/subscriber.py | 6c42a170902397e999f3a30e5123f321938ed910 | [] | no_license | fabiobedeschi/iiot-userservice | f90da4988417349e239dbb04a55608383441f82c | 884d8c51e4b73cc6439a4484522f4d44514b303f | refs/heads/master | 2023-05-21T01:11:13.122803 | 2021-06-11T15:55:51 | 2021-06-11T16:00:22 | 344,623,800 | 0 | 0 | null | 2021-06-11T14:08:40 | 2021-03-04T22:14:44 | Python | UTF-8 | Python | false | false | 1,300 | py | from logging import getLogger
from os import getenv
from paho.mqtt.client import Client
from ujson import loads
from .database import Database
logger = getLogger()
class Subscriber(Client):
def __init__(self, db=None, topic=None):
super().__init__()
self.db = db or Database(keep_retrying=True)... | [
"fabiobedeschi5@gmail.com"
] | fabiobedeschi5@gmail.com |
f88931e5c35b1af9590e3763f0bf73700c04d323 | dbd678a51e8b9db4320bda1a2124767cdaa40fdc | /log.py | e5e278b3e5c5e0c9e479fc13fba3170766dc3b9f | [
"MIT"
] | permissive | chensonglu/ssd.pytorch | 46c375828cf1d3014d029c46087492d6db887f8b | 22de68f603fd55a6e72f93ef304449f240db31bd | refs/heads/master | 2023-01-09T19:35:14.561724 | 2022-12-30T09:27:37 | 2022-12-30T09:27:37 | 188,745,601 | 4 | 1 | MIT | 2020-11-14T08:16:55 | 2019-05-27T00:29:25 | Python | UTF-8 | Python | false | false | 1,074 | py | import logging
import time,os,sys
if sys.version_info.major == 3:
import configparser as cfg
else:
import ConfigParser as cfg
class log(object):
# root logger setting
save_path = time.strftime("%m_%d_%H_%M") + '.log'
l = logging.getLogger()
l.setLevel(logging.DEBUG)
formatter = logging.F... | [
"chenslvs@163.com"
] | chenslvs@163.com |
5862cef2cbcda42f964c3446310223fed5ae2879 | cce830c9b076bd2147b129d03efc52f44817c571 | /backend/locations/services.py | 1580b87925ab15d4b9a8eb5e5da9e1c062b6cc7e | [] | no_license | ashd32/linkedIn-clone | 9b6859628cb5214e30b049d70c595399e2928f8e | 83a96ebc823c7f39260d8fac18f5e39c0fa2020b | refs/heads/master | 2020-08-23T17:58:37.546602 | 2019-09-24T17:45:36 | 2019-09-24T17:45:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | import requests
from .models import Country, City
class GeoLocationApiClient:
BASE_URL = "https://api.hh.ru"
ALL_COUNTRIES_URL = '/areas/countries'
CITIES_FROM_COUNTRY_URL = '/areas/{0}'
@classmethod
def get_all_countries(cls):
response = requests.get(cls.BASE_URL + cls.ALL_COUNTRIES_URL)... | [
"maxim226356@mail.ru"
] | maxim226356@mail.ru |
3e12c123598f024e7a232f15fc7f4946c1f61e72 | 0e010fefc92258efa1279ecc75149c0fe8050c4a | /model/cliArgument.py | 1122cc592508fbe9e37d5faf7044b99e76e936ec | [] | no_license | yanivbenzvi/cvdm-cli | 8ca82e36504d250593b4b83753453b82c345c66e | 5b4ea87df72decf017615f6260883dde8c388131 | refs/heads/master | 2021-09-03T20:04:25.062324 | 2018-01-11T15:49:10 | 2018-01-11T15:49:10 | 113,788,326 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | import argparse
text="CV's manager"
parser=argparse.ArgumentParser(description=text)
args = None
def arg_command():
"""
function adding all necessary argument
"""
global args
parser.add_argument("--login", action="store_true", help="if you want to login")
parser.add_argument("--sign_up", "-su"... | [
"yanivbenzvi023@gmail.com"
] | yanivbenzvi023@gmail.com |
df622ac604a77184763b5e833724bc3afb5e47b9 | e8bf00dba3e81081adb37f53a0192bb0ea2ca309 | /domains/explore/problems/training/problem196_EE.py | 461acff0df75b97b0fd0be169bf9ddbdada09445 | [
"BSD-3-Clause"
] | permissive | patras91/rae_release | 1e6585ee34fe7dbb117b084df982ca8a8aed6795 | 0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30 | refs/heads/master | 2023-07-13T20:09:41.762982 | 2021-08-11T17:02:58 | 2021-08-11T17:02:58 | 394,797,515 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | __author__ = 'patras'
from domain_exploreEnv import *
from timer import DURATION
from state import state, rv
DURATION.TIME = {
'survey': 5,
'monitor': 5,
'screen': 5,
'sample': 5,
'process': 5,
'fly': 3,
'deposit': 1,
'transferData': 1,
'take': 2,
'put': 2,
'move': 10,
'... | [
"patras@umd.edu"
] | patras@umd.edu |
527e04c3e2df43a65d5318175e6297130d8ea4bf | 408bf5a15b698e148b5f5cdfc377cc3fea89645e | /mod02/lesson03/hello-device.py | e90587f72742f8a728805783597fc65eae8ef054 | [] | no_license | chuck-a-black/PyNE | dc06143be496530a65f35e5d90f030c5f6245e76 | 17d8916a91ff8ca95ebafcab1d97410c8750cd7a | refs/heads/master | 2021-01-10T13:08:33.876486 | 2015-12-14T17:57:48 | 2015-12-14T17:57:48 | 47,991,766 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | import pexpect
ping = pexpect.spawn('ping -c 5 localhost')
ping.expect([pexpect.EOF,pexpect.TIMEOUT])
print(ping.before)
| [
"chuck.black@tallac.com"
] | chuck.black@tallac.com |
df62f85137c0cc0103a0d3891ff44224548d7fe7 | 5ea14588b6d2d720ba0d8e152348f74671b92a6f | /bin/django-admin.py | 45c22248a5358d09f15a0c9bc23f4c84f60f1f17 | [] | no_license | LeviWyattP/s04p | 7775477ea0a39380253eb4e1b5670de81cb821cb | 7d56e5c4345ff87351dd8e2240210b4f10ca69e8 | refs/heads/master | 2020-12-24T21:27:28.408801 | 2016-05-30T01:21:08 | 2016-05-30T01:21:08 | 59,710,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #!/home/levi/blog/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"leviwyattp@gmail.com"
] | leviwyattp@gmail.com |
23c2230caa19bd3b0f93a09ef4b4c4bd47228ccf | e446bd2ad78a6835402b6d3a852f5f1312b846de | /Frisa/Inventario/migrations/0002_auto_20210305_2350.py | ab28b2c6f6ea63c166f198defd1bc3291275f8ce | [
"MIT"
] | permissive | ag94e/Django_simple_crud | 35fcd47831b4ce1ef980cf4397c15d091c14256b | 1cd85bb42a2e182255e97d9e37bab446229c1ef5 | refs/heads/main | 2023-03-18T18:20:25.169561 | 2021-03-14T08:08:48 | 2021-03-14T08:08:48 | 347,458,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # Generated by Django 3.1.7 on 2021-03-05 23:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Inventario', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='modeloinventario',
name='cantidad'... | [
"a.guerrero.esp94@gmail.com"
] | a.guerrero.esp94@gmail.com |
1829eb7fa9708ae44c7d8604fd42a485cddf16cf | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/valid_20200616203128.py | cdda987d9744f74ed718f6a4384af399c1237fc4 | [] | 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 | 26 | py | # pv4 -->
def valid(str):
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
2c7b2a0d6df9f2dfe95841996308db227c7052fb | d84c269e132935033550ecc834e59c95503d53bd | /src/zeep/wsse/signature.py | 407d93a414ac7fde73cce7e2a34a6990c967db08 | [
"BSD-3-Clause",
"MIT"
] | permissive | renzon/python-zeep | 9d5fda7f7b07e88c4ec78ffa95cfd1d92f075fc4 | 34e44794206b809fff739ac9b8ba4e14127f645f | refs/heads/master | 2020-12-30T15:21:42.463485 | 2017-05-12T22:11:03 | 2017-05-12T22:11:03 | 91,129,538 | 0 | 0 | null | 2017-05-12T21:03:46 | 2017-05-12T21:03:46 | null | UTF-8 | Python | false | false | 9,616 | py | """Functions for WS-Security (WSSE) signature creation and verification.
Heavily based on test examples in https://github.com/mehcode/python-xmlsec as
well as the xmlsec documentation at https://www.aleksey.com/xmlsec/.
Reading the xmldsig, xmlenc, and ws-security standards documents, though
admittedly painful, will ... | [
"michael@mvantellingen.nl"
] | michael@mvantellingen.nl |
ffdcccc83d83ac6a4aa95ef532ebcb5817b876e1 | d2c4c0ffccb8c8de92cc2338e6b9574d93492c4c | /application/__init__.py | fb4c1332af82f7814033bdac3aafb37ea2f43b9f | [] | no_license | liupengzhouyi/LearnFlask | f8a682611ec3bb76b1f17da0ec3d79e720863b13 | 0e361c8f3912a47aa0192239904deaf7dd4818aa | refs/heads/master | 2021-04-14T05:49:30.194510 | 2020-03-25T09:22:03 | 2020-03-25T09:22:03 | 249,210,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # router/__init__.py
from .good import good_blueprint
blueprint = [
good_blueprint,
] | [
"liupeng.0@outlook.com"
] | liupeng.0@outlook.com |
21a4e492b98364a784328df3e23366dc9703e2ea | b516617c64cf357463ad9eac996978601f8581dc | /manage.py | 5be0b9d85da20632a2c231cecb515e75eecc82ff | [] | no_license | susilthapa/IchanguKarateDo | 87c8be4ffd48d9f18b7ebb8faba98339905f36b2 | 2cd446ce688ab1f32af42c9a4c1234f439d36475 | refs/heads/master | 2022-12-13T05:18:40.961487 | 2020-08-30T09:05:38 | 2020-08-30T09:05:38 | 276,271,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Ichangu.settings.dev')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"thapasusil53@gmail.com"
] | thapasusil53@gmail.com |
dbb7c26ab24c77cf8b7bae35df9b83cbadabb520 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_099/ch20_2019_08_26_20_34_30_055432.py | 5b6bd16aa25f031ab5ae04642a101db1f6d2e1ac | [] | 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 | 138 | py | nome=string(input("Qual seu nome? "))
if nome=string("Chris"):
print("Todo mundo odeia o Chris")
else:
print("Olá, {0}".format(nome) | [
"you@example.com"
] | you@example.com |
a1d0397837a90fef07def6f189362fdb5faadb0a | e70c8622d1ba6bbef8e0ad47be17a5835b27f927 | /ras.py | ebb2e754ae4588e6c5236f8aded9eed9da66c384 | [] | no_license | jchacon4/mil | e91b1ccb9ef9420d0e349f144cc3fed02c918a36 | 2739678c49b33aab81782c9deb3417f970883269 | refs/heads/master | 2021-01-02T09:10:35.875828 | 2017-08-02T19:16:32 | 2017-08-02T19:16:32 | 99,152,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | # This is a demo of running face recognition on a Raspberry Pi.
# This program will print out the names of anyone it recognizes to the console.
# To run this, you need a Raspberry Pi 2 (or greater) with face_recognition and
# the picamera[array] module installed.
# You can follow this installation instructions to get ... | [
"kei@keis-MacBook-Pro.local"
] | kei@keis-MacBook-Pro.local |
34a3e06523fafdfbb4fdc2d235b73a2d7be4515a | 1b3cda917b4095a983bbff81520e528c73b6130b | /wishes/wish_app/models.py | f183f0ef6a83c5288fde58be90a7ab48933e7255 | [] | no_license | cuauhtemocmartinez/django_projects | 36dd3ff39816f663cd611cc62adb94ef2d94a48a | ee6fbf144ae2f36a6501d5d4cc50349cabbf9d0c | refs/heads/main | 2023-02-21T20:12:44.113056 | 2021-01-26T02:36:00 | 2021-01-26T02:36:00 | 309,503,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,320 | py | from django.db import models
import re
class UserManager(models.Manager):
def validator(self, postData):
errors = {}
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
if len(postData['first_name']) < 2:
errors['first_name'] = "Your first name must be mor... | [
"mr.cuauhtemocmartinez@gmail.com"
] | mr.cuauhtemocmartinez@gmail.com |
b844e06698da729e17ebecf76c72893e5c36e704 | c5438b999c5af89b292eaeff9e1a1173b8d7ccf2 | /ikcrm/aike/api_request.py | ddb5530958bdebd3b39145c243421ffca542c3b3 | [] | no_license | shellyes/ikcrm | f52d55f948e72dcb37d1d0240a246fc7acfcb2c0 | 871274e01277a3c8cb755ebd5358e861758b395d | refs/heads/master | 2021-07-21T05:52:12.525048 | 2017-10-27T06:56:46 | 2017-10-27T06:56:46 | 108,510,230 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,931 | py | #coding:utf-8
import requests
import json
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36'
}
# headers = {'Content-type': 'application/json', 'Accept': 'application/json'}
#方法一: 直接加参数传过去,不考虑数据类型:
# url = "http... | [
"1461847795@qq.com"
] | 1461847795@qq.com |
2a19054b1cac1ad4d37de8d9ea4c2c41bbf518db | c5872ae7a57bccacd00b636ebdeb93ffadbf8f0c | /06 More Mouse Event Examples.py | b440bbda331cd1b51160da24b1ac76906f7b154f | [] | no_license | kkgarai/OpenCV | e42592b25c2a150762ab25c3df47ea9eeaddeb70 | 0a6f0ce2f667fc6e41a059e62a6e3538cfaabaf6 | refs/heads/master | 2023-02-26T19:12:24.144075 | 2021-02-04T17:17:33 | 2021-02-04T17:17:33 | 336,007,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | import cv2
import numpy as np
'''
events=[i for i in dir(cv2) if "EVENT" in i]
print(events)
'''
# Draw a line b/w the clicked points
'''
# create a mouse click callback function
def click_event(event,x,y,flag,param):
if event==cv2.EVENT_LBUTTONDOWN:
cv2.circle(img,(x,y),3,(0,0,255),-1)
points.ap... | [
"kkgarai99@gmail.com"
] | kkgarai99@gmail.com |
efd5c5581b7f1df181cfa2c42e18603c0217134f | 3be9f525eae7e01065ea23fb6f2a63e78b670ab5 | /venv/bin/pip2.7 | 9991e3d5758beeb240825d03d6519b75dd28ce4b | [] | no_license | mpatini/wiki | cdc1d303cad23b0a3ab67075f4e33d3f73952a44 | 58f268667e0230f82bb7637cf40477a9df38a799 | refs/heads/master | 2016-08-06T22:29:52.672739 | 2014-03-12T21:19:59 | 2014-03-12T21:19:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | 7 | #!/var/www/wiki/wiki/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"root@wiki.(none)"
] | root@wiki.(none) |
1ac642943c9ec33b7d2afdb634f73c675df5f538 | 75d22792d458610018c244a00221cb732bcae6f8 | /Linear Algebra/factoring_lab.py | 0ed3780bc409c2aaad13ff3f3c0921fbecb6f3e0 | [] | no_license | mdimarco/Archive | 489c03e6175979fd2fa14e781ef2464684f1ac51 | 6a2bed313b0a4d69d0223695c8e1d1f364dc8556 | refs/heads/master | 2020-12-26T13:03:17.466149 | 2016-06-01T21:03:13 | 2016-06-01T21:03:13 | 54,572,641 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | # version code 112c76cd8477+
# Please fill out this stencil and submit using the provided submission script.
from vec import Vec
from GF2 import one
from factoring_support import dumb_factor
from factoring_support import intsqrt
from factoring_support import gcd
from factoring_support import primes
from factoring_sup... | [
"mhd894@gmail.com"
] | mhd894@gmail.com |
a760d7842432f986fb1a3e7786f5b30fbcceae37 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /output/StudentProblem/10.21.12.17/2/1569577681.py | b485642f0b2d17dbd19bb9fa237a3fa9c43405d3 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | ============================= test session starts ==============================
platform darwin -- Python 3.7.4, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
rootdir: /tmp
collected 0 items / 1 error
==================================== ERRORS ====================================
________________________ ERROR collecting te... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
895876551202a6bcf544d4906770ddb46cf2aab3 | ebec16f77071c1425417cb1c58e3464683083b94 | /mysite/main/models.py | 793df46d5d8eca2985b66e9031eb3d02572d26a1 | [] | no_license | cm1100/django_web_development | 73a403c63a7035f977596373507cfd70658e0889 | 18069b34f1291b52f2a3fb8c8e8119382fd78352 | refs/heads/master | 2022-09-14T01:20:50.190308 | 2020-06-03T14:40:08 | 2020-06-03T14:40:08 | 269,108,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | from django.db import models
from datetime import datetime
# Create your models here.
class Tutorial_Category(models.Model):
tutorial_category = models.CharField(max_length=200)
category_summary = models.CharField(max_length=200)
category_slug = models.CharField(max_length=200)
class Mete:
v... | [
"noreply@github.com"
] | cm1100.noreply@github.com |
b4f5ccea358baabbf32a4c713d4de41820427bbc | 18411284fb7b011fa091ddae3a2455688e61dcb5 | /app/core/migrations/0005_recipe_image.py | 072176f6cd44736c763abed1f450a2dd81738c44 | [
"MIT"
] | permissive | julesc00/recipe-app-api | ff1105329a8d6791e648aab3b3a370d1377aea89 | fee549f98ad8cf009999e0b3f45559a7d9b5d163 | refs/heads/master | 2021-04-02T00:09:08.931471 | 2020-07-28T15:52:37 | 2020-07-28T15:52:37 | 248,222,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # Generated by Django 2.1.15 on 2020-07-11 13:12
import core.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_recipe'),
]
operations = [
migrations.AddField(
model_name='recipe',
name='image',
... | [
"julesc00@hotmail.com"
] | julesc00@hotmail.com |
a9dd43003b888b8c3c2da6a37639e0bbe0a7e1ae | 314d73129f3783dbb28c23058f3489ab6570c9f7 | /new_app/newahmed/doctype/car_type/car_type.py | 5a7f28316cfa686730ceb5398228632dcc501ce3 | [
"MIT"
] | permissive | ahmeed363/new_app | 67cbfdca0e15c3629b69608b4f3eaefab9df0c8f | 381115efae2a0758d3debdcb5d04ccf269b117ea | refs/heads/master | 2023-02-05T12:03:44.037581 | 2020-12-28T17:50:57 | 2020-12-28T17:50:57 | 325,077,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Ahmed and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class CarType(Document):
pass
| [
"ahmed.m.safadi@gmail.com"
] | ahmed.m.safadi@gmail.com |
5c6d7989c2eac3580b1d3f48a3edbfb85e3ba888 | d171393d9c197dd8b5f083bb990d30a12faa7614 | /tests/test_cache.py | 4b1a950bd4c72ecb0e2b722e24c36be6574aaa00 | [] | no_license | alex-px/currency-converter | 719e364f7ff00d29ab2a36f699a67dbbd2b5146e | 51ed6574e214cd85090aeae78839cd9403bf2537 | refs/heads/master | 2021-01-18T16:36:55.702270 | 2017-03-30T21:43:26 | 2017-03-30T21:43:26 | 86,748,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | import json
import os
from converter.currency_converter import CACHE_FILE, _get_rates_usd
class TestCache:
def test_cached(self):
rates = {"GGP": 0.805647, "UGX": 3601.999708, "MGA": 3185.000239}
with open(CACHE_FILE, 'w') as fh:
json.dump(rates, fh)
assert _get_rates_usd() ==... | [
"faxforalex@gmail.com"
] | faxforalex@gmail.com |
ceec7ebcfb4e56edf160593108edc9074f9ff650 | 00b498c945734b6b4eabbf1457c97898be4c20c5 | /statmech/idealgas.py | c24d754b6066217d05c174d2743de733f91570dc | [] | no_license | HussainAther/physics | 2982f2c859bfe9c2ca3d1c0d747634428d7b9f89 | 4514e7231ee36ad10030105db14333bd04ee7f72 | refs/heads/master | 2020-04-20T08:33:26.282139 | 2020-02-24T02:28:38 | 2020-02-24T02:28:38 | 168,742,644 | 18 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import pickle as pk
import numpy as np
import pylab as pl
"""
We can also use the molecular dynamics simulations to learn about the ideal gas. We can, for example,
determine how the pressure in the gas depends on other properties of the syst... | [
"shussainather@gmail.com"
] | shussainather@gmail.com |
948e90ac197b63051d82a99090c2a407b326eab6 | d8edfe66428c4ae5a7ce43e3c2c741bd4942833a | /mdacalc/calc.v0.1.pyw | 69aeca0923bc9a6e6e742677d057c1955254de5e | [] | no_license | rickman90/mystuff | 19a47915ca7c8e2c962e0470e561c9523420bc94 | 1d2f2297699bc3d4559ab2599ef088b199e6b896 | refs/heads/master | 2021-01-19T07:49:27.470127 | 2014-08-25T04:11:35 | 2014-08-25T04:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | pyw | #!/usr/bin/python
from Tkinter import *
import tkMessageBox
import math
fields = ('Sample Count Time (min)', 'Bkg Count Rate (cpm)', 'Bkg Count Time (min)', 'Efficiency (%)', 'Sample Amount (ea)', 'Well Known Bkg MDA (dpm)', 'Paired Bkg MDA (dpm)')
def wk_mda(entries):
try:
st = float(entries['Sam... | [
"rickdog6@users.noreply.github.com"
] | rickdog6@users.noreply.github.com |
cddde75515efdbde2dd6f8261ad306bd7c979de3 | f169fd77de719e9959d51b627162f413d73eea92 | /nfvOrchestrator/orchestrator/NFVIcatalogue.py | 238ec285cb17ff96113f07ace5669242ce59c5b0 | [] | no_license | hongyunnchen/nfvOrchestrator | 89af44543373a1b2d2fb9b8bc612ac763ad9ca68 | e41b92cf3310003c2fef50bdb62f30fa0bbebc62 | refs/heads/master | 2021-01-11T22:15:29.642477 | 2017-01-14T07:32:55 | 2017-01-14T07:32:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,030 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 16-12-21 下午4:30
# @Author : mengyuGuo
# @Site :
# @File : NFVIcatalogue.py
# @Software: PyCharm
# hold all physical resources,including computing,storage,networking
# and vm level
class NFVI_manager:
def __init__(self):
self.cpu_intotal=0
... | [
"448668358@qq.com"
] | 448668358@qq.com |
d94b9afeadd0c2d77bcbc6be4a418c8c0ec38a8b | ff642c107f68787cae4fb3cf95e428e7e0856228 | /FAQ/nlp_engine/extractors/getNo_people/word2number/w2n.py | 769bff7ae037034ad47c11cf1676d038966ab209 | [] | no_license | riteshsharthi/botx | 62d0d86fdcde58e4222cbf6655e1315175d2d3d3 | dc6031ac1bb788bae6697eacbd5c2d942d7f9f95 | refs/heads/master | 2022-12-08T09:46:10.626671 | 2019-01-03T12:03:05 | 2019-01-03T12:03:05 | 163,968,682 | 0 | 0 | null | 2022-11-22T03:11:05 | 2019-01-03T12:12:58 | HTML | UTF-8 | Python | false | false | 7,104 | py | from __future__ import print_function
american_number_system = {
'zero': 0,
'one': 1,
'two': 2,
'three': 3,
'four': 4,
'five': 5,
'six': 6,
'seven': 7,
'eight': 8,
'nine': 9,
'ten': 10,
'eleven': 11,
'twelve': 12,
'thirteen': 13,
'fourteen': 14,
'fifteen... | [
"ritesh@gmail.com"
] | ritesh@gmail.com |
be9c9aac045bc76f90341b2f5900954261aed765 | 9e01ec604f1aa1c61a47f30ab2f8a91d27848223 | /retro_games/helper_functions.py | 5522093a76edf8719989d981869ebe9997ee824b | [] | no_license | chrismomdjian/cis4100-project | f5097242d01f2c5a4a57629d05c5c92cab81ffe5 | 806b8172883c1fc6916c3d0881ab668668d89baf | refs/heads/main | 2023-04-18T07:57:56.486959 | 2021-04-24T23:07:01 | 2021-04-24T23:07:01 | 339,591,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # IGDB api requests
import requests
import json
from igdb.wrapper import IGDBWrapper
url = 'https://id.twitch.tv/oauth2/token'
client_id = 'bbi2z3lufqh6td2cfi5tkorsc4h1se'
client_secret = '2drg2w2smx3693nmxnbjbyqxvyxy1h'
data = {
'client_id': client_id,
'client_secret': client_secret,
'grant_type': 'client_crede... | [
"chrismomdjian@gmail.com"
] | chrismomdjian@gmail.com |
fa9f0975c26693b85b3639243ae4bfb63982d35c | 2388e81d802af1d3436325316e7c9e41b406b854 | /easyNav_pi_dispatcher/__init__.py | dca6e07a8b452077972cd2868b35e4313bcbbf86 | [] | no_license | easyNav/easyNav-pi-dispatcher | 83d37f6a587ba3a09c25defa8f269814b349a34c | ea73cadca980453f3dab51474bfacd6469519ce9 | refs/heads/master | 2021-01-23T13:30:31.119082 | 2014-11-15T05:48:59 | 2014-11-15T05:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This file is part of easyNav-pi-dispatcher.
# https://github.com/easyNav/easyNav-pi-dispatcher
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT-license
# Copyright (c) 2014 Joel Tong me@joeltong.org
import logging
logging.getLogger('').handlers ... | [
"me@joeltong.org"
] | me@joeltong.org |
c65f854a44397409a217f336217cd698923b646c | 20a358db6e9e9872453a7fb36ef21268054b241d | /pyml/jobs/utils.py | 84372d99ac44a52cc4345cd8cd530cab80f3d152 | [] | no_license | fengkaicnic/pyml | ee654cdef2ba107e1c1e8d598691af3accb96b3c | a19865cdb9eb69517258416a2b08b86f9d43a023 | refs/heads/master | 2021-01-21T04:40:44.659607 | 2016-07-29T08:33:07 | 2016-07-29T08:33:07 | 44,159,061 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,209 | py | #coding:utf8
import pickle
import sys
reload(sys)
import pdb
sys.setdefaultencoding('utf8')
def store_rst(decesion_tree,filename):
writer = open(filename,'w')
pickle.dump(decesion_tree,writer)
writer.close()
def read_rst(filename):
reader = open(filename,'rU')
return pickle.load(re... | [
"fkdhy@163.com"
] | fkdhy@163.com |
8123446b4176de628fdc5ac24079f01b204edebe | 9a5e36d07382aaa3c98e5050e525917c984986fa | /KNN.py | facf01b9c9a5be366f06ee1bbbc0a1be11622813 | [
"MIT"
] | permissive | waihoyu/MachineLearning | 2ec412464f63e5d8fa9c0e59f02bde7ccb69ebe0 | 47578079f1bfdb4867a5ade051dad317922ef4e0 | refs/heads/master | 2020-03-29T19:24:20.607173 | 2018-09-25T16:09:30 | 2018-09-25T16:09:30 | 150,261,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | print("Hello World!")
print("Hello Python!") | [
"13701343809@qq.com"
] | 13701343809@qq.com |
fa77616b1e7b82ae745b8706f59544f48ca65e46 | 2f400a7888857ae557b894231fd5f13f668dce1b | /readme.py | b6d8d82626f78fa0ef45e29abef57302b428768f | [] | no_license | tonyfast/whereami | ea39e8b4ee96f6a5d8fb8a0db90331450bdea036 | 1ade40cb26b5a36b1f34b44bc2a54b1f954d8078 | refs/heads/master | 2021-05-06T09:00:32.871551 | 2017-12-14T23:37:59 | 2017-12-14T23:37:59 | 114,041,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py |
# coding: utf-8
# # [whereami](https://github.com/tonyfast/whereami)
#
# <code>[pip install git+https://github.com/tonyfast/whereami](https://github.com/tonyfast/whereami)</code>
#
# Logic circuits to identify the context a notebook's derived source is executing in.
#
# * Is Jupyter running this?
# * Is source in ... | [
"tony.fast@gmail.com"
] | tony.fast@gmail.com |
91a29245b0b4bd452310cbac2deb6210b14f9069 | 863509e794b069c9688f6263454c06d2c48868b2 | /backend/backend/serializers.py | 44a1dac69ad9d3cf60ada54dba83a4fa368adac5 | [
"MIT"
] | permissive | TheDuckWhisperer/tournesol | c6df38185963bbecc6109dac275075a3ceca857a | 0fde7587e91a42e5a2218f2ffb70d4fc8cff7f73 | refs/heads/master | 2023-04-18T15:31:20.627952 | 2021-05-01T19:59:07 | 2021-05-01T19:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from backend.models import Video
from rest_framework import serializers
class VideoSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Video
fields = ['video_id']
| [
"sergei.volodin.ch@gmail.com"
] | sergei.volodin.ch@gmail.com |
ac7f4af3d97b64a71fed6f342aa0ebb4858a79af | eb9110e91fdc78acbe4e34fb2966523de65536b4 | /store/migrations/0002_variation.py | c7b8c5ffb97d71a658910f5a492a9f828f4b0ebf | [] | no_license | NaveenMulaga/HealthyHarvest-sdp-2 | 050b7694f9345449c0a10a993560936504ff49b1 | a785e29b979c6abda4fb2b30843134f765b53129 | refs/heads/main | 2023-04-24T07:15:40.781190 | 2021-05-18T12:46:52 | 2021-05-18T12:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | # Generated by Django 3.1 on 2021-05-18 06:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Variation',
f... | [
"mnaveeb1105@gmail.com"
] | mnaveeb1105@gmail.com |
895ebfce2c1523989ede3eed768142c7b89b798e | ed58239ecfeab4bcb9d7e86ebfd27a696b4d4735 | /FinalAssessment_ID/Question1/FA_TreeTest.py | 50e373ea91f939fd008378ef9efe7038ab8d8418 | [] | no_license | connorkuljis/Data-Structures-and-Algorithms | eca225665b280023ccf510087624a34154868bd1 | e15d3b2c4170db94ec68336d741bd0ebab68edac | refs/heads/master | 2023-01-14T14:49:16.716643 | 2020-11-17T15:58:24 | 2020-11-17T15:58:24 | 285,579,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | #
# DSA Final Assessment Question 1 - FA_TreeTest.py
#
# Name :
# ID :
#
#
from FA_BinarySearchTree import *
print(“\n**** Question 1: Testing Trees ****\n”)
# Put your code here
t = FA_BinarySearchTree()
print(“\n**** Tests Complete ****\n”)
| [
"conkuljis@gmail.com"
] | conkuljis@gmail.com |
385884e95833990887aef6c6cf967707a572234b | 91a8117a4da296d4c0d317b3b2c79e4df49ff14d | /services/recommender/api/models.py | 7c5924ff7c3952302d2fa1ea6d8328d15d33a601 | [
"MIT"
] | permissive | IMDB-2-0/CS497-B | b3650af48301420a365ffaefd3902f4f34ccde2b | 0b94bb71ff216cef437cdcbbe897c2ae66623a14 | refs/heads/master | 2023-05-01T00:44:59.098971 | 2021-05-07T22:26:21 | 2021-05-07T22:26:21 | 341,971,017 | 2 | 0 | MIT | 2021-05-07T22:26:22 | 2021-02-24T16:58:03 | JavaScript | UTF-8 | Python | false | false | 339 | py | from typing import List, Optional
from pydantic import BaseModel
class RatingsIn(BaseModel):
userid: int
movieid: int
rating: str # TODO (Incorrect types)
class RatingsOut(BaseModel):
movieid: int
title: str
imdbid: int
tmdbid: int
class RecommenderOut(BaseModel):
message: str
dat... | [
"hansquiogue@gmail.com"
] | hansquiogue@gmail.com |
706c1daf836beebc3e6578a37fe6eeb5aa6b2d24 | ed0c14eee26ed0288783d95c7ccbf382a8cf3bb2 | /.config/conkykeep/conkyKeep/__main__.py | 695b261089d406344be2d8efd2a68d995ea56178 | [
"MIT"
] | permissive | epityathens/ArchSystemConky | a1a68c49314496effff9a305996a624f5f6fa4e8 | dcdf56c719c4934874a56a6b2cfcb4936c8c5165 | refs/heads/master | 2021-08-24T03:12:13.874508 | 2017-12-07T20:30:50 | 2017-12-07T20:30:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | #!/usr/bin/env python3
# encoding: utf-8
from conkyKeep.conky_keep import main
main()
| [
"mr.mustafa.ozhan@gmail.com"
] | mr.mustafa.ozhan@gmail.com |
48d0991c3a40847c562778fb746ab28c7e4596a1 | 9a59d08730c65585ac7db21d527dae858b2234a7 | /LPTHW/ex13+.py | 577c8bf6365f0089b6bab67dae4218e233281fbf | [] | no_license | cpiccirilli1/LPTHW | 8345e305e7531b608c781a40f5896b920985ee4c | 5e8b1504fa5b1143c84c6b07065a2ea5e7453743 | refs/heads/master | 2020-05-03T15:03:29.221996 | 2019-03-31T14:04:42 | 2019-03-31T14:04:42 | 178,695,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from sys import argv
script, banana, orange, apple, grapes = argv
print script
print banana
b = raw_input("Yes or No?")
print orange
c = raw_input("Yes or No?")
print apple
d = raw_input("Yes or No?")
print grapes
e = raw_input("Yes or No?")
| [
"noreply@github.com"
] | cpiccirilli1.noreply@github.com |
63f2f9d35ae8e52ff01b811ab0e2e6e6cb475b85 | 35bfdecf361d5beb5c531db41df4d0fb54059122 | /sentiment_analyser/settings.py | 04d159849512571c590c05ceb9d7e1364d011b22 | [
"MIT"
] | permissive | gorkemyontem/SWE-573-2020 | 5d940ff06d6f57ffa23dd9634da97def6f7c77e7 | 6a9ca57d294066fcc0db640f45d38d7341754a68 | refs/heads/main | 2023-03-02T20:52:42.360556 | 2021-02-13T12:27:05 | 2021-02-13T12:27:05 | 309,190,078 | 1 | 1 | MIT | 2020-12-22T19:19:10 | 2020-11-01T21:17:24 | Python | UTF-8 | Python | false | false | 6,649 | py | """
Django settings for sentiment_analyser project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.dALLOWED_HOSTSjangoproject.com/en/3.1/ref/set... | [
"gorkem@tiko.es"
] | gorkem@tiko.es |
a38a931ae0f6d4c485ff80a901bbc8b65e7e767d | f241df59f8e6c13cab13ec3b5d5d9ade89c419f7 | /leo/modes/phpsection.py | 8102358d1ee25398a514e4922a490b90b915f295 | [
"BSD-3-Clause",
"MIT"
] | permissive | leo-editor/leo-editor | 6c6e09c1ae89cb9b1952c9f5b0c3a6c76ae9e625 | a3f6c3ebda805dc40cd93123948f153a26eccee5 | refs/heads/devel | 2023-08-28T08:57:01.365701 | 2023-08-23T10:21:57 | 2023-08-23T10:21:57 | 16,728,437 | 1,671 | 219 | NOASSERTION | 2023-09-14T19:39:01 | 2014-02-11T11:14:41 | Python | UTF-8 | Python | false | false | 102,224 | py | # Leo colorizer control file for phpsection mode.
# This file is in the public domain.
# Properties for phpsection mode.
properties = {
"commentEnd": "-->",
"commentStart": "<!--",
"indentCloseBrackets": "}",
"indentOpenBrackets": "{",
"initialModeDelegate": "phpsection::PHP",
"lineUp... | [
"edreamleo@gmail.com"
] | edreamleo@gmail.com |
8c93ac27c41b2a3efd82d096114bdca0d51162be | e1a3c091bff1c0bb53c11098213ac6bda81929ae | /PBproject/wsgi.py | 94058416a6b14251e4adf39b616155cb558704b0 | [] | no_license | meet19435/Skin-Cancer-Detection | b7e5087a9714d8599e32e166d2f7252a26fa51ac | c8f8d6786e7225af141fa780f5d259886d4fc52f | refs/heads/master | 2023-04-25T13:47:06.619744 | 2021-05-11T14:32:57 | 2021-05-11T14:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for PBproject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"67797541+HardikDudeja@users.noreply.github.com"
] | 67797541+HardikDudeja@users.noreply.github.com |
3ce35769eccbbe6a1cdc19716e182f123a530e48 | 2f04ca4624680bf8d43c2c341be3380f4ebad56c | /Ahmet Ergani 161044011/CSE321 Introduction to Algorithm Design/HW4/part1.py | e8641410b74c608bfac4bff8bd5035251b81e58a | [] | no_license | aErgani/Homeworks | af545caed2a7602f80cdfacb99985e3ce546c346 | a58a285552d3337a58cf45b15e8d0587077100da | refs/heads/master | 2022-12-05T11:43:34.750496 | 2020-08-20T12:07:16 | 2020-08-20T12:07:16 | 198,170,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | def penalty(new_stop,last_stop): #Calculates the penalty between 2 stops
A = 200 - (new_stop - last_stop)
return A ** 2
def longTrip(last_stop,path):
A = [190,220,410,580,640,770,950,1100,1350]
if last_stop == 8: #means we reached the end
return
if last_stop == -1: ... | [
"noreply@github.com"
] | aErgani.noreply@github.com |
3fec723ba32b0afdc039f5ea66e8ebc970a3dc23 | 4a85fd5c3513edf10b37465a7f50dd5da77167af | /lenet_tensorboard_fixedpoint2.py | 68d786212f7777989ca47f411984b72de1bbecc6 | [] | no_license | Alireza1997/Summer17Research | 5a5bc5f44e8e99e73d16defc7a41a776be32d038 | 3a41193b6afbecce76025860ef59efc719b27bd8 | refs/heads/master | 2021-01-21T11:53:27.606741 | 2017-08-31T19:05:26 | 2017-08-31T19:05:26 | 102,030,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,591 | py | #=================Imports==================#
#get the mnist data
import input_data
mnist = input_data.read_data_sets('MNIST_data', one_hot=True) #one hot means it labels the classes by one hot, so 1 for the correct class, 0 for the rest
import tensorflow as tf
rnd = tf.load_op_library('fix_round_2.so')
from tensorf... | [
"alireza.nik1997@gmail.com"
] | alireza.nik1997@gmail.com |
68d6ace739c23eac0a7a49732010295ed54812da | e3cd5c6dd66471c2eaabd0bba27b101b89b26bed | /sparx/tornado/testing.py | 74d04b6000b8f2ac61a3bf2793e1cfe27cc3098a | [
"MIT"
] | permissive | CleverInsight/sparx-core | 6902a1dfccda6befba6426d096a043d9d7e99ee1 | b0f1c73df67921408ef63ec7ac017a476d5feceb | refs/heads/master | 2023-08-24T01:01:22.865172 | 2019-06-16T13:52:07 | 2019-06-16T13:52:07 | 189,747,326 | 2 | 0 | MIT | 2023-08-14T21:35:48 | 2019-06-01T15:16:24 | Python | UTF-8 | Python | false | false | 28,046 | py | #!/usr/bin/env python
"""Support classes for automated testing.
* `AsyncTestCase` and `AsyncHTTPTestCase`: Subclasses of unittest.TestCase
with additional support for testing asynchronous (`.IOLoop`-based) code.
* `ExpectLog` and `LogTrapTestCase`: Make test logs less spammy.
* `main()`: A simple test runner (wra... | [
"bastinrobins@gmail.com"
] | bastinrobins@gmail.com |
473194a3599f62fa5eb651c59a77943ef082fb55 | f7fd58c36d8c56f2e7fe5a0b3e1f6e86b06512b9 | /app/schemas/payments.py | d1d6cacfb50419d5391eee2742097319efeb3962 | [] | no_license | Anturion/globalbit_technical_test_back | 6f8759e74995af3b1e093c8b72df38f1ca86b0c2 | 47de3717fe1cc55853888a69ee2a3b08913a54e1 | refs/heads/main | 2023-08-03T01:10:56.435481 | 2021-09-08T15:15:04 | 2021-09-08T15:15:04 | 366,434,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from datetime import datetime
from pydantic import BaseModel
from enum import Enum
class StatePaymentEnum(str, Enum):
rechazada = u'rechazada',
en_proceso = u'en-proceso',
aprobada = u'aprobada'
class PaymentCreate(BaseModel):
email: str
amount: float
state: StatePaymentEnum | [
"alucardcampillo@gmail.com"
] | alucardcampillo@gmail.com |
0667e42e73b0c4eb8a2f2e8752573ce40543cfb2 | 4aa6b7c3a5ae3817007e09ad1289c1e9f7a355c0 | /greedy/lemonade-change.py | cc8c4bdbd758354e0499b280a640a88fc2082bd8 | [] | no_license | liuhuipy/Algorithm-python | 8f5143e06cf5fa2de2c178e3ba9e5fd12b9bcdf7 | 4e92a0b874f956d1df84d1493f870a5d1f06cde2 | refs/heads/master | 2021-06-03T04:19:01.946149 | 2021-01-08T07:44:40 | 2021-01-08T07:44:40 | 99,838,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | """
柠檬水找零:
在柠檬水摊上,每一杯柠檬水的售价为 5 美元。
顾客排队购买你的产品,(按账单 bills 支付的顺序)一次购买一杯。
每位顾客只买一杯柠檬水,然后向你付 5 美元、10 美元或 20 美元。你必须给每个顾客正确找零,也就是说净交易是每位顾客向你支付 5 美元。
注意,一开始你手头没有任何零钱。
如果你能给每位顾客正确找零,返回 true ,否则返回 false 。
示例 1:
输入:[5,5,5,10,20]
输出:true
解释:
前 3 位顾客那里,我们按顺序收取 3 张 5 美元的钞票。
第 4 位顾客那里,我们收取一张 ... | [
"liuhui_py@163.com"
] | liuhui_py@163.com |
ff786a6cb5798541371c0211866f0d38a9927df7 | 54b50cac45ceb865623c0efac03a39ace131e45c | /PVFFlash.py | b5a2a7803274be85a84c05216c483c3a3caab2f3 | [] | no_license | RahulJain7/DTLServers | 76786d8fda7aac01dcfaa5dbc94704cbe0d3e3a9 | b4d0fd21b6d4b72c0c13609119582411e1acc339 | refs/heads/master | 2020-04-01T08:27:43.121130 | 2015-10-01T00:33:23 | 2015-10-01T00:33:23 | 42,653,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 07 17:05:31 2015
@author: RAHUL JAIN
"""
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 19 03:13:38 2015
@author: RAHUL JAIN
"""
import socket
import win32com.client
def Main():
HOST = ''
PORT = 7000
dtl = win32com.client.Dispatch("DTL.Thermodynamics.Calcu... | [
"rahjain1@gmail.com"
] | rahjain1@gmail.com |
84506bf4331ef72cb58b1d8d88354756d76b2da5 | b3f0b07c9bae9414bd7c91d0841ae75636f4dc9f | /koala/urls.py | fbd9125fd707d964e9fc20b9c881f9ade0cac893 | [] | no_license | tjworks/koala | 544f975b43cee44f66ce3fb34d13ebaa4904af4e | 36e02f7b48fa70f2df4d7a371cd611f32827d2b2 | refs/heads/master | 2020-04-26T13:12:03.857119 | 2012-11-08T15:05:16 | 2012-11-08T15:05:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
url('^docs/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'docs/_build/... | [
"evertang@gmail.com"
] | evertang@gmail.com |
1645c21e379fec3a3406db819f99146db61ac417 | 298383e1591f4d27284fa2a094c967a2846d91f8 | /sumocharge/rdm880/rdm880.py | fb67fda3e6939eed06f8c8f7fccbaba0ef73ee8f | [
"BSD-2-Clause"
] | permissive | lorenhsu1128/sumo-charge | 47586a3ea2801da599a4254e6b0ba813aa7f3221 | 7a2a746542a7a76fd89a0681598307698375c6ad | refs/heads/master | 2021-01-23T13:09:33.086001 | 2015-11-02T07:28:57 | 2015-11-02T07:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,088 | py | class Packet(object):
def __init__(self, cmd=None, data=[], stationid=0x00):
self.stationid = stationid
self.cmd = cmd
self.data = data
self.length = None
self.status = None
self.bcc = None
def build(self, debug=False):
self.msgtype = 'command'
p... | [
"rwallhead@gmail.com"
] | rwallhead@gmail.com |
f2fb15dbed9b7d1a0b312c5336559cc001864e21 | 5e6519e1ed37d463c4740b65dc4030c883d2df64 | /jobsite/employee/models.py | 9f29e9a043e0615463669ff1fc9ff05aa28e37d2 | [] | no_license | shohag000/jobsite | ed4811d778ed1d58a0d10930174a1fd3e549e630 | 25025e9ae4c41362fb81ece7747617d7837e209c | refs/heads/master | 2020-05-18T18:03:56.496353 | 2019-05-21T11:03:28 | 2019-05-21T11:03:28 | 184,574,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | from sqlalchemy import Column, desc,ForeignKey
from utils import get_current_time,STRING_LEN
from extensions import db
from constants import JOB_TYPE
class Employee(db.Model):
__tablename__ = 'employee'
id = db.Column(db.Integer, primary_key=True)
full_name = db.Column(db.String(STRING_LEN), nullable=Fals... | [
"shohagbiswas000@gmail.com"
] | shohagbiswas000@gmail.com |
4edd8ee7de5778dab0422d9f5f6e2c73198cb473 | 5308d3624036fb27ca158b520d2c59b643f8bf32 | /tests/test_fouriersqrt.py | fac7cd6b5cbe2b3290a902027595fb01a6bd3223 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kernsuite-debian/galsim | bfacc7f665e35595189c03b164e61809c2943cc5 | 1515537b429fb3337d5c1090f9161f0fb223f2a0 | refs/heads/master | 2022-11-06T21:22:51.794046 | 2018-08-29T18:51:56 | 2018-08-29T18:51:56 | 82,295,722 | 0 | 1 | NOASSERTION | 2022-10-19T06:05:05 | 2017-02-17T12:33:53 | Python | UTF-8 | Python | false | false | 4,376 | py | # Copyright (c) 2012-2018 by the GalSim developers team on GitHub
# https://github.com/GalSim-developers
#
# This file is part of GalSim: The modular galaxy image simulation toolkit.
# https://github.com/GalSim-developers/GalSim
#
# GalSim is free software: redistribution and use in source and binary forms,
# with or w... | [
"gijs@pythonic.nl"
] | gijs@pythonic.nl |
db31896453b0d9c35209f306d8b832fdf80c2ebe | bc167f434158921bcf2c678155c5cdfec1c9b0c9 | /PI_code/simulator/behaviourGeneration/group/behav26.py | ac01b00523c06c1efa233dc581d1ac85d476ea99 | [] | no_license | s0217391/DifferentProjects | 6450efc89c64ecd21b86c705737e89e5c69433a6 | 7f4da153660817b6cbf72d2e823aa29c0c2f95a9 | refs/heads/master | 2021-01-17T02:58:46.219240 | 2015-05-26T22:45:46 | 2015-05-26T22:45:46 | 34,995,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | #!/usr/bin/python
import sys
def compute(prey, otherHunter, dist):
temp0 = -1 * prey[1]
if prey[0] > prey[1] :
temp1 = dist * otherHunter[1]
else:
if dist > dist :
temp1 = temp0 - otherHunter[0]
else:
if otherHunter[1] != 0:
temp1 = prey[1] / otherHunter[1]
else:
temp1 = otherHunter[1]
temp0... | [
"i7674211@bournemouth.ac.uk"
] | i7674211@bournemouth.ac.uk |
1a5c13ab2556ac746a4a14bd970965e9877cd1ac | 771ce92216b373f26063e79bc982268131eba9cf | /forest.py | a94769856d56a3a466c55ffca8694119235d2c2a | [] | no_license | amovsheva/Forest | c56a9ba2ab5ca8a214cdb18a5dd1c3e99b041dd6 | fcb4137e5d39367a1420679d450d2432afb81f9b | refs/heads/master | 2021-05-03T21:19:14.096197 | 2018-02-06T00:59:26 | 2018-02-06T00:59:26 | 120,381,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,636 | py | import random as rnd
import numpy as np
from Tree import *
##############################################################################
##############################################################################
############################## MULTITREE OBJECT ##############################
#######################... | [
"noreply@github.com"
] | amovsheva.noreply@github.com |
6b7255841f8f59a233e48e60b2a3ae013f03ae5b | fb36ea3a7c2b06f49dce19a7e08e784732830431 | /.vscode/calu.py | fc9af7910aec6f194a9a11a27f42c096bd3d4ada | [] | no_license | michaelsas4/python-training | 22f240553d32e3a16b7b6b70e702d11d55373274 | a53910f7ed915b9f3cf5ef146546c412a463381e | refs/heads/master | 2022-11-26T15:29:48.169574 | 2020-08-07T16:03:44 | 2020-08-07T16:03:44 | 257,241,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | # ---------- main.py ----------
import kivy
kivy.require("1.10.1")
from kivy.app import App
from kivy.uix.gridlayout import GridLayout
class CalcGridLayout(GridLayout):
# Function called when equals is pressed
def calculate(self, calculation):
if calculation:
try:
#... | [
"adeyeriayodele19@gmail.com"
] | adeyeriayodele19@gmail.com |
b1445ad8bbec7a296ccdb501f4220c7435f47527 | 0c84b33ce263877078b55ea6a51a5c7f30468378 | /project/settings.py | add689ad41500e65f6e35ba6b70231b3d2ea9eac | [] | no_license | Kruhy/hagakure | b723f6ef82187def9aca7ad21039417e8c9ad3db | 8c92223bc7dae78e014fb8e9676b13739f94dd41 | refs/heads/main | 2023-04-07T13:26:25.278730 | 2021-03-31T12:02:44 | 2021-03-31T12:02:44 | 327,093,238 | 0 | 0 | null | 2021-03-31T12:02:45 | 2021-01-05T19:04:45 | JavaScript | UTF-8 | Python | false | false | 7,268 | py | """
Django settings for hagakure project.
Generated by 'django-admin startproject' using Django 2.2.17.
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
... | [
"piotrszczygielski@gmail.com"
] | piotrszczygielski@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.