blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fb125b831dfdd12ef020ba37e389a57e9312650c | 08379db5712432b34767d747b9f078ab30822d74 | /tdd/counter.py | 7b6c18b587d99d5bf211cdcbdafb50576a2a4e78 | [
"MIT"
] | permissive | scotttrumpy/Python-Fizzbuzz | 7fa739d3be5487e9e40f9a2285a96a2ed825b52b | c9bafd436a22533634bbf58458ce82942cb21268 | refs/heads/master | 2021-09-10T15:43:27.110072 | 2018-03-28T19:22:39 | 2018-03-28T19:22:39 | 125,870,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | def fizzbuzz (count):
if count % 15 == 0:
return('Fizzbuzz')
elif count % 3 == 0:
return('Fizz')
elif count % 5 == 0:
return('Buzz')
else:
return count
def main():
for count in range(1,101):
print fizzbuzz(count)
if __name__=='__main__':
main()
| [
"trumpysm@dukes.jmu.edu"
] | trumpysm@dukes.jmu.edu |
64e7542df83df9bd0d6edf9f81dd3c5add9aef71 | 0800aac473cbb94f3ac263c202979498c326cf18 | /법인세_총설.py | a437c75324c85c0332211d27ad24fe8df470b893 | [] | no_license | DanielHennyKwon/TAX_LIM_JEONG | 8f12e072c044cd17646f196c17b51d1e0cae179e | a263b4e90f0ac78500382047bf7ae72380213ca8 | refs/heads/master | 2023-06-16T10:50:55.111407 | 2021-07-11T02:59:50 | 2021-07-11T02:59:50 | 384,847,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,432 | py | # -*- coding: utf-8 -*-
# 2018-12-24 권달현
import 결산의확정, 신고납부절차, 기한후신고, 수정신고, 경정청구, 법인의분류, 세금의종류, 실질과세, 소액주주, 대주주, 중소기업, 이월과세, 과세이연, 세무조정, 소득처분, 법인세비용, 세액계산_구조,세무조정_흐름도
_={
"결산의 확정":결산의확정.결산의확정,
"법인세의 신고납부절차":신고납부절차.법인세,
"기한후신고":기한후신고.법인세,
"수정신고":수정신고._,
"경정청구":경정청구._,
"법인세법상 법인의 분류":법인의분류.법인세,
... | [
"cpahouse@naver.com"
] | cpahouse@naver.com |
b080960023d3de4b6813fe57e3f48af239f29069 | 836fcb1fb4db3d2b6d0d9b54c3f916bc599a0b62 | /ClassInterface2.py | 3842cd4a687fcb9ac5f6b695d29199ec4b6d536c | [] | no_license | opickers90/Python3-1 | cf8c544ee17107f535e4431fbe67eb4e218fff70 | 04b2338ddfb7c554cc123677a769b2f4dafbdc5b | refs/heads/master | 2020-04-19T11:01:35.793376 | 2019-02-02T11:11:04 | 2019-02-02T11:11:04 | 168,155,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | class InsurancePolicy:
def __init__(self, price_of_item):
self.price_of_insured_item = price_of_item
class VehicleInsurance(InsurancePolicy):
def get_rate(self):
return self.price_of_insured_item * .001
class HomeInsurance(InsurancePolicy):
def get_rate(self):
return self.price_of_insured_i... | [
"taufik@LI-320s"
] | taufik@LI-320s |
655a655620f983caafb5b12283dfc5b1c274d08d | de28880dd1c46d0ee2def7e46066d12185fc9a4b | /sketchRnn_clean_v3/tools/utils.py | 9458cfa2b2c2a28c3ca8f8fc65b2e8572ea10cad | [] | no_license | frederictamagnan/PredictDrumFillsInNativeInstrumentsSoundPack | c3712987352a152edf91e893e8af1b23fd17f495 | 2a19d43d5c153340f0a7a50e7314c4763a6089a4 | refs/heads/master | 2020-04-10T04:16:11.417914 | 2019-04-28T16:18:51 | 2019-04-28T16:18:51 | 160,793,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | PATH = '/home/ftamagna/Documents/_AcademiaSinica/dataset/lpd_5/lpd_5_cleansed/'
PATH_TAGS = [
'/home/ftamagnan/dataset/id_lists/tagtraum/tagtraum_Blues.id',
'/home/ftamagnan/dataset/id_lists/tagtraum/tagtraum_Country.id',
'/home/ftamagnan/dataset/id_lists/tagtraum/tagtraum_Electronic.id',
'/home/ftamagn... | [
"frederic.tamagnan@gmail.com"
] | frederic.tamagnan@gmail.com |
4d5ad693ce20e9b97da95b0ef67213eb07bc3c1f | 03a10a552e3019e23efb38086b239659183b59c5 | /src/tiles.py | 9a62ef786790072c5d44c7e7c8a4ca34abcb3e98 | [
"MIT"
] | permissive | GreenXenith/zoria | 54a5c067a7d460a9126acf9c2085ad3ee5905fe1 | 30a16baab3643c820613a8c8669ee6235a2cd47c | refs/heads/master | 2023-02-22T14:19:34.674436 | 2021-01-29T22:03:44 | 2021-01-29T22:03:44 | 334,269,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | import pygame
global registered_tiles
registered_tiles = {}
# Content IDs are currently unused
# They would be used for map-saving
content_ids = []
content_id_map = {}
def register_tile(name, definition):
registered_tiles[name] = definition
content_id_map[name] = len(content_ids)
content_ids.append(name)... | [
"24834740+GreenXenith@users.noreply.github.com"
] | 24834740+GreenXenith@users.noreply.github.com |
222c5178a7adba45b63bfa89f62fe5db08357f6f | 31a49331912b64586e4c811403d335d054ad0172 | /cardcalc/__init__.py | 44e34496838c665917e2a4dbfd607e95b2c0266c | [] | no_license | kuwoyuki/kadocalc | 1645827ec385f8d2c5744f5092c38328ad20e10d | cf2e4a8f6d5937c1210b854642eec0f3ac38343b | refs/heads/master | 2022-12-27T11:15:29.924433 | 2020-10-15T16:33:36 | 2020-10-15T16:33:36 | 298,285,986 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | from .core import app
def main():
app() | [
"kuwoyuki@gmail.com"
] | kuwoyuki@gmail.com |
3fabfb3eca9c98aa7cfd68daff67bb5e4667a1a7 | 60450fdbd7cf69a73e1a8aa2290691650829cf04 | /PlaneData/serializers.py | 3a5c0657b06e77895f422cb3e15eb8e6d85c1c8e | [] | no_license | les-patates/Hecate_Backend | 65a9fcfec69d110a5c66750086c9b4de810af45a | 091c3bf859bcb8e316f85175966ae981d24e70a7 | refs/heads/master | 2023-08-17T05:28:46.010833 | 2020-04-29T17:24:08 | 2020-04-29T17:24:08 | 259,773,172 | 0 | 0 | null | 2021-09-22T18:56:38 | 2020-04-28T23:14:21 | Python | UTF-8 | Python | false | false | 256 | py | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from .models import Waypoint
class WaypointSerializer(serializers.ModelSerializer):
class Meta:
model = Waypoint
fields = ['lat','lon']
| [
"jomethun@gmx.ch"
] | jomethun@gmx.ch |
fb61ba1d526116dd254bbf94df08247b74f229fe | 5fadda7c33e1c4ba24edfaf0fbd68d19826941b9 | /problems/StroboNumber.py | 6947781f5e2d422069d66ef8976be90d9c95eacd | [] | no_license | jonu4u/DataStructuresInPython | ade71e8eb528bf382846512c812e11e9a05b9c51 | 8731e2ccfbda9323ea5c8629599806cd1c37c3bf | refs/heads/master | 2023-08-01T03:11:48.103722 | 2021-09-13T14:22:15 | 2021-09-13T14:22:15 | 304,824,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,144 | py | # 246. Strobogrammatic Number
#
# A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).
#
# Write a function to determine if a number is strobogrammatic. The number is represented as a string.
#
#
#
# Example 1:
#
# Input: num = "69"
# Output: true
# Example 2:
#
# I... | [
"j.deb@MacBook-Pro.local"
] | j.deb@MacBook-Pro.local |
096bc0ec339e35fa0708f8f760dd66381cdcf5eb | bd64c5926f5a6d17f823d48eb27070a9e4c93e49 | /main.py | f3bd374d376d3a9bb7954013e34465e803abb3d2 | [
"MIT"
] | permissive | ahamlinman/trello-reporter | 9768ef58ea6215f8e59ce38e4f40e751dee7e013 | 601e7f74592f89a6424bf20a38b63153f80091e1 | refs/heads/master | 2021-08-08T01:57:59.260557 | 2020-08-23T04:35:25 | 2020-08-23T04:38:36 | 214,364,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | #!/usr/bin/env python3
from datetime import datetime, timedelta
from pprint import pprint
import argparse
import json
import os
from dateutil.parser import parse as parse_date
from mailer import send_email
from reporter import Reporter
from trello import TrelloClient
def older_than(date_str, delta_spec):
date ... | [
"alex@alexhamlin.co"
] | alex@alexhamlin.co |
17728735f1b7b3b8b62806ac4da7539060848021 | ee4f1849720fe1cce2e2269e60083532f886a3dd | /fblogin.py | 94ca3c22610decab20d7fd06f13b75bb0dd5eb13 | [] | no_license | lavakumar152/amzlogin | eaeebda6c9ab5870963e2b9048321e5ee1ad079f | f9de7e44f3cccf67d5b69bf8197423abd09849d0 | refs/heads/main | 2023-02-12T00:46:41.845023 | 2021-01-11T08:07:59 | 2021-01-11T08:07:59 | 328,585,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from selenium import webdriver
from getpass import getpass
username = input('Enter your user name: ')
password = getpass('Enter your password : ')
driver = webdriver.Chrome('E:\\Udemy\\python\\webdriver\\chromedriver.exe')
driver.get('https://www.facebook.com/')
username_textbox = driver.find_element_by_id('email')
... | [
"lavakumar152@gmail.com"
] | lavakumar152@gmail.com |
996050481c43d0fc4419ad5c97ca943a18676fea | 08bb966a6eb75877429630787a7adcb090685cb9 | /web_scraping/link_scrapers/link_scraper_majcom.py | 8ef4bbd895461f08cedc85db64b0f8e976a6fd4e | [
"MIT"
] | permissive | RANDCorporation/policy2vec | 946dd6743b22bafa31926400695b5485136fe9b5 | a309217115b2163241313a239671b2ab84169b3e | refs/heads/master | 2023-04-09T11:10:46.303654 | 2021-04-20T23:41:11 | 2021-04-20T23:41:11 | 359,979,373 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,055 | py | # Network Analysis of Vaccination Strategies
# Copyright (C) 2020 by The RAND Corporation
# See LICENSE and README.md for information on usage and licensing
## Imports
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.action_chains import ActionChains
from se... | [
"gshartnett@gmail.com"
] | gshartnett@gmail.com |
a65776b895a6918affe05ddf0fd3dea283e97182 | 52a7fd3ef46cb0a29b42ab11386721ece0f51a56 | /env/lib/python2.7/site-packages/sqlalchemy_utils/expressions.py | 150c6fa6e53759ac18827ad54c0720835a405707 | [] | no_license | nicolas3355/AUBOOST | 95f8b2c0503fd1dfecdbceb9f1a0e88b786a3b4b | 6af5593ef85c675336850e7e1691cb267cb26315 | refs/heads/master | 2016-08-04T03:28:12.180742 | 2015-06-29T17:41:53 | 2015-06-29T17:41:53 | 38,261,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | import sqlalchemy as sa
from sqlalchemy.sql import expression
from sqlalchemy.ext.compiler import compiles
from sqlalchemy_utils.types import TSVectorType
class tsvector_match(expression.FunctionElement):
type = sa.types.Unicode()
name = 'tsvector_match'
@compiles(tsvector_match)
def compile_tsvector_match(... | [
"nicolaselhaddad.nh@gmail.com"
] | nicolaselhaddad.nh@gmail.com |
934dee79620e8df431610c508d8a4820ac2ae0be | 1e5591520924be7e2e6c86b120887ee3f8a387c9 | /mysite/urls.py | 1cb3674ad75a15cb78bcb638a2868c8455879c90 | [] | no_license | palcu/django-tutorial | 561f306a033f3c2607848c659e75986b1a312a32 | 83147eebd9de649fc1daf249976ba97872d0a489 | refs/heads/master | 2021-01-23T19:34:43.059386 | 2012-05-13T23:35:42 | 2012-05-13T23:35:42 | 4,317,853 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | from django.conf.urls import patterns, include, url
from mysite.views import hello, current_datetime, hours_ahead, display_meta
from django.contrib import admin
from contact import views
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns(... | [
"alex.palcuie@gmail.com"
] | alex.palcuie@gmail.com |
2abd803bd4688f9318e9e4f81c38cd899ad095d3 | 4018d51c555d923d8b017f4460d19748c646ed82 | /web.py | 852d6f2bf34791d36105a386dd3d49e6fc26c0e7 | [] | no_license | fagan2888/hackernews | c046a680f2b5ee60257f4032f3957665a26c2852 | b64f813e566af46d4dcfb461285571c46d1a1603 | refs/heads/master | 2021-01-26T09:07:21.464909 | 2017-08-18T18:38:03 | 2017-08-18T18:38:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,564 | py | import os
import datetime
from flask import Flask, render_template, request
from flask.ext.moment import Moment
from flask.ext.pymongo import PyMongo
from utils import CATEGORIES
COLORS = [
'#D93B3B', '#7cb5ec', '#90ed7d', '#f7a35c',
'#8085e9', '#c015e9', '#2B9658', '#b2b2b2'
]
LIMIT = 30
app = Flask(__na... | [
"gonzalosaavedra@gmail.com"
] | gonzalosaavedra@gmail.com |
5467d81e7dab7d114aed26818274068ce59c6255 | 655e0c08f09b96ca7043d0a0e4fa266b3730b916 | /hardWork/kawaii_NLU/kawaii_nlu/utils/mitie_utils.py | 08f010f0a9cae8aa8859113d2ee01e892909838f | [] | no_license | alaa069/alaa.ai | 0904b0000a51bdb0400443171017c536bf4d2125 | a8f917b982b6190b613f30817f744bdac1dd7d21 | refs/heads/master | 2022-11-29T13:49:44.638306 | 2018-04-30T10:35:07 | 2018-04-30T10:35:07 | 126,217,739 | 0 | 1 | null | 2022-11-22T12:56:00 | 2018-03-21T17:39:15 | HTML | UTF-8 | Python | false | false | 2,410 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
import typing
from builtins import str
from typing import Any
from typing import Dict
from typing import List
from typing import Optional
from typing import Te... | [
"Alaa.UPPERSKILLS@Alaa-iMac.local"
] | Alaa.UPPERSKILLS@Alaa-iMac.local |
67e4cc76167b1004f444b7678282646e65aa18e4 | d37bbd53b579c62299dfb43f5e67f8c9c772e983 | /synpo/agent/__init__.py | c7d807dfdfd8a3f84e741dbd2b87531335c36ba8 | [
"MIT"
] | permissive | zhmiao/SynPo | 93c330a70fc52b5ca5c7944a25e16b4c9252cf90 | c84a590996ce139e6671bcd356f08664b9c15e8a | refs/heads/master | 2020-05-07T16:11:32.348007 | 2019-04-19T22:00:10 | 2019-04-19T22:00:10 | 180,672,471 | 0 | 0 | null | 2019-04-10T22:19:35 | 2019-04-10T22:19:35 | null | UTF-8 | Python | false | false | 26 | py | from .Grid_agent import *
| [
"frank.hexiang@gmail.com"
] | frank.hexiang@gmail.com |
bafea49166a97ebeb271524d10c9cb4120ce2024 | 952700bb1382d6551f8f584126a3bc8154f5ad1a | /node.py | 93e8f8360f0e7c7ecca02d1f137594e8946f5f0f | [] | no_license | liuyxpp/scriptslyx | 1842fc40e087f68bb41830aab065053212bffe48 | 1a19b302805fe0d5239467c957c79a7db8415b68 | refs/heads/master | 2021-05-19T03:27:02.134434 | 2012-12-14T05:45:23 | 2012-12-14T05:45:23 | 251,507,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
node.py
=======
Node management module based on RPYC.
Copyright (C) 2012 Yi-Xin Liu
"""
import os
import rpyc
import numpy as np
__version__ = 0.1
def get_nodes(nodes_file):
''' A list of nodes reading from file.
The format of the file:
node_01
... | [
"liuyxpp@gmail.com"
] | liuyxpp@gmail.com |
26389f16f25e501b2e3754aa94cfb6e3ae4c2470 | 0e0e7d68a32df763bbeb2fd3bae99183897242be | /Deep-Learning/Lab1/Source/Logistic_Regression.py | cb2b2a45ec85b96c20a8221d3ca630e9e242a645 | [] | no_license | Akshayvamshi/Python | bf876c8b763c8583f34cbd5ec7ae6d668764bc81 | 5a9d9506f0bdd7d4efa37a2562b4e9e798fb17fe | refs/heads/master | 2021-01-23T14:33:56.722065 | 2018-06-06T01:15:49 | 2018-06-06T01:15:49 | 102,693,412 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
# Load the data
data = np.loadtxt('iris.txt', skiprows=1)
X_data = data[:,:2]
Y_data = data[:,2:] # Note this is a matrix
#-------------------------------------------------------------------------------
# Fit
#---------------------------------... | [
"agr78@mail.umkc.edu"
] | agr78@mail.umkc.edu |
7a281b69c7dcfcffeaa9f04cf7fccff5074a4c5a | 5a39d03a86a1195a9e26da6a6911ebb56e1f8e95 | /users/urls.py | f55681a2d3d9d292c8ea4c45ab4be418d6709509 | [] | no_license | ben-truong-0324/Apella | 954e8d6014aabc24ca5d467ad2c9bd054b48fe85 | 4fcbf8a736a23f60506df57b7910c101acee97a6 | refs/heads/master | 2022-02-20T02:40:36.513074 | 2019-10-02T01:31:34 | 2019-10-02T01:31:34 | 212,232,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | from django.urls import path
from django.contrib.auth import views as auth_views
from . import views
app_name = "users"
urlpatterns = [
path('', views.index, name='index'),
path('register/', views.RegisterView.as_view(), name='register'),
# path('register/org', views.RegisterOrgView.as_view(), name='org_r... | [
"ben.truong.0324@gmail.com"
] | ben.truong.0324@gmail.com |
a65f7dc13eb985b6af3bbd498866c5e3df68317a | 0542d44fa5dcdb60d0b9225471803979824edb50 | /pwnable.kr/uaf/uaf.py | a08bc22f6b715ee2fa4620e3e613040ffdae48ae | [] | no_license | Phantomn/CTF | 733e00135e884b5cc5aa1fdcf7819e68f27117da | 48e52619ade5a4f2686a5ab9171567e65044ba4d | refs/heads/master | 2021-10-28T10:49:45.046610 | 2021-10-26T01:26:07 | 2021-10-26T01:26:07 | 97,565,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | from pwn import *
''' Create file '''
size = 0x18
path = "/tmp/uaf_file"
data = p64(0x401588) * 3
with open(path, 'wb') as f:
f.write(data)
''' Spawn process '''
p = process(["/home/ubuntu/ctf/pwnable/uaf", str(size), path])
gdb.attach(p)
''' Inputs '''
def use():
p.sendline("1")
def after():
p.sendline... | [
"tmdvyr123@gmail.com"
] | tmdvyr123@gmail.com |
e9327ec7e2122b53dc3b6ba3560a822de0e43c08 | 740b4f75dbede3c7d81e2fbd55e81ae62fe88589 | /Mutuales/models.py | 8c847d0be6b02ac64179b7764475e59861de8415 | [] | no_license | juancastelli1/FederacionMut | e45ced865ab3082ceacb678458b7390c9502be54 | 48ec18b4ce92d39306b77b51e10c26e6991d314d | refs/heads/master | 2023-08-17T12:41:48.248851 | 2021-09-29T19:03:40 | 2021-09-29T19:03:40 | 411,431,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | from django.db import models
from django.db.models.fields import AutoField
from backend.deptos import deptos_tucuman
# Create your models here.
"""
Construyo la entidad para los servicios
"""
class servicios(models.Model):
id_servicio=models.AutoField(primary_key=True)
servicio=models.CharField(max_length=20)
... | [
"juancastelli12345@gmail.com"
] | juancastelli12345@gmail.com |
66770718a60af155f03c7f7a0921f56f40df6693 | 6c19aac22212af668ce7f645973a7ef371ef462f | /weddingapp/migrations/0007_auto_20160313_1233.py | 8cf5f4c260da99cad79d62b986e3baea8715f591 | [] | no_license | josephshambrook/wedding | 37ff3b69a9eb6f422aefbde819c6498ded467ea1 | b4ebbc89b095a300537bca12cf71bc33c66bf596 | refs/heads/master | 2020-04-12T01:42:20.132336 | 2017-09-14T15:45:48 | 2017-09-14T15:45:48 | 53,410,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-03-13 12:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('weddingapp', '0006_auto_20160313_1146'),
]
operations = [
migrations.RenameF... | [
"josephshambrook@googlemail.com"
] | josephshambrook@googlemail.com |
f578af94f827e03d57627805204eccd982cf649c | 6641608791103374fab4034ae254c6d3b35677be | /bookworm/src/oscar/apps/customer/views.py | 4859edc21040e75902e64213d2dd299215aede3b | [] | no_license | lbput/bookwormPUT | fdab4bc1845e685ddb67c3a29ccb63718388ecdf | 9a1ee125199519788c9637963cb75f55804813c5 | refs/heads/master | 2021-01-18T13:49:05.271426 | 2015-07-23T11:19:03 | 2015-07-23T11:19:03 | 39,562,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,760 | py | from django.shortcuts import get_object_or_404, redirect
from django.views import generic
from django.core.urlresolvers import reverse, reverse_lazy
from django.core.exceptions import ObjectDoesNotExist
from django import http
from django.contrib import messages
from django.utils.translation import ugettext_lazy as _
f... | [
"bybek5@gmail.com"
] | bybek5@gmail.com |
79743241092a68390901622aa5ad794b68d72ca6 | e60c2913e39fa596f0c7353c13e633fba9b20f3c | /NewVersion/api.py | d177dac6c10ec53595abc91af5700b3c7bfb99be | [] | no_license | kqia040/MIformulation | 0ecb6f5f58474af6278329f43c380f6add4d4175 | 1a8a32afbb3735c2db23dc54670370e2e6d4b01f | refs/heads/master | 2020-04-07T07:28:22.193506 | 2017-08-08T22:22:31 | 2017-08-08T22:22:31 | 56,551,866 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 11 10:51:28 2017
API.py
@author: Kun
"""
| [
"kundianqian@gmail.com"
] | kundianqian@gmail.com |
e52c2654ae2511689ba72992d5c50715beeeb6e2 | f4f1add74a2025eeed0c305bacb368449a354964 | /pybin/expRptAcqBalanceInfo.py | ef4ec5a43ec40549c0d41df83d348c20e15c76db | [] | no_license | wxbjava/sandrpt | c3c3b4bffa65144f76991c66aaea397cdf1223fa | 6d2a5f5a8284b9bbb75c13601b5d59453dd64a25 | refs/heads/master | 2020-08-23T00:25:38.306862 | 2019-09-16T04:55:48 | 2019-09-16T04:55:48 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 21,611 | py | #!/home/acqbat/python36/bin/python3
#-*- coding:gb18030 -*-
#间联系统余额报表,按机构每个机构一个
import cx_Oracle
import sys
import os
from math import fabs
from openpyxl.workbook import Workbook
from utl.common import *
class MchtBalance:
def __init__(self, insIdCd):
self.initAmt = 0.0
self.finalAmt = 0.0
... | [
"1326469982@qq.com"
] | 1326469982@qq.com |
a8dc75408e3f6cd7d2d10f760352fdae307c9a2a | 0d1af99b330b3b09cca5535dd396875753048f4f | /tests/test_compose.py | 8cf29fe38423a68ad5b01fd82214ee4be29e0baf | [
"Apache-2.0"
] | permissive | owkin/MONAI | 9ef51e41c776f68e7b7dc87e17759b18e4a043b3 | a1c50211c916ee8d7c18d72f4e8a0721b403418a | refs/heads/master | 2022-12-29T16:16:36.305402 | 2020-09-29T09:58:01 | 2020-09-29T09:58:01 | 254,631,434 | 1 | 0 | Apache-2.0 | 2020-04-15T08:03:45 | 2020-04-10T12:40:13 | Python | UTF-8 | Python | false | false | 5,250 | py | # Copyright 2020 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, s... | [
"noreply@github.com"
] | noreply@github.com |
4f11e5a9b9a6bb26ab4f1092072e1ee5fbba1ab3 | 6407cca09a68be7ff28ad8ce31fa43af5d099eb3 | /oldbkp_mao_data/TrafficModels.py | ed28f706a7aa1debf781fa3b45465c1b133c7a7a | [] | no_license | hannnni/lkw_algo | 34936fdda7b6e10112845358ea03a6a17ecf1389 | f6cbd5a14cafe0203097499fd3b836a8cf326c42 | refs/heads/master | 2021-01-18T14:11:10.944867 | 2014-11-11T22:21:58 | 2014-11-11T22:21:58 | 26,492,296 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,002 | py |
import os
import string
import random
import csv
import numpy# as np
import scipy
import pygame
import math
global NetworkFileName
#, signalPlanFileName
#filename = 'networkTest.csv'
NetworkFileName = 'NetworkTestFeld.csv'
#signalPlanFileName = 'temporarySp.csv'
"""
Should predefine link Number or should be read from... | [
"johannes@vonoswald.de"
] | johannes@vonoswald.de |
f0d66222bd2e878efcee349fcddf1454f95dbff7 | 1b550fe52e49d49d60caa1b7e8720b132a19d0ff | /sns_topic/sns_topic/lib/python2.7/site-packages/ansible/modules/network/meraki/meraki_network.py | ebc207b6c2f8de3373cdcdce76fceec29779f997 | [] | no_license | manuprathapan/Ansible | c25e44248f73cf1c37af3c3a3b74bb1f49f8211e | 6dcc840cd623ae73ec6f5043f8a35ed2c261df0f | refs/heads/master | 2020-03-22T06:49:26.797231 | 2018-07-12T03:05:31 | 2018-07-12T03:05:31 | 139,660,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,487 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Kevin Breit (@kbreit) <kevin.breit@kevinbreit.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
... | [
"manuprathapan92@gmail.com"
] | manuprathapan92@gmail.com |
006cb2b9f46f18032a261ca6c59b587635b5bb5c | 56209eb057fb7f21b8632ae1138df0d2b6174105 | /rnnt_np.py | a2540d15cbffc22cf14c8f6b788fe1abd334705c | [] | no_license | HawkAaron/RNN-Transducer | 28776079e013d811377b780c2fc65ace9f91e3fe | 786fa75ff65c8ce859183d3c67aa408ff7fdef13 | refs/heads/graves2013 | 2021-06-09T02:42:55.598925 | 2019-04-18T00:24:48 | 2019-04-18T00:24:48 | 128,898,651 | 141 | 36 | null | 2021-06-07T15:39:34 | 2018-04-10T08:20:19 | Python | UTF-8 | Python | false | false | 6,892 | py | import mxnet as mx
import numpy as np
def forward_pass(log_probs, labels, blank):
T, U, _ = log_probs.shape
alphas = np.zeros((T, U))
for t in range(1, T):
alphas[t, 0] = alphas[t-1, 0] + log_probs[t-1, 0, blank]
for u in range(1, U):
alphas[0, u] = alphas[0, u-1] + log_probs[0, u-1,... | [
"mingkunhuang95@gmail.com"
] | mingkunhuang95@gmail.com |
a803d90e6974dbac351285f2b44837f2bf0c9aa2 | 8f733bd95941d11dd46bab9cabb23c002c7e6208 | /test.py | 57c2a5ac616cf4295b6c6f4da3aa974ad18201eb | [] | no_license | tangtang586/demo | 93f56780794b1970965c2b51c0a11c5840f84919 | 31cd8f5c1dc386e0aec5cdee8f968028b50240f0 | refs/heads/master | 2020-04-03T10:06:45.977151 | 2020-03-27T09:16:53 | 2020-03-27T09:16:53 | 62,878,310 | 0 | 0 | null | 2020-03-27T09:17:17 | 2016-07-08T09:47:30 | Python | UTF-8 | Python | false | false | 22 | py | 真的是TMD的神烦
| [
"noreply@github.com"
] | noreply@github.com |
12842639126a0725c5a3f29b76fba07a7c33537c | 2de1d9ed502001d4a8b749c57f6a31a2599a39e5 | /hw1/hw1_3.py | 4bcbf730a70c31f61e27a78e9c2898673d57d396 | [] | no_license | Ekaterina-sol/Python_Basics | 346e6cd5b0492ccb954ded4eea8fd0890be5fef1 | 0c09c6a21402b52958f47718cb596ad3e3f99d56 | refs/heads/main | 2023-02-25T19:20:05.587474 | 2021-01-29T17:41:56 | 2021-01-29T17:42:53 | 323,563,776 | 0 | 0 | null | 2021-01-29T17:44:08 | 2020-12-22T08:17:15 | Python | UTF-8 | Python | false | false | 276 | py | user_number = int(input("Введите число от 1 до 9: "))
tens = user_number*10 + user_number
hundreds = user_number*100 + tens
sum = user_number + tens + hundreds
print("Посчитаем", user_number, "+", tens, "+", hundreds, ". Сумма равна: ", sum) | [
"ekaterina.solovyeva.al@gmail.com"
] | ekaterina.solovyeva.al@gmail.com |
89ef0f289c85d226163ba523bd7b07c15c176acd | f295e88da66d8ffad3fb86e95e16689046c9b712 | /LightsOut.py | 3ccf67ba7110fb4f3c8d65c17610e381aaf7d502 | [] | no_license | detlefgrohs/NeoTrellisM4 | 1567a7f1a6f14921cfdd6eb8d9a14c7f09e8ff4f | bbec5e97bf3949a006156c94e3b4f0d78da58fe5 | refs/heads/master | 2020-04-13T22:16:06.653300 | 2019-01-02T00:07:43 | 2019-01-02T00:07:43 | 163,474,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | import random
class LightsOutBoard:
lightOffColor = (0, 0, 0)
lighOnColor = (255, 255, 255)
def __init__(self, xSize, ySize, initialValue = False):
self.xSize = xSize
self.ySize = ySize
self.Board = [ [ initialValue for y in range(ySize) ] for x in range(xSize) ]
de... | [
"detlef.grohs@gmail.com"
] | detlef.grohs@gmail.com |
0e2e19efd181694bd82a31e6ea9bd4fd1ccb7faf | 248d20fa6c37afc1501b47398451bf15dc8f0165 | /ryosuke/chapter04/knock38.py | 5e72a2bf383a6cd35a7e272d4ed196b6769cd017 | [] | no_license | tmu-nlp/100knock2016 | 20e9efd4698f59918aa850ba40163906f13dcb7f | d5f7a76286cb95bb374ff98bc0c9db3c796d113d | refs/heads/master | 2021-01-21T02:20:57.121371 | 2016-08-03T01:49:38 | 2016-08-03T01:49:38 | 55,942,482 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from knock30 import get_sentences
from collections import Counter
import matplotlib.pyplot as plt
vocab = Counter()
for sentence in get_sentences():
vocab += Counter(m['surface'] for m in sentence)
names, freqs = zip(*vocab.most_common())
plt.hist(freqs, bins=len(set(freqs)))
plt.show()
| [
"tmcit.miyazaki@gmail.com"
] | tmcit.miyazaki@gmail.com |
94c7b2eb88cd995d7c0f4c091e29db9530a2b6b5 | 151977c8d1f5d92307ca7341ec6c5d0dd5ec1d55 | /pra/p4/server.py | cb939d5c90d40291714ad76eb1278ef4042e7978 | [] | no_license | wenrenzhejie/qq | d748f89733968168222fd286aaca2974f83efb41 | 1fa9a792a0001c43097599247c4929c833705dd9 | refs/heads/master | 2020-05-27T13:26:52.143088 | 2019-05-29T02:37:20 | 2019-05-29T02:37:20 | 188,639,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | import socket
import threading
import queue
import json
ip=''
port=10086
users=[]#存放所有用户
que=queue.Queue()#存放消息
lock=threading.Lock()#防止多线程并发放置消息错误
def receiveMessage(conn,addr):
print("一个客户端连接进来",conn,addr)
users.append(conn)
try:
while True:
data = conn.recv(1024)
data = d... | [
"xin@qq.com"
] | xin@qq.com |
319111e049d54da135e6530ac56f21f03c5dffd6 | 9a0731e0f9e9ce47a3c0124cab8a4187c9f0cbfe | /program/script/__init__.py | b15b59965ea5ef0f101dea017bef60f4b8effeb6 | [] | no_license | hinohi/LSBattle | e88c393304e521b094eef5be6213c2092dea3bff | fbde754c5aee3250e42ac3f9ab5a5e4a4379ce92 | refs/heads/master | 2021-11-27T04:38:53.691383 | 2021-10-09T06:09:59 | 2021-10-09T06:09:59 | 36,002,188 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | #coding: utf8
import os as _os
import glob as _glob
import sys as _sys
# import traceback as _traceback
# import logging as _logging
from program import const
# _logging.basicConfig(filename=_os.path.join(const.path, 'script.log'), filemode='w',
# level=_logging.WARNING,
# for... | [
"42.daiju@gmail.com"
] | 42.daiju@gmail.com |
55e1e7a588baa73d05b3389603a8340cd56c645d | 0b16c5abb90e90f84faa646416147ce791a3c32c | /users/views.py | f7d254faa334e7956240ec56692004ac3131d1fd | [] | no_license | meicx/test | 36760deeeb2cde3d6889f9b5f48d582a8a667ea8 | c540349a31a1e87feef9837424b8ebdecaf38354 | refs/heads/master | 2022-12-10T12:12:51.112368 | 2018-12-19T04:03:32 | 2018-12-19T04:03:32 | 161,119,161 | 0 | 0 | null | 2022-12-08T02:27:59 | 2018-12-10T04:58:37 | CSS | UTF-8 | Python | false | false | 7,749 | py | # -*- coding:utf-8 -*-
from django.shortcuts import render, render_to_response
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.backends import ModelBackend
from .models import UserProfile, EmailRevifyRecord
from django.db.models import Q
from django.views.generic.base import View
f... | [
"meichenxi@baidu.com"
] | meichenxi@baidu.com |
9d4ac7b14c1eeaa1ac8a0bcafd7f4750f587e06a | d04790f13e1c465ea108536780da58416b1754b1 | /scripts/switch_panel.py | d48b9aa6a8ea4f93e2ac8f57292f4cececddf2ae | [] | no_license | lordofbuckwheat/devenv | 8d6c2157bca5c9b9e22cf80cdb1edb0cc82bbacf | 494134ce65dffa948f50b651739be3c236be6ee1 | refs/heads/master | 2021-07-10T03:19:50.854771 | 2021-03-07T07:40:25 | 2021-03-07T07:40:25 | 227,970,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | import sys
admin = 8 if len(sys.argv) < 2 else sys.argv[1]
with open('/root/app/supertvbit/public/panel/src/panel_config.json', 'w') as f:
f.write(f'''{{
"SITE_URL": "http://public.tvbit.local:10080/",
"PUBLIC_HOST": "http://public.tvbit.local:10080/",
"API_URL": "http://go.tvbit.local:182{... | [
"lord.of.buckwheat@gmail.com"
] | lord.of.buckwheat@gmail.com |
ecd47b4026118e945daed5202c65fd1cf9e782d7 | 1f84effff99c38c7e2cc37d8651f4789ff508f85 | /btbai2.6.py | 1e3dacbd61bce039825dd71b9dd97edb890610af | [] | no_license | CaoVanHieu/hoanghieu1999 | 6059f20e39bed7eb9b1aca275bef005f31661d03 | 36cbc769fea8ba9b27f5606b30bf79c3edb20eae | refs/heads/master | 2020-04-28T05:57:39.937037 | 2020-02-05T15:14:12 | 2020-02-05T15:14:12 | 175,038,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | j=[]
for i in range (2000,3201):
if (i%7==0) and (i%5!=0):
j.append(str(i))
print (','.join(j)) | [
"noreply@github.com"
] | noreply@github.com |
d55bae828df6d68ea9093e2c30465db7626bc148 | 304a64ab15dc445de42cfcb57f955ad6699291c1 | /FlaskBlogly3/app.py | 54e0a504782c99afcefc49ec89c9f3288d1a9f50 | [] | no_license | hahabib51/blogly3 | 16388834cb9d72eede6166ba5110c714fecf01b2 | ef7132e45e4011be9d046093a481976de35c059a | refs/heads/main | 2023-04-21T16:40:47.754707 | 2021-05-11T01:32:05 | 2021-05-11T01:32:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,074 | py | from flask import Flask, request, redirect, render_template, flash
from flask_debugtoolbar import DebugToolbarExtension
from models import db, connect_db, User, Post, Tag
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = "postgres:///blogly"
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['... | [
"79046805+hahabib51@users.noreply.github.com"
] | 79046805+hahabib51@users.noreply.github.com |
66f614fc294e9d8c94babbbce4963368e0136402 | 35b460a5e72e3cb40681861c38dc6d5df1ae9b92 | /CodeFights/Arcade/Intro/islandOfKnowledge/minesweeper.py | 7a778a54e8fe37740efbc970e191ddc6ef1ca2ae | [] | no_license | robgoyal/CodingChallenges | 9c5f3457a213cf54193a78058f74fcf085ef25bc | 0aa99d1aa7b566a754471501945de26644558d7c | refs/heads/master | 2021-06-23T09:09:17.085873 | 2019-03-04T04:04:59 | 2019-03-04T04:04:59 | 94,391,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | # Name: minesweeper.py
# Author: Robin Goyal
# Last-Modified: July 12, 2017
# Purpose: Give an array of true and false values with true indicating a mine
# return an array of the same length indicating number of surrounding
# mines at each position
# Note: Could've optimized the solution but a pure br... | [
"goyal.rob@gmail.com"
] | goyal.rob@gmail.com |
9c701a415e29b4a82c0017f3810bdb84dfa1e3aa | 2968989d94468d4d0a15c748690ec72664f61e80 | /utils/file_locker.py | 346a12ca3760bfa39a2c6cdd40afabbd69a34bd2 | [
"Apache-2.0"
] | permissive | vtppplusgo/fastsync | 40547706bc13f2685b8f688fde9ee4afe73582d6 | 625045d0bbc2a8d86a07d72078eb30423f4d970d | refs/heads/master | 2020-05-18T23:36:38.489934 | 2017-11-07T03:46:25 | 2017-11-07T03:46:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | #!/usr/bin/python2.7
#-*- coding: utf-8 -*-
# file_locker.py
#
# Author: zhangliang@shinezone.com
#
# Refer:
# https://github.com/HiSPARC/station-software/blob/master/user/pythonshared/plock.py
#
# init created: 2016-05-25
# last updated: 2016-07-13
#
##################################################################... | [
"350137278@qq.com"
] | 350137278@qq.com |
d4769b30907c3a34945bf0e943d4d457b9e32c58 | 0f5568c11053123c45570fc1e519d5a43d72a73b | /scripts/gui6w_dronepublishers.py | cdd401dd1bff04abe003c20cb85efc3063094790 | [] | no_license | AnandaNN/LT_tracker_w_gui | 71d77244553d4c7ae050811faf65fe83e9e18df1 | d4b9b3b690145b1fc01c76daafe2f7961d5a7678 | refs/heads/master | 2023-01-07T22:06:49.879972 | 2020-10-26T09:33:49 | 2020-10-26T09:33:49 | 291,665,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,799 | py | #!/usr/bin/env python2
from Tkinter import Tk, Label, Button, Frame
import tkMessageBox
import rospy
from PIL import Image
from PIL import ImageTk
import cv2
from geometry_msgs.msg import Pose, Twist
from sensor_msgs.msg import Image as SensorImage
from std_msgs.msg import Bool, Empty, UInt8
import base64
from cv_bridg... | [
"anhon@elektro.dtu.dk"
] | anhon@elektro.dtu.dk |
633e313b2e3d9671331d27aed231d2656fe2b5c5 | b9fed5ae3fbb22317d29fc20af4336f2e31489a6 | /main.py | 323c7f37baa0e798abd1ca4351e5b56b64fc2fe0 | [] | no_license | Raashid710/flask-blog | e484538a8df61e8b333b82b261a14114e5b0395a | a343e0cdaec16e2e5a45860427a282e8c221c766 | refs/heads/master | 2023-06-28T19:44:54.234499 | 2021-08-10T08:52:36 | 2021-08-10T08:52:36 | 393,982,315 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,961 | py | from flask import Flask, render_template, request,session,redirect
from flask_sqlalchemy import SQLAlchemy
from werkzeug.utils import secure_filename
from flask_mail import Mail
import json
import os
import math
from datetime import datetime
with open('config.json', 'r') as c:
params = json.load(c)["params"]
loc... | [
"Raashid710"
] | Raashid710 |
b10f1d015e39167aece2ad6df9958a447a5a7f45 | ff73cf9a9b1c924e46e9e088243991a184a8a668 | /UMass/2019Research/synthesis/minimal_box/softbox_model.py | 071de3ad937c9345961ca5481b953dce6441bbc0 | [] | no_license | Lorraine333/minimal_box | c844b14ca2b5a6a898be9dec48ce89473887a325 | 472e1de6087c4183fe706edc0efc4e917b7518a3 | refs/heads/master | 2020-06-11T14:31:39.612547 | 2019-06-27T01:11:26 | 2019-06-27T01:11:26 | 193,998,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,992 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import utils
from box import MyBox
import tensorflow as tf
my_seed = 20180112
tf.set_random_seed(my_seed)
def model_fn(features, labels, mode, params):
"""
Creates model_fn for Tensorflow estimator. Th... | [
"abbeyli92@gmail.com"
] | abbeyli92@gmail.com |
3aefc1186a88845c16d658de39ccb722a760a83f | e922f5dac332fbf4de910ade55f07cb75d900d1b | /templates/influxdb/actions.py | 22fc5f7c27e2e8b057d5a9a71db43c9800bbaa34 | [
"Apache-2.0"
] | permissive | hossnys/0-orchestrator | 441970f0bd784b72c40f6da4fa44ca2c70b9ea8c | cce7cc1e1f957e0eb691b863502fa6c3f4620d52 | refs/heads/master | 2021-01-01T18:46:27.123614 | 2017-07-26T13:59:30 | 2017-07-26T13:59:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,070 | py | def get_container(service, force=True):
containers = service.producers.get('container')
if not containers:
if force:
raise RuntimeError('Service didn\'t consume any containers')
else:
return
return containers[0]
def init(job):
from zeroos.orchestrator.configurat... | [
"deboeck.jo@gmail.com"
] | deboeck.jo@gmail.com |
9dd6a4dec2e3bae975e974846e5a24ca372e9610 | 62d305dc260c7d5ef49d44a8d61f29896fe612b4 | /scqubits/tests/test_spectrumlookup.py | 09f8bea073f14352c8aa085865dbd5b194d715fe | [
"BSD-3-Clause"
] | permissive | ooovector/scqubits | 1185ca8bc4eb5a88638d1638c92fde789dc6036b | d3f0108eda9e9fa216e3efe1a8feaee220b29444 | refs/heads/master | 2023-01-05T06:13:55.862278 | 2020-10-30T07:54:57 | 2020-10-30T07:54:57 | 268,481,492 | 0 | 2 | BSD-3-Clause | 2020-08-28T12:34:43 | 2020-06-01T09:40:41 | Python | UTF-8 | Python | false | false | 16,587 | py | # test_spectrumlookup.py
# meant to be run with 'pytest'
#
# This file is part of scqubits.
#
# Copyright (c) 2019, Jens Koch and Peter Groszkowski
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
#####... | [
"jens-koch@northwestern.edu"
] | jens-koch@northwestern.edu |
de23996569a965273f6b640c2706fdee4576e88d | bf154ac3c8b1f9aaa50115f7004b8ff7235e730a | /ask_buevich/ask_buevich/migrations/0003_question_created_at.py | e25003fe47ce7ce3729ff49b9980500a48004a4e | [] | no_license | JohnKeats97/AskBuevich | 69d486acd358ce321eaabd1b990b8ffa5b29df73 | 410e2f558f3d08f15214dc15e1dbe020aeeb6b46 | refs/heads/master | 2021-01-19T08:41:42.026059 | 2018-01-31T21:35:39 | 2018-01-31T21:35:39 | 87,663,854 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import datetime
class Migration(migrations.Migration):
dependencies = [
('ask_buevich', '0002_question'),
]
operations = [
migrations.AddField(
model_name='question',
... | [
"johnbuevich@yahoo.com"
] | johnbuevich@yahoo.com |
a6c4aa0e8380fd9ff7002a247ccdb28e8f77b1b8 | 6cbe9db58d3952c3a201dafb7ce4dc40ca865117 | /payment/urls.py | b8eb16da15294e55e39d9a47063dc253981c0dd2 | [] | no_license | Mundia-Pizo/ecom | 782b0ab57566f503c412b6114dd4b59e72fdd632 | 4ca6ba313cbdf3aef86304d34bf6bfc1a1ade1cf | refs/heads/main | 2023-03-19T06:54:56.414179 | 2022-10-24T22:52:08 | 2022-10-24T22:52:08 | 252,992,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | from .views import payment_process, payment_done, payment_cancelled
from django.urls import path
app_name = 'payment'
urlpatterns = [
path('payment/', payment_process, name='payment_process'),
path('done/', payment_done, name ='done'),
path('payment_cancelled/', payment_cancelled, name='cancelled')
] | [
"stacypizom@gmail.com"
] | stacypizom@gmail.com |
d5397373ff70a6206913d19b80955ec6fe0df354 | 6d1747234e372917032452fddb94636c28b0122b | /Summary/scripts_becky/data_storage.py | 54da45ec3c4d4686e5cd7c13aae9a5f540d7cdb0 | [] | no_license | amitamisra/Summary_Dialogs | 869e66f26c83fc627546c85d2517245f85e742c3 | e0257bac31067a78f3225cc81b6b02e65e2bdd89 | refs/heads/master | 2020-04-06T04:32:31.736617 | 2015-10-28T19:51:37 | 2015-10-28T19:51:37 | 19,559,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,738 | py | import pymongo
from pymongo import Connection
from bson.binary import Binary
import pickle
import glob
import nltk
from train_on_conll2000 import *
import xml.etree.ElementTree as ET
def all_lower(list_of_tokens):
return [t.lower() for t in list_of_tokens]
def get_sents(raw):
# returns a list of word-tokenized sent... | [
"amitamisra1@gmail.com"
] | amitamisra1@gmail.com |
9f44906ee88378f8a8718133ab9aab13900371e0 | 221751f033d97c073eeab6b98b44df4526c45687 | /crud/forms.py | fd7de17ea4ab1200947009893982d86ce6c70d8a | [] | no_license | RomHartmann/todo_tracker | acb6ff1a974670df2b55542824811455284f4c77 | 70c785c55f4708ec88f43f6ba9b15df6b020255d | refs/heads/master | 2021-06-12T20:59:51.442768 | 2018-11-21T05:35:09 | 2018-11-21T05:35:09 | 158,182,484 | 0 | 0 | null | 2021-06-10T21:03:35 | 2018-11-19T07:53:14 | Python | UTF-8 | Python | false | false | 2,260 | py | from datetime import datetime
import calendar
from django.forms import ModelForm, widgets, Textarea
from crud.models import Todo
from django.utils import dates as dj_dates
class DateTimeWidget(widgets.MultiWidget):
"""A Date time widgit for year, month, day, hour, minute(15 min intervals).
Uses a set of 5 ... | [
"romhartmann@gmail.com"
] | romhartmann@gmail.com |
6050cf57bbb806c30de0a77a82955bf4cc53dd93 | 213349ea60979af4c830645fd30539a2bbd977c9 | /course/migrations/0010_auto_20191010_1825.py | d52169320d36f0704b4fb6135f9b1032b64f344f | [] | no_license | minhajulislam56/WhiteBoard | 435477671cc911aa36f47b430116ecd82d3bb49d | c5a00d7428edabaa9defd1af2b8461c36e4dcc7c | refs/heads/master | 2022-12-17T12:52:44.218529 | 2019-12-30T19:35:11 | 2019-12-30T19:35:11 | 229,997,443 | 0 | 0 | null | 2022-11-22T04:19:28 | 2019-12-24T19:55:59 | Python | UTF-8 | Python | false | false | 384 | py | # Generated by Django 2.2.5 on 2019-10-10 12:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0009_auto_20191010_1823'),
]
operations = [
migrations.AlterField(
model_name='course',
name='rating',
... | [
"35999036+minhajulislam56@users.noreply.github.com"
] | 35999036+minhajulislam56@users.noreply.github.com |
c769e4bd93525540e181e3300e654a6fc7f2e039 | 5f61858f4768991743cc6195f6f36bb38843e97c | /EOSWebApp/EOSWebApp/imageProcessing/processingFunc/template_matching.py | fe8a5725f4c180aab0831c149d351b0ca8e269a1 | [] | no_license | quynhkha/EOS | 525acc61e25ad495e32abdad14373cb32e36b1f0 | 035cdbf2f3fd0fbd9542a4591ca4fafca7ebfe67 | refs/heads/master | 2020-03-29T09:29:32.785465 | 2018-03-09T03:19:27 | 2018-03-09T03:19:27 | 149,760,744 | 0 | 0 | null | 2018-09-21T12:32:05 | 2018-09-21T12:32:05 | null | UTF-8 | Python | false | false | 2,437 | py | import cv2 as cv
import numpy as np
from skimage import io
from matplotlib import pyplot as plt
img = cv.imread('/home/long/PycharmProjects/EOS/ImageProcessing/data/1947-1_plg1.tif',0)
img2 = img.copy()
template = cv.imread('/home/long/PycharmProjects/EOS/ImageProcessing/data/template3.tif',0)
w, h = template.shape[::-... | [
"ndlong95@gmail.com"
] | ndlong95@gmail.com |
ddc161b7e46516dd3785e6dba80385cf69326f1e | f3f01d98f2f924b7f2ce9c682b63ef68a0b943d7 | /Type_conversion.py | 67e8274a805561624b385bea780d5a3d1ffc4e07 | [] | no_license | nihalgaurav/pythonprep | 0d935244f4c20b2ba660a1bc192352654d4a9366 | d3023e1b58d9d5333e909f71d9c3fa7c54c420f5 | refs/heads/master | 2023-03-27T06:09:38.757433 | 2021-03-16T05:22:07 | 2021-03-16T05:22:07 | 344,804,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | number = 17
width = len(str(bin(number)[2:])) + 2
print("INT".rjust(width) + "OCT".rjust(width) + "HEX".rjust(width) + "BIN".rjust(width))
for x in range(1, number+1):
print(str(int(x)).rjust(width, " ") + str(oct(x))[2:].rjust(width, " ") + str(hex(x))[2:].upper().rjust(width, " ")
+ str(bin(x)[2:]).rjus... | [
"nihalgaurav85@gmail.com"
] | nihalgaurav85@gmail.com |
2c20be9ac07ccbe8056cc8e2fc2e7b6b026b9ef2 | ab39a09f75663a291368eb3b5bf3ecb7fcdce25c | /06.Lists.py | 342085c2aa0a9684ccf0422eec1a0e3ad3de96bc | [] | no_license | Iseries2090/Complete_Python_Bootcamp | 8df0cea5eb97c98202c3353369a06bb533cbf8c9 | 33279695c6ee9d0bab4ceae7676928790fc08281 | refs/heads/master | 2022-08-08T19:14:07.734615 | 2020-05-18T17:49:47 | 2020-05-18T17:49:47 | 264,511,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | """
Lists
Creat a list that contains at least one string, one integer and one float
"""
[1,'hello',3.14] | [
"khayden2090@gmail.com"
] | khayden2090@gmail.com |
c2f894d59b1e97ea33c13e4f63461c1e4d7d9315 | c7da66b0e719686dd2a36a99602fd1e6b933445d | /examples/python/helloworld/async_greeter_server_with_graceful_shutdown.py | 6dedc2262af5bfd73a67b71196e2a3273efc6c9c | [
"Apache-2.0"
] | permissive | yulin-liang/grpc | 5b5cf2a050dd9a0f43090464583781a2eebfbb53 | c52005c161281a4dd429a19aed380af2308dc885 | refs/heads/master | 2023-07-03T11:27:58.122532 | 2021-07-12T05:10:04 | 2021-07-12T05:10:04 | 263,710,997 | 0 | 1 | Apache-2.0 | 2020-05-13T18:24:23 | 2020-05-13T18:24:21 | null | UTF-8 | Python | false | false | 2,242 | py | # Copyright 2021 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"noreply@github.com"
] | noreply@github.com |
cee24ad2b9015a0358c23faf46c7db3e63048385 | b40a661aa78c10ea8413b349f1efe288149f4ab0 | /App/migrations/0004_address.py | 20a5f2bea93a0a8e0e15352f1439fbf6e1dd1c5b | [] | no_license | 0helloword/DjangoSum | daed4ab9488c5d53518623eb5d35c3a32a826129 | 72b528415edd2a76a7a19da708d4046de2a014ac | refs/heads/master | 2022-11-25T15:15:30.843401 | 2020-08-02T03:18:07 | 2020-08-02T03:18:07 | 275,606,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-06-27 13:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('App', '0003_cart'),
]
operations = [
migr... | [
"532720298@qq.com"
] | 532720298@qq.com |
12a9b9befcf7af332c3ea172149268070aea9c7c | deb740e5086386a68d155b2482f9a9ec2095012c | /jdcloud_sdk/services/live/apis/DescribeLivePublishStreamNumRequest.py | 212277a2947473efb924dd9775e2df6ca9c01142 | [
"Apache-2.0"
] | permissive | aluode99/jdcloud-sdk-python | 843afdd2855a55ecd7cd90fe255df213a8f56e28 | 3da9ae9c0f08e2c20a73dde04f6453d3eb9db16a | refs/heads/master | 2020-05-26T09:26:24.307434 | 2019-05-29T02:35:23 | 2019-05-29T02:35:23 | 188,186,313 | 0 | 0 | null | 2019-05-23T07:46:01 | 2019-05-23T07:46:00 | null | UTF-8 | Python | false | false | 2,692 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"tancong@jd.com"
] | tancong@jd.com |
e33bf7188bb39a15eab44ec863cb21e1daa47b3e | acf15961c47fb947a407a4318214110b9597d9e6 | /env/bin/jupyter-kernel | 667c26308122816ab476f0645e256bfc37e040c0 | [] | no_license | qu4ku/dshub-website | 43e378352246357db83da9b9b0acd760aebbc83a | 792d94e41fa666093eda2b5511bbcab27e0bb287 | refs/heads/master | 2021-06-02T19:27:39.708138 | 2020-05-19T09:18:42 | 2020-05-19T09:18:42 | 135,715,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | #!/Users/kamilwroniewicz/_code/_github/180601-datahub-website/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_client.kernelapp import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"qu4ku@hotmail.com"
] | qu4ku@hotmail.com | |
4be6d5e31dfde57db6b7b75cc1887ab488914e4d | 8228257edfaef99cc37f0e7bdbd1c1b0175d08dc | /Person/Person/wsgi.py | b6986e2d516b19dd2b79dd30fd9126ba64c05ab2 | [] | no_license | OMGzy/Novel | 472d11634a947196fb7453797964e37ed39d5318 | cc62a74184ccc56d2a22ca68ae433f436fd8a7de | refs/heads/master | 2021-01-22T03:18:23.068904 | 2017-05-25T06:28:30 | 2017-05-25T06:28:30 | 92,370,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """
WSGI config for Person project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"wangzy_job@163.com"
] | wangzy_job@163.com |
21439bcac6cdd546eeab5d2c26363fe72b79eb43 | ea549f5974db822d0733e5417d313997de9ca2bb | /craig_list_site/migrations/0001_initial.py | 57e111b3bffaa4b9a0892c8fca78c81caa2d727c | [] | no_license | Bibin22/craiglist | fe5a641cf4b8c03557c1775605a5e8b4da9b43de | 853b377f4951ee3ac9072bc22d486f520e18b1bc | refs/heads/master | 2023-02-05T11:32:24.911491 | 2021-01-02T05:30:34 | 2021-01-02T05:30:34 | 326,116,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # Generated by Django 3.1.4 on 2020-12-24 10:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Search',
fields=[
('id', models.AutoField(a... | [
"bibinjoy82@gmail.com"
] | bibinjoy82@gmail.com |
a3fac0df2496aea555fb951e1641e2c5d9b07391 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_233/ch45_2020_03_09_13_17_35_961786.py | 7cf83bf5b09f45069fdb4e7c49f9a6d644c64307 | [] | 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 | 202 | py | lista = []
while True:
num = int(input())
if num <= 0: break
lista.append(num)
lista_inv = range(len(lista))
for i in range(len(lista)):
lista_inv[-i + 1] = lista[i]
print(lista_inv) | [
"you@example.com"
] | you@example.com |
e8a53b99c0ddd63bf2407ce9aae0b46ed807b353 | 53a8f7f1cfb2681cc38971a2b33e0af5c5a47e34 | /pythonNet/day07/thread_lock.py | 0bebc62c38686ca370876169a6d49579f24d070c | [] | no_license | AnnaHun/Python_Study | 00a01297eb8ba7fcf4bd8d85bade1eb7db9b8a63 | 878439a13f3613727d56df722595b30a557e81dd | refs/heads/master | 2022-09-02T04:57:04.162037 | 2020-05-28T09:30:11 | 2020-05-28T09:30:11 | 261,661,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
"""
@Author : 朱昭明 -- apple
@Project : Python_Study
@File : thread_lock.py
@Software : PyCharm
@Create Time : 2020/5/11 10:41 上午
@Contact : 18327510516@163.com
@License : (C)Copyright 2020-2022, ZhuGroup-ZB-CASIA
@... | [
"18327510516@163.com"
] | 18327510516@163.com |
275286b9b57618dd4edb5a140673fbc3c2c3b955 | 0a2baf73724d033360df9350aeaaac6c24b85593 | /9.DouBan_teleplay/doubanTV.py | 8d3e939a4cebed0f22ef3b000aad01037a146bb8 | [] | no_license | zhongmeimei123/SpiderCollection | 2928b0a3b56d76192dd1432a731f4a9f04ed4503 | 6f68e0fb7d83242fe672fc7e412c1ef749a7e0c2 | refs/heads/master | 2020-04-05T14:45:45.768222 | 2018-11-08T12:17:42 | 2018-11-08T12:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | import json
from utils.get_classify import get_classify
from utils.parse_url import parse_url
class Douban:
def __init__(self):
self.url = 'https://m.douban.com/rexxar/api/v2/subject_collection/filter_tv_american_hot/items?os=android&start=0&count=18&loc_id=108288'
self.headers = {
'U... | [
"2374097101@qq.com"
] | 2374097101@qq.com |
d13c4fd48ae4636a11c0d6e98be4c6c7de0af28d | 0e2446d4cd27c90155cde011e825479382468403 | /py/foobar/IPython_support.py | 169b66bb9a57b03e882dd78931c1af1828175229 | [
"BSD-3-Clause"
] | permissive | mrcslws/ipython-web-graphics-example | fb6ee1371d412afbc11a5ce4f651170220f0c661 | 989dcb9f540317a57549e5668b4dce1d5c2b7e54 | refs/heads/master | 2021-01-11T19:28:43.053578 | 2017-03-11T02:04:24 | 2017-03-11T02:04:24 | 79,377,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | import json
import numbers
import os
import uuid
from pkg_resources import resource_string
from IPython.display import HTML, display
def get_foobar_js():
path = os.path.join('package_data', 'foobar-bundle.js')
foobar_js = resource_string('foobar', path).decode('utf-8')
return foobar_js
def init_notebo... | [
"mrcslws@gmail.com"
] | mrcslws@gmail.com |
2eb9a26bdde17a586ad5280059024d4004382a91 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /ayQTiQAcFJhtauhe3_17.py | 1dca03f7cb44ef5e8ee9f421dc82cdd88d7fd01c | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | """
Given a list of integers, determine whether the sum of its elements is even or
odd.
The output should be a string (`"odd"` or `"even"`).
If the input list is empty, consider it as a list with a zero (`[0]`).
### Examples
even_or_odd([0]) ➞ "even"
even_or_odd([1]) ➞ "odd"
even_or_odd([])... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
384072f8fe4c2216949622c07323ea78a8d9581f | 94b5a189c03e0a6321665fef297dde7a092b7053 | /src/tunnel_server.py | 092636d6b6fd177374ac2f28eb57f1354da36a84 | [] | no_license | voidbar/tcp-over-icmp | ee72059543ec2c9ee8c1436e5facae0af3295ff0 | f782ec541257ffb73a09d2fa21ded656d839fb3f | refs/heads/master | 2022-12-19T02:16:54.636915 | 2020-09-22T11:40:58 | 2020-09-22T11:40:58 | 290,265,391 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,206 | py |
import sys
import argparse
import icmp
import select
import socket
import logging
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(message)s")
logger = logging.getLogger(__name__)
TCP_BUFFER_SIZE = 2 ** 10
ICMP_BUFFER_SIZE = 65565
class Tunnel(object):
"""
... | [
"tomer.lev@argus-sec.com"
] | tomer.lev@argus-sec.com |
594d970cdd44aea6dab5db8d8b2eae35f88175eb | 57f09ef87421729b2565a6fdccd35132f1acc924 | /app/__init__.py | 0e9e2f20081e599be412ac7f636fcd7ea8e02394 | [
"MIT"
] | permissive | oseme-techguy/python-pdf-annotation-api-demo | 848f51b516196aecbc45482f601f00a1489a67a4 | b86dd4e20e9cc13237eacc9a32bb142d4bb28755 | refs/heads/master | 2022-12-09T08:35:57.241082 | 2019-06-20T17:55:17 | 2019-06-20T17:55:17 | 191,609,896 | 1 | 0 | MIT | 2022-12-08T05:48:51 | 2019-06-12T16:44:02 | Python | UTF-8 | Python | false | false | 153 | py | """PDF Annotation API"""
from app.config.application import Application
from app.config.di import Controllers
__all__ = ('Application', 'Controllers')
| [
"osemeodigie@yahoo.com"
] | osemeodigie@yahoo.com |
6b8b504e3891b59e364016530a31d145e5c4c723 | 543857479feb5d2001a6471f1258c1cb8eac9cf5 | /Non_stationary learning/main_change_learning.py | 5684a91c67ccd1f247c0f75711e585817173f4fd | [] | no_license | Jun-PyoHong/Cache_replacement_DRL | 11228f66f9a43b64c2c2de6e4c06d3709c7212a5 | 2f808a0acae42618fc104517c2f8c9c5f9288667 | refs/heads/main | 2023-06-30T23:56:08.827251 | 2021-08-09T05:15:10 | 2021-08-09T05:15:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,070 | py | import random as rd
import collections
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import wireless_cache_change_network as cache
import numpy as np
from conventional_method import *
import DNN_model
import time
use_cuda = torch.cuda.is_available()
device ... | [
"noreply@github.com"
] | noreply@github.com |
bb70c1c8ba3ba84bc0cd7614765d95521e71d50e | 7fe646e7d425bc3e1e0f2bac03c4df0f33dcf4ec | /duvidas/migrations/0002_auto_20180419_0522.py | b1280491a26a50c35bb585c334c78f46f5d22029 | [] | no_license | equeirozdenoronha/tickets | d77d13da08cf2f96ef6d6d2a28c8919719981b69 | 560b0f3dce2e2058b6875ba5f93ef175ab7afcb7 | refs/heads/master | 2022-12-11T19:05:18.367194 | 2018-04-22T19:25:19 | 2018-04-22T19:25:19 | 130,600,070 | 1 | 0 | null | 2022-12-07T23:51:09 | 2018-04-22T19:22:27 | Python | UTF-8 | Python | false | false | 587 | py | # Generated by Django 2.0.4 on 2018-04-19 05:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('duvidas', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='categoria',
... | [
"equeirozdenoronha@gmail.com"
] | equeirozdenoronha@gmail.com |
d1821f7228d33e30543f23db4a6405cb5422c161 | 1f9487f03c765f30ab3ae90feb2fb5beb55a4302 | /kaggle_main_day3.py | 6224aa8df713734f634f023d4085aed129b53ae1 | [] | no_license | chr15stevens/avito-demand-prediction-analysis | 6858b2c80c5aacbb86f52587b30d487db793f926 | 25f1513355fe09bb33c5aecffd9fe3a3ca252a2a | refs/heads/master | 2020-03-17T10:41:31.407644 | 2018-05-18T20:55:20 | 2018-05-18T20:55:20 | 133,521,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | import math
import pandas as pd
import numpy as np
from sklearn.model_selection import cross_val_predict
from sklearn import linear_model
train = pd.read_csv('train.csv').fillna(0)
test = pd.read_csv('test.csv').fillna(0)
print(train.head())
print(train.axes)
x_train = train[['price', 'item_seq_number', 'image_top_1... | [
"chrisstevens901@gmail.com"
] | chrisstevens901@gmail.com |
f9e1ca44905679e39f7b725bab3e049bd3cf44d3 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/number-of-senior-citizens.py | 50b65c0c4bd9f9324ebc57219dbfd33cea759e81 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 229 | py | # Time: O(n)
# Space: O(1)
# string
class Solution(object):
def countSeniors(self, details):
"""
:type details: List[str]
:rtype: int
"""
return sum(x[-4:-2] > "60" for x in details)
| [
"noreply@github.com"
] | noreply@github.com |
24276880351ec6c7a471aa39ededb24bdde21891 | c7fe29e98fc797200cfc1a6013463ac7cf00d5cb | /openprocurement/auction/esco/journal.py | 7d9cdaed5b5621fd3fbc0824f2e72bc8fa2ebe2a | [
"Apache-2.0"
] | permissive | ProzorroUKR/openprocurement.auction.esco | e740afdf4c7f5978a2121790c47f2b8dfd95a291 | 16a127ac7fc47cacaaf5f2eb708ea8b273e57e56 | refs/heads/master | 2021-06-09T16:00:27.450648 | 2021-04-08T13:15:45 | 2021-04-08T13:15:45 | 138,143,214 | 0 | 0 | Apache-2.0 | 2021-04-08T13:15:45 | 2018-06-21T08:38:20 | Python | UTF-8 | Python | false | false | 2,493 | py | import uuid
#log ID for auction_worker
# TODO: changes ids for esco indentity
AUCTION_WORKER_DB_GET_DOC = uuid.UUID('e992106cf844460ab85419a5aa53dd76')
AUCTION_WORKER_DB_GET_DOC_ERROR = uuid.UUID('5ba19e99963149f9bcdbb89f978f8c31')
AUCTION_WORKER_DB_SAVE_DOC = uuid.UUID('48b5f9fef4124cf39be6d2e4722a71c3')
AUCTION_WORK... | [
"yshalenyk@quinatagroup.org"
] | yshalenyk@quinatagroup.org |
66c48db3d472e9cbef6459a534d94dd8fe60f1ce | 94f156b362fbce8f89c8e15cd7687f8af267ef08 | /week3/main/models.py | 267cfd064ac83b9e6a1feed9dae6e559d5dabd77 | [] | no_license | DastanB/AdvancedDjango | 6eee5477cd5a00423972c9cc3d2b5f1e4a501841 | 2b5d4c22b278c6d0e08ab7e84161163fe42e9a3f | refs/heads/master | 2020-07-17T19:21:16.271964 | 2019-12-03T21:58:51 | 2019-12-03T21:58:51 | 206,081,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | from django.db import models
from users.models import MainUser
from main.constants import PROJECT_STATUSES, PROJECT_IN_PROCESS, PROJECT_FROZEN, PROJECT_DONE, BLOCK_STATUSES, TASKS_DONE, TASKS_FROZEN, TASKS_IN_PROCESS
import datetime
# Create your models here.
class Project(models.Model):
name = models.CharField(ma... | [
"dastan211298@gmail.com"
] | dastan211298@gmail.com |
c646d5714413964656c20a34b700806958456ef0 | 42fa0f6b67128be9cb0fb3beb77ac97a76d89af6 | /src/oscar/apps/customer/forms.py | 5bb0257189abd768a4a5a9c248f7e7e99df5bccb | [] | no_license | sandip3120/private | 198a937b8ce2967624debb2c5e9634dd85efec5f | 6a4abc46e25e220bdc0c2dcfc7aaea56d4ae2410 | refs/heads/master | 2022-12-22T08:17:19.472039 | 2019-10-20T17:07:17 | 2019-10-20T17:07:17 | 216,395,361 | 0 | 1 | null | 2022-12-10T06:12:19 | 2019-10-20T16:53:14 | Python | UTF-8 | Python | false | false | 15,799 | py | import string
from django import forms
from django.conf import settings
from django.contrib.auth import forms as auth_forms
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.password_validation import validate_password
from django.contrib.sites.shortcuts import get_current_site
from dja... | [
"sandipsing45@gmail.com"
] | sandipsing45@gmail.com |
579a8846030030a1b4f846da2163172703055c1e | 3592ef6ceb0e7654dc68fa9879b8c6fe31bcf6d1 | /reveries/tools/modeldiffer/lib.py | aa794920283f2358703cbb6ef0aad11ced9d157f | [
"MIT"
] | permissive | all-in-one-of/reveries-config | a83a8208680d857a155e0a05297bde111d8c6845 | b47a5a6ce05376dffcb893e0823fecbcf1d08e67 | refs/heads/master | 2021-01-04T07:44:45.383431 | 2020-02-13T09:00:51 | 2020-02-13T09:00:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py |
import logging
from avalon import io
main_logger = logging.getLogger("modeldiffer")
def profile_from_database(version_id):
"""
"""
representation = io.find_one({"type": "representation",
"name": "mayaBinary",
"parent": version_id})
... | [
"david962041@gmail.com"
] | david962041@gmail.com |
6f7249b4229753972631b1615fde741b81a4edd3 | 1a5819e1ca80c4cd76322e47c8983691bfcf5447 | /week2/c.fix start.py | 5a525d34ff3348bde541d4cac28505432be55c20 | [] | no_license | EzhilarasiBaladhandapani/python-exercise | 77b4fbd4d72c5b86012333f30f9a593eaa39116a | 924997fe6d994b0c518755ac1df54d2031f33c1b | refs/heads/main | 2023-04-07T00:48:43.452252 | 2021-03-30T06:10:18 | 2021-03-30T06:10:18 | 352,519,940 | 0 | 0 | null | 2021-03-30T05:31:50 | 2021-03-29T04:52:54 | Python | UTF-8 | Python | false | false | 124 | py | string = "babble yields babble"
char =string[0]
string = string.replace(char,'*')
string = char + string[1:]
print(string) | [
"ezhilbaladhandapani@gmail.com"
] | ezhilbaladhandapani@gmail.com |
2ab7ea3dc1714640bff9cac3035fb7aff6fdb289 | 44cedd06b04a46fdfb191500e27755d926b4261d | /Lecture 1 Functions/Functions MultiplyEvensbyOdds.py | 8ff65ecf7bab10c766abff39f05415a57df91ebb | [] | no_license | twoandahalf2/PythonBasics2 | 899bb56881da861bf6d57c43c4a031b56b6b5451 | b4160442a9275873b75e1c877beaff2ac58b5268 | refs/heads/master | 2020-07-06T04:07:30.552093 | 2019-08-17T13:39:25 | 2019-08-17T13:39:25 | 202,886,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py |
class Zadacha():
my_number = input()
def calculate(self):
sum_even = 0
sum_odd = 0
for i in self.my_number:
if i == '-':
continue
i = int(i)
if i % 2 == 0:
sum_even += i
if i % 2 != 0:
... | [
"vladimir.kolev@hotmail.com"
] | vladimir.kolev@hotmail.com |
87279f6dae5afa6e6c26657b9c58b42e66be2d5f | 2940f5416082dadd9c646cd9a46d2d0a99883efb | /venv/Lib/site-packages/networkx/algorithms/community/quality.py | 2ffe40786d0df3fd548db7595029d83819f2e47a | [
"MIT"
] | permissive | tpike3/SugarScape | 4813e4fefbfb0a701f5913d74f045fd0eaed1942 | 39efe4007fba2b12b75c72f7795827a1f74d640b | refs/heads/main | 2021-06-20T03:55:46.288721 | 2021-01-20T17:06:35 | 2021-01-20T17:06:35 | 168,583,530 | 11 | 3 | MIT | 2021-01-20T17:19:53 | 2019-01-31T19:29:40 | Jupyter Notebook | UTF-8 | Python | false | false | 10,608 | py | """Functions for measuring the quality of a partition (into
communities).
"""
from functools import wraps
from itertools import product
import networkx as nx
from networkx import NetworkXError
from networkx.utils import not_implemented_for
from networkx.algorithms.community.community_utils import is_partition
__all... | [
"tpike3@gmu.edu"
] | tpike3@gmu.edu |
f00e619a8fc8bb52b9375a2f389669e88e9419c9 | 832443441e034e96939df8322481eab571e0a2a9 | /shopper/migrations/0003_shipping.py | 02380c3c2866194c7d49cafbbd574aad08c73285 | [] | no_license | AmalprashobM/Django-project | 5dfc50ddf361eeb0458efce7543c2587bc111f8a | 14a8b1cb027c1da5595370b6aa5187970b4a169c | refs/heads/main | 2023-04-12T06:28:57.988040 | 2021-05-01T20:35:28 | 2021-05-01T20:35:28 | 363,467,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | # Generated by Django 3.1.5 on 2021-01-30 20:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shopper', '0002_cartitem'),
]
operations = [
migrations.CreateModel(
name='Shipping',
fields=[
('id'... | [
"alone456.aa@gmail.com"
] | alone456.aa@gmail.com |
039edd18fd3e878624c2de8607511b5b9ad8a545 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4170/codes/1594_1800.py | 4bfac1cb471a1d30c906e35552843d6922186bbd | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | a = int(input("Insira o valor da variavel a: "))
b = int(input("Insira o valor da variavel b: "))
c = int(input("Insira o valor da variavel c: "))
x = ((a**2) + (b**2) + (c**2)) / (a + b + c)
print(round(x,7)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
a0b913ca7ff9e0d575058da4170bbd0f75e9022f | bbc1182c4b865315975efb85e5ada8fa0fec535b | /organization/urls.py | c8a7023dba8f995e9f81c6ec787b5e4d6c0b5c8e | [] | no_license | G2-9/BCR-INTEX | e088dac317a5aaba2ec01514df83d32db2ecd83a | 7133fd2668a9a7c555790083b20cc1686f5fc4c4 | refs/heads/master | 2023-02-03T17:45:17.253418 | 2020-12-10T17:12:51 | 2020-12-10T17:12:51 | 319,370,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | from django.urls import path
from .views import indexPageView, searchOrganizationPageView, alterOrganizationPageView, updateOrganizationPageView, deleteOrganizationPageView, removeOrganizationPageView, displayOrganizationPageView, addOrganizationPageView, registerOrganizationPageView, postListingPageView, addListingPag... | [
"mitchellmel@outlook.com"
] | mitchellmel@outlook.com |
62437b90ea3393cf590c2bf16a858046597430af | 1f633e04dd62dee43197990d49751720dfef3667 | /mysite/settings.py | c2dd6a7a1b86fe32673b896151b9cced3491e1d1 | [] | no_license | addix001/my-first-blog | 24fb80234311d2c2ced752f9319d49640aa9f23e | baac019d4f387637e3662ea063ff79a70a1603a0 | refs/heads/master | 2021-01-23T02:48:31.278600 | 2017-03-24T04:06:46 | 2017-03-24T04:06:46 | 86,026,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"jhlee@addix.co.kr"
] | jhlee@addix.co.kr |
7cdb8a4440f750b1cfb71bcf6fa3ad0296a03953 | 55fed201f7fc986deb2006cc6f65af8630b36945 | /shopping-list-alt.py | 8a26089dd27564c348cfe266895316916abaaa3c | [] | no_license | krystinashveda/Learning-Python | a3ddbdab5be8c4d7ea10fa4f58ca899d68e8a48c | 04cac916c151bf4d8d87a03107000cad05d8807b | refs/heads/master | 2021-01-10T07:59:31.364246 | 2016-03-18T17:26:40 | 2016-03-18T17:26:40 | 54,211,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | # Run the script to start using it
# Put new things into the list, one at a time
# Enter the word DONe - in all caps - to quit the program
# And, once I quit, I want the app to show me everythign that's on my list
shopping_list = []
def print_list():
for item in shopping_list:
print("* {}".format(item))
def quit... | [
"krystinashveda@users.noreply.github.com"
] | krystinashveda@users.noreply.github.com |
79daee4cfbd4add82ae6126da5caf43695320f38 | 4c7729a025c6add065c67b2f975e8f3b2594809e | /HW1/homework1.py | b1f97d5d0946840ed818f0c1129c0402bfe54d9d | [] | no_license | tallestms/Computational_Investing | 1cfd783319a107a5b0f6a984c147094e850d9a14 | 2b1852091826f496d11674da5f49a2c9bfb5fcb5 | refs/heads/master | 2021-03-12T21:48:10.286254 | 2013-11-03T01:06:12 | 2013-11-03T01:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | import QSTK.qstkutil.qsdateutil as du
import QSTK.qstkutil.tsutil as tsu
import QSTK.qstkutil.DataAccess as da
import datetime as dt
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
dt_start = dt.datetime(2011, 1, 1)
dt_end = dt.datetime(2011, 12, 31)
ls_symbols = ['AAPL', 'GOOG', 'IBM', 'MSFT']... | [
"talles@gmail.com"
] | talles@gmail.com |
b0512643eccee3ba6cc8d8b017717a3832b9bf32 | e323d8e7afe989a2daad65b8f0a288e024e69e84 | /classifier.py | 2fc5f404b13109cc1783868345edacfbf27d9c02 | [] | no_license | graca-dcc/graca-2.0 | 700fbcc991af67b518ad0540dc3ee12348e8778f | 37c430e08e937bfc86f95436fbbc86352464f048 | refs/heads/master | 2021-01-21T17:53:35.187044 | 2017-06-22T11:17:13 | 2017-06-22T11:17:13 | 91,997,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,835 | py | # -*- coding: utf-8 -*-
import random
from nltk import FreqDist
from nltk import NaiveBayesClassifier as nb
from nltk import DecisionTreeClassifier as dt
from nltk.classify import apply_features
from nltk.metrics.distance import edit_distance
from reader import read
from preprocess import preprocess
from preprocess im... | [
"gracabot.dcc@gmail.com"
] | gracabot.dcc@gmail.com |
01f2c3c84e5a212093e01c4e4dbbf82b5026e90e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02621/s553012004.py | 34870c7adb3722196b85d445063e4fd1201d1d96 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | a = int(input())
res = a+a**2+a**3
print(res)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6d816df5012606bc69d35c03b4aac39b3a25c6dd | 0ec4defa6f83ec044b9e1235cc45964a8145b4d1 | /venv/lib/python3.6/site-packages/pybrain3/rl/experiments/continuous.py | 72df9483cfa96feab6da58c6c9be10525203864b | [] | no_license | nnarziev/MyWeek_Server | e6f6c10ce813cf3dc3aa644958c31a4d01567b4d | 7c51e79224ba48cd1a230536c27f3bd8cec73a21 | refs/heads/master | 2021-08-19T13:46:56.450003 | 2017-11-25T16:48:07 | 2017-11-25T16:48:07 | 112,080,782 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | __author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de'
from .experiment import Experiment
class ContinuousExperiment(Experiment):
""" The extension of Experiment to handle continuous tasks. """
def doInteractionsAndLearn(self, number = 1):
""" Execute a number of steps while learning con... | [
"qobiljon.toshnazarov@gmail.com"
] | qobiljon.toshnazarov@gmail.com |
69a4ea6faf0cd8c55536edefeb94e92e9b3620d4 | d1025cd05371af3cd659ebce1e3b7be4a718f574 | /examlpes/diff(*args,**kwargs).py | 549ac0182aa3beeeb4f46c2ad4896de3d558438a | [] | no_license | Enhydra-xun/Book-problems | ea5a3e44e918e94f37aa97f842437ac7853bab19 | 04bb64075e2299f2d0e826687797297683a087ce | refs/heads/master | 2021-01-23T00:15:46.355647 | 2017-07-12T11:03:55 | 2017-07-12T11:03:55 | 85,711,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | def foo(*args,**kwargs):
print 'args=',kwargs
print'-------------------------------------'
if __name__ == '__main__':
foo(1,2,3,4)
foo(a=1,b=2,c=3)
foo(1,2,3,4,a=1,b=2,c=3)
foo('a', 1, None, a=1, b='2', c=3)
| [
"1092821680@qq.com"
] | 1092821680@qq.com |
684cab33328c39d32af6aef7b6c8af73a6181c68 | 383d34b34e5f73690ea851f78ac31571ed8600f2 | /python/log.py | fddb0405e79b0736cc2ce55694b271ff7a5a4032 | [
"BSD-2-Clause"
] | permissive | wchgit/infrastructure | 6b1c68f3825eca105ccc25da8ddbb3166e7f2dfb | c6299db1877443654a6510c67d127eaf75070206 | refs/heads/master | 2021-01-15T11:11:50.116348 | 2014-09-11T16:09:12 | 2014-09-11T16:09:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | #!/usr/bin/env python
#coding:utf-8
import logging
import curses
class PrettyFormatter(logging.Formatter):
DEFAULT_FMT = '%(color)s[%(levelname)s %(asctime)s '\
'%(module)s:%(lineno)d]%(end_color)s %(message)s'
DEFAULT_DATEFMT = '%Y%m%d %H:%M:%S'
DEFAULT_COLORS = {logging.DEBUG:4, logging.INFO:2,
... | [
"wchgeek@gmail.com"
] | wchgeek@gmail.com |
704c55342dd6895f4e4aecf488437722bca88ada | cc1c7d59921a3d68b2980f8ad4ae24eb2322570e | /main.py | d4c7b1b08861f1233ec75a81a2db4ec9596f2bd7 | [] | no_license | davidwebster48/pythonproxy | 3345b5a7c422d1db6eb8c1264747bb23ee11ae15 | c6bf8d00b2ffb913a5da047bf8f9d4f9c2337468 | refs/heads/master | 2021-01-21T12:31:37.464204 | 2017-09-01T06:36:49 | 2017-09-01T06:36:49 | 102,080,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | #!/usr/bin/python
from http.server import BaseHTTPRequestHandler, HTTPServer
import http.client
import zlib
import sys
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
conn = http.client.HTTPSConnection(REMOTE_SERVER)
request_headers = dict()
for header in self.headers:
... | [
"david.webster@eatnow.com.au"
] | david.webster@eatnow.com.au |
b532f132682d481fbb804c4ecb261e5bc17deb2f | b6917327bb1b2bdc06904cd0e0b60f693d0aabf1 | /src/Testing/Python/pyBlocks.py | 8b6f970f06998c2bda194f5ef4196ba12cd8a59f | [] | no_license | embprg2000/SoftDefinedBlocks | 9789ffc54473ff08369f95ea51c7d26c1f51b16b | 3881b62a15f1ba7d3ab9116f6da6038132731172 | refs/heads/master | 2020-03-27T07:27:16.590182 | 2018-08-26T16:50:29 | 2018-08-26T16:50:29 | 146,192,058 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,465 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 17 16:15:51 2016
@author: evert
"""
"""
Test lab for FM decoding algorithms.
Use as follows:
>>> graw = pyfm.lazyRawSamples('rtlsdr.dat', 1000000)
>>> gtune = pyfm.freqShiftIQ(graw, 0.25)
>>> bfir = scipy.signal.firwin(20, 0.2, window='nuttall')
>>> g... | [
"noreply@github.com"
] | noreply@github.com |
3f9563afb634994641bf0cef0a0fbe0ead53ee7f | 3076fc0c3ceb285cc2db6f0d19f045c274adcceb | /[Samarinda]_Eramart/eramart_antasari_info.py | ed95b6a7f3b265937d96d1aa1fb67b332876aa0a | [] | no_license | evosys/CSVConverter | 121b0c23e18cf59b939352b751be5e8ce12b4999 | 6026870975001f34608fc1303ed922d0f8e474ef | refs/heads/master | 2020-03-17T12:40:14.406236 | 2019-02-15T08:41:51 | 2019-02-15T08:41:51 | 133,597,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
# @Author: ichadhr
# @Date: 2018-10-08 16:44:24
# @Last Modified by: richard.hari@live.com
# @Last Modified time: 2018-10-12 16:39:10
_appname = "CSV Converter [ERAMART ANTASARI]"
_version = "1.0.1.0"
_by = "richard.hari@live.com"
| [
"ichadhr@gmail.com"
] | ichadhr@gmail.com |
717a50a4fc240d9760bfeec41f435549c6296ef7 | 50fc02b2d56860ed47987ad79b71da5fcabc4865 | /tools/detector_v2.py | f038242d70f791f46f88eab788ecd632cbe5a77a | [] | no_license | jxi24/TrackML | b63e92a394511b9cb70f71e054b90aa2970d8d23 | 5cd63048fcbc630392ec2588e4fe2066025249d0 | refs/heads/master | 2021-06-25T18:07:04.149287 | 2020-11-04T01:06:22 | 2020-11-04T01:06:22 | 134,465,252 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,899 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
class Detector:
def __init__(self,detector_file):
self.detector = pd.read_csv(detector_file)
def _load_element_info(self,volume_id,layer_id,module_id):
volume = self.detector['volume_id'] == volume_id
layer = self.... | [
"jackadsa@gmail.com"
] | jackadsa@gmail.com |
607e3e345e09801c6c8e70fac26134402c8085e2 | ae4106aaf7b9b1f2ec80f592f2224f3b1d73661a | /seminar01-localization/sdc/cycloid_movement_model.py | d89a98c0f8cd2100d0f578416cb42bc0a97d8f25 | [
"MIT"
] | permissive | yandexdataschool/sdc_course | 992a6571245b2b4457c87e8e8950630dcc350dba | 26908bdfabae3e4d798785ac6f971641540a2956 | refs/heads/spring2022 | 2022-05-05T00:34:20.827953 | 2022-05-04T02:28:13 | 2022-05-04T02:28:13 | 127,633,189 | 128 | 63 | MIT | 2022-04-06T09:58:43 | 2018-04-01T13:46:35 | Jupyter Notebook | UTF-8 | Python | false | false | 1,639 | py | # -*- coding: utf-8 -*-
import numpy as np
from .timestamp import Timestamp
from .movement_model_base import MovementModelBase
class CycloidMovementModel(MovementModelBase):
"""Реализует движение автомобиля по циклоиде"""
def __init__(self, x_vel=0, y_vel=0, omega=0, *args, **kwargs):
"""
:par... | [
"siri3us@yandex-team.ru"
] | siri3us@yandex-team.ru |
4279dc7b559d42c29c6b47aaccc87d38aaed86ca | 456894fcfba11a23fcd0d252c73b1cfea703d27a | /anynet.py | 1d56cb9726dbe072c85b40e67f5328089c661d5b | [] | no_license | ikbumheo/Stereo-3D-Detection | 4230851b41bfbe68776052bd3ca617f6fbd8fd0b | f70c5f49aea02c09debcaa01967d622815d94dcf | refs/heads/master | 2023-05-03T22:31:11.512728 | 2021-05-26T18:35:02 | 2021-05-26T18:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,786 | py | import argparse
import os
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.optim as optim
import torch.utils.data
import torch.nn.functional as F
import time
import Models.AnyNet.utils.logger as logger
import torch.backends.cudnn as cudnn
import numpy as np
import Models.AnyNet.models.anynet as ... | [
"mamoanwar97@gmail.com"
] | mamoanwar97@gmail.com |
4ff9ebdceafbe22d330788d06fdea227a8394ee1 | 544c02ae44595f8ad8cd33ff71d93bddc01f8e49 | /src/GUI/ControlMainWindow.py | 4c3b7c05548a54e1a57c062697ddafb7618c9656 | [] | no_license | Thoross/PS2-Stats | ca4e9a8e00cbf1acf8df01e19312227ae0b89d94 | c89007f34c5b51da7585fcd50d0b500ec2575620 | refs/heads/master | 2021-01-21T07:39:42.689357 | 2013-10-25T16:48:08 | 2013-10-25T16:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,725 | py | '''
PS2-Stats : Python module for PlanetSide 2 Stat tracking.
Copyright (C) 2013 Brendan Betts (brendan.betts@live.com)
License: GNU LGPL
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; eith... | [
"brendan.betts@live.com"
] | brendan.betts@live.com |
f49c0d8dfdd6361a5f7158798a5989104e06803c | bfcf59a22724d4b8bafe5674ff7a9ccde8882d62 | /added_8_height_ctr.py | 13b38a24a14a09552dd9c1806162a1601c419915 | [] | no_license | rwqzcq/basemap_storm_plot | cebb74e1edb0c4acb4abe7cb0db59c92c062c571 | bc40ef888d7ef4a3903e810b417a802f9183a5b3 | refs/heads/main | 2023-08-21T07:51:06.712484 | 2021-10-10T10:15:15 | 2021-10-10T10:15:15 | 415,549,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | from matplotlib import pyplot as plt
import matplotlib.cm as cm
import pandas as pd
import numpy as np
import seaborn as sns
from tqdm import tqdm
from utils import *
from math import ceil
import os
df = read_file()
def get_qujian(num, _max=1):
"""
获取区间
"""
qujian = range(0, 10, _max)
i = 0
fo... | [
"rwqCCNUimd@163.com"
] | rwqCCNUimd@163.com |
751c4f954046428b61efaafd22a8356d4489ddcf | 7e9c0243c48bbf0ddca9779ef03fc13bb9ac0496 | /t20.py | 12d2b72ba0d2fda0af04cbc0ed30cab0ad37b4ce | [] | no_license | suchismitarout/tt | c47f1f59659d2678392e2f0c3aaee8cfaa147ff4 | 54a5b625a82dab854b679050d67e340e74d71edd | refs/heads/master | 2020-09-16T20:25:34.146741 | 2019-11-25T06:52:07 | 2019-11-25T06:52:07 | 223,880,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py |
with open("foo.txt", "r") as fr:
print(fr.name)
print(fr.closed)
print(fr.mode)
| [
"suchismitarout47@gmail.com"
] | suchismitarout47@gmail.com |
a3d924be75abc189e38a765eea034cee51e33435 | 4a1a319ef5040a5b417f0ba63a8751b424b82bc3 | /programming_101/find_number_2.py | 2c66efd4c6542233e8025b4482080c8839738add | [] | no_license | saratrickett/python-kata | b574795bd17f5a563b1fb44cc0614cbf91fc478e | 3397ee42f94d8e5b88446a179ad8b93d95c5dc4c | refs/heads/master | 2021-05-05T23:55:16.978691 | 2018-02-27T01:23:53 | 2018-02-27T01:23:53 | 116,843,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | # DATA TYPES
#typing.io - typing practice for programmers
# str - string
_str = 'test'
_str2 = "tst"
_str3 = '{_str2} test'.format(_str2=_str2)
_str4 = f'{_str} test'
# bool - boolean
_bool = True
_bool_false = False
# int - integer
_int = 1
_int_negative = -1
# float
_float = 1.0
_float_negative = -1.0
# list
# di... | [
"strickett4@gmail.com"
] | strickett4@gmail.com |
6376c84e434aa382680dcd27d2d6633c72ff2c51 | 8c681ef14f5447c83c96c28f4b458e823afd91a9 | /notes/models.py | 38998f03e18a654311e184bf375c99a9c5a50375 | [] | no_license | saurabht16/Note_App | 03d811016bdc3813a8327fa5356044c6cb7dd008 | e69ff4e7a8dfea2b49971705ce098e8c7da4d3f4 | refs/heads/master | 2020-03-30T06:34:14.417415 | 2019-01-15T15:19:18 | 2019-01-15T15:19:18 | 150,871,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from django.db import models
# Create your models here.
from django.db import models
from django.contrib.auth.models import User
class Notes(models.Model):
title = models.CharField(max_length=200)
description = models.TextField()
labels = models.CharField(max_length=400)
created_by = models.ForeignKe... | [
"tewary.saurabh@gmail.com"
] | tewary.saurabh@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.