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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c204c0ca912de6b8876285198e54ba6d72afbf93 | eb93b37c5a76ef09c967ecfd32dc77f0a0e75bef | /article/migrations/0003_auto_20190712_1558.py | 081657f7d7bbbd5e642424535d10296f6309e9ec | [] | no_license | uktrade/data-hub-helpcentre | 9a58d466b264ccdaafea12576039dcf8f2c19015 | 74f741345df3b35164f6d4c1f17bc56c709a4662 | refs/heads/master | 2023-08-16T22:36:14.704989 | 2023-08-15T08:58:10 | 2023-08-15T08:58:10 | 199,607,056 | 4 | 2 | null | 2023-08-15T08:58:12 | 2019-07-30T08:15:54 | CSS | UTF-8 | Python | false | false | 696 | py | # Generated by Django 2.2.3 on 2019-07-12 15:58
import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("article", "0002_auto_20190712_1537"),
]
operations = [
migrations.AlterField... | [
"noreply@github.com"
] | noreply@github.com |
b95f38995e825232bb51644631084ea2e44c0b50 | 0598332a85ca5467992ce636505a7b6faec3699c | /p1/data/grapher.py | f2d3a1476c012737fe92e8c8a7ea86f269635bb4 | [] | no_license | wwang00/cs378h-concurrency | 88ece757193c92e3b813afb81c7489f1e98f1dcd | f503564cebc737cb6082c68137fb36f33a84809e | refs/heads/master | 2023-04-07T12:38:49.298118 | 2020-11-01T04:53:01 | 2020-11-01T04:53:01 | 235,670,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import matplotlib.pyplot as plt
int_10000_s = []
int_10000 = []
with open("10000_ints_we_s.avg", "r") as fin:
int_10000_s = [int(x) for x in fin]
with open("10000_ints_we.avg", "r") as fin:
int_10000 = [int(x) for x in fin]
x = range(0, 34, 2)
plt.xlabel('threads')
plt.ylabel('microseconds')
plt.plot(x, i... | [
"william@William-MacBook.local"
] | william@William-MacBook.local |
f01512677417dde3d5b15fbc93bf2974af09de5f | 8fd6fa2ec841749776ac53df117955bdcf60a261 | /p3_1.py | 9eb1830ec80239bc2fc548b01ad8d6c5b8efe548 | [] | no_license | JonasMouret/simple_neural_network | 1bd4e3f2246e763b34bb24498390c0125abc65fd | 51147d97902914be889c0036db29d3094e76c4ef | refs/heads/master | 2023-06-04T21:25:13.307109 | 2021-06-20T16:57:19 | 2021-06-20T16:57:19 | 378,696,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | import numpy as np
inputs = [1, 2, 3, 2.5]
# weight = [0.2, 0.8, -0.5, 1.0]
# bias = 2
weights = [[0.2, 0.8, -0.5, 1.0],
[0.5, -0.91, 0.26, -0.5],
[-0.26, -0.27, 0.17, 0.87]]
biases = [2, 3, 0.5]
#output = np.dot(weight, inputs) + bias
output = np.dot(weights,inputs) + biases
print(output) | [
"jonas@mouret.org"
] | jonas@mouret.org |
dc4673d69fd16aaf8d484aaeafc3c27cfce279be | 20b35e98aaaab98ad5ae44eeedb25499a03f6180 | /run.py | d2d88158c950d89e1b5ae658fd17e05447d75f78 | [] | no_license | Bandle-XD/test | 1618ab3e1ec3f45cf6efbc46b58f9c14f862c6fc | c5d9174e6a9354f661f7015e65d5a6fb65cb0f76 | refs/heads/master | 2020-07-03T23:45:34.622211 | 2019-11-29T02:19:50 | 2019-11-29T02:19:50 | 202,088,912 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,345 | py | #coding:utf-8
'''
run.py
系统后台文件:flask框架构建
'''
from flask import Flask, redirect, request, render_template, url_for, session
from sqlalchemy import create_engine, Table, MetaData
from sqlalchemy.orm import Session
from pyecharts.charts import Bar
from pyecharts import options as opts
from jinja2 import Markup
# 本地函数... | [
"1796234544@qq.com"
] | 1796234544@qq.com |
17982d888767d5320e2c1a4537729377975778cb | 0d6fcb1f65e59403c6b04a8256ee7a59a8ab5336 | /assignment1/cs231n/classifiers/k_nearest_neighbor.py | e30a6e419c8ffee9378a35ee668952d6aa88a2b3 | [] | no_license | udisch/cs231 | a20cf06fe0bd9235d402db3367b1e9db38281028 | 176669c981f8c6226e200d68b335893e8bb330bf | refs/heads/master | 2021-01-21T23:53:25.999595 | 2018-05-25T09:18:39 | 2018-05-25T09:18:39 | 102,182,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,326 | py | import numpy as np
from past.builtins import xrange
class KNearestNeighbor(object):
""" a kNN classifier with L2 distance """
def __init__(self):
pass
def train(self, X, y):
"""
Train the classifier. For k-nearest neighbors this is just
memorizing the training data.
Inputs:
- X: A nu... | [
"udisch@gmail.com"
] | udisch@gmail.com |
cff09d3d567f89a0f3c4bac9353a2825f0eec77a | 27d9a77f12f2a40793b53a57d496f35d3c4e1c77 | /callbacks.py | 1976c6365870c3da35bd1d6352b9038233e48161 | [] | no_license | afhuertass/steel_kaggle | c6f82a409ffa3143550962976c4018e8942b192f | d5bf62128a1a9a0e8669bd746b9a04606eb4bf39 | refs/heads/master | 2020-07-13T03:24:20.418131 | 2019-10-06T10:15:25 | 2019-10-06T10:15:25 | 204,977,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,114 | py | import numpy as np
import tensorflow as tf
from keras.callbacks import Callback, ModelCheckpoint , EarlyStopping , ReduceLROnPlateau
import os
from math import pi
from math import cos
from math import floor
from keras import backend as K
class SWA(Callback):
def __init__(self, filepath, swa_epoch):
super(SWA... | [
"afhuertass@unal.edu.co"
] | afhuertass@unal.edu.co |
8b62875c8a540fa1a95ad2d01876b78c28b87412 | 2c5bcff0c470c5775e5576814521b1c80c24f139 | /handicap/admin.py | 780286b18bce615e808287948a01ff95bd0b243a | [] | no_license | schoentr/golf-python | b468e52223deda530d56c4f040557b0c7cb8dfd8 | adf5f4d3c7297717224774167ca1a2c77ff7ac3b | refs/heads/master | 2022-12-11T23:29:51.251160 | 2020-11-29T17:34:36 | 2020-11-29T17:34:36 | 252,783,386 | 0 | 0 | null | 2022-09-20T20:42:18 | 2020-04-03T16:24:24 | Python | UTF-8 | Python | false | false | 181 | py | from django.contrib import admin
from .models import Course, Tee, Round
# Register your models here.
admin.site.register(Course)
admin.site.register(Tee)
admin.site.register(Round) | [
"schoentr@gmail.com"
] | schoentr@gmail.com |
1a57ab8b0c15fad89d11c40f3456a3041557fddd | 9962d61f6a4f1bc9c61070e5cdfb15d16a577580 | /test.py | 51da5fd5f3448f69ee3693a12ce49f4c5ca8487e | [
"MIT"
] | permissive | timwuu/AnaPoker | d03171d2082b3053b186a52d5e2f020952d41fb1 | 7cb125c4639a5cd557a6b45c92b5793dcc39def8 | refs/heads/main | 2023-09-01T19:14:10.989765 | 2021-10-04T03:44:54 | 2021-10-04T03:44:54 | 404,658,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | import timeit
import ranks
import calcWinRate as cwr
def pp( a, b, table, k):
result = cwr.calc_win_rate( a, b, table, k)
print( "{} vs {} with {}".format( cwr.card_lst(a), cwr.card_lst(b), cwr.card_lst(table)))
print( "{:2.2%} vs {:2.2%}\n".format(result[0], result[1]))
k= 10000 # simulate k times
#... | [
"timwuu@gmail.com"
] | timwuu@gmail.com |
3281a903d6907dc5d648541d3534ef1b87e2d790 | 8f582e3e7282317037861c62676daa195a856631 | /bin/futurize | 198dfd293f752a746e91e44d2bb2dc2fd021b44c | [] | no_license | koisa/pypdc | 26c899f833b5551dfc82a0b6015c64331d37faa8 | 05e3428bf9fb8026e001db9a68fd4c36828d5b61 | refs/heads/master | 2021-08-31T16:01:24.096918 | 2017-12-21T19:03:12 | 2017-12-21T19:03:12 | 115,059,142 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | #!/Users/koichi/.venvs/pypdc/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from libfuturize.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"koichi@MacAirKS.local"
] | koichi@MacAirKS.local | |
8ae61e48bf4827ea542f8ad3da41ba36f90e55c1 | a90a606ea4b43e8716239f75585dd149e686721b | /Beginner/Malvika_Is_Peculiar_About_Color_Of_Balloons.py | 3c1264b6595e3d909db2b5b45cc083e6a9d6ad49 | [] | no_license | ramanmishra/Code-Chef-Solutions | b79eb16f899e3c1fb7f7c5559c5ef3f360a11d6f | 18158829096149f94e7146ffb8fb9699721f2c26 | refs/heads/master | 2020-04-17T23:37:42.036443 | 2019-02-16T19:54:54 | 2019-02-16T19:54:54 | 167,043,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | t = int(input())
for i in range(t):
s = input()
count_a = s.count('a')
count_b = s.count('b')
print(min(count_a, count_b)) | [
"raman.mishra7@gmail.com"
] | raman.mishra7@gmail.com |
5272cd23752277cc1560b83a7879696d5c876c27 | f7aac490b6bdda8a49a6d14534ef733e2cd34bcc | /Code for 1.10.2018/drawCircleXYMove-wrap.py | c3af761110a39aa3ca365c1e84745d4026d2937b | [] | no_license | nmessa/Stratham-Girls-Coding-Club | 67c203fa88f62f2603b62a0d0fd50135a03f69dc | 1bc786b6c794cc3159ed72be25130f9452fb23f6 | refs/heads/master | 2021-05-06T18:01:14.349667 | 2019-03-12T15:26:57 | 2019-03-12T15:26:57 | 111,935,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | ## Draw Circle
## Author: nmessa
## Draws a circle moving in X and Y direction
## wraps around when it gets to the edge of the screen
from graphics import *
import time
def main():
height = 640
width = 640
radius = 50
#Create a windows to draw in
win = GraphWin('Circle Move XY with wr... | [
"noreply@github.com"
] | noreply@github.com |
59b9ccf75ed7db03589c28cb49f52f7acfcfee1d | b5d493e9ee6572cb15970aa8f3d70953c59c5301 | /EE565/Project3_GarciaJ/codes/prob6c.py | f05d09b0e541bf343adbf462a020621f05baf8e2 | [] | no_license | JorgeAGR/nmsu-course-work | 7c79a18cfedd27b68477a5e12f4c8f3d587ef990 | 6cd204abbc074734fb7e8ca0e693a15e1cbe4ede | refs/heads/master | 2021-05-09T09:46:13.971357 | 2020-06-17T09:58:09 | 2020-06-17T09:58:09 | 119,455,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 27 01:23:11 2019
@author: jorge
"""
import sympy as sym
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.ticker as mtick
height = 10
width = 10
mpl.rcParams['figure.figsize'] = (width, height)
mpl.rcParams['... | [
"jorgeagr97@gmail.com"
] | jorgeagr97@gmail.com |
73f2c0dde7fa284795d91a91d76bba4c78ef7a6f | 4b801b5aafac91dd71b9dc3f9a247efe98dc13f0 | /week3/serializer.py | d455db1ad93ca9f2f7b190f82c2ae1c108b7b58f | [
"MIT"
] | permissive | Langat05/Awards | 19f6a627861b7e54ebef705d804e121957185baa | df8f3f9ca1b7cbae1d88f3a3531a02a81b82186d | refs/heads/master | 2023-01-05T20:20:58.369698 | 2020-10-27T14:05:55 | 2020-10-27T14:05:55 | 306,889,072 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from rest_framework import serializers
from .models import *
class ProjectSerializer(serializers.ModelSerializer):
class Meta:
model = Projects
fields = ['title', 'description', 'image', 'author', 'created_date', 'author_profile', 'link']
class ProfileSerializer(serializers.ModelSerializer):
... | [
"justuslangat78@gmail.com"
] | justuslangat78@gmail.com |
d96629b0b0b25b57587295b24cc612f5dad97807 | 50353ceacf14742bcb33f747ed6b5eddff4de8fd | /PRATICE/input.py | 56a257f834f3cc089e7aed9cb322241c22ef19c5 | [] | no_license | manoznp/LearnPython-Challenge | 0384605bf086f31a46f94c3029e30db9047fd99e | 6c7f603a7c94f9c2724c72f7bf1a241fb7332804 | refs/heads/master | 2020-04-08T23:10:03.703926 | 2018-12-02T10:34:56 | 2018-12-02T10:34:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | # Function definition is here
def printme(str):
print(str)
return
# Now you can call printme function
printme("I'm first call to user defined function!")
printme("Again second call to the same function") | [
"mynameismanozacharya@gmail.com"
] | mynameismanozacharya@gmail.com |
183238dcb7fde836ebdfdadee8b2cea8e695ec66 | f55b2676b4343e14f82cbb2ac4be215171246386 | /kuangwanjing/pow.py | 8b9355dc672a5e82c5ca0e6edb37e41c2f24b9f6 | [] | no_license | lanstonpeng/Squirrel | 03c6980db53cf6aa829a398122a4acc64231a9bc | 6c2a4dbc850d8ca7e2869dc36152d499ecdbd2f2 | refs/heads/master | 2021-01-18T15:16:25.818719 | 2014-09-28T05:25:04 | 2014-09-28T05:25:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | class Solution:
# @param x, a float
# @param n, a integer
# @return a float
def pow(self, x, n):
negative = False
if n < 0:
negative = True
n = -n
y = 1
while True:
t = n % 2
n = n / 2
if t == 1:
... | [
"awaybrave@gmail.com"
] | awaybrave@gmail.com |
b24b20cf33ffad0a04774391ff2dd57ad3eeb41a | 3c6e940608517e4a94fc0cc98d70945748709310 | /example.py | 3d668a93e29fde0f62d4eddf91ccd39285f2ffcc | [] | no_license | ThaaoBlues/python-terminal-line-updater | 818f2eeea5b11c7779a83e62b6c5a5df6856989f | 6dbaa0861142ed7b3220c02dd0348de67f8aba20 | refs/heads/main | 2022-12-30T14:05:52.378174 | 2020-10-23T16:36:34 | 2020-10-23T16:36:34 | 306,691,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | import term_updater as tu
from time import sleep
from string import ascii_lowercase
upterm = tu.term_updater()
upterm.init_updater()
print("========================")
print("letters : ")
print("count :")
print("========================")
upterm.display_terminal()
sleep(1)
for i in range(1,27):
upterm.update_te... | [
"noreply@github.com"
] | noreply@github.com |
93f8b8390257db3fca0c0c847b73890e26207eca | 5c717bee4ba83e2af89b9dba04110f731ca53f13 | /gym_env/deep_mimic_env.py | f39ec374cc4727fb4844afab886d2bb741d8498f | [] | no_license | tomstewart89/deep_mimic | 9c36f4a2310ac17665acf60823a8142bd38daac3 | 3f2d3fec0ca797261824af3f919b5325690e7b11 | refs/heads/master | 2022-06-19T21:02:11.198746 | 2020-05-11T12:33:29 | 2020-05-11T12:33:29 | 261,670,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,840 | py | """
Classic cart-pole system implemented by Rich Sutton et al.
Copied from https://webdocs.cs.ualberta.ca/~sutton/book/code/pole.c
"""
import os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path.dirname(currentdir))
os.sys.path.insert(0, ... | [
"tomstewart3107@gmail.com"
] | tomstewart3107@gmail.com |
1887e868b646b51019e410d351ab2d2264c130dd | 3212c6f74dbe8ca4d8b9963a9b339702177cb21d | /polls/models.py | d756ca34d9ef93ead9529746ad0b90b5379bde4d | [] | no_license | Akhil-CS/my-first-blog | b3a15ced58857697cf4f22e5760566a94df8671a | 8ab9077f5393638af46987a4e270cbb0e15f20e7 | refs/heads/master | 2020-09-29T21:56:33.844049 | 2019-12-25T06:25:21 | 2019-12-25T06:25:21 | 85,802,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | from django.db import models
import datetime
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
def was_published_recently(self):
... | [
"ch.akhilsai97@gmail.com"
] | ch.akhilsai97@gmail.com |
1b7681a9d30cc4916373e1809151b969caa1cfbd | 48af4712d3fa771e1071095d2591d904d89babc3 | /darknet/darknet/build/darknet/x64/darknet_video.py | 46b501ab58b3bda7f97d3e24ae1846b3924ae233 | [] | no_license | mymisou2/ShroomeDex | e41c9de8c727ff3d6a3588a48e2cf902bbd2fa13 | 87108284f43753cf22ebb9b5b80e29f46866205c | refs/heads/master | 2023-02-25T17:33:05.873206 | 2021-01-13T11:07:52 | 2021-01-13T11:07:52 | 328,949,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:3d119d65c013c2783dff5d65fec8fa2f9b3723462e5d62f367a3572aef3f2189
size 5274
| [
"mendlimyri@eisti.eu"
] | mendlimyri@eisti.eu |
4572d023032a6d709dcf12daccc7537bb2a9fb95 | 60ab7e75333918ff544f2a535fdb8cd6d185c318 | /app.py | 504a4e96c51b7d61c55bc73dd40f8283466cd2e8 | [] | no_license | rdranch/authentication | 02b640bbf6e8b4d4c8c952872f358c21322ad70b | 0bea64f8ebf37a299948997e546a4bd8dc828ca4 | refs/heads/main | 2023-08-16T20:57:27.800803 | 2021-09-29T16:29:45 | 2021-09-29T16:29:45 | 336,365,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | # Author: Russell Dranch
# RIT CSEC472 Group 12
# Handles (10)
import socket, json, base64
addr = ""
port = 80
key = "qwerty1234"
def decode(key, enc):
dec = []
enc = base64.urlsafe_b64decode(enc).decode()
for i in range(len(enc)):
key_c = key[i % len(key)]
dec_c = chr((256 + ord(enc[i])... | [
"noreply@github.com"
] | noreply@github.com |
b2b28a96fe3b8e65d34f0ef57de0e797013b889c | b873ea1def0810f67834bf4926901b9a8fead362 | /tuples_and_sets_09_21/students_grades.py | 2d987e90a25cbc6088cc5ead764ea9d1a0c51cd1 | [] | no_license | NikiDimov/SoftUni-Python-Advanced | 20f822614fa0fa7de6ded3956fa8d40d589a4a86 | d6c1fe886a3c27c82f03e5e4a6c670f0905d54e6 | refs/heads/main | 2023-08-23T17:42:32.063057 | 2021-10-25T10:32:03 | 2021-10-25T10:32:03 | 328,750,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | N = int(input())
dict_of_students = {}
for _ in range(N):
student, grade = input().split()
grade = float(grade)
if student not in dict_of_students:
dict_of_students[student] = []
dict_of_students[student].append(grade)
for key, value in dict_of_students.items():
print(f"{key} -> {' '.join([f... | [
"niki.dimov86@gmail.com"
] | niki.dimov86@gmail.com |
21af766adc480ed14c2af9e10adaa51f9b2f81da | ffce2ccd24e8bba8835d163c45b39e61919ebc7b | /test/functional/net.py | 15d19dcee11e568b16a7df03606da924cd8ec96a | [
"MIT"
] | permissive | janko33bd/bitcoin-abc | 9a2e07b67d92d9b0e45b4452a4286625823331b4 | 78defe4b6bc61969dd7ab5256eb8f9f67893a27b | refs/heads/master | 2018-09-21T11:09:09.234833 | 2017-03-09T20:11:36 | 2018-01-16T12:58:46 | 118,245,777 | 0 | 2 | MIT | 2018-07-22T20:08:23 | 2018-01-20T13:33:54 | C++ | UTF-8 | Python | false | false | 3,888 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test RPC calls related to net.
Tests correspond to code in rpc/net.cpp.
"""
import time
from test_framewo... | [
"deadalnix@gmail.com"
] | deadalnix@gmail.com |
5630628da72e6fabab73558152d9df8fbec0a4f0 | 34b16073c76a4fec0ead2603367fbcfd05013898 | /continentalfuzzy/domain/System.py | 2f1c05373acb04de42962036a95f080da9092347 | [] | no_license | rccmodena/ContinentalFuzzyPython | 00958950090351fea5cd299eac8c53ca09c6abc7 | 8b2688dd16a97d75cdc40b680e5cbbd2e247b517 | refs/heads/master | 2023-07-06T18:34:05.344718 | 2021-01-29T14:06:25 | 2021-01-29T14:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,871 | py | """
Developed by Projeto Continentais and Petrobras
author: Rudi César Comiotto Modena
email: rmodena@unisinos.br
date: July, 2020
"""
from typing import Optional, List, Dict
from continentalfuzzy.domain.Rule import Rule
from continentalfuzzy.domain.variable.Input import Input
from continentalfuzzy.domain.variable.Outp... | [
"rudi.modena@gmail.com"
] | rudi.modena@gmail.com |
cb2d30be3e0ca5e56ea9cfe6af4625a84754fb4a | 958276bbc76cf9119a4ff5e56da9e161f79a8567 | /array/leetcode26.py | 9f86791d807eee7c1bfe098bd33c4dc64fddcc5e | [] | no_license | wujunqi/LeetcodeSolution | b3984e0bf65e10204d87ea97dabb6419e9895581 | b0b4a8b1ce628213c176b68c2a91654efde7b14e | refs/heads/master | 2020-03-24T09:59:38.740816 | 2018-07-28T03:55:39 | 2018-07-28T03:55:39 | 142,644,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #coding=utf-8
class Solution:
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
n = len(nums)
if n==0 or n==1:
return n
# nums[0,i]为非重复数列
i = 0
j = i + 1
while j <= n-1:
if nums[j] != n... | [
"junqi1@staff.weibo.com"
] | junqi1@staff.weibo.com |
899cb53efbf654a627e45de51acc62dbd6fa2f33 | 16109c0fa3a7d0faf86a9c680ee2490170492a79 | /python_training/myemployee/myemployee/wsgi.py | 695fe3f02004df5e7ff6c50b0497e574378dbeb2 | [] | no_license | sandhyakopparla/python | 361ea5f0dedcdd2c08d0d16c25f3dd9b42b6c3f2 | b87a9ecce5005e2e43e5b0a2d8aa17d477d2c7a2 | refs/heads/submit | 2023-07-16T01:55:46.120786 | 2021-08-20T04:21:31 | 2021-08-20T04:21:31 | 397,566,663 | 0 | 0 | null | 2021-08-20T04:21:31 | 2021-08-18T10:51:48 | Python | UTF-8 | Python | false | false | 397 | py | """
WSGI config for myemployee project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"sandhyakopparla2413@gmail.com"
] | sandhyakopparla2413@gmail.com |
be5a3ee14e44e3ed0be0ec1f27996d3dff94aaab | fb47e95101efd3b3a40ac73dcf58ed0440dec928 | /Great circle routes.py | 391063dcf9068cdebae3c3ec78b896491ae27204 | [
"MIT"
] | permissive | sundar369/coding | 5a474f471041061b859795b6190793f19a1bcbc1 | d5e99623f055a39604351752d494c1c8817d6d91 | refs/heads/main | 2022-12-19T15:55:11.584832 | 2020-10-21T06:43:27 | 2020-10-21T06:43:27 | 305,928,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | #not optimizal
import sys
import math
latitude = []
longitude = []
def find_float_ratio(angle):
return (angle / 360)
def find_angle_subtended_at_centre(lati, longi, i):
latitude_2 = math.radians (lati[i])
latitude_1 = math.radians (lati[i - 1])
longitude_2 = math.radians (longi[i])
longitude_1 ... | [
"noreply@github.com"
] | noreply@github.com |
c155863b368b8e2f88ddb81ebd4f939db632af3f | 352290344238c1318844a1b05a8f5658f3937492 | /resources/ping-pong-mips32/term/term.py | dc3f1099c6491bbdf873ab8a27bb211b85ce8ab6 | [] | no_license | WHUPRJ/MIPS | 5b666f4a4b603d3f8b9605a3ce3270b3fdb033ae | 642f21cbb5710eb8dfc54d32e32cb442bd652e74 | refs/heads/main | 2023-08-13T14:43:04.433869 | 2021-10-14T14:41:55 | 2021-10-14T14:41:55 | 417,166,081 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,776 | py | #!/usr/bin/env python3
# -*- encoding=utf-8 -*-
import argparse
import math
import os
import platform
import re
import select
import socket
import string
import struct
import subprocess
import sys
import tempfile
from timeit import default_timer as timer
try:
import serial
except:
print("Please install pyseria... | [
"panyuxuan@hotmail.com"
] | panyuxuan@hotmail.com |
8f34977be448781d3450766f17a115d7013d1ca2 | 62024a26c2aafff414541343f58cd0bc559b8a64 | /article/models.py | 723208d2259a9653bad070bf4aa7cf2cdaf03d1e | [] | no_license | chenhongyang0714/myblog | 2fcb53967e5e69e03a6568a19347a2cce745f6e3 | 7119c83622173885d571e5090c26776a52bec322 | refs/heads/master | 2020-12-27T14:52:30.812221 | 2020-02-05T15:15:57 | 2020-02-05T15:15:57 | 237,940,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py | from django.db import models
from django.utils import timezone
from account.models import MyUser
from ckeditor_uploader.fields import RichTextUploadingField
class ArticleTag(models.Model):
'''
每篇文章的分类标签
'''
id = models.AutoField(primary_key=True)
tag = models.CharField('标签', max_length=500)
us... | [
"chenhongyang0714@outlook.com"
] | chenhongyang0714@outlook.com |
5051852714b16afb99554cf4f218fd79a976db92 | 375b51d2795cd7735ac0fd861770e3d483bd467a | /clustering_with_k_means.py | 40dc6b9befd74510ed5c4e786e598030c5e3678c | [] | no_license | moshowsJournal/70daysofMachineLearning | 9622aa79b23528dd033eb2ad19840bdd0ac686ce | ae341ac9adfc0d61b371863b85b9261339d69077 | refs/heads/master | 2022-12-15T02:16:19.284348 | 2020-09-16T04:10:30 | 2020-09-16T04:10:30 | 278,784,718 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import matplotlib.pyplot as plt
from matplotlib import style
style.use('ggplot')
import numpy as np
from sklearn.cluster import KMeans
X = np.array([
[1,2],[1.5,1.8],[5,8],
[8,8],[1,0.6],[9,11]])
#plt.scatter(X[:,0],X[:,1],s=150,linewidth=5)
#plt.show()
clf = KMeans(n_clusters=2)
clf.fit(X)
centroids = clf.... | [
"withyouamalive@gmail.com"
] | withyouamalive@gmail.com |
a35c23f7c9e71b8fed716df8ac9cb0bd61868c9b | f03d41c0ee4d05a6af5eb154fef4c27a2e638e8d | /ontask/tests/test_create_screen_captures.py | 3123acb4faec6ae4fe523c81a834c2d2a4ca58d1 | [
"LGPL-2.0-or-later",
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"LGPL-2.1-only",
"Python-2.0"
] | permissive | abelardopardo/ontask_b | c461f561b0965735c158199e94366d5bf1a8a676 | c432745dfff932cbe7397100422d49df78f0a882 | refs/heads/master | 2023-08-17T03:27:35.900314 | 2023-08-16T07:29:26 | 2023-08-16T07:29:26 | 110,175,024 | 43 | 32 | MIT | 2023-08-15T23:08:20 | 2017-11-09T22:49:43 | Python | UTF-8 | Python | false | false | 31,280 | py | """Create screen captures to include in the documentation."""
import os
from django.conf import settings
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.select import Select
from... | [
"abelardo.pardo@gmail.com"
] | abelardo.pardo@gmail.com |
6735465791531aeeabc1ba1331fb80c55ae2c8f7 | cd4676555fc1066b5a84320ebbb1d4623066380d | /crusoe_observe/flowmon-rest-client/flowmonclient/resources/ads/Filters.py | 3bb92373672eb9ac13be90dde634a9a6f25fedd0 | [
"MIT"
] | permissive | wumingruiye/CRUSOE | 3ca542fa5362caf404593acfc4b01eb8f9b4d5f4 | 73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b | refs/heads/main | 2023-07-01T21:40:09.538245 | 2021-08-05T14:07:03 | 2021-08-05T14:07:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | class Filters:
def __init__(self, client):
self.client = client
def all(self):
resource = "/filters"
return self.client.get(resource)
| [
"spaceks@ics.muni.cz"
] | spaceks@ics.muni.cz |
7cd3504309fdf0796f02c2dec782fbe36a4e761a | f64e39518b2989f7c2fd372b734a878026c85b85 | /Graphics.py | 4dc6be53bd8dc39b6274a4581b9ead0bb53c4d3c | [] | no_license | nkouuu/practica_va2 | 215c5377ca33c0208c31faea11915ce8f8ac2a0f | ba5c2e2e7ba572a06a0fb6a243e43d91fb23ed4f | refs/heads/master | 2020-05-21T16:48:01.195990 | 2019-06-15T15:10:15 | 2019-06-15T15:10:15 | 186,109,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | import matplotlib.pyplot as plt
from sklearn.metrics import confusion_matrix, precision_score, recall_score, f1_score
import numpy as np
import pandas as pd
import seaborn as sn
class Graphics:
def accuracy_graphic(self, accuracy, title):
# Pie chart, where the slices will be ordered and plotted counter-... | [
"diegomen15@gmail.com"
] | diegomen15@gmail.com |
70c5e405bf5a1e38b1214a3ed906f45a785ec12f | 4d15ea922b7b62a8aa2e4527f12fbc2fe58afddc | /Level_2.py | c309fe5189832d9bec7ad89600b6b5d243332cac | [] | no_license | enricmacias/Glooveth | f0f09e752530ba49b0792d63766c134b8d1c663a | 4d913338e5ade30d5351fe8afa3975812e38b454 | refs/heads/master | 2021-01-10T12:37:38.353484 | 2015-12-16T07:12:12 | 2015-12-16T07:12:12 | 48,082,294 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,988 | py | # Project imports
from Level import *
# Level 2
class Level_2(Level):
def __init__(self, background):
Level.__init__(self, background)
#-----------------------------------------------------------------------------------------------------------------------------------------------
#--... | [
"enric_maciaslopez@cyberagent.co.jp"
] | enric_maciaslopez@cyberagent.co.jp |
8f45898f49336b9ca0d3e8ac86db1286a844c6ae | ba3a705ecb3628641793854292aa9a3ff8fc1221 | /10_API/ex1_simple/env/bin/wheel | 56b0575ae06d4be2ebe7e4fa276140b10b77e48c | [] | no_license | mortenhaahr/NGK | d98ada8d63a07ea6447768ab6a23ad1346634b56 | a9e89afb452dd7953cba4403b4e8bc2c0ff2ba1e | refs/heads/master | 2022-07-01T20:39:02.063251 | 2020-05-11T15:40:26 | 2020-05-11T15:40:26 | 242,725,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | #!/home/stud/NGK/10_API/ex1/env/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"you@example.com"
] | you@example.com | |
9cf0013a8dd0dd5d9aa392446358c92270b8a363 | f7f77a96509f20ab224914335ef47351d9119111 | /myweb/urls.py | c741a33bbf9eed936e3c750f4461c53954a338c5 | [] | no_license | Xpy625/myweb | 4a9a27fcd338d892cf2cc5225a6beffc8fea805f | 1011dbce0d9d1bf7d0ae6250c0558c8fccb92ef5 | refs/heads/master | 2020-03-24T03:56:44.705202 | 2018-07-28T07:24:59 | 2018-07-28T07:24:59 | 142,438,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | """Django_Casy URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"1422448009@qq.com"
] | 1422448009@qq.com |
212527332d1831bcad61d2ed0bf34fa921008184 | b622c48c1f59a112e05416aafff2ca77dcd1c763 | /Codeforces.py | 05a5a6418f43e4cd00b30715eaa20d8a53f1ef37 | [] | no_license | joker-22/Donefiles | 56311ea5616bf416637a9a608a4fccc0d7b0d73a | f848bcf03c103cf76a8419861a7fbc78fd97c311 | refs/heads/master | 2020-05-30T14:45:40.026862 | 2019-08-01T15:01:56 | 2019-08-01T15:01:56 | 70,079,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | import requests
from lxml import html
for page in range(1,2) :
url = requests.get('http://codeforces.com/submissions/joker_22/page/'+str(page))
tree = html.fromstring(url.content)
verdict = tree.xpath('//*[@id="pageContent"]/div[4]/div[6]/table/tr[position() > 1]/td[6]/span/span/text()')
contest... | [
"noreply@github.com"
] | noreply@github.com |
d6e677ac1447f8278ddff36b140132e55441832c | 4abd8812b5e13906ef5b93397548e71655e7fde3 | /WebFrame.py | 3c049b2484390aba2807bb3f2fef1e7be2b6f50d | [] | no_license | HMmelody/AID1808 | 6b06f09308c7b3ba7cb80367d4b4a2568bf93691 | c8893e45f5496a5fbcdd1db43f88b0df53290e52 | refs/heads/master | 2020-04-04T18:17:20.444824 | 2018-11-06T03:55:22 | 2018-11-06T03:55:22 | 156,157,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | # coding=utf-8
'''
模拟框架程序部分
'''
from socket import *
from views import *
frame_ip = '127.0.0.1'
frame_port = 8080
frame_address = (frame_ip,frame_port)
# 静态网页位置
STATIC_DIR = './static'
# url决定我们能处理什么数据
urls = [('/time',show_time),('/hello',say_hello),('/bye',say_bye)]
# 应用类,将功能封装在类中
class Application(object):
de... | [
"tarena@tedu.cn"
] | tarena@tedu.cn |
8d931b3b1f9e5dca9a45fff7626e77aaf34a4b43 | fee2f045a5b128b035af1c54febf2487b244604e | /tests/options/test_order.py | 3a2ea5515cc518ad8e159160336e507b74dfaaea | [
"MIT"
] | permissive | ShabbirHasan1/fastbt | 03418154c080b7817cbc35be2b8218056a990e2c | edf2a551209fadfe00aa8f07c430a3d5d35f15a7 | refs/heads/master | 2023-07-30T19:37:19.038372 | 2023-06-12T16:40:26 | 2023-06-12T16:40:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,460 | py | import pytest
from unittest.mock import patch, call
from fastbt.Meta import Broker
from collections import Counter
import pendulum
import yaml
from copy import deepcopy
from fastbt.brokers.zerodha import Zerodha
import warnings
warnings.simplefilter("always")
with warnings.catch_warnings(record=True) as w:
from f... | [
"uberdeveloper001@gmail.com"
] | uberdeveloper001@gmail.com |
cf87d63f1b7cf3d1b2109d02afb96178ab90f758 | 6fa82d2bc8311e23972ecc3f4b053e9588e27b70 | /Day27_Testing.py | 04768e5f312ca4ab57c9092e53832e7852896fe8 | [] | no_license | jmcgee86/HackerRank_30DaysOfCode | 1647bee762e9351b50ca47854b050373fe35a089 | dc0b26bdef48279ef9415a0ff8362c04a0533bba | refs/heads/master | 2018-11-25T16:25:33.201308 | 2018-09-04T21:55:41 | 2018-09-04T21:55:41 | 115,532,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | def minimum_index(seq):
if len(seq) == 0:
raise ValueError("Cannot get the minimum value index from an empty sequence")
min_idx = 0
for i in range(1, len(seq)):
if seq[i] < seq[min_idx]:
min_idx = i
return min_idx
class TestDataEmptyArray(object):
@staticmethod
... | [
"jmcgee86@gmail.com"
] | jmcgee86@gmail.com |
3fb2b2cb9ec1a2718bd91fb9ee318afc55f997c6 | 51d46cf862654d30f5fa0ee35a9243c9661fc0eb | /User_/user_custom/user_custom/wsgi.py | c4912256bea59c34b54c8253916ca4ef2ffa19cc | [] | no_license | LikeLionCBNU/HamDongHo | 6762a8db487ae2807d1ce9d4d2df7e18d67eab70 | 082cea62cf4b5136309cbddc8c09e4e84f25de7c | refs/heads/master | 2022-12-06T22:48:17.500207 | 2020-08-19T14:31:32 | 2020-08-19T14:31:32 | 256,194,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for user_custom 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"ii8858@naver.com"
] | ii8858@naver.com |
4b2bfef652fd76c514a90604296310639ef27aa2 | 77f96d63d8f0d0e6d2f5a6b04ebe84b91caa01be | /Labs/17_decorators/17_02_tags.py | 98026421c7f20449ab07d47bd3cadfbadee7686a | [] | no_license | Darja-p/python-fundamentals-master | cd9b3e8e32cd52ed1cdf70807b42e1ad46232760 | ca34018168a89eac8fbe4aa1e3fcb0cd8221502c | refs/heads/master | 2020-07-10T07:34:30.455621 | 2019-10-06T15:39:38 | 2019-10-06T15:39:38 | 204,206,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | '''
Improve the decorator from the previous exercise by allowing it to take
any specified HTML tag as an input - making it more general.
'''
def decorator_function(arg1):
def wrap(f):
def wrapper(*args):
print(f"{arg1} {f(*args)} {arg1}")
return wrapper
return wrap
@decorator_fun... | [
"puzanovad@email.cz"
] | puzanovad@email.cz |
9be23c8c6b45c06ef83497f4af90254ec3da5063 | f1e28058cea243a1f37e4a8afed1c79dc7def4fc | /main.py | 63fd20246e20912fa01b23416fd3f3f8bc0a485f | [] | no_license | cloudhubs/simple-log-clustering | e2230663217313cd615daddebacc7fddae607c39 | 5fdc68b4b753a79179915fc849ce4794e9ddf455 | refs/heads/master | 2022-12-31T11:33:31.574529 | 2020-10-26T16:28:42 | 2020-10-26T16:28:42 | 307,213,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,563 | py | from src import preprocessor, similarity, signature_extraction
import sys, json
# @description: group and cluster log statements of a given log file. Then, find the variable elements of the logs.
# @param log_filename: path to the log file to read from and cluster
# param separator: character to tokenize log statemen... | [
"jwraffety@gmail.com"
] | jwraffety@gmail.com |
250fe9f59b93ddbd5363fa8e65e99d0fc17f28af | c147876f5e7ad6a0501e8868166d742a139510ea | /emulator/assemble.py | b1dc277b2d08b0eef31fe5e1874c44b6d5a22ca8 | [
"MIT"
] | permissive | ashitani/TD4 | 9e9cfc6d3c33f6c9b9951381e233e07d8a26f794 | 9c5111ccd12d3d7172292e63325997587188c7da | refs/heads/master | 2020-04-01T06:24:48.861969 | 2019-06-10T11:27:26 | 2019-06-10T11:27:26 | 152,946,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | #/usr/bin/env python
# -*- coding: utf-8 -*-
from td4lib import *
import sys
if len(sys.argv)!=2:
print("Usage python %s asm_file" % sys.argv[0])
exit()
file = sys.argv[1]
td4=TD4()
td4.load_asm(file)
td4.dump_rom2() | [
"ashipong@gmail.com"
] | ashipong@gmail.com |
9f1e367d6b7c3e9179b66a13620413868a700d31 | 6fdd0d3cc089fd208cd61ac8d2b35c998ce8ab48 | /pydev/cybecube/database/user.py | 0b31f89db49916d86195c53561fa803170dc0fd4 | [] | no_license | couderhans/cybecube | 7b9f1d2afd866642db1c842e40308cd3c8aec919 | ade08cbd94af60b1254541fa1317f3389f31e091 | refs/heads/master | 2022-12-17T03:08:03.256179 | 2019-02-19T15:53:04 | 2019-02-19T15:53:04 | 161,644,529 | 0 | 0 | null | 2022-12-08T01:35:11 | 2018-12-13T13:39:20 | Python | UTF-8 | Python | false | false | 597 | py | from cybecube.database import engine
from cybecube.database import Base
from cybecube.database import session
from sqlalchemy import Column, Integer, String
class User(Base):
__tablename__ = 'user'
user_id = Column(Integer, primary_key=True)
name = Column(String(250), nullable=False)
def create_table_u... | [
"hans.couder@kapsch.net"
] | hans.couder@kapsch.net |
9a4fac8ea67780acd43b8c2c2ce61deec4b51129 | ba47bb85012779fd2c0ec769ddb109dee63547a0 | /django_a5na/peserta/migrations/0004_auto_20181015_1343.py | a1ac90a7c55b2ab8860ac90aeaa18e1367e2db5d | [] | no_license | asnatuhfah/django_a5na | e013aca96eceee787cf7d70287bdd8517ede7172 | db2412f63b713af1343421b2d944eed99df9f8d8 | refs/heads/master | 2022-12-11T15:13:22.944394 | 2018-10-20T07:42:09 | 2018-10-20T07:42:09 | 153,877,279 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # Generated by Django 2.1.2 on 2018-10-15 05:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('peserta', '0003_auto_20181015_1139'),
]
operations = [
migrations.CreateModel(
name='Pekerjaan',
fields=[
... | [
"asna.tuhfah@gmail.com"
] | asna.tuhfah@gmail.com |
f98ec6b74f00596af6fcf03d9e58cc0dd42de5a5 | 296756045df29db632141dda85034fca35213c92 | /D3_4615_재미있는오셸로게임.py | 23a924a8a5dd7ae3b09b95e5d7b3b37e34338aa0 | [] | no_license | dabini/SWEA | 8b1b321a2126a41f0786e7212eb81ea0204716b6 | 4b61d34a4b089699a5594b4c43781a6f1dd2235e | refs/heads/master | 2022-12-24T02:36:01.169672 | 2020-09-27T11:56:13 | 2020-09-27T11:56:13 | 236,012,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | T = int(input())
for t in range(T):
N, M = map(int, input().split()) # 보드의 한 변의 길이 N과 플레이어가 돌을 놓는 횟수 M
field = [[0]*(N+1) for _ in range(N+1)]
for j in range(N//2, N//2+2): #기본 설정
for i in range(N//2, N//2+2):
if i == j: #색이 1이면 흑돌, 2이면 백돌
field[j][i] = 2
el... | [
"jdb960211@gmail.com"
] | jdb960211@gmail.com |
488cf27956289e16af2bc64b7ce6d04965afbbfb | d83e6b84e585f3659f90dec1e8811cd77e1540eb | /website/main/back_end/modelo/BoneAge_XRay_CNN/lib/parse_images.py | b0378fc6a6dbe8732af9c38caf0d11db1a64b45d | [] | no_license | olman1995/ASC-Proyecto-IS-2018 | 55986a84a72eb52769504009e08001d9ea4b6d0a | 7dc52037cd386124329b1e424fd8c490e9225983 | refs/heads/master | 2023-05-15T11:19:16.785088 | 2018-06-08T19:59:13 | 2018-06-08T19:59:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,916 | py | import numpy as np
import os
from PIL import Image
import glob
import csv
import pickle
def read_images(image_size, train_test_split, gt_columns, image_paths, gt_paths, pickle_dir='', labels=True):
# Some error handling
if len(train_test_split) < 1 or len(train_test_split) > 3:
raise ValueError('train... | [
"olmancp95@gmail.com"
] | olmancp95@gmail.com |
425fec3232c22560f10257179343fe677eb7810a | 94f304cb4c2ac2ad6ff1ee39725f46254c8838bc | /core/info/Ui_script.py | 39b68de152e2eba395e13f524ec2b484d241ef11 | [] | no_license | kmolLin/python3_solve_dynamic | 105bd70edaa5014e0ad76a9a3c66e43dc0fa5ad7 | 18f56e6958dd1816dfb7c26f4857aa3b41de9312 | refs/heads/master | 2021-06-03T10:19:44.551240 | 2016-09-23T13:22:52 | 2016-09-23T13:22:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,391 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/ahshoe/Desktop/Pyslvs/core/info/script.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Info_Dialog(object):
def setupUi(... | [
"smpss91341@gmail.com"
] | smpss91341@gmail.com |
b50e6f219e7b07df2cd70542baa58763a39acdbf | 0b46f768cd4fb65ab89594d832de11c36c60c376 | /GeoDash Python/geodash.py | 084630d7e8a2156e4f84895380738ecbd871e734 | [] | no_license | ganibattlebear/ganis-bad-platformer | 1636c0ae90a4677a8929c7c436b73fba1ce3d735 | eeadf7d875b43f05f091c0ac716f180060887213 | refs/heads/master | 2020-07-08T13:41:03.106856 | 2019-08-23T05:43:47 | 2019-08-23T05:43:47 | 203,691,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,692 | py | """
Platformer Game
"""
import pyglet
import playsound
import arcade
import os
import time
# Constants (alter for your game or delete)
SCREEN_WIDTH = 2048
SCREEN_HEIGHT = 1536
SCREEN_TITLE = "Geometry Dash bootleg"
CHARACTER_SCALING = 1
TILE_SCALING = 1
COIN_SCALING = 1
SPRITE_PIXEL_SIZE = 128
GRID_PIXEL_SIZE = (SPRITE... | [
"noreply@github.com"
] | noreply@github.com |
cf4b8c87b4ba45dbbd40902f0a861e6e06210961 | cf652cb90f9d6b22b5943e7d025af631214a904d | /plugins/keepkey/clientbase.py | 89ac50ec5a5d20df04dfb2034875d401697369c2 | [
"MIT"
] | permissive | ddude1/TestLite | 02919c68013d2ede9195d618d94260b842a5e292 | 3f3c00e4ef03dd9b23b99b02f9a8895da8d65aef | refs/heads/master | 2022-12-11T12:22:25.029101 | 2018-06-13T14:11:51 | 2018-06-13T14:11:51 | 136,489,568 | 0 | 0 | MIT | 2022-09-23T21:47:03 | 2018-06-07T14:31:31 | Python | UTF-8 | Python | false | false | 9,004 | py | import time
from struct import pack
from electrum_xgox.i18n import _
from electrum_xgox.util import PrintError, UserCancelled
from electrum_xgox.keystore import bip39_normalize_passphrase
from electrum_xgox.bitcoin import serialize_xpub
class GuiMixin(object):
# Requires: self.proto, self.device
messages = ... | [
"32743542+ddude1@users.noreply.github.com"
] | 32743542+ddude1@users.noreply.github.com |
276549b49aeeecbe1efd6c4fac16e259df670535 | 0ca29e90b88001532f0883d049c527d89aac2f93 | /publications/migrations/0029_auto_20190415_1128.py | 52c194efbd9966531d314557331cf872dfeabea7 | [] | no_license | edtechhub/metadataset | 3f2ed0f49f46ebe602c065d8d65c1d445abf6554 | 1ef7b5a50c865a538258ca0d50006b8f86fe0830 | refs/heads/master | 2020-12-06T02:57:06.989479 | 2019-12-04T16:37:27 | 2019-12-04T16:37:27 | 232,320,075 | 0 | 0 | null | 2020-01-07T12:28:43 | 2020-01-07T12:28:43 | null | UTF-8 | Python | false | false | 794 | py | # Generated by Django 2.0 on 2019-04-15 11:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('publications', '0028_auto_20190403_1444'),
]
operations = [
migrations.RenameModel(
old_name='Exp... | [
"gorm.shackelford@gmail.com"
] | gorm.shackelford@gmail.com |
0da5effe86cc55549910707f200eec177e25657d | 0e822323071d972c4a2a8b3c4e778a9144b2b5b4 | /databuilder/models/timestamp/timestamp_constants.py | 72b388381ab502e318d1c12dd55b4b973436ff50 | [
"Apache-2.0"
] | permissive | duyet/amundsendatabuilder | f3bed53c93d19bfda5ae7df1bd456214e442012f | 21a763add3c00c34b4f4c2d9809f59e50fb264c8 | refs/heads/master | 2023-04-09T05:08:07.816951 | 2020-07-01T16:34:56 | 2020-07-01T16:34:56 | 277,763,943 | 0 | 0 | Apache-2.0 | 2023-04-03T23:05:59 | 2020-07-07T08:43:44 | null | UTF-8 | Python | false | false | 407 | py | from enum import Enum
NODE_LABEL = 'Timestamp'
TIMESTAMP_PROPERTY = 'timestamp'
TIMESTAMP_NAME_PROPERTY = 'name'
# This is deprecated property as it's not generic for the Timestamp
DEPRECATED_TIMESTAMP_PROPERTY = 'last_updated_timestamp'
LASTUPDATED_RELATION_TYPE = 'LAST_UPDATED_AT'
LASTUPDATED_REVERSE_RELATION_TYP... | [
"noreply@github.com"
] | noreply@github.com |
ec46f3d025b4c8f9a1a28ec7a4e09265e6806c5f | 1b3c73cfd2c183861942d821b5f7b87cfde05687 | /Clustering.py | ebee8512112a8b6ef2bf9157214257ebbb50b688 | [] | no_license | Cheereus/MathModel2020 | d0e77d199701fe752298d3998578be58409c9ce3 | 752811a5550ff3d6ec4dc21f4880986e3fcf08f7 | refs/heads/master | 2023-04-27T15:00:28.332328 | 2021-04-27T02:56:52 | 2021-04-27T02:56:52 | 296,013,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | import numpy as np
from sklearn.cluster import KMeans, AgglomerativeClustering
from sklearn.neighbors import KNeighborsClassifier
from scipy.cluster.hierarchy import dendrogram, linkage, fcluster
import matplotlib.pyplot as plt
def k_means(X, k):
k_m_model = KMeans(n_clusters=k, max_iter=300, n_init=40, init='k-m... | [
"fanwei1995@hotmail.com"
] | fanwei1995@hotmail.com |
e7a5d8a7f4f51417ec6c927055683e0bb193b772 | 19ba163b8e605ba2ed0daaeb4d2d00c8553d9608 | /most_common_words.py | bb83bb64af6365c889d8f487baf3ec56e44f3e68 | [
"MIT"
] | permissive | timlai4/IMDb | 7716cd4bb129d320b64cf070a386f7e6c7ec1083 | 84e74acc063dc42f8bb753c3ccfa9b708afdf931 | refs/heads/master | 2020-12-13T16:19:43.608694 | 2020-02-09T15:21:10 | 2020-02-09T15:21:10 | 206,678,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # Analyze and determine the most common words in the training data set and display their frequencies
import glob
from collections import Counter
#pattern = 'test/*_0.txt' # Testing
pattern = 'aclImdb/train/*/*.txt'
word_counts = {}
filter_words = ['/><br']
for infile in glob.glob(pattern):
with open(infile, 'r'... | [
"noreply@github.com"
] | noreply@github.com |
7e8a9cf63525b4c998201963ffb6ef8de4a9b875 | 597f9fdfdc0bf01ded7669107a8a506f90d4c9f4 | /problems/139_单词拆分.py | 715fed46e8c35e530b8c4196c94642b7cdfae203 | [] | no_license | coolboygym/leetcode-python | ed315ceb2a63d3253d60d67bfafc0d0f27732db8 | 88dd2146a963b25cc5d95384e12305e25578e621 | refs/heads/master | 2020-04-29T03:17:08.957360 | 2019-05-19T16:23:30 | 2019-05-19T16:23:30 | 175,803,045 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | class Solution(object):
def wordBreak(self, s, wordDict):
"""
:type s: str
:type wordDict: List[str]
:rtype: bool
"""
# 完全背包问题
# 朴素递归 包含重复计算 超出时间限制
if not s:
return True
for word in wordDict:
if s.startswith(word):
... | [
"gym2015@qq.com"
] | gym2015@qq.com |
781835639885f3ee4fe27ac5bd7798586a78604a | 3e645bf1945e00e452d488072a3c4f88eea72782 | /run_ensemble.py | 39be1b909b6dbb7074d4034be803cff72d031238 | [] | no_license | torbenator/torbspikes | cee181776368ab198996f35c8502111e53eecb0e | 512e0f5a27bd00cf2090a1b05f20ae781f98b3d9 | refs/heads/master | 2021-01-11T01:16:58.177450 | 2016-11-30T21:19:49 | 2016-11-30T21:19:49 | 70,730,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | import os
import numpy as np
import scipy.io
import bookkeeping, models, big_jobs, utils, plotting
import csv
import time
if __name__ == "__main__":
safe = True
n_wins=None
shrink_X = None
load_dir = '/Users/Torben/Code/torbspikes/instant_elastic_net/'
save_dir = '/Users/Torben/Code/torbspikes/in... | [
"torben.noto@gmail.com"
] | torben.noto@gmail.com |
2a6c318e316341dd6725d0a38581fd1bfab4431b | 236fa996299b8af3758338dc7ce805cd9fc7dce8 | /links/models.py | 5dba19192524b9c64f2961d2217305c23f4dfcfb | [] | no_license | AmbassadorCR/leenks | 3a432b459523f44c7a40ec4e4d855c8bb297b328 | 246bb714d8c3428779ce8b4ee41d4093833fa123 | refs/heads/master | 2021-01-02T09:20:27.012867 | 2013-11-21T09:37:13 | 2013-11-21T09:37:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from django.db import models
class Link(models.Model):
title = models.CharField(max_length=200)
clicks = models.IntegerField(default=0)
| [
"christopher.reade@gmail.com"
] | christopher.reade@gmail.com |
46fd6a5f0bc91694ef6e0e7557893d8a3ab1abc5 | 8452978c509def0533ab3b4f09f7695cd63be81a | /array/leetCode/xor_operation_in_an_array.py | 069d0e5197f80dd01cbdfcf0e51cb2276e2966b1 | [] | no_license | Vivekasr/DSAlgo | ef71b365333bbf869c0b2597348002b072b6dfe8 | 425bb5d85b2493d439fda804deddc6ba2dbac633 | refs/heads/master | 2023-01-23T20:29:15.537932 | 2020-12-08T12:54:12 | 2020-12-08T12:54:12 | 316,925,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | #problem link: https://leetcode.com/problems/xor-operation-in-an-array/
class Solution:
def xorOperation(self, n: int, start: int) -> int:
l = [i for i in range(start,start+2*n-1,2)]
xor = 0
for i in l:
xor = xor^i
return xor
| [
"hie.vivi.sharma@gmail.com"
] | hie.vivi.sharma@gmail.com |
4c85f88f61a9d4aaa7fa84e412685f69efa5c11a | 233974a3ccba7565367560b888a047dce1ef4f81 | /ramen/ramen/urls.py | daf70dcf160bae4a1813c8c2d2856f564dc2061b | [] | no_license | Taka246/ramenblog | 99c6a970646fe8234482cadf684c9b6a741f8ec7 | 3fcd9feb7214b977247b992cd9b2f359ad6b751d | refs/heads/master | 2020-03-23T07:22:28.174933 | 2018-07-17T09:50:47 | 2018-07-17T09:50:47 | 141,267,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | """ramen URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"mac@macnoMacBook-puro.local"
] | mac@macnoMacBook-puro.local |
ac829758e350e1e36b557eb423ece57428798450 | c2019dc49258f059b69a925d02f03705b2022114 | /grasp/__init__.py | 8df53fc22dc10601d3f55244713f1c7756c99464 | [] | no_license | szzend/zstock | 76805ba9bdbfef7db67f0b8e6c81fd759100a5a1 | c75edc3a7368c2197c903004c8b5d949d5e0aaef | refs/heads/master | 2021-04-15T04:29:16.519608 | 2018-05-16T00:23:04 | 2018-05-16T00:23:04 | 126,703,708 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,326 | py | #coding=utf-8
"""
此包用于获取股票数据
公用接口在interface
"""
import time
from requests import Session
from requests.adapters import HTTPAdapter
__all__=[]
stockwords={
'date':'日期', 'tdate':'日期','time':'时间','ticktime':'时间', 'tdatetime':'日期时间','price':'成交价格','trade':'成交价格',
'volume':'成交量(股)','amount':'成交额(元)','pb'... | [
"szzend@qq.com"
] | szzend@qq.com |
0cb81d933774dc9e0be90517485667be494ec8e6 | 29f1e159abae7ad0fa1b53c524e17282f71d3c6e | /djmod/dj_mod/blog/migrations/0001_initial.py | 98e8662534ba41d9ccd96dd101002c80d8d30dbc | [] | no_license | heypablo/Blog- | 96d7c9665006a46bc7c656b1433de3bfe234ac78 | c5eae8151085157a2843ab6f0ab0101193714d3d | refs/heads/master | 2021-01-23T18:31:44.504639 | 2017-09-08T01:20:40 | 2017-09-08T01:20:40 | 102,799,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-29 01:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',... | [
"valdenebroalejandro@gmail.com"
] | valdenebroalejandro@gmail.com |
2f36b828848337fcf134d6a21573977cc238ecc4 | 4ad8a92ec6a8c09e579b84210a435f6eff8386c8 | /python/dgl/distributed/dist_graph.py | 358fc669438d255cc6ee8b8cfebc809595da5318 | [
"Apache-2.0"
] | permissive | Chenlonw/dgl | 680edfe835274a2aff63e7a4e3bda5e41d67caf9 | 0c313e51e6fe3cb135196744a12aa0777fef3c43 | refs/heads/master | 2022-10-08T09:02:43.659974 | 2020-06-11T08:01:05 | 2020-06-11T08:01:05 | 271,506,760 | 1 | 0 | Apache-2.0 | 2020-06-11T09:34:20 | 2020-06-11T09:34:19 | null | UTF-8 | Python | false | false | 20,090 | py | """Define distributed graph."""
from collections.abc import MutableMapping
from ..graph import DGLGraph
from .. import backend as F
from ..base import NID, EID
from .kvstore import KVServer, KVClient
from ..graph_index import from_shared_mem_graph_index
from .._ffi.ndarray import empty_shared_mem
from ..frame import ... | [
"noreply@github.com"
] | noreply@github.com |
58a436d63fbead070dc3fe8c30b2df3e3908c607 | ccfd5f5e62d2deb5e0f9c03d7d5af99492b021f0 | /train_neurodata.py | 5148e0ffd77a2d4c19eb13e9fd12639fa78b5fd9 | [] | no_license | AmazingRoad/project_tf_transplant | 66218f3e97d7c6dcc90e2c9b12b44bc4dff17e16 | c815428f5f24d39c616936094cefd41f90dab74f | refs/heads/master | 2020-08-03T13:16:44.484152 | 2019-11-10T15:07:59 | 2019-11-10T15:07:59 | 211,765,166 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,975 | py | import argparse
import time
import random
from torch.utils.data import DataLoader
from core.data.utils import *
from functools import partial
import os
import torch
from torch import optim
from torch.autograd import Variable
import torch.nn.functional as F
import numpy as np
from core.models.ffn import FFN
from core.da... | [
"AmazingRoad@163.com"
] | AmazingRoad@163.com |
21c56687f092c048fd987093b694fa1b9cdba953 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /110_concurrency_parallelism/_exercises/templates/Mastering Concurrency in Python/Chapter10/example3.py | 22936bfe66daaa8030fb20b3750380ec1e244ec1 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 698 | py | # # ch9/example1.py
#
# ____ ma__ ______ sqrt
# ____ t_i_ ______ d_t_ __ timer
#
# ___ is_prime x
# print('Processing @...' ?
#
# __ ? < 2
# print('@ is not a prime number.' ?
#
# ____ ? __ 2
# print('@ is a prime number.' ?
#
# ____ ? % 2 __ 0
# print('@ is not a prime number... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
f2adac6b08cba4a67e4da5fad5abb9ed22b1ebe1 | eed4e25645c7590a986d9b9c8435b8d052cc913a | /parakeet/transforms/stride_specialization.py | 899c1bad4ea379c053391da24e807222ba0846e6 | [
"BSD-3-Clause"
] | permissive | Tillsten/parakeet | 63afd4bb8d83b64529e81e6c13348fd2e4d10a6f | 5045c3f6c4de19f4acbafeaf2fc9e5c7ff9aa63c | refs/heads/master | 2021-01-18T15:36:16.814995 | 2013-10-02T00:36:23 | 2013-10-02T00:36:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,281 | py | from .. analysis.find_constant_strides import FindConstantStrides, Const, Array, Struct, Tuple
from .. analysis.find_constant_strides import from_python_list, from_internal_repr
from .. syntax.helpers import const_int, const
from dead_code_elim import DCE
from phase import Phase
from simplify import Simplify
from tran... | [
"alex.rubinsteyn@gmail.com"
] | alex.rubinsteyn@gmail.com |
c7061297288ba2ca8cca916355e167026d820c74 | 08dc67e7090890bef09d13d7f6ca7ffdcf0b0f2f | /venv/bin/pip3.8 | 987799c91b513c258a6e342ee966a62bd9626107 | [] | no_license | Offsepht/Python | 8dad6a6b6f60813b739d5e851a399848439ad9aa | 812247a2be7e909a0f8daf0854ba3d333119b85b | refs/heads/master | 2022-11-06T16:12:21.193444 | 2020-07-01T02:32:48 | 2020-07-01T02:32:48 | 256,005,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | 8 | #!/home/h0bbs/Python/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"Offsepht@gmail.com"
] | Offsepht@gmail.com |
ae7077b942ab5e42241680800aad4275df25db21 | b4ac3649f8a96cd784669903b22a543736ed99fa | /test/data/test_clean.py | 96cc401fdc1edada4be64449620fc0b811d5a860 | [] | no_license | jmshoun/stengel | aca962c4b2317d3e10df6288f93480fc0de659f5 | f6ac2d3a3f94cc0a7acb1557d685ac7dc5ff5b42 | refs/heads/master | 2021-03-30T02:17:00.938388 | 2017-05-04T03:49:41 | 2017-05-04T03:49:41 | 86,959,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | import sys
import os
import unittest
parent_directory = os.path.abspath(os.path.join(sys.path[0], os.pardir))
sys.path.insert(0, parent_directory)
import stengel.data.clean as clean
class TestCleanRetrosheet(unittest.TestCase):
def test_missing_file(self):
result = clean.replace_line("BAL999906130", "th... | [
"mark.shoun@gmail.com"
] | mark.shoun@gmail.com |
2b33312b56a7d4766c9449bbd0222d6ed4a3c7a6 | 6c891c6203617c2a05f70c164d99a33a685ec797 | /16_1.py | 1ebc21ca2e79a754c2a8a3871defc85f0f204ccf | [] | no_license | captain-mayhem/adventofcode | d6a6099e542db4b6a0a6d108149c45e71bc13e68 | 89ec057dd372125183e75937d8795f892fb63153 | refs/heads/master | 2020-04-10T14:07:35.222686 | 2019-02-16T08:11:17 | 2019-02-16T08:11:17 | 161,068,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,535 | py | import os
path = os.path.dirname(__file__)
file = open(os.path.join(path,'input_16_1.txt'), 'r')
input = file.readlines()
class VM:
addr = 0
addi = 1
mulr = 2
muli = 3
banr = 4
bani = 5
borr = 6
bori = 7
setr = 8
seti = 9
gtir = 10
gtri = 11
gtrr = 12
eqir = 13
... | [
"captain@captain-online.de"
] | captain@captain-online.de |
335349eab960e401562561524f316f7a8f145d3e | 8ab21f9b2fb6a96f9fd6ef8f06091b68b2ff8611 | /labluz/wsgi.py | 80467c5db8692bb3f7d05278d9ea4b457b4a8014 | [
"MIT"
] | permissive | macndesign/labluz | 8ddcfa71dcaab7083c0ed670d5e007e6e59de0c1 | a6100ae903ab6164d087ef2765c00d81d134a373 | refs/heads/master | 2016-09-09T21:39:55.771160 | 2013-12-16T03:45:02 | 2013-12-16T03:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | """
WSGI config for labluz 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.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "labluz.settings")
from django.core.wsg... | [
"macndesign@gmail.com"
] | macndesign@gmail.com |
60e828ae2e99cb6911492deee536f5ec9007e165 | 7b5d97f8d0d00dfbad7cf52133166b7abdb47f11 | /overthewire/vortex/l0/solve.py | fb2ea6cc6b032fa8012914402d719d33fe3b8969 | [] | no_license | plvhx/any-ctf-writeup | 64b34010ba81b968f52bfb437ff908a4e6821a84 | 286c020a2b7e17d6a3ddc995c9c4f5087f4843df | refs/heads/master | 2021-06-10T22:18:03.294359 | 2016-12-14T14:28:03 | 2016-12-14T14:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | #! /usr/bin/python
import sys
import struct
import socket
import telnetlib
if sys.byteorder == 'little':
Q = lambda x: struct.pack("<I", x)
rQ = lambda x: struct.unpack("<I", x)[0]
elif sys.byteorder == 'big':
Q = lambda x: struct.pack(">I", x)
rQ = lambda x: struct.unpack(">I", x)[0]
try:
s = socket.create_con... | [
"vagrant@precise64.(none)"
] | vagrant@precise64.(none) |
d1b78eb79b28832988b98d14ee37a306bb950620 | a46e44504d1debf220ea01a0eda55f27c4dd17af | /resources/auth.py | 884bdcbb6d4a91fef982051ba66630d0807c91d6 | [] | no_license | ardianfe/flaskwithAuth | 1c07223ef1ee71a0747502a99aa2edef90e0f792 | 53d4a492972f12f27976aa1f4280814b8e470e0d | refs/heads/master | 2022-06-28T02:14:57.527493 | 2020-05-14T04:19:41 | 2020-05-14T04:19:41 | 263,812,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | from flask import Response, request
from flask_jwt_extended import create_access_token
from database.models import User
from flask_restful import Resource
import datetime
class SignupApi(Resource):
def post(self):
body = request.get_json()
user = User(**body)
user.hash_password()
u... | [
"dafeb.rules@gmail.com"
] | dafeb.rules@gmail.com |
43b40b6c2e079a24466352a4c2f20f043de649f0 | 6b76c11a9a32b62ded2031c70b5c572fa1353ae8 | /Test/minpq/test_indexminpq.py | 8f66525978c2ab25fcea1aa6edc135660287dea5 | [] | no_license | EDA2021-2-SEC05-G12/Reto1-final | e41788eae4ff32f503cb8a9b08b72438255ef8b1 | 721d9d82d49022ab9691d0de2c0e289b9e2a7836 | refs/heads/master | 2023-08-23T13:55:05.398583 | 2021-10-07T15:05:44 | 2021-10-07T15:05:44 | 414,612,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | import pytest
import config
from DISClib.ADT import indexminpq as pq
assert config
def greater(key1, entry):
if key1 == entry['key']:
return 0
elif key1 < entry['key']:
return -1
else:
return 1
@pytest.fixture
def iminpq():
iminpq = pq.newIndexMinPQ(greater)
... | [
"a.hernandezo2@uniandes.edu.co"
] | a.hernandezo2@uniandes.edu.co |
2198d0b8580540a7bd3a5e501cd1b341d440899b | 8b5e450a3b64966daed9c340ee93d1c65112d726 | /dogrusalregresyonhazirlik.py | a1b648f8afef6ebb8c85e6cc5bc78d555c69a3e9 | [] | no_license | furkankkbn/Makine-grenmesi-ile-baltic-veriseti-analizi | 290bf405ef650ba6047afa9f3b39ae640dd5aa17 | c1152e9162b54e418877576df1e7b85ace908506 | refs/heads/master | 2023-01-31T12:12:48.507819 | 2020-12-14T17:44:59 | 2020-12-14T17:44:59 | 321,425,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 15 04:18:20 2018
@author: sadievrenseker
"""
#1. kutuphaneler
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#2. Veri Onisleme
#2.1. Veri Yukleme
veriler = pd.read_csv('LLOYDS-BCI.csv')
#pd.read_csv("veriler.csv")
#veri ... | [
"34419769+furkankkbn@users.noreply.github.com"
] | 34419769+furkankkbn@users.noreply.github.com |
cf008304d5ece13b86dbf6527bf76302f2b03546 | 7e72e16f43170749dada023624a88fd622727639 | /jdcloud_sdk/services/monitor/models/SiteMonitorFtpOption.py | 74c06ad00ca3b082dff46c5db43a7d195487c31e | [
"Apache-2.0"
] | permissive | jdcloud-demo/jdcloud-sdk-python | 4dc1e814217df16c5f60f5e4b3f8260b770f9d2b | fddc2af24031c597948b8b8091978ac7e01a2695 | refs/heads/master | 2020-07-11T18:19:59.688112 | 2019-08-23T05:55:18 | 2019-08-23T05:55:18 | 204,613,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | 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 |
eca21cf059a59c063c9ec6d3e231310ee0b805ce | 3ce6db53036de3e35b2502768027f32d51822c1d | /18S2/COMP4920/Assessment/Software project/cs4920project-master/budgetapp/budget/myforms.py | 9e9340820fbde2d5e8d9fbe23fd626427df588ef | [
"Apache-2.0"
] | permissive | Kelly-S-Wang/UNSW-UG-ALL | 602e0ea660c0e2014836128ac94a1f2886cf18b0 | 7947e7c138adbdac7dea56658a74e24f9a9862cc | refs/heads/master | 2022-01-16T11:28:13.689342 | 2019-07-08T06:59:08 | 2019-07-08T06:59:08 | 182,079,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py | from django import forms
from django.core.exceptions import ValidationError
from django.core.validators import RegexValidator
# Validators used to check if fields are valid
default_char = RegexValidator(r'^[A-Za-z0-9]+$', "No special characters. a-z, A-Z, 0-9 only.")
password_test = RegexValidator(r'[a-zA-Z0-9]*[0-9]+... | [
"kellywang7426@gmail.com"
] | kellywang7426@gmail.com |
2edac5422adc1f2668031e16c8b2e76689bfc027 | b9ebb7a809480e4cd7a996bc2e6b12f43a68e311 | /puzzle9_1.py | 034fe2273a672a834842811b69e3e2e34c794076 | [] | no_license | anikar00/AdventCode2018 | 0e9b6aed5f7b2cb939ffa0c8bd28dbbf93e62312 | 2d1d1d2d606616daafd9abb732eab35efc3d9fb1 | refs/heads/master | 2020-04-13T22:23:20.509728 | 2019-01-23T06:56:41 | 2019-01-23T06:56:41 | 163,477,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | numPlayers = 418
lastMarble = 70769
board = [0]
currentIndex = 0
playerTurn = 1
playerScores = {}
for p in range(numPlayers):
playerScores[p + 1] = 0
for i in range(1, lastMarble + 1):
if i % 23 != 0:
currentIndex = (currentIndex + 2) % len(board)
if currentIndex == 0:
currentInde... | [
"anikar00@gmail.com"
] | anikar00@gmail.com |
9a94262a5308425f8bf9da0226d2fa50d17e48c1 | 4894b77303b4fcd303f6103bc1387c99d87381f9 | /award/settings.py | 4d97140f4232351b4aac496d74956181687b1c98 | [
"MIT"
] | permissive | sngina/Award | ff21422839a32fbf5901e25427a33e6737aa15db | 4cdbe0da49cb69819deb4c00011718b087891919 | refs/heads/master | 2023-06-20T09:05:51.513020 | 2021-07-20T08:33:39 | 2021-07-20T08:33:39 | 386,533,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,200 | py | """
Django settings for award project.
Generated by 'django-admin startproject' using Django 1.11.17.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"sngina707@gmail.com"
] | sngina707@gmail.com |
ed5ef4756c1732b1379f4350e9f4016237aabfd3 | 6294dd88027a99f3b9b3cac474b5d51ea2694ba0 | /exception.py | ed3a5b37903b28de5bff81c7b75cda1c72c5ccf8 | [] | no_license | NISH1001/manga-scraper | 10a1b04b505fcc9bb0d94799db7cecc0e4bde0ff | 74878be60f2a6ddb6debb41df3828ae2133b4686 | refs/heads/master | 2020-05-19T20:00:28.741233 | 2015-11-20T11:04:47 | 2015-11-20T11:04:47 | 39,952,455 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | #!/usr/bin/env python3
class MangaError(Exception):
def __init__(self, args):
self.args = args
def display(self):
print(''.join(self.args))
def main():
pass
if __name__=="__main__":
main()
| [
"nish_play1001@yahoo.com"
] | nish_play1001@yahoo.com |
2bfe19ad3456f2acb253244ba217e1fc02e6d729 | 412f2b8133923f1f1d3de7a7afd8a7271ce5207c | /catalog/migrations/0004_delete_reestractive.py | 3b28d4ecdc0530f9a6410a64ed622d1b54e2f6dc | [] | no_license | vetallshh/site-ssgs | 29c02befcb72c932d5f2938a8f84ae319eb07a4a | 81c8670173272a5e095f7e9ead353b0baa2e3d69 | refs/heads/master | 2022-12-23T20:30:54.514856 | 2020-10-01T15:50:14 | 2020-10-01T15:50:14 | 299,574,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # Generated by Django 3.0.6 on 2020-07-22 16:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('catalog', '0003_reestractive'),
]
operations = [
migrations.DeleteModel(
name='ReestrActive',
),
]
| [
"vetall-shh@yandex.ru"
] | vetall-shh@yandex.ru |
b7270f624bcabbd81a8bbca1a9b5b8e5eff51ea5 | ce3942ce06798fd9a8c36e1f08c6136a068a29d8 | /bin/django-admin | 22d1d2cb9901cae41e01b2ef71cbecdf68eeb73f | [
"MIT"
] | permissive | caiocsalvador/whats_the_craic | 6ece08b420018dcf2f2bc7165836b6da8924b525 | c49ef62f1acd7379f6fd90c2b93aa1fa00c8661d | refs/heads/master | 2021-01-17T06:37:40.209781 | 2016-07-19T15:32:23 | 2016-07-19T15:32:23 | 52,631,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | #!/home/caiosalvador/Documentos/Projetos/whats_the_craic/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"caiocsalvador@gmail.com"
] | caiocsalvador@gmail.com | |
13d3f3cb288a1e99a91851e5c8508a12eb69a3cc | a5d87b7ed516046a39219d7d568d11c7ce3c6f22 | /hallo.py | cdb6bb96992a061288e46a1872a3b3c10269ed4e | [] | no_license | syf21/project-git | 44c0c16860749b6fd3a447250ecbd238078e1fa9 | 286ba77ca9f4bbd305af337668f9b39af4593dca | refs/heads/master | 2020-09-02T23:42:57.579971 | 2017-06-15T06:25:32 | 2017-06-15T06:25:32 | 94,406,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | #!/usr/bin/python
print "hallo world"
| [
"ahmadsyaif21@gmail.com"
] | ahmadsyaif21@gmail.com |
c85228a75948ff578b5c54fcb05197b6e9dcb8b6 | 53d12885b3b33d7f6a8491e1e75efe477e7933d3 | /blog/models.py | eddc0d231f7cebd7fc7d7641885b676fca5b2de9 | [] | no_license | dominikawaga/my-first-blog | 553fd00374c46b87c0938a4f84c2942998082b7a | 24733b5cc25d6f3d84c9399a56b271a9f9da67e7 | refs/heads/master | 2021-01-21T14:33:37.707911 | 2017-06-24T16:12:00 | 2017-06-24T16:12:00 | 95,303,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateField(default=timezone.now)
published_date = models.DateTimeField(blank=True, null=True)
de... | [
"piekielniebo@gmail.com"
] | piekielniebo@gmail.com |
afb55d0ea9335268f6512b1f157a7559c02f2df1 | 6768e44c6d0bfc2953545e7573b353912339a757 | /accounts/migrations/0002_auto_20200918_0917.py | c9b04ca81ddeeae5ede99a4273b816b90e8483d2 | [] | no_license | 1984-zen/forum | 75af8a14e0b832f1c494f3658da0d41c43e316f8 | aafd4ae8238167c01d1aed6591abc42c9e7f6a5f | refs/heads/master | 2023-06-06T09:26:48.486442 | 2021-06-21T00:46:51 | 2021-06-21T01:27:26 | 295,986,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 2.2 on 2020-09-18 01:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='users',
name='created_at',
... | [
"1984.apple@gmail.com"
] | 1984.apple@gmail.com |
a3ad6b216ed0482e5f6fee1a3534af44ef59036f | ee86aaaa50de338c7cb36040cd848e5874eed436 | /app.py | 07a2cbe17c78538fb33c24e05c1234ed69280849 | [] | no_license | Dorleusg/sqlalchemy-challenge | 5c73765c543f556afba8c670f05420fe2bb0c904 | 8de074c4a725f942f2725c88521e488be9c8a778 | refs/heads/main | 2023-01-24T18:53:49.122599 | 2020-11-15T02:30:47 | 2020-11-15T02:30:47 | 312,899,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,827 | py | #import dependencies:
import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
#engine setup and database reflection:
engine = create_engine("sqlite:///Resources/hawaii.sqlite")
B... | [
"dorleusg@knights.ucf.edu"
] | dorleusg@knights.ucf.edu |
9db180ea75d82f434c9f9f90048273c7be2b776e | 725de58262e28433f828322b542a78c2908145f8 | /accounts/migrations/0005_remove_employerprofile_employer.py | e34ba2e8442e0cdebd9ba53c6d447f06c89698cf | [] | no_license | ChrisQuestad/VetSourced | 725691ab68d9265c3f6f8d77805a4cff844f36e5 | 7bb9372e9716f05a6d67ede7c66f3e2d5bdaf72b | refs/heads/master | 2021-05-11T16:36:50.220993 | 2018-01-17T02:28:57 | 2018-01-17T02:28:57 | 117,772,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # Generated by Django 2.0 on 2017-12-22 03:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_employerprofile_employer'),
]
operations = [
migrations.RemoveField(
model_name='employerprofile',
name='empl... | [
"chrisqstd@aol.com"
] | chrisqstd@aol.com |
a64dce8868f4ad3ef2e0522fe2d59d636b57fa1b | 4eb2f4a631521507db643e2f23da2eb383100efd | /common/management/commands/run_countries_factory.py | e53e2125ba1f762598419129c05a1939b5082e03 | [] | no_license | rluts/beitris | 744070bd71eb10f4f356d502d3db29b401610383 | 16c9bebb906497b5aafbc6e8a3df2ee4bab9289e | refs/heads/master | 2023-01-20T18:43:27.556943 | 2021-06-05T06:42:13 | 2021-06-05T06:42:13 | 244,229,083 | 0 | 0 | null | 2023-01-05T08:46:20 | 2020-03-01T21:49:24 | Python | UTF-8 | Python | false | false | 1,036 | py | import logging
from django.core.management.base import BaseCommand
from common.factories.factories import CountryFactory
from quiz.models import QuestionType
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
class Command(BaseCommand):
def handle(self, *args, **options):
logger.info("G... | [
"roman.luts@codevog.com"
] | roman.luts@codevog.com |
a2326da09105ddb1897a925eaee91ea776cace7b | f7718bb7d70f4a77bfef8cf009c7f49c756a58d7 | /stat_eval.py | 46c30668a837db7c0aa7ddce64745697ed852db0 | [] | no_license | DSSzymanski/NFL_rating | b6a392147b503ecbae0f92fb6fa4b3d9893e8e7e | 10245d00dacb855930d25c3e3264c3c20d3dd128 | refs/heads/main | 2023-08-25T21:09:15.535626 | 2021-10-03T10:41:17 | 2021-10-03T10:41:17 | 408,662,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,053 | py | """
The stat_eval module is responsible for getting statistics based on the
GAMES_FILE data. Most functions incorporate using the elo_calculator functions
to get prediction data for the different games.
Methods
-------
calc_win_loss() -> none:
function that runs through all the games and adds up each team's wins, ... | [
"dan1993us@yahoo.com"
] | dan1993us@yahoo.com |
04de49278eaf6f1f2094dcab87abafe972f89770 | d441142cca0535c78ecdfc43418d8bcacfd2bcbf | /AI_hardcoded.py | 9b229261531ead9f62b1e171ae84181f30587f3a | [] | no_license | tianbingsheng/Dogfight | b8f28a466593a7e69d7db23db44a19a775086d26 | 6435d389965af470e02fef20dfaaff902c17dbdb | refs/heads/master | 2022-03-02T20:09:36.591693 | 2019-11-14T23:37:59 | 2019-11-14T23:37:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,993 | py | from const import *
from envi import *
import random
class Agent_Hardcoded(object):
def __init__(self, **kwargs):
for key, value in kwargs.items():
setattr(self, key, value)
self.lower = 250
self.upper = 80
def act(self, cur):
def rand01(thres):
retur... | [
"qifan@minerva.kgi.edu"
] | qifan@minerva.kgi.edu |
783a6d5ec461283371ffb3c20300e584a677883f | 59b043a553a16d15d4088b4fc409f88f14ac605d | /src/Algorithm/chapter2_Link/10_removeValue.py | a21f27a72ef6a8bc5c96b50a88f8ddad7f58fb96 | [] | no_license | BingxianChen/Algorithm | bd1596c39349106cebf1492da31d01e60cec7b21 | 96a0bc0972edb1c57eb6c4635099c3f931547df3 | refs/heads/master | 2022-06-22T10:53:58.551237 | 2017-06-26T08:44:19 | 2017-06-26T08:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # coding: utf8
# 在单链表中删除指定值得节点
class Node(object):
def __init__(self,data,_next=None):
self.data = data
self._next = _next
def removeValue(head,num):
while head:
if head.data != num:
break
head = head._next
pre = head
cur = head._next
while cur:
... | [
"15951858526@163.com"
] | 15951858526@163.com |
5fa67e3c79addf96ee5263919d1776f7336caf99 | 64a115072c4ba24bceb549db55d5c527ee1b6d47 | /Labs/Lab 4/Code/final/number.py | d81ed2dd33eb061ee7e32994b77fc2f2185b5285 | [] | no_license | kmanwar89/ISAT252 | 06274758c2647ae8a79b52350213dc99e5b8a6dc | d36272335601dc76d0e432e6c361685645d6d7cd | refs/heads/master | 2021-05-30T20:02:20.175333 | 2016-03-28T15:59:37 | 2016-03-28T15:59:37 | 51,015,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # Purpose: A program that identifies if a number is positive, negative or zero
# Programmer: Kadar Anwar
# Language: Python 3.4
# number.py
# 2/22/2015 - ISAT 252
# Declare and initialize variables and constants
num = 0.0
# Get input from user
num = float(input("Number?: "))
# Identify if number is posit... | [
"kadaranwar07@gmail.com"
] | kadaranwar07@gmail.com |
64f17a0bfcdbd91cc58e063a8bc91a14a806c469 | e37bb7044ab377189c6c90f49791e01f29b83fed | /progbg/graphing/_bargraph.py | 866cfac3973b73f06061179c778ff9f675db3cd4 | [
"MIT"
] | permissive | krhancoc/progbg | f62ede34d31ae138818d06d75dd891b0e4d21969 | f71dbc54d749b8c50a15550d1a554e90cae6c9f6 | refs/heads/master | 2023-07-11T08:48:20.751367 | 2021-05-12T21:10:24 | 2021-05-12T21:10:24 | 294,998,656 | 8 | 1 | MIT | 2021-05-12T20:46:18 | 2020-09-12T18:02:49 | Python | UTF-8 | Python | false | false | 6,820 | py | from typing import List, Dict
from pprint import pformat
from enum import Enum
import pandas as pd
import os
import matplotlib as mpl
import numpy as np
from cycler import cycler, Cycler
from ._util import filter, axis_kwargs
from ._graph import Graph, GraphObject
from ..globals import _sb_executions
from ..util im... | [
"noreply@github.com"
] | noreply@github.com |
bf406604bd6503f9ac9486e71f1d9959d6cf1ebf | 2c560235ad31290913e723b52d3c62f0ef3294bb | /TextEditor/ErrorCheck/Cparser.py | d5227d68722798488767a9c5916f944bb9f4b2fe | [] | no_license | knawrot/TextEditor | 2f8252a3b59fbc20e8645269ed955a188a36a6d1 | df3df14b9fca5e3cf5c3eeac503033b06a86f625 | refs/heads/master | 2021-01-01T19:46:44.396089 | 2015-03-23T10:54:16 | 2015-03-23T10:54:16 | 20,927,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,251 | py | #!/usr/bin/python
from scanner import Scanner
import ply.yacc as yacc
import AST
class Cparser(object):
def __init__(self):
self.scanner = Scanner()
self.scanner.build()
self.error = False
tokens = Scanner.tokens
precedence = (
("nonassoc", 'IF... | [
"michallorens@gmail.com"
] | michallorens@gmail.com |
9bfea434f46b7af2b03f4a50da8fb94fee5966f4 | ca39b21d5c33f265737d387b2afae9746808518d | /rassh/config/postgres_config.py | 3554c96d26cf03d5af7abae8bf16152fa2b36af0 | [
"MIT"
] | permissive | rbricheno/rassh | 4befdbda9e67d6c354a4a28fa527d08269fb12ed | 2a8406965bcbdc06b3e83f92ea449619e1b359aa | refs/heads/master | 2021-09-28T09:34:45.056007 | 2018-11-16T12:46:26 | 2018-11-16T12:46:26 | 110,855,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | from contrary import Contrary
from os import getenv
env_file_path_name = "RASSH_POSTGRES_CONFIG_FILE"
env_secrets_path_name = "RASSH_POSTGRES_SECRETS_FILE"
# Path relative to documentation build root, for sphinx build
or_default_file_path = "../rassh/config/postgres_config.yaml"
or_default_secrets_path = "../rassh/co... | [
"rob@ambrosia.org.uk"
] | rob@ambrosia.org.uk |
c26f7f994819b7324539770cb087a252c1943c2b | c80b4adf289eda985abc89d4a8c65a412d936dba | /ch01/dice_rolling_simulator_D.py | 64a50ee9a55e5cd1e456c7fc64f00aff1116ba8f | [] | no_license | jffalcao/python_by_example | c90d6adf71e1a7d587490f160e175911542f6b4b | 72b303c2b8fc65e7911373c807c6da707a804c77 | refs/heads/master | 2020-06-29T00:06:07.619525 | 2019-08-04T13:04:44 | 2019-08-04T13:04:44 | 200,379,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | from random import randint
def dice_game(player=1, num_of_rolls=100):
dice_dict = {1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0}
total_score = 0
for _roll in range(num_of_rolls):
number_rolled = randint(1,6)
dice_dict[number_rolled] += 1
total_score += number_rolled
lines = '=' * 9
... | [
"jfribeirofalcao@gmail.com"
] | jfribeirofalcao@gmail.com |
03dec845495c4e6e8ad5f341f847f579275bf3a4 | e98e7b3134d15fd99ce665819efc04bdc0413708 | /settings.py | f93760dce13aa7be646038fb05877c5705d704cb | [] | no_license | TrendingTechnology/pitftmanager | f410e6945e37694b3df0c5714080c532908353af | b02acccc0960458141e202bcbe362a0aaf56d9a3 | refs/heads/main | 2023-07-28T09:56:04.084977 | 2021-09-12T23:41:45 | 2021-09-12T23:41:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | import logging
from datetime import datetime
from apps import get_apps
try:
from local_settings import LOGLEVEL
except ImportError:
LOGLEVEL = logging.INFO
try:
from local_settings import FONT
except ImportError:
FONT = "/usr/share/fonts/truetype/dejava/DejaVuSans.ttf"
try:
from local_settings im... | [
"thea@tsbarnes.com"
] | thea@tsbarnes.com |
071a95efb27da3526d668219440537299ee06a8f | cea5d3fd683ae3adc43d50eec8fe56065c9d9f32 | /List.py | 30d9b5385603be917b1b8eb3dd8d476c3cfd890f | [] | no_license | tmvinoth3/Python | 13c3259083c98944006ac056f25e8b5bcccefccf | 1b54a01b8d45f46204f71a43dd26f222cfa5b0e3 | refs/heads/master | 2021-01-20T12:28:24.629731 | 2018-06-26T10:21:46 | 2018-06-26T10:21:46 | 90,368,273 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #code
s = "this is List sequence example".split() #string to list
print(s[2]) #access by index "sequence"
print("Negative index : ",s[-1]) #last element is at -1 index(Negative Index)
print("Positive to Negative Index : ",s[1:-1]) #prints "is" b/w first element(1) and last element(-1)
print("Last element Optional :", s... | [
"575435@cognizant.com"
] | 575435@cognizant.com |
8ed1d3e7a74747061cc55ac765ccbdd85cfa5aa4 | 35e7fb3e9613331b7ec362ad21a2dbec402acc32 | /src/controller_module/monitor_module.py | 717ca8d32bda5852b155c9d97e773b8ac934efab | [
"MIT"
] | permissive | THU-DBLAB/IRBRL | 435a803644a3d4aad85175f0c64c6b1560611a78 | 3b3af68a15eb33ab3aa2d1f6f88fb48a634bedda | refs/heads/master | 2022-05-16T12:21:02.263970 | 2022-04-27T06:03:57 | 2022-04-27T06:03:57 | 224,348,323 | 6 | 1 | MIT | 2021-05-10T11:27:19 | 2019-11-27T05:02:58 | Python | UTF-8 | Python | false | false | 53,213 | py | import ryu
from ryu.base import app_manager
from ryu.ofproto import ofproto_v1_5
# for RYU decorator doing catch Event
from ryu.controller.handler import set_ev_cls
from ryu.controller.handler import HANDSHAKE_DISPATCHER, CONFIG_DISPATCHER, MAIN_DISPATCHER, DEAD_DISPATCHER
from ryu.controller import ofp_event
from ryu.... | [
"yihsun1992@gmail.com"
] | yihsun1992@gmail.com |
a3e10680987d7d4e1b831a1f97228d63a8f49126 | 5ab6adfc1182365cf877699bf8a031538929012a | /backend/api/urls.py | 288cd45c34c048de00ddc3144cac305a751251fa | [] | no_license | juanfmuller/todo-app | caf95d967724457cb5588fe10f9fd90a235bba01 | 4eac255445b440d3ad5637ca081cdd719be2bd2f | refs/heads/main | 2023-08-22T14:43:06.425012 | 2021-10-20T01:04:08 | 2021-10-20T01:04:08 | 415,322,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.apiOverview, name="api-overview"),
path('task-list/', views.taskList, name="task-list"),
path('task-detail/<str:pk>', views.taskDetail, name="task-detail"),
path('task-create/', views.taskCreate, name="task-Create"),
pa... | [
"juanfra500@gmail.com"
] | juanfra500@gmail.com |
77e5eabf67e5c2365f0c36a4d190100385d57853 | 03c3ee2bb72681a6e143a7b4bb06d99f46cc2aae | /src/api/admin.py | 2b3a6b4affbc3426ec4427a10334968fb4f75697 | [] | no_license | kairavkkp/django-rest-framework-practice | 46aaff0e37249b6c67acfc2a707479523ea4a5eb | e6c7d5bf7bfedde72b531fbb041f8f9abe3c3c4d | refs/heads/master | 2023-06-10T09:23:52.997339 | 2021-06-14T18:35:19 | 2021-06-14T18:35:19 | 374,362,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from django.contrib import admin
from api.models import PaymentMethod, KSUser, Game, GameCategory, \
Price, Order, Wishlist, Library
# Register your models here.
admin.site.register(PaymentMethod)
admin.site.register(KSUser)
admin.site.register(Game)
admin.site.register(GameCategory)
admin.site.register(Price)
adm... | [
"kairavpithadia13@gmail.com"
] | kairavpithadia13@gmail.com |
da19059ded06b35acbe7664e0d939a7b2028fcf7 | 38b27d804d1b3de3ff5e9181296a63362ffa5c6c | /data_steward/analytics/tools/visualizations/conformance/visit_id_failure_rate.py | 25cadd6e4d0c6d564c81f07276791c9013d90f02 | [
"MIT"
] | permissive | mark-velez/curation | b556191596e0ab3f000a004f49285861de3f7a73 | a6984c812359a0c6d85d19e51a2af69e36710928 | refs/heads/develop | 2021-09-27T03:45:02.817124 | 2020-09-11T18:09:37 | 2020-09-11T18:09:37 | 95,932,124 | 0 | 0 | MIT | 2018-11-14T22:19:17 | 2017-07-01T00:12:20 | null | UTF-8 | Python | false | false | 8,673 | py | # ---
# jupyter:
# jupytext:
# formats: ipynb,py:light
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.4.2
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# NOTES:
# 1. matplotlib ... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.