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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17b6a65a7607a39196d020542632dba434e3715e | 62bdef98cefd5c69888420384197a769fa77fc0f | /controle/migrations/0007_auto_20180828_1548.py | d4d22d204895181cc91485e56b42b20b4178e74c | [] | no_license | elizioalmeida/scramble | 5de5bb70f1b046b51dffac6f52d035558160b1f0 | 3f9b7ca46cf825e34bee72a2ea4ec9a902b7da85 | refs/heads/master | 2023-08-16T02:34:15.008973 | 2021-06-06T13:20:12 | 2021-06-06T13:20:12 | 87,947,781 | 1 | 0 | null | 2023-07-20T11:05:48 | 2017-04-11T15:03:29 | Python | UTF-8 | Python | false | false | 646 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-08-28 18:48
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('controle', '0006_auto_20180828_1538'),
]
operations =... | [
"elizio.almeida@gmail.com"
] | elizio.almeida@gmail.com |
1b7e95a80742d779a78c182b9719efb27038bbd2 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_5/nckemm001/question3.py | 35771920de3812c7a62c075b072149f678d290d2 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | # calculate number of k-permutations of n items
from mymath import *
def main ():
n = get_integer ("n")
k = get_integer ("k")
nfactorial = calc_factorial (n)
nkfactorial = calc_factorial (n-k)
print ("Number of permutations:", nfactorial // nkfactorial)
if __name__ == "__main__":
main()
| [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
fd931a296778416e9e99cf8ff0e32c2d4fa7342a | 00fe1823bbadc9300e4fec42ca1d12dfbd4bcde9 | /Python_Basic/13.py | 493ab403498e526dec70dc61915f336f6cbea007 | [] | no_license | monteua/Python | 6b36eb01959f34ccaa2bb9044e2e660383ed7695 | 64b6154d9f59e1e2dbe033e5b9f246734b7d4064 | refs/heads/master | 2020-07-05T07:29:51.250343 | 2018-02-09T11:09:51 | 2018-02-09T11:09:51 | 74,122,698 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | '''
Write a Python program to print the following here document. Go to the editor
Sample string :
a string that you "don't" have to escape
This
is a ....... multi-line
heredoc string --------> example
'''
print('''
a string that you "don't" have to escape
This
is a ....... multi-line
heredoc string --------> example
'... | [
"arximed.monte@gmail.com"
] | arximed.monte@gmail.com |
a20f2d80747346e85243e5050115a9ac3c481e81 | 6d4c5e79bb36785d5bb127e263aac50cb6729a88 | /venv/Lib/site-packages/django/middleware/csrf.py | 13dec3ec2380f872a43ea205dd7fa0b89028953d | [] | no_license | Galymbekov/BackWebDevProject | a7683fc205d467629f4ad132370ff4b5ac535277 | 3343fd277bc8994bec3d484072a8ed5f1d99b6bb | refs/heads/main | 2023-04-14T14:06:13.888793 | 2021-04-30T12:12:37 | 2021-04-30T12:12:37 | 362,004,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,796 | py | """
Cross Site Request Forgery Middleware.
This module provides a middleware that implements protection
against request forgeries from other sites.
"""
import logging
import re
import string
from urllib.parse import urlparse
from django.conf import settings
from django.core.exceptions import DisallowedHost, Improperl... | [
"47265977+Galymbekov@users.noreply.github.com"
] | 47265977+Galymbekov@users.noreply.github.com |
c3f9e20e89007d5ed8532461935cc3273b7571df | 365434508376d0d2112cecff1f5b4fdc1853b03c | /Orders/urls.py | e7444c62e281090b9bd66c5831eaa51476c648ab | [] | no_license | zdvitas/karaoke | 1cab11b23bf96c1bc767a254b9b9a5874f0a2bbc | 0de92fd6f87e4d387c1e060ea1749f6828f8b57f | refs/heads/master | 2021-01-02T09:07:21.085282 | 2014-12-12T18:05:21 | 2014-12-12T18:05:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | from django.conf.urls import patterns, url
from Orders import views
urlpatterns = patterns('',
# url(r'^$', views.Home.as_view(), name='home'),
url(r'^$', views.first, name='home'),
url(r'^uploads/', views.upload, name='upload'),
url(r'^auth/', views.auth, name='upload'),
url(r'^add_songs/', views... | [
"zdvitas@gmail.com"
] | zdvitas@gmail.com |
7699abb1029009d49aaa399890299c71ef4b965c | 2ec3139f2a825be4b6435da4f18dac1d231c6ffe | /SQL/filmy/filmy_kl1ag1/filmy.py | acc8d8f5853bc5b5f987d4d971b8546862271113 | [] | no_license | snasuddertale/Kody | 064be49fd6caa3e9e681914db055419bbdd8d367 | 35cccd97a1026416557be2afcca8633cb3355f31 | refs/heads/master | 2022-02-27T08:53:07.266656 | 2019-09-06T12:16:02 | 2019-09-06T12:16:02 | 105,507,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sqlite3
import csv
def dane_z_pliku(nazwa_pliku):
dane = [] # pusta lista na dane
with open(nazwa_pliku, 'r', newline='', encoding='utf-8') as plik:
tresc = csv.reader(plik, delimiter='\t')
for rekord in tresc:
rekord = [x.stri... | [
"jakub.gagat@onet.pl"
] | jakub.gagat@onet.pl |
d5b814e883e9da337f7761fb63975124996bd0de | de6a4754d523342652cbfa3ffb8792e9e807063e | /reportlab-2.5/tests/test_table_layout.py | b1f928c58c6f5bad30992308d277b3e8f17be8e0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sengupta/scilab_cloud | 2d065722c960607784b6d6cb1f279327eef86ebc | 53db22b430ef14df2891b9c8c04a8a1a31cc1f6e | refs/heads/master | 2020-04-06T06:40:10.184260 | 2012-03-18T13:38:11 | 2012-03-18T13:38:11 | 3,886,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,852 | py | from reportlab.lib.testutils import setOutDir,makeSuiteForClasses, outputfile, printLocation
setOutDir(__name__)
import operator, string
from reportlab.platypus import *
#from reportlab import rl_config
from reportlab.lib.styles import PropertySet, getSampleStyleSheet, ParagraphStyle
from reportlab.lib import col... | [
"root@hp.(none)"
] | root@hp.(none) |
06e3368d9ca2196a34aa8e3c8da10cbb1117e0fb | e43458ddf600e41a0f45a492c050db9dec0fbf6a | /preprocessor/vctk.py | ea2ad4275902f134281872f101acd4f7dfb99143 | [
"MIT"
] | permissive | Onedas/AGAIN-VC | 292b600e7e47244b6e89d0c9c1a7ad5c4ab0c8b3 | dbf94bf55882f897c312c7760cd892c51c93c9ab | refs/heads/main | 2023-01-24T15:28:20.855511 | 2020-12-07T07:14:55 | 2020-12-07T07:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | import os
from glob import glob
from .base import BasePreproceccor
class Preprocessor(BasePreproceccor):
def __init__(self, config):
super().__init__(config)
def gen_file_dict(self, input_path):
speaker_dir_list = glob(os.path.join(input_path, '*'))
file_list = []
basename_... | [
"kimythanly@gmail.com"
] | kimythanly@gmail.com |
57fe96534ee7aadeb54df48f5d40f0bb373cd926 | b88b8a100c8680dd7547cd6d917a602b02026c3f | /url_extract.py | 30443a58c7eff20e096aeeb84b40d3f7db5df85c | [] | no_license | Greenderella/freshdesk | 9073eea0372c1d82388f0a463d38e709b6ce5894 | c715ddbcca1850f98206ab4efa4d6074874f2625 | refs/heads/master | 2023-02-06T02:11:37.368744 | 2020-12-22T20:55:00 | 2020-12-22T20:55:00 | 312,864,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | from pyquery import PyQuery as pq
import re
def extract_bw_url(body):
d=pq(body.replace(r'\"','"'))
links_with_none = list(map(lambda a: a.attr("href"), d("a").items()))
links = filter(None, links_with_none)
return list(filter(lambda link: bool(re.match(r'^https?://bitwarden\.com/help', link)), link... | [
"lilith.luthien@gmail.com"
] | lilith.luthien@gmail.com |
c2d557f9617ade508b0f786bc98966f87dce0824 | 580ceda00c8fa7a223fae29bd110c9f707db9ffc | /agentspeak/runtime.py | 628c1953bfd41b0269d3610ae1b43f8b1ebd3a90 | [] | no_license | fahidRM/transparency-study-with-spade | 6cf3ed32ed79563858c445fde056db198ec18c52 | 5f432f81bc7fab956d17f6ff5ef1305f7c60fb63 | refs/heads/main | 2023-04-12T12:08:07.779915 | 2021-05-22T11:41:52 | 2021-05-22T11:41:52 | 369,748,728 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,471 | py | # -*- coding: utf-8 -*-
#
# This file is part of the python-agentspeak interpreter.
# Copyright (C) 2016-2019 Niklas Fiekas <niklas.fiekas@tu-clausthal.de>.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software... | [
"fahid.rabiu@gmail.com"
] | fahid.rabiu@gmail.com |
0237d7c8b1e641a1f73538573dbc2192418f78df | 73c3a8c7fbc308f0fbface220c40f6a96ad75de4 | /PythonCode/Monthly_Coding_Challenge/Aug2020/Tools/ListNodeFunctions.py | 1b1cbef68bdc67ce21cf96a2ba4e4bf99c511c1a | [] | no_license | Vixus/LeetCode | 7fc693606f8f7066d321fc6c2b13c8884770a4d0 | 6eea06920923a59d081b6d73baae992bb6363fe6 | refs/heads/master | 2022-12-19T09:58:05.815728 | 2020-09-26T06:27:11 | 2020-09-26T06:27:11 | 263,466,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | import numpy as np
# Definition for a binary tree node.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
def ArrToListNode(nodeValArr):
if len(nodeValArr) == 0:
return ListNode(None)
head = ListNode(nodeValArr[0])
currNode = head
fo... | [
"vixus7@gmail.com"
] | vixus7@gmail.com |
db6e2a4b9d967866b0962488985a87c98a183813 | ebfd94e28b2c9b830dcaa0e4f03d923b51653330 | /session3/s3.py | a97427560060de1e20e8c236e781f1971b2bf262 | [] | no_license | hungquocng/quochung-C4T12 | 9d4f36a732f8bba829fad51530f5016ff820a9dc | 2687aefa126bb45d86cd7fd747577e045a38dca2 | refs/heads/master | 2020-04-17T11:42:00.242891 | 2019-01-19T14:51:27 | 2019-01-19T14:51:27 | 166,551,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | print ("Hello Bach. Im Hung")
| [
"nguyenquochung8e@gmail.com"
] | nguyenquochung8e@gmail.com |
8f8c239a22a988dfc4fa8f159bfc4ab441286ed6 | 67f45255ef2c660e172f2f284fcf67169f5a45f7 | /report.py | 86226be88e4fd1b16d2e0d460f72eb32d12622f8 | [] | no_license | yunwendeng/airtest_runner | 9d086f7e2986742394c1bbf54b9cefde5f547510 | 445c71ab1f8c48e84ebb37792c5196b958e5ff65 | refs/heads/master | 2020-07-12T14:05:05.390243 | 2019-08-26T07:03:13 | 2019-08-26T07:03:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,414 | py | # -*- coding: utf-8 -*-
# Leo Zeng
import os
import types
import shutil
import json
import airtest.report.report as R
from airtest.utils.compat import decode_path
TXT_FILE = "log.txt"
HTML_FILE = "log.html"
HTML_TPL = "log_template.html"
STATIC_DIR = os.path.dirname(R.__file__)
def get_script_info(script_path):
... | [
"noreply@github.com"
] | noreply@github.com |
b12e573e23095bc97c71eec36b0757ccd05b0105 | 3b685d65f6e030112a74f66b791c6e146e2f4175 | /versions/05_Converter_Trial/05_converter_trial_3v1.py | fb965c22d61a4dbb73f4265bba8c6bb4ac5e9703 | [] | no_license | nathansmith17/temperature_converter | 0ccfd5fde9cc081c70e3ce2f0d182b9640558167 | 33b15c421f367f96b36ebcb2634c99caa9dd6c7e | refs/heads/main | 2023-06-16T20:29:28.902704 | 2021-07-05T23:28:18 | 2021-07-05T23:28:18 | 377,680,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,265 | py | from tkinter import *
from functools import partial # To prevent unwanted windows
import random
class Converter:
def __init__(self):
# Formatting variables
background_color = "light blue"
# Converter Frame
self.converter_frame = Frame(width=300, bg=background_color, pady=10)
... | [
"64827034+nathansmith17@users.noreply.github.com"
] | 64827034+nathansmith17@users.noreply.github.com |
69a0e4217e86039719fe3490a257ef051f3ebad4 | b7827696e69040eaad15d8b16d62dce2c457c82b | /bindings/pydrake/systems/test/lifetime_test.py | a4c4deb0a81b090316d23b3ddbadc166c2c373c2 | [
"BSD-3-Clause"
] | permissive | osrf/drake-release | def0c54e353dfb27f7ee4623e5fb01f9ab1cbf03 | 7439308734194bb8c99dd7aeac66b068c40abd38 | refs/heads/master | 2021-01-01T16:36:44.948209 | 2018-02-15T01:36:05 | 2018-02-15T01:36:05 | 97,869,230 | 1 | 1 | null | 2017-08-10T18:46:23 | 2017-07-20T19:02:09 | C++ | UTF-8 | Python | false | false | 2,986 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
"""
@file
Captures limitations for the present state of the Python bindings for the
lifetime of objects, eventually lock down capabilities as they are introduced.
"""
from __future__ import print_function
import unittest
import numpy as np
from pydrake.systems.analysis i... | [
"jrivero@osrfoundation.org"
] | jrivero@osrfoundation.org |
bd6eacce2ae8a3c3fe7e371555a6a0d5499575b4 | e114018b9c391337b8ecbce62a4bfba06301ecbc | /node_modules/bcrypt/build/config.gypi | 5e95eabda8db5c0c20c3f11a11ac1868ea75bb67 | [
"MIT"
] | permissive | mikeybolger/site-investigation | 7c329073bf493c3df9c45cac31da8a2c29c0d2ce | 3f323120ec0ed8c422bc32c673a3be5efefcbc1d | refs/heads/master | 2021-01-23T03:42:41.751915 | 2015-07-20T17:12:21 | 2015-07-20T17:12:21 | 33,675,794 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,222 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"node_install_npm": "false",
"node_pref... | [
"Mike@michael-bolgers-macbook.local"
] | Mike@michael-bolgers-macbook.local |
98a02e905f380132856d4673bda02797cc90ccce | b1345e8c05f970d32f6bbc062d34444fd33f4de4 | /findprime using lists.py | 27d97d73c602833cc338746b8c0c8ffb1db4f0d5 | [] | no_license | Manjutadi/findprimes-using-list.py | 0103d030a1fb500ada0dbcb19e3d267426a661cb | ab19c3de903de9ff04a2acab0215bd8c9105b4fb | refs/heads/main | 2023-05-09T16:00:21.751807 | 2021-06-02T07:14:29 | 2021-06-02T07:14:29 | 373,074,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | import math as m
def findprime(n,data):
def isprime(i):
s=int(m.sqrt(i))
for j in range(2,s+1):
if i%j==0:
return 0
return 1
c=[]
for i in data:
if isprime(i):
c.append(i)
return c
n=int(input())
data=list(m... | [
"noreply@github.com"
] | noreply@github.com |
d2bfa99bce41ba4283021a8dd951a75ae9c52493 | 018361befe71f0483385a06b24a0631e157f8e1c | /1/UmnovVersion/3 - collatz.py | e437daea10fa58b8d331593d6608e8625a60408e | [] | no_license | onaga1958/python_for_shad | d8b89a640340a36351e7dddbc6a551332e7b4575 | ad4566e4b5e120798fd1ed3b890883abc232c934 | refs/heads/master | 2020-05-21T07:21:09.949125 | 2017-06-05T18:41:40 | 2017-06-05T18:41:40 | 84,594,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | # https://en.wikipedia.org/wiki/Collatz_conjecture
current_number = int(raw_input("Enter starting number> "))
while current_number != 1:
if current_number % 2 == 0:
current_number /= 2
else:
current_number = 3 * current_number + 1
print current_number,
print
print "Success!"... | [
"alex--zabelin@mail.ru"
] | alex--zabelin@mail.ru |
5d4fc34906c51f4e46d6f954883a61ffd4b9346c | ca01b017cf7de3ed39279e930436a531d3a9af73 | /mmactf2015/rps.py | 02ad75acc2dd302401d66b3f0ca3a8b7c53d2432 | [] | no_license | yum00/pwn_collection | a6e6c7d4f7246bbfbcba56453ec65f65543658be | d851d246c3742e74ee367eb9d4d5ae8d3576adda | refs/heads/master | 2020-04-06T06:21:39.273014 | 2015-10-11T19:05:18 | 2015-10-11T19:05:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | # coding: UTF-8
from pwn import *
'''
0x0000000000400825 <+31>: lea rax,[rbp-0x20] # rbp-0x20 = seed
0x0000000000400829 <+35>: mov rcx,rdx
0x000000000040082c <+38>: mov edx,0x1
0x0000000000400831 <+43>: mov esi,0x4
0x0000000000400836 <+48>: mov rdi,rax
0x0000000000400839 <+51>: ca... | [
"i.am.tkmru@gmail.com"
] | i.am.tkmru@gmail.com |
84688fef0919a220da5eb6fe7908a9dbaefb2985 | 9086123980da6f646914bdaee99925c02b64fc51 | /Scripts/thresholder.py | 044be68ffbe8574810c341bf604948fdc2e2f5ba | [
"MIT"
] | permissive | vanabo/mattress | f58fbe3d5ac219a46c61d5005a6c551613ae493a | eb1241d6cc86ecbdbe0791a76382ee09c057cef4 | refs/heads/master | 2021-01-17T21:12:03.941484 | 2017-03-08T09:33:06 | 2017-03-08T09:33:06 | 84,165,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | #!c:\projects\shop\scripts\python.exe
#
# The Python Imaging Library
# $Id$
#
# this demo script illustrates how a 1-bit BitmapImage can be used
# as a dynamically updated overlay
#
try:
from tkinter import *
except ImportError:
from Tkinter import *
from PIL import Image, ImageTk
import sys
#
# an image vie... | [
"nadezhda.valyaeva@gmail.com"
] | nadezhda.valyaeva@gmail.com |
5f011abf6fb4e1d5dbf2f75d1902081586e1483c | eaa4c0d44ed216b640578f75f080d9b58b87cd2c | /scripts/wof-build-schema | bf4b6aabb371e32852e50782020e79f1d853be73 | [] | no_license | whosonfirst/py-whosonfirst-json-schema | 1da2352218d37e1b59430e9fad7e3c2023f5a320 | 7ad7815fd524845480852ceb26b8cc01b89b9495 | refs/heads/master | 2020-03-10T05:38:15.360853 | 2018-06-05T14:44:14 | 2018-06-05T14:44:14 | 129,222,089 | 0 | 0 | null | 2018-06-05T14:44:15 | 2018-04-12T08:53:41 | Python | UTF-8 | Python | false | false | 1,130 | #!/usr/bin/env python
# -*-python-*-
import logging
import sys
import os.path
import whosonfirst.schema.build
if __name__ == '__main__':
import optparse
opt_parser = optparse.OptionParser("""wof-build-schema --options /path/to/whosonfirst-properties""")
opt_parser.add_option('-o', '--output', dest='outpu... | [
"gary@vicchi.org"
] | gary@vicchi.org | |
e3892e64c21d320072793797cde927c82dcaae77 | 434e2644076990b4a21eb282eaa47de795c48d2f | /gringrape/인프런 강의요약/code/test.py | edc425194b916b4e0a28fb84cb66a30a28bf50eb | [] | no_license | JeeNi/Algorithms_Study | 32f8d438bbb3f344f9f0e755a7f3b46fa153da26 | 422da9a1386e3cfeb4609b8e89c48d169b8619ae | refs/heads/master | 2020-06-30T15:12:08.057579 | 2019-10-23T13:34:34 | 2019-10-23T13:34:34 | 200,867,753 | 2 | 1 | null | 2019-09-04T12:00:30 | 2019-08-06T14:27:45 | Python | UTF-8 | Python | false | false | 129 | py | import random
# random function test
for i in range(10):
number = random.randrange(1, 10, 1)
print(number, end=" ")
| [
"gringrape200@gmail.com"
] | gringrape200@gmail.com |
e092468c64dc0cfb00d3afec48c9d75f19cc4bb3 | 102f7b6f9c0c812f0842ddc6f635a7e3695ab698 | /spade-cityscapes/models/pix2pix_model.py | 6e02a202ea0f444e63acea4e29c3165461771e06 | [
"MIT"
] | permissive | gongshichina/SynthCP | acbd7bb023526ad7efb99f7c7514da8afd692b8c | d0580fbfbe5ecbc68596a42d97b03924d490606a | refs/heads/master | 2023-01-07T01:47:54.020378 | 2020-11-06T22:56:56 | 2020-11-06T22:56:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,303 | py | """
Copyright (C) 2019 NVIDIA Corporation. All rights reserved.
Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode).
"""
import torch
import models.networks as networks
import util.util as util
class Pix2PixModel(torch.nn.Module):
@staticmethod
def modify... | [
"philyingdaxia@gmail.com"
] | philyingdaxia@gmail.com |
2511226058f4ca7a04af4855132b4b925947bec0 | aea20097b664f00c10391255b0d9cb019220ccea | /course/migrations/0055_facility_facilityiprange.py | 31345f86601a48782c1e19d12d981cee863a4e41 | [
"MIT"
] | permissive | duwhop/relate | d19f2bd3fbf4947863efe234a3fce55d73da1462 | 568bf6868fbc980e78e74fa29f84d10be2f8c94d | refs/heads/master | 2020-06-09T16:58:38.474618 | 2015-11-30T01:48:49 | 2015-11-30T01:48:49 | 42,794,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('course', '0054_add_auditor_role'),
]
operations = [
migrations.CreateModel(
name='Facility',
fields=... | [
"inform@tiker.net"
] | inform@tiker.net |
b8b9f467e5444d0b6f051921d5a66c2fe8b88a64 | 3fa9d2170b9b845174894124878ad747b687e26b | /ssoonnwwoo/백준/2739.py | 1a9b6dc06edb651731d3b501206b76be518033b1 | [] | no_license | gh-develop/coding-test-kw | de12f96b19980079a1bce11513a3a9fcd05d6a5e | c897792f15ebe5e6fd4be1b7af036d9db42f31c2 | refs/heads/master | 2023-07-18T08:19:34.311622 | 2021-09-01T12:06:28 | 2021-09-01T12:06:28 | 384,378,994 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | a = int(input())
for i in range(1,10):
print("%d * %d = %d"%(a, i, a*i)) | [
"f8d783@naver.com"
] | f8d783@naver.com |
4a6174a93181fa1bdccd279a5554b9834c15af2a | f74489de1eed2700821b84ba7363b0555b430e6c | /solution/11052(DP-카드 구매하기).py | 5c058d9403279250d571e394556a4784d9db0158 | [
"Apache-2.0"
] | permissive | OMEGA-Y/CodingTest-sol | 1bd609b906a8c8475e78e810702f117afa28b026 | 9eaa441e482a0967fb60a9ea1d1373be00272c34 | refs/heads/main | 2023-07-23T09:44:43.384517 | 2021-08-30T14:06:51 | 2021-08-30T14:06:51 | 324,791,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | import sys
input = sys.stdin.readline
N=int(input())
dp = [0]+list(map(int,input().split()))
for i in range(2,N+1):
for j in range(1,i):
dp[i] = max(dp[i],dp[j]*int((i/j))+dp[i%j])
print(dp[N])
# dp는 역시 점화식을 잘 세워야지 | [
"science_co@naver.com"
] | science_co@naver.com |
d115fb7d6eb4856989eb57e7518ad68b35a27ead | abf385d7af4b3c135be1a0775f562992dbb78706 | /make_dic.py | c57cf91c785dbde38cbde4e75e6cefba06ada66b | [] | no_license | myditto/NounX | 661493b86d5e7211e7c916d2926520b57fdd5e95 | b597e878d63b9b470dfc1511cc0acb4222f1d532 | refs/heads/master | 2020-12-25T17:37:49.589263 | 2013-02-24T11:23:10 | 2013-02-24T11:23:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | #-*- coding: utf-8 -*-
import sys
import nounx
# Postfix file path
POSTFIX_PATH = './postfix.txt'
# Entropy Threshold
ENTROPY_THRESHOLD = 0.7
if __name__ == '__main__':
if len(sys.argv) < 2:
print 'USAGE1: python %s TEXT_PATH' % (sys.argv[0])
print 'USAGE2: python %s TEXT_PATH DIC_PATH' % (sys... | [
"lseuny@gmail.com"
] | lseuny@gmail.com |
bf9627b7a55d60f9758a1e164bc243e0f957e8ca | a14c21d53d863d898021e7293d828d254559790c | /RegressionTesting/Regression.py | 411ec5c3b47bf11037c5cda9f4bfdd8b863fc961 | [] | no_license | rebassoo/plotting | 1270df79f4fcbf47f500303315ef2eb199aff490 | 4e8c788438bd826b31a0299d62b4ae2ba9083a18 | refs/heads/master | 2021-08-17T16:19:48.889738 | 2021-04-20T17:37:24 | 2021-04-20T17:37:24 | 98,690,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | #!/usr/bin/env python
#Finn Rebassoo, LLNL 10-12-2017
from ROOT import *
import datetime
import sys
#To make the validation plots do: python Regression.py plot
#To compare validation plots for different samples do: python Regression.py compare WWinclusive-10k-2017-10-13-10-07.root WWinclusive-10k-2017-10-13-10-09.root
... | [
"finn.rebassoo@cern.ch"
] | finn.rebassoo@cern.ch |
199ad107a48a90f9d96cb8a156f5cfb2406101e6 | 098a1a2408bd204094bc207eb14906f18cea5e6b | /mtgjson/update_mtg_json.py | 6b28975313c7849d75e6c3433bb082c55639386e | [] | no_license | phuchduong/mtg_toolkit | 68cd24a68175623d59ec0705df3b205b14f93b2f | 88834b3b5cd9f32264b8402641e76d60671409fa | refs/heads/master | 2022-04-05T16:58:56.040429 | 2020-02-20T05:01:57 | 2020-02-20T05:01:57 | 59,964,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | # @title: update_mtg_json.py
# @author: Phuc Duong <phuchduong>
# @start_date: July 9th, 2017
# @email: phuchduong@hotmail.com
# description: manages the mtg json file.
import json
from urllib.request import urlopen as uReq
import zipfile
from io import BytesIO
db_file_name = "mtg_card_db.json"
# downloads the MTG ... | [
"phuchduong@hotmail.com"
] | phuchduong@hotmail.com |
ee3acb288c29099d6336e9d5fd0b7a54f71573fe | 11398875e4f5cbcadc1747e73049dc99bca26908 | /02-function/function-05.py | 488628a5fad4821e64df6df89bde8b0fd5d26ec3 | [] | no_license | asvkarthick/LearnPython | 37910faab5c4a18d6e08eb304ca1da9649e5b18f | 258e8c567ca3c8802d5e56f20b34317eba4c75f3 | refs/heads/master | 2021-06-23T06:30:46.681369 | 2021-06-11T19:35:40 | 2021-06-11T19:35:40 | 149,719,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | #!/usr/bin/python
# Author: Karthick Kumaran <asvkarthick@gmail.com>
# Function with variable number of arguments
def print_args(*args):
if len(args):
for i in args:
print(i);
else:
print('No arguments passed')
print_args(1, 2, 3)
| [
"asvkarthick@gmail.com"
] | asvkarthick@gmail.com |
03d3f7aa8aee9d6b017603ffbc2e7e15e1ddf52e | cbd28c0baa932c7479dc7a2341f7b88394f5535a | /Software/si_demeter/si_demeter/context_processors.py | 1bc1f9ede47629db722e2fdf3e5a2d4c31dcd205 | [] | no_license | MarceloPesse/Demeter-SoilMoistureMeter | 47a31a004b3a6bb25328503f1aff65e99972fd48 | 81fedf3f3f11e251ca4df3ca5e753b4700474587 | refs/heads/master | 2020-12-30T10:12:51.728491 | 2015-05-06T20:55:42 | 2015-05-06T20:55:42 | 32,656,411 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.db import models
from django.forms import ModelForm
from django.contrib.auth.models import User
from django import forms
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators ... | [
"jhonstondalcin@gmail.com@424c7fad-fcbb-70f7-c495-d134deaba704"
] | jhonstondalcin@gmail.com@424c7fad-fcbb-70f7-c495-d134deaba704 |
b8774420c42045bbfeec559e30e88e7e0aa882dd | 83ce5810bd0455fccb7d6aac26002e77cac1a581 | /PER_2/Final Assignment: Bagagekluizen.py | 168d17c136b212e24d424413c6ddd796d5bef8c3 | [] | no_license | wouter1007/HU_PROG | a561e901c0e2b6483db27408f1a8f06ef64474ae | e04ad21aac6a29418d3eb0e07b689be6f1357a7e | refs/heads/master | 2020-04-05T12:18:48.677695 | 2018-10-11T10:20:05 | 2018-10-11T10:20:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | bestand = (open("/home/nino/dev/HU/kluizen.txt", "r"))
def toon_aantal_kluizen_vrij():
lines = bestand.readlines()
linecount = sum(1 for line in lines)
vrijkluis = (12-linecount)
return (vrijkluis)
def nieuwe_kluis():
lines = bestand.readlines()
kluisvol = toon_aantal_kluizen_vrij()
if klu... | [
"ninodejong@gmail.com"
] | ninodejong@gmail.com |
92dc6e9f3e6bd324c2d50376d531d02e80a2061c | 91131ebd95aa23240c97690a8996f934f17e53f9 | /datatrade/simulation/migrations/0002_auto_20181122_0901.py | 150583ec9a024e5cd1c2ee7c18ab7b09dc46a796 | [] | no_license | rbiojout/datatrade | f919ebe8e10ac7d70e5b1d913949eb7a9df82872 | b0e0990f03001ad1a5642a5328ee4b3c24f7eee1 | refs/heads/master | 2022-12-14T03:26:18.670525 | 2018-11-29T16:37:57 | 2018-11-29T16:37:57 | 154,719,685 | 0 | 0 | null | 2022-12-08T01:15:23 | 2018-10-25T18:35:37 | JavaScript | UTF-8 | Python | false | false | 1,585 | py | # Generated by Django 2.1.3 on 2018-11-22 09:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('exchange', '0001_initial'),
('simulation', '0001_initial'),
]
operations = [
migrations.CreateModel... | [
"rbiojout@gmail.com"
] | rbiojout@gmail.com |
6de9a1347e5d8bab42aeb38ca59178e0cc9d64b2 | b113fed8dc69977841f6d53efddbb780b6d3cf5f | /TCP Data Transfer/tcpClient.py | 389dc72b1376b2ba12467f4661e085c5933911f1 | [] | no_license | ansi7794/Socket-Programming-Python | 55f478dc9a81f852855b90b99744a02cc20aad61 | 05e275f33e075993d78924e33159b451903a6136 | refs/heads/master | 2021-01-11T21:15:30.851320 | 2017-01-18T23:01:17 | 2017-01-18T23:01:17 | 79,278,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import socket
def Main():
host = '127.0.0.1'
port = 3000
soc = socket.socket()
soc.connect((host,port))
data = raw_input("enter message - ")
while data != "quit":
soc.send(data)
rec_data = soc.recv(2048)
print "data received from server - " + str(rec_data)
data = raw_input("enter message - ")
soc.clo... | [
"noreply@github.com"
] | noreply@github.com |
068ed2ed36ec04d3972d0c0e1ee4ab9674f12c21 | b4c6200590a093b805036a822b7889c058494b9f | /FeatureCollection/minimum_bounding_geometry.py | 89a4f22fd60f55fa52cb2f7dde4044af3a172e63 | [
"MIT"
] | permissive | spoddar-JNPR/earthengine-py-notebooks | 2109a52a49357c19f803b76ed635e022ee486ac6 | ff1b5754785d5e25cb11acdbd52b0f31711d061f | refs/heads/master | 2022-12-25T10:34:44.895717 | 2020-10-01T05:38:16 | 2020-10-01T05:38:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,104 | py | # %%
"""
<table class="ee-notebook-buttons" align="left">
<td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/FeatureCollection/minimum_bounding_geometry.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td>
... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
cd7ecbaa0214640083f019dbfd5c61e0f9eabad6 | a73d8af5bf9a74dc578c40c246fe400f5b6056dd | /portfolio/settings.py | ffd23540a43ca23632659055b7ef4309e141878e | [] | no_license | som143/port-folio | 33d452906c7ebc64e7dde246f6f89cbc92753dc5 | 5ba1821ad8549e338f4a8e115ee3376db4fdd99c | refs/heads/master | 2020-08-26T14:18:46.418233 | 2019-11-18T05:34:47 | 2019-11-18T05:34:47 | 217,038,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,941 | py | """
Django settings for portfolio project.
Generated by 'django-admin startproject' using Django 2.2.6.
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
... | [
"soumitri.rocky@gmail.com"
] | soumitri.rocky@gmail.com |
b861a33d0ecd2487517c47703ae24fa6c8bd42d2 | 203b7a3251eb7ec1032869439644e5845f9d8b8d | /ws2/section2/client.py | 8fda0ef4cf2868d7a68e0c8fe8e5592e5b1d0c60 | [] | no_license | leeang/Communication-Networks | cf13714976c17fa93ff3a57531eeda2ae52b6f25 | 597d575259e1233f177e20a33d2c4054270c892f | refs/heads/master | 2021-01-18T22:01:11.812330 | 2016-03-01T03:35:26 | 2016-03-01T03:35:26 | 44,865,240 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | # -*- coding: utf-8 -*-
import telnetlib
HOST = 'localhost'
PORT = 8080
# define address
tn = telnetlib.Telnet(HOST, PORT)
tn.interact()
| [
"angleedomain@gmail.com"
] | angleedomain@gmail.com |
5a6eafa48a462ddbf0b110c49a86c3dd6e90e4f5 | 9d8c95abb1c92378ed443536977676adea247f0a | /linkedList/reverse_linked_list.py | 5efbdf3c3ef101405c42650474d0258d4e1c7bbd | [] | no_license | AjeshRPai/Algorithms-Python | 01fc8a1ad48eb8a6a5f02f1f72c1a4fac052e5b6 | a3810fffb60d3813f300a9140b0fbdf4a13e4117 | refs/heads/main | 2023-07-16T04:04:58.509742 | 2021-08-06T07:36:28 | 2021-08-06T07:36:28 | 335,621,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | class LinkedList:
def __init__(self, value):
self.value = value
self.next = None
def reverse_linked_list(head):
prev = None
current = head
while current is not None:
next_node = current.next
current.next = prev
prev = current
current = next_node
he... | [
"ajeshr2k1@gmail.com"
] | ajeshr2k1@gmail.com |
0fe3222068f35db25694996f92bd6b4248985bc6 | f066aafb40bbb2ea21b854afca8d943d480ea4a1 | /CNN/Inception Net/Inception V3.py | 255d3c51d0a7f5eecd00600c7c3800273dfa5ffe | [] | no_license | Guang000/TensorFlow-in-Action | 88638a2de1b75f077274f75168083ed9e60be486 | 23e852b8d8be4de5a0745602bb99898a1e028001 | refs/heads/master | 2022-06-20T04:26:49.092522 | 2019-03-17T02:53:19 | 2019-03-17T02:53:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,837 | py |
# coding: utf-8
# In[1]:
import tensorflow as tf
from datetime import datetime
import math
import time
slim = tf.contrib.slim
trunc_normal = lambda stddev: tf.truncated_normal_initializer(0.0, stddev)
# In[2]:
def inception_v3_arg_scope(weight_decay=0.00004,
stddev=0.1,
... | [
"noreply@github.com"
] | noreply@github.com |
64caba450fe6b961d55a53b3d3bd0c267edf607e | a2c0ab36068e5b2a95c61d3239f1703ab4cc77da | /source/conf.py | 6b862be0276370d4d15133246bdcd34c7fab345a | [] | no_license | gamenew09/RobloxBotAPI-Documentation | 440bab4899f152bba47821ecca46a8676af9d317 | 47b52852c87d78f8f5560f9e21fa6acc755c940c | refs/heads/master | 2021-01-11T01:19:48.503274 | 2016-10-12T17:17:01 | 2016-10-12T17:17:01 | 70,723,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,645 | py | # -*- coding: utf-8 -*-
#
# Roblox Bot documentation build configuration file, created by
# sphinx-quickstart on Sun Jun 12 13:15:36 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | [
"gamenew09@gmail.com"
] | gamenew09@gmail.com |
b7b8cd88bcc0d80970cad409a00851c42b71c913 | 3bcbffb1eaf41b80704d59ba6029a5910877a11a | /search/models/operator.py | 1f75b2823de566a0bf401d4eaf3feeea8bc42b68 | [
"Apache-2.0"
] | permissive | JinHai-CN/phantoscope | e9d68e0299dd04bb83299188b8f64d2a1ab5b9c6 | 1148a30bd379691220e46520248f76615f1d86d3 | refs/heads/master | 2022-09-09T19:52:37.829203 | 2020-05-29T13:26:59 | 2020-05-29T13:26:59 | 267,865,222 | 0 | 0 | Apache-2.0 | 2020-05-29T13:30:51 | 2020-05-29T13:30:50 | null | UTF-8 | Python | false | false | 1,551 | py | from service import db
from common.error import QueryFromSQLError, Insert2SQLError, DeleteFromSQLError
class Operator(db.Model):
name = db.Column(db.String(80), unique=True, nullable=False, primary_key=True)
backend = db.Column(db.String(80), nullable=False)
type = db.Column(db.String(80), nullable=False)... | [
"hai.jin@zilliz.com"
] | hai.jin@zilliz.com |
ad8758b2b30ba47a94ca8ade9030cc20946617a9 | 83630feefe0586e510f73341fa54bf60526f2285 | /flatlib/ephem/ephem.py | e54645aed199c503ee4d827f3ada8b73aea8f905 | [
"MIT"
] | permissive | Herakleios/flatlib | 4fe6bb72064d235c09a96d73f22f8e0e67143568 | ac35d05b71ad9dd269dc4b47d80f118f78c5c4cf | refs/heads/master | 2020-06-22T12:02:14.611424 | 2019-11-13T07:51:07 | 2019-11-13T07:51:07 | 197,711,658 | 0 | 0 | MIT | 2019-07-19T06:04:07 | 2019-07-19T06:04:07 | null | UTF-8 | Python | false | false | 4,474 | py | """
This file is part of flatlib - (C) FlatAngle
Author: João Ventura (flatangleweb@gmail.com)
This module implements functions which are useful
for flatlib. Basically, it converts internal objects
and lists from the ephemeris to flatlib.objects and
flatlib.lists.
Flatlib us... | [
"joaojonesventura@gmail.com"
] | joaojonesventura@gmail.com |
6a8e35cea44081238125b72f7422a69a76de2d91 | 3335ac3acfa7befdb8202ebf6e754754f7e3d212 | /scripts/run_ctrl_node.py | 0d828757d32236da98e980369489c6e7f8ff6b9e | [] | no_license | jrosen46/cs580-assignment2 | fc2d4f21b995e41f31b0be5671b8b8c507f7e617 | 0eeb243a85d8ab918ca68ba5d9b786e1a024046d | refs/heads/master | 2020-03-29T17:41:27.116256 | 2018-09-24T22:27:36 | 2018-09-24T22:27:36 | 150,176,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | #!/usr/bin/env python
import random
import time
import rospy
from geometry_msgs.msg import Twist
def run_ctrl_node():
"""
"""
pub = rospy.Publisher('/turtle1/cmd_vel', Twist, queue_size=10)
rospy.init_node('run_ctrl', anonymous=False)
rate = rospy.Rate(10) # continuous movement
# will use ... | [
"jaredcolerosenberg@gmail.com"
] | jaredcolerosenberg@gmail.com |
289dc70ae0fa027c71b9f51a158867c52b603c4c | 64088cb43ea95b6a809f7e80c9e31c7e13c146e8 | /test_online1/Config_prose.py | 2c7299db90c39b4c735b854372d2a99cdd95219d | [
"MIT"
] | permissive | baokui/GPT2-Chinese | 840271617d4bd25517750762030357fe1301e11a | 9847c015b3817abf9ae19b0a7380814f25cad02e | refs/heads/master | 2020-12-12T03:32:54.841338 | 2020-08-06T03:39:26 | 2020-08-06T03:39:26 | 234,031,341 | 0 | 1 | null | 2020-01-15T08:13:03 | 2020-01-15T08:13:02 | null | UTF-8 | Python | false | false | 829 | py | # coding=utf-8
from Config import Config
class config_predict(Config):
# 定义构造方法
def __init__(self, model_config='', gpus=''): # __init__() 是类的初始化方法;它在类的实例化操作后 会自动调用,不需要手动调用;
super().__init__()
if gpus:
self.gpus = gpus
else:
self.gpus = '0'
if model_confi... | [
"sy880115"
] | sy880115 |
538cf4bc2cb20e2dad83e9acb99326572fc94541 | 43dd48e6ab27c8bb73a51439b9d1dafb89b3a2d2 | /exercises/while_loops.py | e89371195de4d6979c27243eb0b554ea1d8f914a | [
"MIT"
] | permissive | william19-meet/y2s18-python_review | a0e3d5026875361719ccde2213a7ed246fede8a0 | 7cf498b911067fba0cd66cf49199add7c8a6be22 | refs/heads/master | 2020-03-25T08:03:46.310887 | 2018-08-05T11:00:21 | 2018-08-05T11:00:21 | 143,595,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | x = 0
a = 0
while x < 10000:
a = a + 1
x = x + a
print(x)
print(a)
| [
"aboud20@meet.mit.edu"
] | aboud20@meet.mit.edu |
48dc54fa955faab5bed856a6994e8f8db6bff3dc | 6606591034e6028967326ba401a322f9a0954198 | /round/migrations/0005_auto_20200329_1911.py | 22f9238c423084694fb449159067e97938956873 | [] | no_license | kevald1963/milestone-4-walkabout | 882600894e928e4751269559ba2d6400b8d959fd | 955b37a95c3b79910f5dcddf96f3bf8c5253ebfb | refs/heads/master | 2023-08-08T15:36:03.766952 | 2022-12-08T15:25:18 | 2022-12-08T15:25:18 | 241,451,600 | 0 | 1 | null | 2023-07-25T20:42:37 | 2020-02-18T19:42:17 | Python | UTF-8 | Python | false | false | 415 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2020-03-29 18:11
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('round', '0004_address'),
]
operations = [
migrations.RenameField(
mode... | [
"kevin_alderson@yahoo.co.uk"
] | kevin_alderson@yahoo.co.uk |
99333a2bdf9b6e3893be5e1d61a6c9a8554fc075 | 1986433dfd6dbf4edc5a800538c38e65998098db | /tornado_gameshop/settings.py | 63d50c86364154dffd650f78e1cedd37382b3014 | [] | no_license | shishengjia/tornado_gameshop | 9c5f092936c14abeea98d8b90d03b4d0d18b0c29 | 4b7c465e3a7bc7e522ae833312e5ba0c490056d6 | refs/heads/master | 2022-12-13T06:40:34.821396 | 2019-02-25T12:45:18 | 2019-02-25T12:45:18 | 172,503,992 | 0 | 0 | null | 2022-12-08T01:38:24 | 2019-02-25T12:43:12 | Python | UTF-8 | Python | false | false | 549 | py | import peewee_async
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
settings = {
"appid": "2016092100558978",
"private_key_path": os.path.join(BASE_DIR, 'apps/utils/pay/private_2048.txt'),
"ali_pub_key_path": os.path.join(BASE_DIR, 'apps/utils/pay/alipay_key.txt'),
"j... | [
"965769897@qq.com"
] | 965769897@qq.com |
2b4d0702571c8dada9d3f10c13bbf415572bd5b1 | a7d30b11749df8575fb1d65a835aa915214a625a | /test/test_CoulombAccScaled.py | cd24a05d030f7f2b6ba6acb13a1023792ba90273 | [
"MIT"
] | permissive | nistpenning/ultracold-ions | 84915fcd1a8bb5b266ebb02ec32e4ade78238d1b | e1130ef52999c4a2f0d9f11c7b951f7515c64084 | refs/heads/master | 2021-01-22T04:41:15.731948 | 2015-07-31T20:49:04 | 2015-07-31T20:49:04 | 37,947,175 | 1 | 0 | null | 2015-06-23T21:53:39 | 2015-06-23T21:53:39 | null | UTF-8 | Python | false | false | 4,420 | py | import uci.CoulombAccScaled as uci
import numpy as np
import pyopencl as cl
import pyopencl.array as cl_array
testCtx = cl.create_some_context(interactive = True)
testQueue = cl.CommandQueue(testCtx)
def test_Constructor():
coulomb_acc = uci.CoulombAccScaled()
def test_ForceOnSingleParticleIsZero():
coulomb_... | [
"hse1984@gmail.com"
] | hse1984@gmail.com |
485885e765a3935a7c3a53e2b9f6bd343fefde30 | c6c89f011c7120446b8a168d63d0b63ff3910b75 | /python/fence1.py | 04d7878f9f10e05a3a5c28e1c413056d9817e6ff | [] | no_license | larcohex/spoj | 40ece4bcb4facf8efb345ba07b6d430c5786fa5e | 346818ae6c60d43678e12aa0685e93c05be67d95 | refs/heads/master | 2020-12-25T19:26:25.516112 | 2015-08-27T09:56:40 | 2015-08-27T09:56:40 | 40,701,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | pi = 3.1415926535
while True:
L = float (raw_input())
if not L:
break
else:
print ("%.2f" % ((L * L) / (2 * pi)))
| [
"kudayar.pirimbaev@gmail.com"
] | kudayar.pirimbaev@gmail.com |
c371245e609feae5edaf92ea28d275c72847662f | 9834875740c6fa5218dd26a75b12a8fbc2ed39d2 | /study/curso-em-video/exercises/027.py | 6484ca0b28ccd48fafcb5cbe9ab22f8970b219a1 | [
"MIT"
] | permissive | jhonatanmaia/python | 802dcde7964b6672903a6bb1c4e34cf64f21e9be | d53c64e6bab598c7e85813fd3f107c6f23c1fc46 | refs/heads/main | 2023-01-19T05:49:14.749716 | 2020-11-26T19:50:19 | 2020-11-26T19:50:19 | 302,282,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | nome=input('Digite seu nome completo: ')
lista=nome.split()
lista2=lista[::-1]
print('{} {}'.format(lista[0],lista2[0]))
print('{} {}'.format(lista[0],lista[len(lista)-1])) | [
"jbcarvalho.maia@gmail.com"
] | jbcarvalho.maia@gmail.com |
cbdc7f2c6e624fc8fadb34dc55c0661155a2ff43 | f0b3ade969780939ee1902dda28c64ed4dc93523 | /bin/android-contact-add | f2378070907fa64dc80a636aefaf2f0d361d0a29 | [] | no_license | pscl4rke/imemine | cdc52e2855a2d031ccc4096090b352378cf46f21 | 48cee399611f5303c04b7dda1461776806434a4c | refs/heads/master | 2023-08-08T13:31:52.188699 | 2023-07-30T07:38:46 | 2023-07-30T07:38:46 | 954,563 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | #!/usr/bin/python3
#======================================================================#
# PUSH CONTACT TO ANDROID OVER ABD (c) 2020 P. S. Clarke #
#======================================================================#
"""
Usage:
$ android-contact-add "Their Name" "0123456789"
$ android-con... | [
"pscl4rke@googlemail.com"
] | pscl4rke@googlemail.com | |
88b75e6f2c820ea90968c2da0415d6892f541e5e | afb8ca3e33ab4e9837b8b035fe771e3d5968b6ba | /3.23_heaviside_01.py | aa13e2cdebfa91f9d8d1c5ea5669e6949577b819 | [] | no_license | UW-ParksidePhysics/Bencs-Michael | 5af6787f0c78e9657f9f7b87bdf1a4faebc451e7 | 76724c07d2f541df50c21911fd0cd05f612c4a2c | refs/heads/master | 2020-12-28T11:01:28.043228 | 2020-05-14T20:53:22 | 2020-05-14T20:53:22 | 238,303,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | ##3.23
def H(x):
if x < 0:
H = 0
return H
elif x>= 0:
H=1
return H
def testh():
print(H(-10), H(-1e-15), H(10))
return
testh() | [
"bencs004@rangers.uwp.edu"
] | bencs004@rangers.uwp.edu |
c9e60cbf97977f83c8b9321b10b797b56467e3be | 0faef1a36893957a2b401183e5f42062b4fdf49e | /covidcases.py | f89ad1615799a99f6bc023df61b21ee8c911cdde | [] | no_license | kavya-reddy18/some-PythonTricks | ca81e4bbe52573118b4f8c62405da652475ba596 | 138a77f61b4830762092d12a86f0b17c35a19b6a | refs/heads/master | 2022-12-03T02:07:33.197049 | 2020-08-21T09:15:35 | 2020-08-21T09:15:35 | 289,214,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from covid import Covid
covid=Covid()
print(covid.get_total_active_cases())
print(covid.get_total_deaths())
print(covid.get_total_confirmed_cases())
print(covid.get_status_by_country_name("india")) | [
"noreply@github.com"
] | noreply@github.com |
f3c380453fcbfcad1bd53b2646719629d28725c2 | 3c1eecde68ecb4492687f146f2be1615df629f71 | /app/resources/user.py | 2f395db63022d88d55d97dbb3bc3d5f57759ef13 | [] | no_license | TimothyTakudzwa/Purple-Signs | 574ab141de798842e096309c1ae801961e297d68 | 2c3d0b20b34b05d347cf145e1499bdb0433cd24a | refs/heads/master | 2023-01-18T18:39:22.816824 | 2019-04-24T18:26:07 | 2019-04-24T18:26:07 | 165,732,790 | 0 | 0 | null | 2023-01-10T23:02:43 | 2019-01-14T20:48:46 | HTML | UTF-8 | Python | false | false | 2,887 | py | from flask_restful import Resource, reqparse
from ..models import User
from werkzeug.security import generate_password_hash
class UserRegister(Resource):
parser = reqparse.RequestParser()
parser.add_argument('first_name',
type=str,
help="This field cannot be left blank")
parse... | [
"timothytakudzwa@gmail.com"
] | timothytakudzwa@gmail.com |
a33d4056b80802fa4bec379faf6ae3c3ce517d55 | cdf8b78a6975813c010b8c63b9e24f364a7cf995 | /jupitotools/pyutils/pal.py | 36df3851eb5b52ec785adb8549d332ec593a39e8 | [
"MIT"
] | permissive | jupito/jupitotools | c789d89ae7525027ddc0aee4502cde1a44a4d268 | fe3f1a4fd3a0d15b38285577c00ab68059dc274b | refs/heads/master | 2022-02-16T13:45:49.270833 | 2022-01-30T21:34:05 | 2022-01-30T21:34:05 | 236,577,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | #!/bin/python3
"""Palette test.
Usage: pal.py < /usr/share/X11/rgb.txt.
Outputs RGB, hex, term hex, term dec, fg test, bg test, bg test RGB mode, name.
"""
# TODO: Use NamedColor dataclass. :)
# https://github.com/welbornprod/colr
# https://gist.github.com/XVilka/8346728
# https://lists.suckless.org/dev/1307/16688.h... | [
"jupito@iki.fi"
] | jupito@iki.fi |
1f644151febbe19614d840b80325f775346c5f64 | baa761f8bd712d9ff0e96fc0477082094c59b771 | /manage.py | 2a4ae5c81eace02bd7fee097ff3c44b3801435bd | [
"MIT"
] | permissive | nearj/UOS_2019_crime_graph_analysis | f46cd66b2cfe42153b2e364b3435ee0b32d99205 | 6e5b373fd78eb38e0cf2dbe4584b36fa57eed667 | refs/heads/master | 2020-08-01T12:53:17.502294 | 2019-10-30T02:09:02 | 2019-10-30T02:09:02 | 211,003,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nycrime.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"imcool2551@gmail.com"
] | imcool2551@gmail.com |
e29b06b9d1c18227859829990387103a3db20e62 | 46fda2ea47f311ee7fefc6f6210811c7f4bd74ad | /databases/cassandra3/files/patch-doc_source___util_cql.py | b3898552dfcda8065377c3dec9acecde4d1c475c | [
"BSD-2-Clause"
] | permissive | truenas/ports | ad560a8adde884dc0cfc4b292bbbcad91903b287 | da4ed13ad08a6af5c54361f45964fa1177367c68 | refs/heads/truenas/13.0-stable | 2023-09-02T03:00:28.652837 | 2023-08-16T16:05:00 | 2023-08-16T16:05:00 | 8,656,293 | 18 | 9 | NOASSERTION | 2023-09-12T15:15:34 | 2013-03-08T17:35:37 | null | UTF-8 | Python | false | false | 427 | py | --- doc/source/_util/cql.py.orig 2020-10-28 18:48:05 UTC
+++ doc/source/_util/cql.py
@@ -26,7 +26,6 @@ from pygments.lexer import Lexer, RegexLexer, do_inser
from pygments.token import Punctuation, Whitespace, Error, \
Text, Comment, Operator, Keyword, Name, String, Number, Generic, Literal
from pygments.lexers ... | [
"rene@FreeBSD.org"
] | rene@FreeBSD.org |
857c47c2500a9f71ae25c6235900a9829850c837 | b7353e8acc6f152464160142f594eb17f063eb0e | /파이썬/short_code.py | f4052a47422ccc6ac683a00c4174461d97ee8fca | [] | no_license | 17-76018348/Winter_2019 | 85d055b19938879a4a140007a1cf24bb21ebb4ca | 249cf1a759cccd4956419d914ca9a7f5b12c53a6 | refs/heads/master | 2020-11-29T23:43:14.825232 | 2020-03-07T05:10:46 | 2020-03-07T05:10:46 | 230,241,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 19 23:58:43 2020
@author: didrm
"""
import numpy as np
import pandas as pd
import time
start = time.time()
ques1, ques2 = {'G1':{1:[],2:[],3:[],4:[],5:[]},'G2':{1:[],2:[],3:[],4:[],5:[]}}, {10:{1:[],2:[],3:[],4:[],5:[]},20:{1:[],2:[],3:[],4:[],5:[]},30:{1:[],2:[],3:[],4:[... | [
"53898123+17-76018348@users.noreply.github.com"
] | 53898123+17-76018348@users.noreply.github.com |
b2e928c6e9e3b48fb9c1e9551bce3ee13dff65e6 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/MT5_ID4146_for_PyTorch/transformers/tests/xlnet/test_modeling_xlnet.py | 4c49bfd1c08fb1a3fbe963a7d8faff8f8619bd44 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 27,825 | py | # coding=utf-8
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
15003fa4ffd8fb5a4fe0839be8bffa723ddc9d18 | 89757ce8f6119075fbef3105804711950a09773f | /app.py | 37e578fa6954d15832df914aad645191e7b70167 | [] | no_license | meetyourvallabh/andyinfosec | 7f6535bbe9709c8e4b76e76b46c8ecfce8141e45 | 15092833179a32b2aa9ae11f2f0d1d89a2e195c8 | refs/heads/master | 2022-12-29T17:21:27.235985 | 2020-10-18T07:12:06 | 2020-10-18T07:12:06 | 205,387,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,292 | py | from flask import Flask, render_template, request, flash, redirect, url_for, session, send_from_directory
from flask_mail import Mail, Message
from random import *
app = Flask(__name__)
app.config['MAIL_SERVER'] = 'smtp.gmail.com'
app.config['MAIL_PORT'] = 465
app.config['MAIL_USE_SSL'] = True
app.config['MAIL_U... | [
"meetyourvallabh@gmail.com"
] | meetyourvallabh@gmail.com |
d47df698bd174f7424065a3f0e7d5d20675c7592 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5688567749672960_0/Python/AmolMandhane/A.py | 5bb0596356fa4cdd30ac17540355451410276f60 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | def read(t):
return t(raw_input().strip())
def read_arr(t):
return map(t, raw_input().strip().split())
def rev_neg_num(n):
return int("-" + (str(n)[1:])[::-1])
memz = {}
for i in xrange(1, 10**6 + 1):
if i <= 20:
memz[i] = i
elif i % 10 == 0:
memz[i] = memz[i-1] + 1
else:
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
5b5c42384d0eb98177202a98d944e5832ffc6454 | 864a55a2568ced986dbf74a2839eb13c4f974734 | /Practice/Algorithm/1-Warmup/circular-array-rotation.py | ad324ffc48dc12c62fbcfd8667631bc4b142e597 | [] | no_license | akshaybosamiya/hackerrank-solutions | e86844458388b9d55b2f5efe80f907b1228809a2 | 9b4f566bb2c1a4316f6f90beae0e0f99bcfeb8ae | refs/heads/master | 2021-01-11T15:00:23.805225 | 2017-01-28T10:09:49 | 2017-01-28T10:09:49 | 80,277,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | #!/bin/python3
import sys
n,k,q = input().strip().split(' ')
n,k,q = [int(n),int(k),int(q)]
a = [int(a_temp) for a_temp in input().strip().split(' ')]
"""
for i in range(k):
a=a[-1:]+a[:-1] #one-time right circular shift
"""
for a0 in range(q):
m = int(input().strip())
print(a[(m-k)%len(a)... | [
"akshay@auberginesolutions.com"
] | akshay@auberginesolutions.com |
3ee299a96f44b42693961ebca2a9e2145dce37dd | 4a27e2b7dd540d9c2ba1c6bd5da07d3d622af8ba | /apps/logreg/migrations/0001_initial.py | 335efad6355fd11a701a9fdbc6b7d146a284e5e7 | [] | no_license | ksantana3/django_travel_app | 3f2eeeda232281f39aca9ec4ba4c0e5c6759ee09 | 450d433346c06a99840c26e0134994efb074432b | refs/heads/master | 2022-05-09T18:15:38.383089 | 2019-05-29T09:01:34 | 2019-05-29T09:01:34 | 189,186,834 | 0 | 0 | null | 2022-04-22T21:23:06 | 2019-05-29T08:49:00 | Python | UTF-8 | Python | false | false | 752 | py | # Generated by Django 2.2.1 on 2019-05-28 16:03
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"ksantana3@gmail.com"
] | ksantana3@gmail.com |
13fcef292525f41c2ebe70211c8daa254b43378e | a92f144ad627100ad36711aabf64f484ae8c4ed6 | /codeQA/o2qaplots/o2qaplots/plot_base.py | d28eb93530d1ddb5dea4f3bace834fecd1da7f35 | [] | no_license | ginnocen/Run3Analysisvalidation | c6dad49cbd61bc254cd359007aabcb9edf1c48ad | 108dbb56b64e425f660168d0227a7fcc115d1382 | refs/heads/master | 2022-12-03T12:24:20.053844 | 2022-11-18T22:01:35 | 2022-11-18T22:01:35 | 237,835,541 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 12,614 | py | """
To create your own plotting macro, do the following:
- Derive your plotting class from PlottingTask.
- Define configurables that this task will depend upon in the
PlottingTask.configurables class attribute.
They should be declared using the type Configurable. The task configurables
will follow the same logi... | [
"noreply@github.com"
] | noreply@github.com |
68ba8739b3e67bcb0bb89bdf66d033ae2937334f | 49dedd7d387c9326c6530e9216facd536e8f5216 | /tuples_and_sets/exe/2_sets_of_elemenets.py | eb7a322e775a30f651ec68dbf0b2d00d13891d01 | [] | no_license | PeterM358/python_advanced_r | e5faee9951bb4f58c2a9ee66e78d3ef4d7616c41 | 7cda1864dd30e0380ed5bf2a6e1eacdc80a728ed | refs/heads/master | 2023-03-11T09:06:05.767687 | 2021-02-10T17:29:28 | 2021-02-10T17:29:28 | 336,591,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | n, m = [int(n) for n in input().split()]
n_set = set()
m_set = set()
for _ in range(n):
n_set.add(input())
for _ in range(m):
m_set.add(input())
result = n_set.intersection(m_set)
[print(s) for s in result]
'''
4 3
1
3
5
7
3
4
5
'''
| [
"petermihailov@Peters-MacBook-Air.local"
] | petermihailov@Peters-MacBook-Air.local |
4edf298b0e28c429b6929525c63e393686c3b51d | 54592f6bcdcc161db9b4f7772f29825cb6d0f145 | /wam/tests/test_game.py | 68d09b31f61146e14cb0687446cec4ae5f7c54f3 | [
"MIT"
] | permissive | Eater-Git/bdm-whack-a-mole | 9fdc096352b9d8a158035d5d6c18438785a744b5 | 33b52008b2fae231b604c0af959df57e25dee61f | refs/heads/master | 2023-06-08T23:32:17.711129 | 2021-06-29T17:27:54 | 2021-06-29T17:27:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # -*- coding: utf-8 -*-
"""
test_hit_checker module
============
This module contains the pytest functions for the drifter module
and associated Hit_Checker class for the pygame Whack a Mole game
Attributes:
handled within the functions
Todo:
* na
Related projects:
Adapted from initial toy project https... | [
"mike_a_w_taylor@yahoo.com"
] | mike_a_w_taylor@yahoo.com |
edd200fd4f6e729e611abfeb0b0eea2b57ceea7b | 6a8fa7f4cfa35d5e8490e2274f63b64848aabee7 | /scripts/recv_goal.py | bffefbc0195f9b6966e2a057e1d7465eeb9167b3 | [] | no_license | marine0131/nav_goal | cb44d950d81ea59f2a4b1df9de31c73fe55e741b | 98d5bdeecbf909583857dac538027f16f6765dd3 | refs/heads/master | 2020-08-02T17:14:52.429952 | 2019-09-28T04:06:17 | 2019-09-28T04:06:17 | 211,442,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,562 | py | #! /usr/bin/env python
import rospy
from std_msgs.msg import String
from move_base_msgs.msg import MoveBaseGoal, MoveBaseAction
from geometry_msgs.msg import PoseStamped
from actionlib import SimpleActionClient
from std_srvs.srv import Empty, EmptyRequest, Trigger, TriggerResponse
from nav_goal.srv import QRcodeAdjust,... | [
"whj0131@gmail.com"
] | whj0131@gmail.com |
86c614bd2ea4015e6ac849c879a9860ebfcfd55e | 541aad158d1f3a9ae74a032990946e113a332ae2 | /leads/admin.py | a4350b11586c68761c197f3566c3db5d567e224e | [] | no_license | Pekstaar/django_crm | 3eebde8a6c591f1d7b481e19be0016a554f33a63 | 37de6693a2db81fc7083bf54e586af1f1a95c111 | refs/heads/master | 2023-07-04T00:14:23.975449 | 2021-08-02T06:13:19 | 2021-08-02T06:13:19 | 391,836,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.contrib import admin
# Register your models here.
from .models import User, Lead, Agent, UserProfiles
admin.site.register(User)
admin.site.register(Lead)
admin.site.register(Agent)
admin.site.register(UserProfiles)
| [
"pekstaar@gmail.com"
] | pekstaar@gmail.com |
8f311c13608ef12dc67f80c198074c81391f9199 | 277ae59df9b7fd28d41b90e45b47f8ab41b7ed2a | /src/config.py | 2ed3af007cbd20f1333f3da124fddaed39d36165 | [
"MIT"
] | permissive | as0027111/Reversi-based-RL | 33982a04f805d78cac5c27c5cd126649d164c682 | ef3723ffa26210bf04f19ffb72e5b9a43e54c448 | refs/heads/master | 2022-12-12T16:06:46.939783 | 2020-09-02T08:39:01 | 2020-09-02T08:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | from src.lib.utils import DotDict
import os
# project_root_path = 'C:/Users/qianqian/Documents/GitHub/Reversi-based-RL'
# project_root_path = '/content/gdrive/My Drive/Reversi-based-RL'
project_root_path = '/mnt/ssd/qianqian/pycharm_project_806'
default_args = DotDict({
'simulation_count': 50, # MCTS 模拟次数
'c... | [
"qian1335661317@qq.com"
] | qian1335661317@qq.com |
55888b41303049120990a8344f4a34e358120d78 | 3e8c25ed735be693c3e3333bb7b25e970d58de67 | /project/models/searchable_mixin.py | 62d1cf993ba4ef31bab9132a5dae97793a697ed2 | [
"MIT"
] | permissive | devhid/sinema | 3f6b7e8fb211bed54a3639ac421ec0a1603ada25 | 8a5abb67628cdbb66134b4c01c27aa09154308c0 | refs/heads/master | 2020-04-03T17:45:15.171838 | 2018-12-06T00:01:03 | 2018-12-06T00:01:03 | 155,457,803 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | from ..search import add_to_index, remove_from_index, query_index
from ..extensions import db
class SearchableMixin(object):
@classmethod
def search(cls, expression, page, per_page):
ids, total = query_index(cls.__tablename__, expression, page, per_page)
if total == 0:
return cls.qu... | [
"devhid@users.noreply.github.com"
] | devhid@users.noreply.github.com |
d3761935f90de9e58a508d2d5a2fdca3293b85cf | 457ea27514485eb0009846a1588f60d031b3fe97 | /build/lib/mctools/LPdebugger_normalRun.py | e97fe8e33f94ac9af99a77446a1bac8babe12cee | [
"MIT"
] | permissive | dodu94/mctools | 9b5baf9b59428e124ae760e0e231c9112c0e48c7 | 3cbac57df910e5d4aab98d8c6b4e52f6d036abe5 | refs/heads/master | 2020-04-22T10:23:16.862325 | 2020-01-02T09:21:54 | 2020-01-02T09:21:54 | 170,303,774 | 2 | 5 | MIT | 2020-01-02T09:21:55 | 2019-02-12T11:06:17 | Python | UTF-8 | Python | false | false | 5,491 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 21 15:11:15 2018
@author: Laghi Davide
V 1.0
The script reads a MCNP output and relative input and than outputs an Excel
file containing the surfaces and cells where the particles were lost and their universe.
In addition it provides a summary listing the most problemta... | [
"marco.fabbri@f4e.europa.eu"
] | marco.fabbri@f4e.europa.eu |
ecaab474397cd68ac0dcf4d36f9ac370fb795651 | b412ee3ef0790a333e7e48d542d735522f8c5654 | /blog/migrations/0001_initial.py | f07d9268689057622cc2808dbd258e7369d86983 | [] | no_license | HannahHuggins/blog | df39d789fe3ea1076c7e58122008add78c751d1c | ad7c728e03ab41c973499d1afc8c3f001701fc20 | refs/heads/master | 2020-04-03T20:02:17.562000 | 2018-10-31T11:23:37 | 2018-10-31T11:23:37 | 155,545,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.0.9 on 2018-10-31 11:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"dowdallhannah@yahoo.com"
] | dowdallhannah@yahoo.com |
3f0e01af7475118c233fb4a1a1836298f085f800 | 105f8546507508cb16d9f89630d483da1cdb1e1f | /demos/facebook/facebook.py | ace0705fc79f0ba48105a5c7792ffee412c56b87 | [
"MIT"
] | permissive | buptxtc/tornado-zh | 0a28e3cc4f1a11383c220b3fb3fbf48349782601 | e9e8519beb147d9e1290f6a4fa7d61123d1ecb1c | refs/heads/master | 2020-09-06T15:29:52.606966 | 2019-07-15T03:11:03 | 2019-07-15T03:11:03 | 220,465,798 | 1 | 0 | MIT | 2019-11-08T12:49:16 | 2019-11-08T12:49:16 | null | UTF-8 | Python | false | false | 4,413 | py | #!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"zhangjintao9020@gmail.com"
] | zhangjintao9020@gmail.com |
dd6adcded703c7b5d133c3bb7418f048182b934a | 492693d325dad3adcb09601c54a5b7b0d00cfdef | /drf_admin/apps/system/filters/users.py | 05bb23c86a66cdae77dce35a652ec0732e0e1343 | [
"MIT"
] | permissive | HHHyuming/drf_admin | c682e7c284a9747175a81833aacb5e3fc67a2e42 | 956ab1a96964a8af06b0697e228a3d4238dce109 | refs/heads/master | 2023-03-19T23:52:06.521389 | 2021-03-10T15:28:50 | 2021-03-10T15:28:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | # -*- coding: utf-8 -*-
"""
@author : Wang Meng
@github : https://github.com/tianpangji
@software : PyCharm
@file : users.py
@create : 2020/9/15 21:59
"""
import django_filters
from drf_admin.common.models import get_child_ids
from oauth.models import Users
from system.models import Departments
class Use... | [
"921781999@qq.com"
] | 921781999@qq.com |
05fc6f6ef18611437377e0ed6375d28f286e9d52 | 2904b0b42ff2b93b2834fdc79a0e2af9ed733f59 | /source/tests/py_tests/reference_cast_operators_test.py | e178ed9b311e81314349e66024528a29b6eade11 | [
"BSD-3-Clause"
] | permissive | web-slave/U-00DC-Sprache | 02e9a04c31323310b93ecbed1c7d89b762162942 | 9576f93d8cb2abffded1071f9f0328c2385446a8 | refs/heads/master | 2022-10-09T06:16:26.759090 | 2020-05-30T09:09:16 | 2020-05-31T15:51:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,035 | py | from py_tests_common import *
def CastRef_OperatorDeclaration_Test():
c_program_text= """
fn Foo()
{
auto x= 0;
cast_ref</ void />( x );
}
"""
tests_lib.build_program( c_program_text )
def CastRefUnsafe_OperatorDeclaration_Test():
c_program_text= """
fn Foo()
{
var i32 x= 0;
unsafe{ cast_... | [
"AntiPanzerschrek@yandex.ru"
] | AntiPanzerschrek@yandex.ru |
eb2e61b032459be059aaf950ec419b70585e3c15 | 55ba75e21ad789ffe511a3291bf00d5a81921b93 | /Part 1 - Data Preprocessing/sample1.py | f825815153cac57818da897e610c0d9c8177c514 | [] | no_license | skagnihotri/ml | e561b2e0673dbfeba027817fdc45a7813b871743 | bfa24fa9f2cbafa69f5b91a70fe6a3675ecaac79 | refs/heads/master | 2021-06-27T09:46:21.133908 | 2020-10-22T10:54:01 | 2020-10-22T10:54:01 | 169,747,498 | 0 | 3 | null | 2020-10-22T10:54:03 | 2019-02-08T14:32:49 | Python | UTF-8 | Python | false | false | 1,192 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 25 14:57:54 2019
@author: Shubham
"""
#import libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#importing databases
dataset = pd.read_csv('Data.csv')
#features
X = dataset.iloc[:,:-1].values
y = dataset.iloc[:,3].values
#missing data
from... | [
"skagnihotri1@gmail.com"
] | skagnihotri1@gmail.com |
b8c1283bf4b251b33a832ef5172ab46c47722029 | 8aa1b94626402c0c614128d6061edb771dad05cf | /qt/qt02/qt25_button.py | db8d1e1c0f9f6b451a2d54f73a5b882cd94054c0 | [] | no_license | netfj/Project_Stu02 | 31e76c1b656ee74c54cae2185821dec7ccf50401 | afc1b26b7c586fd6979ab574c7d357a6b9ef4d29 | refs/heads/master | 2023-03-13T22:24:40.364167 | 2021-02-23T09:53:31 | 2021-02-23T09:53:31 | 341,506,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,720 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'qt25_button.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectNa... | [
"netfj@sina.com"
] | netfj@sina.com |
f6dcb6398ec829d8f5af39ffdfbe0221e3a06c4f | b46e3bc36ce4819849f01553ad117e93a1e38976 | /accounts/apps.py | 9a98f632724d6d2af9f35277aad34c24831d14b2 | [] | no_license | pranjalg13/Blog_Website | 833ec5139f939307363fe2f951270ad905d01ff6 | c1a7146b3e60bd929cda6ffa2c9c5e6a2ceabcb7 | refs/heads/master | 2022-12-03T19:59:13.462286 | 2020-08-04T06:13:13 | 2020-08-04T06:13:13 | 284,890,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.apps import AppConfig
class AccountsConfig(AppConfig):
name = 'accounts'
def ready(self):
import accounts.signals
| [
"noreply@github.com"
] | noreply@github.com |
81589adcb479b8e3f41b3936f2c1f01887e655a4 | 8dba6252204fad00d0489b6f9f05fa67751a35a3 | /DriCrawler_Examples/kivy_example.py | 2249352223b604d285e40bce59290e3b778911fc | [] | no_license | Darth-Neo/Examples | 11e30879f1f23201c49b88d4ac1d3d0088fb86f2 | 4066848f3de1fcbcd60cb587f8b6c3ad2ce7e50c | refs/heads/master | 2021-01-21T21:50:50.367166 | 2016-04-30T12:21:04 | 2016-04-30T12:21:04 | 37,427,514 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | from kivy.uix.tabbedpanel import TabbedPanel
from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
class RootWidget(FloatLayout):
pass
class MainApp(App):
def build(self):
return RootWidget()
if __name__=='__main__':
MainApp().run() | [
"morrissoid.james@hotmail.com"
] | morrissoid.james@hotmail.com |
7e1ece69a450426c29cd1e13ba46ffb26747a27e | a9590f854e3ad9be4fec17cf20df0af0865bd64c | /python/catchbart.py | ff2ef5cefcd882c67ef2adc26d3c9e6e46d36751 | [] | no_license | tuxthepenguin84/PiDash | 5cc948faef9507df7ca2a3fcc518a15e004f943f | 8ccc4731dcde801465a3ecc9af783c92cadf55f0 | refs/heads/master | 2021-06-25T21:10:48.900722 | 2019-06-09T03:23:20 | 2019-06-09T03:23:20 | 111,504,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,289 | py | ##Modules
import datetime
import json
from pprint import pprint
import re
import requests
from secrets import *
import urllib.parse
##Variables
debug = 0
#Google variables
gAPIURL = 'https://maps.googleapis.com/maps/api/directions/json?'
gDestination = 'Lafayette Bart Station'
gDepartTime = 'now'
gFullURL = gAPIURL +... | [
"tuxthepenguin84@users.noreply.github.com"
] | tuxthepenguin84@users.noreply.github.com |
c7c57d25146b3379d55ab815c48685d4a0ccc543 | 02f4355466981840f4878e6104306c5b2ced0c69 | /图灵学院视频练习/base/oop/part 1/text1-6.py | 64b30794ec39bdbf93bdd6668c93139f14082465 | [] | no_license | bwbobbr/pycharm-xx | c6329c47afdf26b5b60d235460012a9722e87aec | 0869a04d448b3384af35bf52c3669acd928a2022 | refs/heads/master | 2020-03-29T15:38:35.228371 | 2018-11-19T04:33:19 | 2018-11-19T04:33:19 | 150,041,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | class Person():
name = "liujing"
__age = 18
p = Person()
#name是共有变量
print(p.name)
#__age是私有变量
#print(p.__age) #强档与加密了
print(Person.__dict__) # 解密?得到age参数的正确表达式_Person__age
print(p._Person__age) | [
"578810032@qq.com"
] | 578810032@qq.com |
9a0acd6e5c64e42c8de0a69025cbd6b01260f2fe | 75965487b2c38338a80cfd52a43ce61918d03f5b | /Chatbot_DockerVersion/webapp/app/utilities/testResponse.py | 41772abd1144294fc058d09db71bbea22a8b6b8d | [
"Apache-2.0"
] | permissive | ptrckhmmr/ChatBot-for-cultural-institutions | dde5f04f1f82e53ec64130c3a9a4f6177da5f256 | c3da1a6d142e306c2e3183ba5609553e15a0e124 | refs/heads/main | 2023-02-03T05:18:27.785230 | 2020-12-24T13:31:36 | 2020-12-24T13:31:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,018 | py | # importing necessary modules
from mindmeld.components import NaturalLanguageProcessor
from mindmeld.components import QuestionAnswerer
from loadClassifier import loadClassif
from fuzzywuzzy import process
import pandas as pd
# import logging
from mindmeld import configure_logs; configure_logs()
# setting... | [
"patrick.hemmer@kit.edu"
] | patrick.hemmer@kit.edu |
d082b620c908267b6c5fc1af79c9fea075b69ffd | 5645f2b68c3c725079cf4bba85cacae91987f499 | /button.py | c9b276a4391e3c78be475df8e066ef7e6da77404 | [] | no_license | BuenVia/alien_invasion | 026b0eae5a867d75e7fc7cf2d4a43d8e88783c4a | 724865bb2383f29d4d2ca2ccc143e2a8fd342ec2 | refs/heads/master | 2023-04-11T09:31:46.418236 | 2021-04-18T08:37:26 | 2021-04-18T08:37:26 | 359,088,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | import pygame.font
class Button():
def __init__(self, ai_settings, screen, msg):
"""Initialize button attributes"""
self.screen = screen
self.screen_rect = screen.get_rect()
# Set the dimensions and properties of the button
self.width, self.height = 200, 50
self.but... | [
"matthewclifford@hotmail.co.uk"
] | matthewclifford@hotmail.co.uk |
23d73588f8ae1662cd36e9979111f6f2d4dbb59c | 37cd65648543150a247d72e260f658e8cfb71f91 | /linked_list.py | 56598c70b7834549ad421f337ef8c8347fc84d98 | [] | no_license | jmintel7/linked_list | cc7e7740c0c702691d2626dd74a8f31161bc822c | f064136688c2c30e3dda7dffeb8d6fefded186dd | refs/heads/master | 2022-07-07T15:58:25.403207 | 2019-09-18T19:03:17 | 2019-09-18T19:03:17 | 209,327,002 | 0 | 0 | null | 2022-06-21T22:47:09 | 2019-09-18T14:18:49 | Python | UTF-8 | Python | false | false | 2,137 | py |
class node:
def __init__(self, data = None):
self.data = data
self.next = None
class linked_list:
def __init__(self):
self.head = node()
def append(self, data):
new_node = node(data)
cur_node = self.head
while cur_node.next != None:
cur_node... | [
"jmintel7@gmail.com"
] | jmintel7@gmail.com |
b755f56b7ba2723287bbd6c93ecde85a202b8645 | 008ea0c503829f33840495373ad3d60794575af3 | /PYDayByDay/Tkinter_ST/Button_TK/Button5.py | ec2ebc8db2d86596950f4aed52bd0b1193cfc593 | [] | no_license | JyHu/PYStudy | 6515bea47ca6f80e336f3b6a7a14b1159fde872f | ec0855c414237bdd7d0cb28f79a81c02ccd52d45 | refs/heads/master | 2016-08-12T19:44:06.723361 | 2016-04-11T10:38:59 | 2016-04-11T10:38:59 | 45,384,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | #coding=utf-8
__author__ = 'JinyouHU'
from Tkinter import *
root = Tk()
b1 = Button(root, text='30×1', width=30, height=2)
b1.pack()
b2 = Button(root, text='30×2')
b2['width'] = 30
b2['height'] = 3
b2.pack()
b3 = Button(root, text='30×3')
b3.configure(width=30, height=3)
b3.pack()
root.mainloop() | [
"auu.aug@gmail.com"
] | auu.aug@gmail.com |
b2e081aff2322b51443372dce702ab273140872f | d7de8df87f3033a6133be348e99a92e2637db01f | /teamworkcreateatask.py | 4aaa3abbf25bc933d350f8cfc3cc37480534e0d6 | [] | no_license | ArmandAguilar/connectedtime | aa3f46c1fb52635ee1a1755133afcf91262fa04e | d42a43aeda7ea3247f33684a33c665a41d4cd333 | refs/heads/master | 2020-03-18T07:37:33.364272 | 2018-07-10T17:52:15 | 2018-07-10T17:52:15 | 134,463,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,321 | py | #!user/bin/python
# -*- coding: utf-8 -*-
#imports for jso and request
from tokensTeamWork import *
from urllib2 import urlopen,base64
import json
import requests
import unicodedata
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
import time
from datetime import datetime, timedelta
#Here the url
#/tasks/{id}.j... | [
"a.aguilar@gategeek.com"
] | a.aguilar@gategeek.com |
ba99fd6e166e3e4d417d7353b281205af3e9b05a | aff6a48889733697f88fb8b3bf73a5ffd20d5caa | /hw3/knn/knn.py | bb8d4ddff056d0677242907437e73ee84b2e7eef | [
"MIT"
] | permissive | Cjkkkk/data_mining_homework | a3f64b9190ec1351742140ba4b03f10829a9f803 | 649dc3144444611d7c8ccaf6109050f53b5c611c | refs/heads/master | 2020-05-21T09:11:08.213705 | 2019-07-02T11:48:35 | 2019-07-02T11:48:35 | 185,992,853 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | import numpy as np
import scipy.stats
def knn(x, x_train, y_train, k):
'''
KNN k-Nearest Neighbors Algorithm.
INPUT: x: testing sample features, (N_test, P) matrix.
x_train: training sample features, (N, P) matrix.
y_train: training sample labels, (N, ) co... | [
"656569648@qq.com"
] | 656569648@qq.com |
8df9f9de8143703d1315b86d167ca8d56b0dd64e | 1fe748e32245d9717c2a494147da415111a35d14 | /FlowNetworksVisualization.py | 1e61c1d99ad7509f6675f3b9638efef4abc41338 | [] | no_license | AZS-GrillSection-Graphs/Lab5 | 7b142813722bbb0cefa9ebda9e3a5d8952afdeb2 | 9ef310add0e545f8f22d111af2e2923dac77b5ca | refs/heads/master | 2020-03-18T16:47:25.073375 | 2018-05-29T20:44:25 | 2018-05-29T20:44:25 | 134,986,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | import sys
import linecache
import math
import numpy as np
import matplotlib.pyplot as plt
if not linecache.getline(sys.argv[1], 2):
print("Graphs is empty.")
sys.exit()
matrix = np.loadtxt(sys.argv[1], dtype = int, skiprows = 1)
weights = np.loadtxt(sys.argv[2], dtype = int)
layers = np.loadtxt(sys.argv[3],... | [
"prz.szo@gmail.com"
] | prz.szo@gmail.com |
6374f8c5aad560fbf946bff36da2d84842bb2ada | 6174692cbd42535fe2b195a1152b60fd5a8c23dc | /lab_7/solution.py | 556cfc6526088e4e74ceb59427d096cbcf7a5af0 | [] | no_license | kronuc/NumberMethods_labs | 9cb783e67dfee2105adf62cb25aa0ad0f6b081eb | 92138927c26aedc1475fbf3052198e99d5dd3615 | refs/heads/master | 2023-05-04T06:47:06.602263 | 2021-05-24T17:35:50 | 2021-05-24T17:35:50 | 339,023,752 | 0 | 1 | null | 2021-02-17T20:03:56 | 2021-02-15T09:21:30 | Python | UTF-8 | Python | false | false | 2,575 | py | import math
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
def getDeterminant(x, y, functions):
mainDiag = functions[0](x, y) * functions[1](x, y)
diag = functions[2](x, y) * functions[3](x, y)
return mainDiag - diag
def Newton(x, y, functions, derivatives, e):
current_x, current... | [
"denerator2@gmail.com"
] | denerator2@gmail.com |
e2faec65704111af5e54413795ed61640756088f | 8f24e443e42315a81028b648e753c50967c51c78 | /rllib/utils/debug/deterministic.py | f41fdabf323bfc57abe2db545babe1a292825d7c | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | simon-mo/ray | d07efdada8d05c6e10417f96e8dfc35f9ad33397 | 1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8 | refs/heads/master | 2023-03-06T00:09:35.758834 | 2022-12-23T18:46:48 | 2022-12-23T18:46:48 | 122,156,396 | 4 | 2 | Apache-2.0 | 2023-03-04T08:56:56 | 2018-02-20T04:47:06 | Python | UTF-8 | Python | false | false | 1,805 | py | import numpy as np
import os
import random
from typing import Optional
from ray.rllib.utils.annotations import DeveloperAPI
from ray.rllib.utils.framework import try_import_tf, try_import_torch
@DeveloperAPI
def update_global_seed_if_necessary(
framework: Optional[str] = None, seed: Optional[int] = None
) -> Non... | [
"noreply@github.com"
] | noreply@github.com |
d32ee1d77b17400cf1cf86335eb809c9b6f49f9e | 5eaf07a7923e55619d61cd854d6c260e9dedbff8 | /main.py | 49ea12123d7c73dc75849dd057cb74767c07a0dc | [] | no_license | gdsc-uba/twitter-bot | dea811284d5c486ed2828bbb8ed9573e26bb9789 | af59a9df0b10497ef64ee66343ee491c3aad18b4 | refs/heads/master | 2023-08-31T04:14:02.458986 | 2021-09-24T12:54:08 | 2021-09-24T12:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | #!/usr/bin/python
# -*-coding:utf-8-*-
"""
This is a simple script for the GDSC-UBa twitter bot
TODO: Add credentials
"""
# External Libs
from tkinter import *
# Owned
from bot_actions import *
__author__ = "Elroy Kanye"
__credits__ = ["Elroy Kanye"]
__license__ = "Set license here"
__version__ = "0.1.0"
__maintain... | [
"elroykanye@gmail.com"
] | elroykanye@gmail.com |
4f83c7c667f9390704dc94f81efa7f2c72f39e64 | 1d96db84225301d972f07cad95c2a13f4fbafa84 | /PyROOT/GravityStudies/simple_two_body_gravity.py | 127826731c166fee2374beef04ad4c9c01ab5e6a | [] | no_license | mattbellis/matts-work-environment | 9eb9b25040dd8fb4a444819b01a80c2d5342b150 | 41988f3c310f497223445f16e2537e8d1a3f71bc | refs/heads/master | 2023-08-23T09:02:37.193619 | 2023-08-09T05:36:32 | 2023-08-09T05:36:32 | 32,194,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,629 | py | #!/usr/bin/env python
from numpy import array
import ROOT
from ROOT import *
from color_palette import *
import sys
from optparse import OptionParser
import re
import random as rnd
################################################################################
####################################################... | [
"matthew.bellis@gmail.com"
] | matthew.bellis@gmail.com |
87594a6328a3005dfcdab820e9540e8a4512d8ba | 0227d51f6af22d7bf7760cc969fc990bf282142c | /myenv/bin/f2py | f62d56cf9188e1b1ef0b9cd5da828917595e5f8f | [] | no_license | LiJunWei/tornado-chat | 855b32739f2fc0a04d5072b44353618fa433fac5 | 0ed81fa6b13736f9973a785d065f441a40614aea | refs/heads/master | 2021-01-17T19:25:00.655287 | 2016-06-21T04:20:24 | 2016-06-21T04:20:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | #!/Users/ezioruan/code/tornado-chat/myenv/bin/python3.5
# See http://cens.ioc.ee/projects/f2py2e/
from __future__ import division, print_function
import os
import sys
for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
try:
i = sys.argv.index("--" + mode)
del sys.argv[i]
brea... | [
"qiaoqinqie2@gmail.com"
] | qiaoqinqie2@gmail.com | |
f1a7feb1f886aef59e9b483483be8269fefdcccf | df628d5f0e557c7c3382abb341565c6a585905c2 | /app/core/tests/test_models.py | 6f89e9407d9e2a532b67ab6c19d3c66195b56464 | [
"MIT"
] | permissive | YixiangDerekWang/recipe-app-api | 35706840d860febcab3f73b314fa3acd6aa4d6d6 | bd2907b652d5a048c0c385e75a9183079e97e986 | refs/heads/main | 2023-01-22T16:40:58.380695 | 2020-11-30T10:29:27 | 2020-11-30T10:29:27 | 316,218,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
from core import models
def sample_user(email='test@gmail.com', password='testPass'):
"""Create a sample user"""
return get_user_model().objects.create_user(email, password)
class ModelTests(TestCase):
def test_create_user... | [
"hardtogetone@gmail.com"
] | hardtogetone@gmail.com |
d45e6ba6b5519d542eea3fd1a87d706df8a2ed88 | 46ff5fbbf46749f68f5e58abf1ea5980571c7b8a | /nerualnetwork_test.py | ec8ae96d7539cbc16959cd0d70499c491bce515e | [] | no_license | MichaelLee826/TensorFlowTest | e308a34243105e06239d51f7cc277afe3e74ae88 | 915c1c4be86ce059a8b163b529438421aca606bf | refs/heads/master | 2020-04-11T08:03:48.833250 | 2018-12-22T07:57:24 | 2018-12-22T07:57:24 | 161,630,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,262 | py | '''
《TensorFlow入门与实战》 P78
训练神经网络拟合正弦函数的代码示例
'''
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import pylab
# pyplot和pylab都都是matplotlib下的模块
# 绘制标准y = sin(x)曲线
def draw_correct_line():
x = np.arange(0, 2 * np.pi, 0.01)
# 转换为len(x) * 1矩阵
x = x.reshape(len(x), 1)
y = np.sin(x... | [
"michaelleef2008@gmail.com"
] | michaelleef2008@gmail.com |
edf80a45dd6b5332c8aedd6cef75a8d006a7745f | 4e4f1223aecd22e76fb255b4f19d3a6e09816474 | /session-08/task-02/monads.py | dbeddc4ed6371ea8b8b541a91ff3ba02f5888a28 | [] | no_license | se2p/ps-wise-2021-exercises | b2bf3db55b16e52320495efd88eb69fb02948a08 | 4021b242579b372896b6d5620e3321e90a49fa1f | refs/heads/main | 2023-02-24T04:54:59.228232 | 2021-01-28T16:31:40 | 2021-01-28T16:31:40 | 310,404,415 | 5 | 20 | null | 2020-11-26T13:42:22 | 2020-11-05T20:00:18 | Python | UTF-8 | Python | false | false | 1,081 | py |
# The Quarantine class for this example. It works with functions, so unit accepts a function
#
class TFQuarantine:
# UNIT
def __init__(self, func):
"""
Note that here we wrap a function not a value!
"""
self._funcs = [func]
# BIND
def bind(self, func):
"""
... | [
"alessio.gambi@uni-passau.de"
] | alessio.gambi@uni-passau.de |
a6f2e373818b7b5a077cb0c55b267d8e4965c6b0 | a96cbbf8f49e9e6a9013238fc1be389cd2100182 | /myFirstNN/myfirstnn.py | 4e8e2bf0359b8f5198bef109c06442782ce260ce | [] | no_license | AminaRepo/100_Days_of_ML_Code | 1bdb5af3bcd7ad498a8383af5877a82d0b553b6e | 27a9e3f08d56e8f6b8514d9844d57de911079605 | refs/heads/master | 2021-07-05T00:55:49.657063 | 2019-05-03T18:43:44 | 2019-05-03T18:43:44 | 140,079,587 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py |
!pip install -U -q PyDrive
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
from google.colab import auth
from oauth2client.client import GoogleCredentials
auth.authenticate_user()
gauth = GoogleAuth()
gauth.cre... | [
"creativewb@start.creativeWB.net"
] | creativewb@start.creativeWB.net |
6695ef478feea3a1a964d4fc3582a4cbc932eb9d | b0c054b963e113eb3119222d8ccefb65f91be97b | /python机器学习与实践/k近邻分类器之鸢尾花实战.py | 4e04388d95d3174f0df0e6ed85ee628373ae5882 | [] | no_license | NiceCarnival/NiceCarnival.github.io | 47122b86f7156880708c401acd95f4a67e54d8ff | 407aa8bcf9fad7e44c9b492e6296d48088e9f9fb | refs/heads/master | 2020-05-07T13:15:18.733801 | 2019-05-29T08:50:37 | 2019-05-29T08:50:37 | 180,541,775 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | 读取iris数据集细节资料
#导入iris数据加载器
from sklearn.datasets import load_iris
#使用加载器读取数据并存入变量iris
iris = load_iris()
#查验数据规模
iris.data.shape
#查看数据说明。
print(iris.DESCR)
对数据集进行分割
#导入train_test_split用于数据分割
from sklearn.model_selection import train_test_split
#使用train_test_split,利用随机种子random_state采样25%的数据作为测试集
... | [
"noreply@github.com"
] | noreply@github.com |
89e90f4bddf570f38593036a88ff7a6c3e77d0c9 | 98f57d7f1b17a9fe18c74c0a1146476a3c42cc6f | /net/SCLSTM_models.py | eeef78c527e27db11ad79a6ed6adadab9416a33f | [] | no_license | imLingo/SCLSTM | 6d97b4c2aca4e01b0cd0468ccf5ff5c50939d66f | 9382f37132b90acfbc08a5d99a8018e8570fdc3e | refs/heads/master | 2021-02-18T12:58:06.493232 | 2020-03-06T12:08:25 | 2020-03-06T12:08:25 | 245,197,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,174 | py | import torch.nn as nn
import torch
import numpy as np
from torch.autograd import Variable
from net.prune import PruningModule,MaskedLinear
class LSTMcell(PruningModule):
r'LSTM cell'
def __init__(self, input_size, hidden_size, mask = True):
super(LSTMcell, self).__init__()
linear = MaskedLinear... | [
"noreply@github.com"
] | noreply@github.com |
efa0063ff28ab271871790ee1776631fc81c6c8d | 0ada56fd9084f8b1a396b69aeb062e7d007cd15c | /Intro to Programming/Homework/Freia_Lobo_Homework_3.4.py | 81d83ecbd110b1605038a3a57e88f6208647129f | [] | no_license | freialobo/Labs | 8ec3e543868d183c6703d01a3f065cdfa06c64c0 | be7e505939c4dd9c954ad0d1b280022c51cbc984 | refs/heads/master | 2021-01-10T11:07:47.066514 | 2016-03-28T05:30:22 | 2016-03-28T05:30:22 | 54,867,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | #Freia Lobo, fll220@nyu.edu, Homework #3 Problem #3
def calculate_distance():
velocity = int(input ("How fast were you travelling? (in miles/hour) " ))
hours = int (input ("For how long were travelling? (in hours) " ))
distance = velocity*hours
return distance
distance = calculate_distance()
print ("T... | [
"freialisa@mgail.com"
] | freialisa@mgail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.