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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a292f0646f44750049a15d70ad355287e0aa934b | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /0301-0400/0388-Longest Absolute File Path/0388-Longest Absolute File Path.py | a86a2ef91fb97202c7e1d7bd2e4cdf25e89d83c6 | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 544 | py | class Solution:
def lengthLongestPath(self, input: str) -> int:
lens = [0]
maxLen = 0
for line in input.splitlines():
name = line.lstrip('\t')
level = len(line) - len(name)
if '.' in name:
maxLen = max(maxLen, lens[level] + len(name))
... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
554e9c560c05e8744d177bda39f2ebc0fa78afc4 | 809bb5ff767470177dcc1452a129b36e720a92d8 | /app.py | 7c4d24440d7b9552659d62a38a36278d8cf733cc | [] | no_license | luismorenolopera/GTA-San-Andreas-Cheats | cc3eb65eb07b7d782c4977b385b40be2fcf8c6c3 | 4264fa0af8785df6968f1d2c80f6cb5cd27a84c9 | refs/heads/master | 2020-03-26T22:36:52.671801 | 2018-08-21T02:50:48 | 2018-08-21T02:50:48 | 145,473,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,552 | py | from flask import jsonify, Flask
from flask_cors import CORS
import ctypes
import time
SendInput = ctypes.windll.user32.SendInput
KEYBOARD_LAYOUT = {
'a': 0x1E,
'b': 0x30,
'c': 0x2E,
'd': 0x20,
'e': 0x12,
'f': 0x21,
'g': 0x22,
'h': 0x23,
'i': 0x17,
'j': 0x24,
'k': 0x25,
... | [
"l.david1929@gmail.com"
] | l.david1929@gmail.com |
df5d678d5bb80cd69c6c31ce24c0d9c56aa58f17 | 389db82b0ec1708856a328c5b6a48ac11515da80 | /tests/test_innovation_tracker.py | 056ef9e529fcfdbd653d04dfbb8ee19484bb3fd6 | [
"MIT"
] | permissive | seallard/walker | ba728dce7dcb45e8ee25be0e488ca4cee29e16eb | a2f0cdcba72f3756b80aadcc9e2de20160b567d8 | refs/heads/develop | 2023-02-24T00:29:42.427867 | 2021-01-30T18:20:59 | 2021-01-30T18:20:59 | 280,452,176 | 1 | 0 | MIT | 2020-11-20T10:00:55 | 2020-07-17T14:56:25 | Python | UTF-8 | Python | false | false | 1,905 | py | from neat.genome import Genome
from neat.innovation_tracker import InnovationTracker
from neat.enums.node_types import NodeType
from unittest.mock import Mock
def test_initialisation(standard_config):
tracker = InnovationTracker(standard_config)
assert tracker.node_innovations == {}
assert tracker.link_in... | [
"sebastian@seallard.dev"
] | sebastian@seallard.dev |
fcf75f039f6043a33f23f04dd0cea6d963dd148a | 1d23383666131f26898088b162cb2b5354b29a78 | /Project/www/model/component/employee_operate.py | 2c3fd2240456e10e552309e1226e4190b5565765 | [] | no_license | PhoebeLxx/BDICCOMP3030JG6666 | 38b8439a908d9ad3a03d77e87b317ef3eb36dce4 | acd62c402bc5a7441a86495e5e86241cc5ff5d6c | refs/heads/master | 2020-05-07T22:28:55.115441 | 2019-04-12T02:22:14 | 2019-04-12T02:22:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | from www.model.component.database_basic.whats_your_name import Employee,db
def search_id(id):
return Employee.query.filter_by(id = id).first()
def login(id, password):
emp = search_id(id)
assert(emp is not None),'No such id'
assert(emp.check_password_hash(password)),'Wrong password'
return "Login... | [
"lhy19980302@163.com"
] | lhy19980302@163.com |
6ac71a91aa708c87b3a472cdd872779881393794 | c956106b4cdfb38711406945a9e0014a2536f2f2 | /example/management/grabbers/multi_start.py | 50564a3793a953e0f980d3c66246dd390d7b5c97 | [] | no_license | kyromen/FED | 641f83e90b2b4cfc0a9c882d069fda501d8ec2d0 | 626598db4bf8cc88d318bba657ce62fa47dc1240 | refs/heads/master | 2020-03-27T04:28:31.796315 | 2014-11-12T16:29:34 | 2014-11-12T16:29:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # -*- coding: utf-8 -*-
import multiprocessing as mp
def multi_start(grabber_cls, browser_name='phanomjs', quantity_browsers=None):
grabber = grabber_cls(0, browser_name)
pages = grabber.grab_count_of_pages('future')
grabber.driver.quit()
nCPU = mp.cpu_count()
if quantity_browsers is None:
... | [
"alex.igrychev@gmail.com"
] | alex.igrychev@gmail.com |
4b556bd0fc09b70d3a213a1229ffaa2c3d18a95a | e2898ed9a1ad76dbe092918c0e284ad0f9e47c8e | /Session_2/2-read-angle-sensor-on-A1/code.py | c5a037d387e6cd3a989dbbf4b8549db7160bd0ab | [] | no_license | paulmirel/MICA-EIR-workshop-fall-2020 | a379c468e5be6a32f824864618be24f63639f611 | 38cdc0dc601635e86f774db001ae9a7692ea559f | refs/heads/main | 2023-01-23T09:21:40.536916 | 2020-11-15T21:03:37 | 2020-11-15T21:03:37 | 308,174,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | import time
import board
import analogio
angle_sensor = analogio.AnalogIn(board.A1)
while True:
angle_normalized = round( angle_sensor.value/ 65536, 3) #the value runs from 0 to 65535, which is 2^16, 16 bits
print( angle_normalized )
time.sleep( 0.2 ) | [
"paul.mirel@startmail.com"
] | paul.mirel@startmail.com |
f4b6b3b54722f1bf13e0ee05342a1ed5d29e92b5 | 738234d0787ead3ea2e6c4f284b2971455f36aed | /src/customers/migrations/0001_initial.py | 0cf4fd601c7214bda5f0a49bc9cfe0edbf9cac7d | [] | no_license | Housechowks/python_inventory_management_system | 9d8383e37a1f5b0c26e04925e2b5448a79096e8a | a993a6cc3dd04dde21337c9ba7eeaadbddd444e9 | refs/heads/master | 2023-08-10T11:37:52.897412 | 2021-09-23T06:07:01 | 2021-09-23T06:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | # Generated by Django 3.2.6 on 2021-08-25 19:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='custmer',
fields=[
('id', models.BigAutoFie... | [
"nyamburagachoka10@gmail.com"
] | nyamburagachoka10@gmail.com |
ec1dd7f6d10aabdf5b4535629a198a0f7fcf03ef | 7d0eca00fe04585ab42d6237f3c59e37ef578ea9 | /jair_work_step_four_evaluation/anomalous_roc_auc.py | d43b4e52c32342020e04195b9f6f3d4d1cb42cc3 | [] | no_license | gaohuiru/jair_anomaly_detection | 43d7189161dfc9bdcacb74758901b32c9a171d87 | 35467fac52eec9959c67521d3053bda1fd32b512 | refs/heads/master | 2023-07-31T08:18:13.665671 | 2021-09-10T00:09:54 | 2021-09-10T00:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,841 | py | import sys
sys.path.append("../time_series")
sys.path.append("../anomaly_detection_methods")
import anomaly_detection_methods_helpers as ah
from anomalous_method import anomalous
from time_series import TimeSeries
from os import listdir
from os.path import isfile, join
import joblib
import pandas as pd
import nump... | [
"cynthiaw2004@gmail.com"
] | cynthiaw2004@gmail.com |
10c8b4295839d66871d8a08b1a8e0fc7c5fa0f74 | 23096da6b8963968d4434c86b9c9b74f30e5f7fe | /src/controller/aa_controller.py | 48cdf3560a9f42091f00b4043beb4f73c1d91f4f | [] | no_license | moajo/GitRPG | a846f6bdb5dfc5351c1d9c3a79a097382b768a59 | 25cb83eef33d5b6d219f9ca23b1ec6c9e56b2079 | refs/heads/master | 2021-06-24T15:36:27.548674 | 2017-09-12T17:29:00 | 2017-09-12T17:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | #!/usr/bin/env python
import os
def game_over_aa():
with open(os.path.dirname(os.path.abspath(__file__)) + "/../../ascii_art/game_over.txt", "r") as file:
return file.read()
def level_up_aa():
with open(os.path.dirname(os.path.abspath(__file__)) + "/../../ascii_art/level_up.txt", "r") as file:
... | [
"mimirosiasd@gmail.com"
] | mimirosiasd@gmail.com |
ed4f37ae58ddbf794be73cb6a56f2fab06722fda | ceaa7e3a939f94a460e5b6578e9c1afbd88bb822 | /main/migrations/0018_auto_20201218_1226.py | 42039853c0dd77d265c0cc2ee5e6622731f7a604 | [] | no_license | abdelrhman-adel-ahmed/Enhanced_Blog | 881948224a21e080733f826d6cce75caacb3c4b7 | d234c3061b2f23a38d255e9ad39c57a1040b5bca | refs/heads/master | 2023-07-18T01:03:34.674246 | 2021-08-27T08:17:58 | 2021-08-27T08:17:58 | 322,244,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # Generated by Django 3.1.3 on 2020-12-18 10:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0017_auto_20201217_1622'),
]
operations = [
migrations.AlterField(
model_name='post',
name='featured',
... | [
"abdelrhman.bedo007@gmail.com"
] | abdelrhman.bedo007@gmail.com |
c30fab634121af94fb9e9d5724cb9fed36d15892 | b310bd767af1a6207ad2a8b19a3611fadc545f8d | /static/DB/read_excel.py | 26b231aadcba0466429f236a8e38ebb5e183c923 | [] | no_license | thenam8293/heroku_sm | 87138d69c926ed92b6f2048c0dcfba262e803be4 | eecf3b7539876fa621c58114a22eb87749964773 | refs/heads/master | 2020-03-09T09:10:55.954603 | 2018-04-14T04:55:19 | 2018-04-14T04:55:19 | 128,706,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,894 | py | # -*- coding: utf8 -*-
import pypyodbc
import xlrd
import datetime as dt
import sqlite3
# def sql(query,var=''):
# # connection = pypyodbc.connect('Driver={SQL Server};Server=10.62.24.161\SQLEXPRESS;Database=web_cong_viec_amc;uid=aos;pwd=aos159753')
# # connection = pypyodbc.connect('Driver={SQL Server};Serve... | [
"thenam8292@gmail.com"
] | thenam8292@gmail.com |
eb407744e889320793ada3b0ace22d79e6e08dcb | 4419f60ab3430b4b9f3b5cca45faeb012eff2949 | /Day18/Day18copy.py | b4aeda58ca5c2f0c8bd86f9f5043c47733e0cbf4 | [] | no_license | Bumbi54/Advent2019 | 4be5c8eb5275300911f07860c9b1460bf7b12c8a | 1a9f86b083ebee05d87b1ded3734fe16b7282a6d | refs/heads/master | 2020-09-23T01:18:12.562240 | 2020-02-20T09:09:00 | 2020-02-20T09:09:00 | 225,364,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,394 | py | import time
import operator
from collections import deque
def readInput(fileName):
"""
Read input file and parse it into a string
:param fileName: name of input file
:return: list of input file content (each line is new element)
"""
with open(fileName, 'r') as file:
fileConte... | [
"noreply@github.com"
] | noreply@github.com |
e19a2fdc668d2afa05c73abad92ebda28b69684e | edd28a06e0d212293c64ea0abb2190fca619eb31 | /eval.py | a2fb671d6bf999ab93fe1c4ac1de94253751dc4e | [] | no_license | sagittefrat/Information-Retrieval-competition | e64595237db9b7e64b4438bf78141bd67cc0ab3a | c1394dadb38070adc301462564e4c282232a2f24 | refs/heads/master | 2021-01-01T13:29:42.163977 | 2020-04-09T13:36:47 | 2020-04-09T13:36:47 | 239,299,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
import os
import pandas as pd
import numpy as np
sample_queries=xrange(301,351)
eval_array=np.zeros(shape=(50))
res_file_old=pd.read_csv('res_file_1000', sep=' ', names=['query', 'b1','docno','b2','b3','b4'])
res_file_new=pd.read_csv('new_relevant_docs', sep=' ',names=['query', 'b1','docno',... | [
"noreply@github.com"
] | noreply@github.com |
ec361046d8e8e510b12ba294598302bfab746f10 | ad340bcc17c87e28078846c4630138a1156c86e4 | /p030.py | 11c461679b33698c6c010d098cd44989e4c325ea | [] | no_license | galustian/euler | ea6b685c6f578682c546225cf6e477a904c03d8d | 50ce86369cfb5d8e59388ed973b9e552e4387219 | refs/heads/master | 2020-04-23T03:30:06.767208 | 2019-06-16T15:31:05 | 2019-06-16T15:31:05 | 170,880,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | import time
def increment(number):
if number[-1] != 9:
number[-1] += 1
return
for i in reversed(range(0, len(number))):
if number[i] == 9 and i == 0:
number.append(0)
number[0], number[1:] = 1, [0] * (len(number)-1)
elif number[i] == 9:
numbe... | [
"23199153+galustian@users.noreply.github.com"
] | 23199153+galustian@users.noreply.github.com |
07663a4e8be6728f443ba0d3c83963e1f88260a7 | addc17385b371aea8ad109349cfed34b4c6194a7 | /askisi1.py | ed28ffe7d56fc23610dbbd045f691cfb7bf89e1a | [] | no_license | GeorgeXyp01/Python-Papei | 0387d091df2e589042e426f4ded56e34d4a27ecb | b041fb86cffd0618b4daf2044823e2bf5f09ada7 | refs/heads/master | 2022-03-29T20:07:25.658035 | 2020-01-21T15:01:40 | 2020-01-21T15:01:40 | 234,324,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | f = open("file.txt", "r")
words = f.read().split()
vowels=["a", "e", "u", "o", "i", "y"]
def func(n):
return len(n)
for i in range(len(words)):
str = words[i]
list(str)
for x in str:
if x in vowels:
str = str.replace(x, "")
words[i]="".join(str)
words.sort(r... | [
"noreply@github.com"
] | noreply@github.com |
0a545d6d5673a0f28df670d76f65a70863e87890 | 8c451e438739d741a127342e93727f3bac80b63e | /contributions/HARMONY 2021/test_gen_sedml.py | 49fdc9d82e9772c2f6ac6a3f3baf4415b563de11 | [] | no_license | SED-ML/sedml-test-suite | a5d6c5858e81d615fa0ba7bcaa7d3af90ae55c47 | 853d8cdac8987bdf9b901936c3c8888455602212 | refs/heads/master | 2023-06-14T00:02:58.086947 | 2021-07-07T23:45:57 | 2021-07-07T23:45:57 | 47,284,156 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,424 | py | r"""
####################################################################################################
tellurium 2.2.1
-+++++++++++++++++- Python Environment for Modeling and Simulating Biological Systems
.+++++++++++++++.
.+++++++++++++. Homepage: http://telluri... | [
"lpsmith@uw.edu"
] | lpsmith@uw.edu |
4f607029dc5f2cefac0e8a280a10a98d7d07073f | 73b56f4333de6c63244b4e4e504ae187a520cb4d | /modules/mod_dirlist_v101.py | df302123b416376a1b92939fc0d723bd9cc77c24 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | sjh/automactc | d1e5cc9ac36d9de2a9eda0655af63be51a25c731 | a9726a98fdc001d2a9331311d4a1eb3de4bd5fe1 | refs/heads/master | 2020-05-26T02:00:24.004055 | 2019-05-22T15:51:24 | 2019-05-22T15:51:24 | 188,069,194 | 1 | 0 | null | 2019-05-22T15:47:09 | 2019-05-22T15:47:09 | null | UTF-8 | Python | false | false | 9,094 | py | #!/usr/bin/env python
# IMPORT FUNCTIONS FROM COMMON.FUNCTIONS
from common.functions import stats2
from common.functions import get_codesignatures
from common.functions import read_stream_bplist
from common.functions import multiglob
# IMPORT STATIC VARIABLES FROM MAIN
from __main__ import inputdir
from __main__ impo... | [
"noreply@github.com"
] | noreply@github.com |
88f8a932922b5c3e9e58329fb7b4253de9525866 | a0cc68cc9b80e20e8596ac03ac32db3d7897f950 | /Utilities/Ping.py | a3dc28950d2a2ff3a1c95ce9d18cd82f902fa99e | [] | no_license | Brynkr/CamelBot | 7d0939630ed2c0efe340184fda4fa5a9d6b51a4b | 842ee3ff169ad9e1bde98ce9afadc478b5b35ace | refs/heads/master | 2021-01-20T15:36:59.661255 | 2018-04-12T23:18:42 | 2018-04-12T23:18:42 | 63,467,991 | 4 | 4 | null | 2018-04-06T20:35:45 | 2016-07-16T05:57:42 | Python | UTF-8 | Python | false | false | 489 | py | #checks if a website is online
import discord
import os
import subprocess
async def ping(message, client):
hostname = message.content[5:]
# response = os.system("ping -n 1 " + hostname)
response = subprocess.call(["ping", "-n", "1", hostname], shell=False);
if response == 0:
msg = hostname + ... | [
"Brynkr@gmail.com"
] | Brynkr@gmail.com |
195477ca424eff418c9b7f3bdfde4b34a647dfb4 | e6e4cba12d934f5622ec5d530a2e0b11585ae619 | /scripts/misc.py | d8d7e71eea2dd21f34df009995baf637dc663738 | [
"BSD-3-Clause"
] | permissive | gregsalvesen/bhspinf | 83343bc68b48d2f3b967d83930eca4e24ccd55e2 | 3dc054286e801ca518bc64e4a77fe5ca0bdf04ea | refs/heads/main | 2023-01-08T20:17:16.933565 | 2020-11-19T19:04:36 | 2020-11-19T19:04:36 | 313,707,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | import numpy as np
'''
Miscellaneous functions.
'''
#====================================================================================================
# Collect the command line keyword arguments (nicked from Jordan Mirocha)
def get_cmd_line_kwargs(argv):
# Initialize the dictionary of command line keyword ar... | [
"gregsalvesen@gmail.com"
] | gregsalvesen@gmail.com |
e18b0d3d437476da904df18390cea2ad2363d612 | 2b9397e9e26f7d97ce6983d36c9842ac773b70c6 | /workforce/migrations/0009_auto_20181015_0646.py | c4953694528ecce12900a7fff2ae42803176183d | [] | no_license | eakDev/aip-1 | 288ed7d7b8cf65c74b510f4f4e45292e3342796d | 3db2520e3c246e25e2cfa62e395a3ba6ebe37252 | refs/heads/main | 2023-05-02T08:57:42.449727 | 2021-05-23T10:16:59 | 2021-05-23T10:16:59 | 386,578,482 | 1 | 0 | null | 2021-07-16T09:15:22 | 2021-07-16T09:15:22 | null | UTF-8 | Python | false | false | 509 | py | # Generated by Django 2.1.1 on 2018-10-15 06:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('workforce', '0008_projectsite'),
]
operations = [
migrations.AlterField(
model_name='employeepr... | [
"clyde.khayad@gmail.com"
] | clyde.khayad@gmail.com |
a1d0e502971ecdca7301cb7793a6314c0056fe5f | 219b8dbe9f024055e38b81ec383a2723549759e7 | /vocprez/pyldapi/renderer_container.py | a28a2bf1f2de15fe4c4b932d69dd8347576090f5 | [] | no_license | BritishGeologicalSurvey/VocPrez3 | 9e813d2f412ee5d3d9d12865bced5d6c00de77c2 | 647b8f7edc618c51ef00f9cfc9d727bd0453a2ce | refs/heads/main | 2023-08-23T09:58:28.651424 | 2021-11-08T21:35:57 | 2021-11-08T21:35:57 | 424,207,349 | 0 | 1 | null | 2021-11-03T12:04:58 | 2021-11-03T12:04:57 | null | UTF-8 | Python | false | false | 2,023 | py | from .renderer import Renderer
from .profile import Profile
from .data import RDF_MEDIATYPES
class ContainerRenderer(Renderer):
def __init__(self,
request,
instance_uri,
profiles=None,
default_profile_token="mem",
**kwargs
... | [
"nicholas.car@surroundaustralia.com"
] | nicholas.car@surroundaustralia.com |
adf8d05e846cad76e00b677b7883a4fac3d451a7 | 2c5ce6de8fbdb16b42c4005e3a49fc9450e3e8c3 | /src/sec03/21.py | 8577c926335f0b33dbb377e096a27859757683eb | [] | no_license | takuya0412/100-NLP-knocks | 2ffb549fc8ed4be881e47b6d62e045cff93997c5 | 038f956e1e2f332550ac999aec06cb4f80549b33 | refs/heads/master | 2020-09-21T22:26:28.384105 | 2020-01-14T14:29:30 | 2020-01-14T14:29:30 | 224,954,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | import re
def extract_category_line(path):
with open(path, 'r') as f:
text = f.readline()
all_text = ""
while text:
all_text += text
text = f.readline()
ptn_a = re.compile(r"Category")
| [
"lukefone.story@gmail.com"
] | lukefone.story@gmail.com |
497c4c10fcc4b3f6ac6aa3c3828af57d83cc92b3 | 85b892b5cbf5b51b20c0b0c498857ee26221603e | /poll/migrations/0001_initial.py | b484df089c245b30b71e04429f62be404e3b24f5 | [] | no_license | muhammadahmadazhar/nested_serializer_hardic_patel | aa41affabd749892cbe6fb961eed7d0ee3fae45b | a07a9c6c36a1bc342d20a98373aec88ecf8eb54d | refs/heads/master | 2023-06-01T14:08:20.792660 | 2021-06-22T12:52:47 | 2021-06-22T12:52:47 | 379,268,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,471 | py | # Generated by Django 3.2.4 on 2021-06-18 07:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('cont... | [
"muhammad.ahmad@gmail.com"
] | muhammad.ahmad@gmail.com |
08ea484a417483964f1062a3a74b9ad9c8d66566 | 33a0d93fe4fdc6835a86cc6b3eea5f7596348e8a | /twinkle/migrations/0001_initial.py | 42deb6c82e703a566a5a8baa4c08b2ede3a2cb39 | [] | no_license | VanWade/Starry | 3c8de534f61352ab4df8e27df349bd8ed9c8e1aa | 80f9147bc143bc2a962fb360974c65a4a73f15fa | refs/heads/master | 2020-04-02T05:58:35.612746 | 2016-06-22T09:53:53 | 2016-06-22T09:53:53 | 61,311,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations ... | [
"vanearth@163.com"
] | vanearth@163.com |
18039e8eb5a3683b6140b934c45af8e2c5ba5d72 | 8d06e935b26f8f305055ee52acf040c46676c540 | /components/model_download.py | 306f67f9fdbd196831cd51a9a72cfeed4670f86d | [] | no_license | PascalSchroederDE/kf-sample-pipeline | 58ba7c544e9ed52b369a2752b740dde393854eca | e11239c9ffa887aa329b76b72cf2220b58b83076 | refs/heads/master | 2020-07-19T05:46:34.499039 | 2019-09-11T19:13:23 | 2019-09-11T19:13:23 | 206,385,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | import pandas as pd
import tensorflow as tf
from tensorflow import keras
import argparse
import logging
def write_file(path, content):
f = open(path, "w")
f.write(content)
f.close()
def get_activation_func(shorthand):
return {
"relu": tf.nn,
"softmax": tf.nn.softmax
}[shorthand... | [
"s161904@student.dhbw-mannheim.de"
] | s161904@student.dhbw-mannheim.de |
3d7ccbc3de07a241689ab3b9d7dea466d243fcb4 | f9b4d965b7b0065f8254b27899487fb2125691e5 | /cats_dogs_model_depth.py | 6528ae47ec552d85738dc744b9a3545a862b706f | [] | no_license | zhihanyang2022/cnn-experiments | 22bb545409fcd0933bccbe8fbfbace6cee2ec566 | 0e6b725426922cbebad98bc1a44f7c69971dc432 | refs/heads/master | 2020-04-23T05:26:06.093569 | 2019-03-10T18:24:09 | 2019-03-10T18:24:09 | 170,939,953 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,516 | py | # <codecell>
from keras import models
from keras import layers
from keras import optimizers
from keras.preprocessing.image import ImageDataGenerator
# <codecell>
import os
original_dataset_dir_cat = '/Users/yangzhihan/Desktop/PetImages/cat'
original_dataset_dir_dog = '/Users/yangzhihan/Desktop/PetImages/dog'
base_d... | [
"noreply@github.com"
] | noreply@github.com |
84bb1787d85ee6b5c79f1bc7db24b537c56ebcfa | 1eb43e05ddc74f6fe7d0aeaf2a6637934ae677fb | /snippets/migrations/0001_initial.py | 3d6a1e5cd90819c03cbb37bdab461709d97ba226 | [] | no_license | aaa006bd/djangorestdemo | 1998a1945398a2224c79bf9bf7a6853903f6ee2f | c3d2d61e6afe91419750c4f09bcd365a50f15e57 | refs/heads/master | 2020-03-31T08:38:38.620605 | 2018-10-08T11:14:35 | 2018-10-08T11:14:35 | 152,066,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,276 | py | # Generated by Django 2.1.2 on 2018-10-08 06:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Snippet',
fields=[
('id', models.AutoField(... | [
"aaa006bd@gmail.com"
] | aaa006bd@gmail.com |
028a8b43ea0cc9b026df14de46103f4b9e5f1ec5 | 5f0a89d93ec8f5b9deeec768b0c8fb59def93791 | /pjt/settings.py | e959aa27c12570bef56aad9da25ccf78a578d26f | [] | no_license | airpong/moobytrap | c339beb0ddc9bbdf72e7fd25f92b63f8537fad02 | d621374712fab5b1f3e15ef684baaebbdab36f68 | refs/heads/master | 2022-12-11T08:32:10.876259 | 2019-06-27T08:21:29 | 2019-06-27T08:21:29 | 194,054,043 | 0 | 0 | null | 2022-12-08T05:17:26 | 2019-06-27T08:22:58 | HTML | UTF-8 | Python | false | false | 3,556 | py | """
Django settings for pjt project.
Generated by 'django-admin startproject' using Django 2.1.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bui... | [
"hcu418@gmail.com"
] | hcu418@gmail.com |
8c2dda69a73d2b99c961cae0afbe05e88d8dff0a | e22807c554060f78d9333634ac9785687e38d794 | /get-commit-gitname/getGitName.py | 0a78dc249db8f08f853c1d24bfd30a7d789032cf | [
"Apache-2.0"
] | permissive | firebird519/python | bfb74766977d042d825d7afc3db2d7db7ba8b6b4 | d61b0d4e7c9d7fa36cd6d6bdd7e82c7e5de5fed1 | refs/heads/master | 2021-07-18T11:15:47.518327 | 2017-10-20T03:17:20 | 2017-10-20T03:17:20 | 107,625,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,043 | py | #!/usr/bin/env python
# pythond version: 2.7.10
import os
import sys,urllib,string,re
import urllib2
import webbrowser
DEBUG = 1
URL_COMMIT_DETAILS_PRE = 'http://review.sonyericsson.net/changes/'
URL_END = 'detail?O=404'
GIT_NAME_KEY = 'project'
#browserCookie.py is necessary for this import.
try:
from browserCo... | [
"liyong.wu.x@gmail.com"
] | liyong.wu.x@gmail.com |
ba426015d2b9fb7fd0c09c03f4b14631d1f0c9fa | 8debe4980eb8cbf9ca2db8c38f4ffe594741af30 | /build/ROS-Academy-for-Beginners/tf_demo/catkin_generated/pkg.installspace.context.pc.py | 0b8e25b0f071410ed37dec39bcf624162a615a72 | [] | no_license | wisecube-cn/catkin_ws | ed2c411039b717bef7cd9d8d9394746fe5c44560 | f5b1c792de81f8fcbac582de5a776769501b4f40 | refs/heads/master | 2020-03-28T10:53:13.010085 | 2018-09-10T13:00:01 | 2018-09-10T13:00:01 | 148,155,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "tf_demo"
PROJECT_SPACE_DIR = "/root/c... | [
"2428350606@qq.com"
] | 2428350606@qq.com |
3e4e138bff4e7f4cc11b96018d88814ab0abc472 | 3ed3eea7f7990fe2e0fbc62ea0e9d22d6b362e27 | /simple-transfer.py | 8b97f7a2a01be3c73c4744aadd0928db9e270fd2 | [] | no_license | univ-ai/TransferLearning-ai1-fall2019 | 1bb93ab27bba2e348fc757d20db7e0ee12fda9d5 | d5a6317aa30eff3f98b288ab2dae272ad4f5852e | refs/heads/master | 2020-08-03T02:29:17.743266 | 2020-01-23T10:42:06 | 2020-01-23T10:42:06 | 211,597,858 | 1 | 36 | null | null | null | null | UTF-8 | Python | false | false | 2,011 | py | import os
import sys
import glob
import argparse
from keras import __version__
from keras.applications.vgg16 import VGG16, preprocess_input
from keras.models import Sequential
from keras.layers import Dense, Flatten
from myimage import ImageDataGenerator
from keras.optimizers import SGD, RMSprop
from dogcat_data impor... | [
"rahuldave@gmail.com"
] | rahuldave@gmail.com |
2164f1bf87f10973960f9fd7b6d9ba2cdcc3cdf6 | 3a4ede640e0fe40eb92618eaf4523298ba57c526 | /wlcsim/mc/sphere_insertion.py | c0aa743f387dc8e74d2640c07a400a07ec1c8f1f | [
"MIT"
] | permissive | riscalab/wlcsim | ae716ca0421e55ff7dc39ced823a2ff0ac1f5633 | 64236a7c9a378f1d70126ada6c8b18c2fa936c24 | refs/heads/master | 2023-05-26T03:34:59.449278 | 2023-05-13T21:41:18 | 2023-05-13T21:41:18 | 211,365,885 | 1 | 0 | null | 2019-09-27T17:04:14 | 2019-09-27T17:04:14 | null | UTF-8 | Python | false | false | 11,199 | py | """Monte Carlo of inserting stuff inside of a sphere."""
from enum import Enum
from numba import jit
import numpy as np
import math
from .. import plot as wplot
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import seaborn as sns
SMALL_NUM = 10e-8
# @jit(nopython=True)
def is_inside(x, xr, r)... | [
"brunobeltran0@gmail.com"
] | brunobeltran0@gmail.com |
0b4ada6ee9bc3a49589ff4a8dc8621b475fb3800 | 822c566d3fe100f216284276d94341527a4af7a1 | /class_based/spin/spin/asgi.py | bb331524cd68a94bd0362c3e57157d55b83b6cd6 | [] | no_license | ybgirgin3/spin | 9f96016f17a6e77faa147bff47733b70da16014d | 94afbcf62714d1f6c3b89c661390740fedb3c9ac | refs/heads/main | 2023-06-10T17:48:45.538831 | 2021-06-23T17:15:16 | 2021-06-23T17:15:16 | 377,943,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for spin project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"ybgirgin3@gmail.com"
] | ybgirgin3@gmail.com |
0bdeece5a1628bcf49cf96dcab8289c3b2f0a78d | 7d6000cc4d3a45c6fd3dd39c6a5cc05a72a78a93 | /app/recipe/serializers.py | 73f905c00b62d96586c15c3a36a669ac5e4eca01 | [
"MIT"
] | permissive | samims/recipe-app-api | 9b5a5d25a584693e15639ef192339d551baf1e9f | 7ff800e0548bae779ab0ee225e9aa2e2159e4043 | refs/heads/master | 2020-04-27T00:25:36.231859 | 2019-05-23T10:09:50 | 2019-05-23T10:09:50 | 173,933,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | from rest_framework import serializers
from core.models import Tag, Ingredient, Recipe
class TagSerializer(serializers.ModelSerializer):
"""Serializer for tag objects"""
class Meta:
model = Tag
fields = ("id", "name")
read_only_fields = ("id",)
class IngredientSerializer(serializers... | [
""
] | |
94091a71b984024c36aea8b4130b273ec817a02f | 2504dafe6e53be0c2e4c6deffa7eb82b9ec139de | /one.py | 79507c1e4827e04fa1911d085dae54db71cb4213 | [
"MIT"
] | permissive | dollarkillerx/PyTorchStudy | 62d6b2d01daa2643ec3a9ddb5fe002432ab51175 | c17b2973c89e3a2f088513f29bd5eb6f47957585 | refs/heads/master | 2020-11-28T23:06:37.281519 | 2019-12-24T14:06:49 | 2019-12-24T14:06:49 | 229,944,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | import torch
# 定义向量
vectro = torch.tensor([1,2,3,4])
print("Vector:\t\t",vectro)
print('Vector: Shape:\t',vectro.shape)
# 定义矩阵
matrix = torch.tensor([[1,2],[3,4]])
print('Matrix:\n',matrix)
print('Matrix Shape:\n',matrix.shape)
# 定义张量
tensor = torch.tensor([ [ [1,2],[3,4] ], [ [5,6],[7,8] ] ])
print('Tensor:\n',ten... | [
"adapawang@gmail.com"
] | adapawang@gmail.com |
bea96b1088510cef4846179cadb65027bb97bb9d | b415828936d047ca1fca77bcb488ee1bb56bdb29 | /backend/tweet/migrations/0003_auto_20210128_2115.py | 3f4306089058adbec0eaa6352edfe228fc38f9ee | [] | no_license | Smerlinski/twitterlike | d482d88c1a595da12f25818c3166be99ae378286 | 98c63182e3eb542bbb4123b411a15095b6f12a2d | refs/heads/main | 2023-02-23T18:36:12.921841 | 2021-02-01T09:49:02 | 2021-02-01T09:49:02 | 333,707,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # Generated by Django 2.2.17 on 2021-01-28 20:15
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('tweet', '0002_commentlike_tweetlike'),
]
operat... | [
"smerlinski.szymon@gmail.com"
] | smerlinski.szymon@gmail.com |
8a0848652a216c54c6483dd93481724a0b600cde | 1d70bed8b3e7314cac8a1b5cb8e20a98924d0746 | /gdp and stock predicton/modules.py | 6d2685b1da0a102bf5bcb75c678ec0dfd2a0d57a | [] | no_license | bateikoEd/dipl_program | 02d46f2342d2814ed58181f38f9a781effeedd05 | 0b885c436cda096c80fe2b445337dc7e0bf16ba0 | refs/heads/main | 2023-07-24T05:42:05.509338 | 2021-09-06T06:36:18 | 2021-09-06T06:36:18 | 344,238,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,647 | py | import pandas as pd
from sklearn.model_selection import StratifiedKFold, KFold
from sklearn.model_selection import cross_val_score
import numpy as np
from sklearn.metrics import r2_score
# from sklearn.metrics import mean_absolute_percentage_error
from statsmodels.stats.stattools import durbin_watson
from sklearn.metri... | [
"bateiko0713@gmail.com"
] | bateiko0713@gmail.com |
a780c71aa45f05efbbf6ac177b608b0cc54997b7 | 71d3e539e3ba8ab06d61bfb3683414a129a4d744 | /detecting_objects/image_evaluator/src/image_evaluator.py | 76b3bf77e4ab4ce278f0921170cf311b8441bb6f | [] | no_license | browlm13/Basketball-Shot-Detection | b0dfbc0de3129917697b077a59f5519a7faecc57 | 8ea4e35effdf2c6f02d2d275cd3d48d9da218608 | refs/heads/master | 2021-10-27T21:10:11.241146 | 2019-04-19T18:50:57 | 2019-04-19T18:50:57 | 105,725,060 | 83 | 16 | null | null | null | null | UTF-8 | Python | false | false | 20,400 | py | #python3
"""
Image Evaluator Class
img_eval = Image_Evaluator()
# Loading Models - Todo: store in file so only model name has to be used
BASKETBALL_MODEL = {'name' : 'basketball_model', 'paths' : {'frozen graph': PATH_TO_FROZEN_GRAPH, 'labels' : PATH_TO_LABELS}}
PERSON_MODEL = {'name' : 'person_model', 'pat... | [
"noreply@github.com"
] | noreply@github.com |
8600dbd21a69fe6b9edddacacffc291ea8b22f46 | 9cde8c1e9e176f5092769d4628cc54179a0f5a56 | /attention_layer.py | d554c3b57b6c76474390322fdb4c6aa5c88787b5 | [] | no_license | Nangal/ieee-dsmp-2018-paper | ba260c1f0a8a32fe6ed4d588ae568c9485b31fcb | 7e80d64a42cd53bfc930b48c331778c759360f36 | refs/heads/master | 2022-03-31T01:25:58.472858 | 2020-01-26T16:44:46 | 2020-01-26T16:44:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,347 | py | from keras import backend as K
from keras import initializers, regularizers, constraints
from keras.engine.topology import Layer
def dot_product(x, kernel):
"""
Wrapper for dot product operation, in order to be compatible with both
Theano and Tensorflow
Args:
x (): input
kernel (): wei... | [
"vlyubin@gmail.com"
] | vlyubin@gmail.com |
64c237350048f255b969f59f6775e14437e598ff | 418b79623b277a76fa0450cb9156a2ac2fe0ee46 | /azinvoice-xtract/azinvoice_xtract.py | 2163c7fa4efce2c88397a69c17a954b875d1fb6c | [
"MIT"
] | permissive | digidrills/inference-models | 31cccf1f56c53fc340c957d44499f352bc7fb43c | 9b8d751374f06b02f1a2dada3288bc3c86df9b1c | refs/heads/main | 2023-09-06T04:49:15.674897 | 2021-11-11T08:28:38 | 2021-11-11T08:29:01 | 405,635,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,535 | py | import json
def xtract_one_azinvoice(srcname:str, azformJson:dict, inclBox:bool, inclFields:bool) -> dict:
xtract_flds = dict()
xtract_flds.update({'srcname': srcname, 'status': azform_json.get('status'), 'pages': list(), 'boxes': list(), 'fields': list()})
if inclBox and 'readResults' in azform_json.get(... | [
"sranjit@sarci.in"
] | sranjit@sarci.in |
8d3a150e92b97edc73a1af8bcfa9566c2296219c | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/.install/.backup/lib/surface/pubsub/subscriptions/seek.py | 718094747211caab81d5b553f97be853d2cb982b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 3,886 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"toork@uw.edu"
] | toork@uw.edu |
fb623d563352d34f93d25db2280e97e0f3f9054a | 1fedce4c4d703711422f7303b56dce184c7db40b | /pset6/greedy/greedy.py | 336aa056a77e015b5ef9fcad417ff59e5fc28fc8 | [
"MIT"
] | permissive | 2series/Introduction-To-Computer-Science | 76e5325cf1f6b6b55ec3e3d60335e271b9d9b866 | 74d3000ae95cd8b4773e35a55bcbaa5cd15bcf05 | refs/heads/master | 2021-06-17T17:18:53.827098 | 2019-05-10T10:26:46 | 2019-05-10T10:26:46 | 185,957,686 | 0 | 0 | MIT | 2021-03-20T01:17:51 | 2019-05-10T09:14:34 | C | UTF-8 | Python | false | false | 966 | py | def get_float(s):
try:
f = float(input(s))
except:
f = get_float("Try again: ")
finally:
return f
def mult(amt, denom):
temp = amt - (amt % denom)
return temp // denom
change = round(get_float("O hai! How much change is owed?\n"), 2)
while change < 0:
change = round(get... | [
"rihadv021@gmail.com"
] | rihadv021@gmail.com |
93ce085eb9a71c2da29d7c2bf4213cd57b201d5a | 12a787bae1a844240c039ce5622435dbe6efd7c9 | /cs_merge_msgs/src/cs_merge_msgs/srv/__init__.py | 4fbf9118d6c4e63e1a58ae749607bc08532f2765 | [
"MIT"
] | permissive | Roboterbastler/cs_merge | b1d7ac2754fc2ef850ec3a8dba5e0934a1f0f139 | 3fbfd135fe2716038407d10b8c97aaa7977336ad | refs/heads/master | 2021-01-12T10:50:10.060393 | 2015-09-15T22:35:20 | 2015-09-15T22:35:20 | 72,725,750 | 0 | 0 | null | 2016-11-03T08:49:11 | 2016-11-03T08:49:11 | null | UTF-8 | Python | false | false | 54 | py | from ._getWorld import *
from ._getTransform import *
| [
"christian.scheiderer@gmail.com"
] | christian.scheiderer@gmail.com |
226baf22346933643c546aa6960a462584a4b071 | be793793d47b9687624da10e579dc923f4513aa0 | /bin/gunicorn | 5e11605cfd7af202235d465266eea369bca5833a | [] | no_license | keyurparalkar/tikonaBot | d5d8ecae64e26afefee7e13e8cbbedd4aa2f01d6 | b36c7063d708563e749216b8e8dd86459998d7e2 | refs/heads/master | 2022-12-12T13:26:46.502055 | 2017-10-19T10:41:13 | 2017-10-19T10:41:13 | 97,124,387 | 0 | 1 | null | 2022-07-06T19:16:54 | 2017-07-13T13:15:51 | Python | UTF-8 | Python | false | false | 261 | #!/home/keyur/Documents/tikonaProject/tikonaBot/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"keur.plkar@gmail.com"
] | keur.plkar@gmail.com | |
59b8e49af01222c497d6f39607db2bb3f9786223 | a99b618dd60ba9c978183c9f46b3e300be2d42b8 | /flaskblog/run.py | 5230fa0caba0971a1acc64f5bb4e42954df322a5 | [] | no_license | mysterier/flask-blog | bd422207cc15c193d8ab4320e4d8f8276de4da54 | 284e4086cf57a16635ff393c0f21699ceec76ba5 | refs/heads/master | 2021-01-18T16:17:34.307693 | 2014-05-01T12:00:43 | 2014-05-01T12:00:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from app import app
from flaskext.markdown import Markdown
if __name__ == '__main__':
Markdown(app)
app.debug = True
app.run() | [
"ecstorm@gmail.com"
] | ecstorm@gmail.com |
c95422cc0fd19646f3dba767a1d44ec273e65de7 | 4bf1f4e11cdf660ea4028af6d2bb02320903d393 | /Constants.py | 732630559e92c3bc4016ca02020ea560b8fb0c68 | [] | no_license | ilteralp/remote_sensing_with_gcn | e35f3019f0f8394d6e81811e9b07df62751975a1 | a2cb9ed4a31da0e87c11f56b58bfe14dcbf35755 | refs/heads/master | 2023-04-19T06:09:38.326557 | 2021-05-07T22:02:17 | 2021-05-07T22:02:17 | 262,830,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 22 02:19:00 2020
@author: melike
"""
import os
NODE_FILE_NAME = '68k_pixel_as_node.txt'
ALPHA_TRAIN_PERCENT = 0.8
NUM_VAIHINGEN_CLASSES = 6
LR = 0.01
SEED = 4242
NUM_NODES = 48
""" ================================ Melike ================================ """
# BASE_PA... | [
"milteralp@gmail.com"
] | milteralp@gmail.com |
5a57d709e68b57343a2f490cf6f527c2a7bb2503 | e18c84358b2a80159b37dcea39debfbbdaa66395 | /backend/api/views/image_c.py | 0dcc38ac99342faa71280bd72d3802a93a490817 | [
"MIT"
] | permissive | chunyenHuang/Disfactory | 49d404609b73783ac488be9430d9cf518fc19f64 | 52985f7aadc8ca56344f80000b5e943bea99f83d | refs/heads/master | 2021-01-03T01:54:40.415165 | 2020-01-22T04:09:29 | 2020-01-22T04:09:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | from django.conf import settings
from django.http import HttpResponse, JsonResponse
import django_q.tasks
from rest_framework.decorators import api_view
from ..models import Image
from .utils import (
_is_image,
_get_image_original_date,
)
@api_view(['POST'])
def post_image(request):
f_image = request.FI... | [
"stegben.benjamin@gmail.com"
] | stegben.benjamin@gmail.com |
ef69505a910f54c9b53a00a83f9f1824f0ec94ff | 361060c2549af9ab271a1bf3fc6bbe2f5cdec827 | /agents.py | 84503442f169b3166c0c7f58fa573e53273881c6 | [] | no_license | We-Gold/Learning-Reinforcement-Learning | 2f0d9414b1f9a3694f00fc818120146481f5765a | fcb5ee36b83831843f4049e025b46e162d2410b4 | refs/heads/master | 2021-05-17T03:59:43.758600 | 2020-03-28T21:31:39 | 2020-03-28T21:31:39 | 250,612,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,687 | py | import numpy as np
import torch as T
from deep_q_network import DeepQNetwork, DuelingDeepQNetwork
from replay_memory import ReplayBuffer
class Agent():
def __init__(self, gamma, epsilon, lr, n_actions, input_dims,
mem_size, batch_size, eps_min=0.01, eps_dec=5e-7,
replace=1000, alg... | [
"we.goldm@gmail.com"
] | we.goldm@gmail.com |
1fcc0d061eba6fcca3fbf4798c9700327dedb7d9 | c60e9a7b98862c3325cf74c60d7972faf5060872 | /leetcode_14_longest_common_prefix.py | 50def26841f79fdb89a5e05f134f93f9ca387f30 | [] | no_license | CharleXu/Leetcode | dd4bea4f96c486f85dd4efb846e769ebd05a84ed | 3f8f954dce580119a741f638d59bdaa17f552223 | refs/heads/master | 2022-10-15T20:33:11.766045 | 2020-06-18T03:18:10 | 2020-06-18T03:18:10 | 266,402,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # coding: utf-8
def longest_common_prefix(strs):
if not strs:
return ""
n = len(strs)
prefix = strs[0]
for i in range(1, n):
while strs[i].find(prefix) != 0:
prefix = prefix[0:len(prefix) - 1]
if not prefix:
return ""
return prefix
if __na... | [
"superxc0102@gmail.com"
] | superxc0102@gmail.com |
66c57158fb305eb8f86eb55de1176262d8aa01da | ea6aa89215c6c972f871764590f7c17bd74cd057 | /blog/urls.py | a8f9552d84ad59a91595acba25366275d7d6a8c2 | [] | no_license | alperkarabayir/DjangoBlog | 8624be05f4aadac74e6aa082911585244d12de88 | fee3ee8990577b40071de98650cb3caeda6f6b3b | refs/heads/master | 2022-04-05T21:20:39.927107 | 2020-02-11T07:51:15 | 2020-02-11T07:51:15 | 235,230,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | from django.urls import path, include
from . import views
from django.contrib import admin
from django.contrib.auth import views as auth_views
urlpatterns = [
path('', views.PostListView.as_view(), name='blog-home'),
path('getallposts/', views.get_posts, name='get-all-posts'),
path('user/<str:username>', v... | [
"alperkarabayir61@gmail.com"
] | alperkarabayir61@gmail.com |
a788ecad5cc912d6405ede696a2f16263c295b76 | 8126d1bc2afe0925a24fce039d0f02a3bd7acbae | /pytraj/c_action/__init__.py | de635542285540646e5470bb9b3a11a2de034598 | [
"BSD-2-Clause"
] | permissive | rafwiewiora/pytraj | 54fb6fe07a754f65b865dd161f64c7af15fc3926 | 91a019ea406081ccf0043170cc64c48b4a5ea04a | refs/heads/master | 2021-01-20T17:33:05.974254 | 2016-03-11T21:25:32 | 2016-03-11T21:25:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | """"""
from __future__ import absolute_import
from . import c_action
actionlist = []
for act in c_action.__dict__.keys():
if 'Action' in act:
actionlist.append(act)
__all__ = actionlist
__doc__ = "\n".join(__all__)
| [
"hainm.comp@gmail.com"
] | hainm.comp@gmail.com |
edf37de051d2c0a8266c5ce04add9a0748025046 | d2e01f1b622e1f77a46a2f7cffd011e2fc2d21ad | /account_manage/models.py | 2ab964262d7a3bf0e8d9291e3d52298caab44dc4 | [] | no_license | JohnCny/myOA | ddd304411deb1025c253deb9db585629933c6ab1 | f2d6aa750cf48d2f3101937cf5f7f2cdf16b59e6 | refs/heads/master | 2020-05-18T12:39:02.364827 | 2013-01-29T09:19:48 | 2013-01-29T09:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | # -*- coding: utf8 -*-
from django.db import models
import datetime
from django.contrib import admin
from system_avalibe.models import my_user
from system_avalibe.models import department
from system_avalibe.models import my_account_type
# Create your models here.
class account (models.Model):
user_id=models.Forei... | [
"jianghanshi@vip.qq.com"
] | jianghanshi@vip.qq.com |
d5819b2f4f33d1ec6a077546f64c2b6e4b92968b | 8620d98b00cf0a9f60415408bf82184efd20431a | /Codewars/Remove the parentheses.py | 4942b2db2d2619ef5572685d2c498a9e0f1200bf | [] | no_license | SA-Inc/Contest-Tasks | 628aa4028bb5e3e5efc519c1369f5c95f4b46eff | dfffaec7d93fe217f19d532a3c5c799103f2a06d | refs/heads/main | 2023-02-26T21:56:54.067172 | 2021-02-09T07:23:26 | 2021-02-09T07:23:26 | 323,820,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | # https://www.codewars.com/kata/5f7c38eb54307c002a2b8cc8
def remove_parentheses(s):
# res = ''
# startIdx = None
# endIdx = None
# for i in range(len(s)):
# if s[i] == '(':
# startIdx = i
# break
# for i in reversed(range(len(s))):
# if s[i] == ')':
# ... | [
"noreply@github.com"
] | noreply@github.com |
1156225b525b0daf2c435e1d40ee14ff99c2bcf8 | e255d29a94cfc6e8b79284f924083537ea495e09 | /icinga2api/events.py | dd4724245f0765d2f82b51a2c03de8763fb66357 | [
"BSD-2-Clause"
] | permissive | fmnisme/python-icinga2api | 570f2c57dcce6d9bba29e04cd7fca137c1f513cd | 2913be2104f1218015d25a97bf62ae38b4a477bf | refs/heads/master | 2021-01-10T11:42:21.059561 | 2020-06-04T17:51:43 | 2020-06-04T17:51:43 | 46,486,304 | 39 | 33 | BSD-2-Clause | 2020-12-14T19:23:44 | 2015-11-19T10:52:03 | Python | UTF-8 | Python | false | false | 2,796 | py | # -*- coding: utf-8 -*-
'''
Copyright 2017 fmnisme@gmail.com
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the followin... | [
"tobias.vonderkrone@profitbricks.com"
] | tobias.vonderkrone@profitbricks.com |
c3db96eb2731a8edb48136484e89885480f85bca | 29b96a3ea850851bcb4d485be421af7ea801b071 | /example_submission/controller.py | 616bcb706d6aa3d6ef46a4ebd1a2fbafbcf09f86 | [
"MIT"
] | permissive | SambhawDrag/LBD-neurIPS-2021 | b13b73070422762fe0f95b681c466373296e7178 | fb39d2b6675e6d05175e2c66d5b7c667eb3db21d | refs/heads/main | 2023-07-18T11:55:36.180789 | 2021-08-27T01:05:28 | 2021-08-27T01:05:28 | 388,462,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | """
Controller template.
"""
import numpy as np
class controller(object):
def __init__(self, system, d_control):
"""
Entry point, called once when starting the controller for a newly
initialized system.
Input:
system - holds the identifying system name;
... | [
"kushal.k.2000@gmail.com"
] | kushal.k.2000@gmail.com |
6f0edb16dc41d65e86230d1a1fe1aa409e5680f9 | f63f56fd03fd1474a5710f27fbe3b27a943d675a | /app/email.py | 2b2ac97aa90a73cb081ef1a73cee2fbd7c56f6ca | [
"MIT"
] | permissive | LewisNjagi/blog-website | e4cbe5681d14c3fa4543ac95f625937e9d85a610 | e1f1d95ddd53a924988bfe669a4946b15dc33ac2 | refs/heads/master | 2023-03-19T00:01:53.913791 | 2021-03-09T15:16:30 | 2021-03-09T15:16:30 | 344,771,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from flask_mail import Message
from flask import render_template
from . import mail
sender_email = 'lewismaybach@gmail.com'
def mail_message(subject,template,to,**kwargs):
email = Message(subject, sender=sender_email, recipients=[to])
email.body= render_template(template + ".txt",**kwargs)
email.html = re... | [
"lewismaybach@gmail.com"
] | lewismaybach@gmail.com |
0dfba7d155244f359607b1677e3e305b9ded986b | 12094b02c411f986e8f66f1f971f8e3ae99a8167 | /OpenControl/classiccontrol/utils.py | 5611e7c4dc74a883814da33db0c15aa2a3e05972 | [
"MIT"
] | permissive | masbudisulaksono/OpenControl | f8fcbe63290a0011f3ea7412a0200ca9f8913ec9 | 0087408c57bc77f34f524b28f8c4363b116700bb | refs/heads/master | 2023-06-22T09:57:54.579445 | 2021-07-16T05:10:59 | 2021-07-16T05:10:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | import numpy as np
import random
import math
import scipy.linalg
def is_definite_positive_matrix(M):
"""Determine a maxtrix if
Args:
M : 2D-ndarray
Returns:
[Boolean]: True if matrix is definite positive
"""
condition1 = np.all(np.linalg.eigvals(M) > 0)
condition2 = np.allclo... | [
"dovietchinh1998@gmail.com"
] | dovietchinh1998@gmail.com |
cfa8945289850ff63e497fcc908de2732efb4faf | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/battle/event/hunter_respawn.py | d81a741d398ce19a72f4ca18421e45b81afc015c | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 1,419 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/event/hunter_respawn.py
import BigWorld
from gui.Scaleform.daapi.view.battle.event.boss_teleport import EventBossTeleportView
from gui.Scaleform.daapi.view.meta.EventHunterRespawnViewMeta import Event... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
a12758348fbc7e7296b3a997c889bf29e1f5be19 | 3bba01146505eaa9742f665612e7c31910b02daf | /api/services/AccountService.py | 11de57d69b42fea5899189a806dc99433752ee20 | [] | no_license | leafunes/yaas | 3f1901e99e63a7eaaacfd0dd0cd58394d30c755c | 6d89a16c80b3e6b1259f0c9718dff6d7a76297e3 | refs/heads/master | 2023-01-04T21:14:52.736085 | 2020-11-02T03:36:15 | 2020-11-02T03:36:15 | 309,244,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | from model.Transaction import Transaction
from data.OnMemory import OnMemory
from errors.errors import NegativeTotalError, TransactionNotFoundError
class AccountService():
def __init__(self):
self.db = OnMemory() #TODO: parametrize
def create_credit(self, amount, description):
tr = Transaction... | [
"funes.s.leandro@gmail.com"
] | funes.s.leandro@gmail.com |
1e931754ef5271d1566e68b855c1e6c2ee55230b | 7de32eb8b115845a4d396785e1928b7af272ca5b | /testing_servo/servo_DS3218.py | 7e123e3db65919999b3663b3e3a5e716154d45ed | [] | no_license | ccrreeaattoorr/carwash | 3aaddaab6f50534cbcfbc9a342254ba77e14a929 | 72a4657b756546314d92b3936046f061acc6cc78 | refs/heads/master | 2021-07-16T20:52:50.824147 | 2020-10-11T18:55:45 | 2020-10-11T18:55:45 | 217,760,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,679 | py | import RPi.GPIO import random
import serial
import struct
import time
class Roboclaw:
'Roboclaw Interface Class'
def __init__(self, comport, rate, timeout=0.01, retries=3):
self.comport = comport
self.rate = rate
self.timeout = timeout;
self._trystimeout = retries
self._crc = 0;
#Command Enums
class Cm... | [
"ccrreeaattoorr@gmail.com"
] | ccrreeaattoorr@gmail.com |
86dd568b43c382b6a37043b8cbb13b0a33717eda | a78be0e636b10d47128f6a12703a1f4b14562be5 | /src/accounts/migrations/0004_remove_user_full_name.py | 9573000ec68130afc1f0308bdcf50ef40740862e | [
"MIT"
] | permissive | vykuntaharsha/onestopshop | 7f0557408e8d4801dce371e25bdb0b305532e244 | b9c4c9cbf603af87bee18fe20e04567ff70d42e1 | refs/heads/master | 2022-12-09T01:18:03.948132 | 2018-07-27T03:54:14 | 2018-07-27T03:54:14 | 131,765,577 | 1 | 0 | MIT | 2022-12-07T23:51:23 | 2018-05-01T21:34:32 | Python | UTF-8 | Python | false | false | 391 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-12-10 03:04
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_user_full_name'),
]
operations = [
migrations.RemoveField(
... | [
"harshavardhan.biit@gmail.com"
] | harshavardhan.biit@gmail.com |
dd52e5517ce5f355698af46ebe674462ee81cba0 | da1399f04b2542a2bb427df41ace68e9df9708da | /Level.py | e9933cbc3383c22d0b850e1c67326c7620acc61e | [] | no_license | span/taxrunner | b436828005fc1ea157bcf1c787c08c361c6765c0 | ff0861700121b2107334967378be3b18667c5d71 | refs/heads/master | 2016-09-06T02:10:05.808232 | 2015-02-10T16:45:35 | 2015-02-10T16:45:35 | 11,750,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,952 | py | # This class contains the level sprites that we see on the screen. When this class is
# instantiated it draws a level of bricks, adds a player, taxman, background and cash. This
# class is then called from the main game loop through the update method. These calls are
# then propagated to the proper sprite classes as ne... | [
"daniel@danielkvist.net"
] | daniel@danielkvist.net |
ce75125d38790ce20168425c567cc0c99cb08509 | 38d23b1eb6c1728a73aac122ed4ecbd474d96410 | /DjangoQuiz12/venv/Scripts/pasteurize-script.py | 36596aa58ead1a309f02d472ce89ecd4a73f0372 | [] | no_license | apoorba/DjangoQuiz | a5c2ed766f41f9160bacd8c69ea1f8483832fe84 | c92d713b8c7aa928bc8c817905b5d7f850dab212 | refs/heads/master | 2020-03-24T06:08:17.480818 | 2018-07-27T03:10:45 | 2018-07-27T03:10:45 | 142,517,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | #!C:\Users\AR\PycharmProjects\DjangoQuiz\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.16.0','console_scripts','pasteurize'
__requires__ = 'future==0.16.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"apoorba29@gmail.com"
] | apoorba29@gmail.com |
afd9ffeb1bc993d9503161429c26f6b38e550db9 | 3dbbde1aa96fc09e9aab885cf3713e86f3572dec | /gs-vtoi/bin/glacier | 6e1a948d2c394d1ca44797d1d7fd32027f7bc0eb | [] | no_license | bopopescu/gs-vtoi | 6223d6dbf47e89292bd0e79e24e5664450e28cf6 | f12b802976d0020179d1b40b0b5e3af5b72d55cc | refs/heads/master | 2022-11-24T16:31:36.804869 | 2018-07-31T08:30:56 | 2018-07-31T08:30:56 | 282,551,982 | 0 | 0 | null | 2020-07-26T01:09:10 | 2020-07-26T01:09:09 | null | UTF-8 | Python | false | false | 5,288 | #!/Users/Sang/OneDrive/Developments/gs-vtoi/gs-vtoi/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2012 Miguel Olivares http://moliware.com/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Softw... | [
"sy0414@gmail.com"
] | sy0414@gmail.com | |
894b89da175042a21e5348d0f8d8a09fff415934 | 7e38a33607e1496a8e25da2ea4de93aba0f7a6db | /tests/test_tx.py | 148ede775632a48aacff47ec1ba3cf5ad4fee695 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | AustEcon/bitcoinX | c01f96626c72765a884f0f08f171aee5bb47dbe9 | 06796905626ffebf7b1eb92238b1771f103efee8 | refs/heads/master | 2022-12-03T06:00:09.898506 | 2022-11-21T07:16:42 | 2022-11-21T07:16:42 | 260,636,435 | 1 | 0 | MIT | 2020-05-02T07:29:44 | 2020-05-02T07:29:44 | null | UTF-8 | Python | false | false | 19,997 | py | from io import BytesIO
import random
import pytest
from bitcoinx import (
Script, PublicKey, SigHash, hash_to_hex_str, Bitcoin, BitcoinTestnet, JSONFlags,
)
from bitcoinx.tx import *
from bitcoinx.tx import LOCKTIME_THRESHOLD
from .utils import read_tx, read_tx_hex, read_signature_hashes, read_json_tx
def test... | [
"kyuupichan@gmail.com"
] | kyuupichan@gmail.com |
2776efebcbbbc14a62ecb7939a01b767d64382b6 | a6a6dfe651c394c0a316da0bd05b09c261024117 | /visual_cluster.py | a76f26482e38129eee697d2054d187d6f4c7d6af | [] | no_license | YuyaMurata/KMA | b963c6d9640151fd43d791bdfeff917baee22ab0 | b7cca37c1dfdf60e48c174a5083c9a5cc1489703 | refs/heads/master | 2020-05-30T05:31:10.837398 | 2019-12-20T08:44:56 | 2019-12-20T08:44:56 | 189,562,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
from mpl_toolkits.mplot3d.axes3d import Axes3D
import pyclustering
from pyclustering.cluster import xmeans
import pylab
filename = 'file/PC200_mainte_eval_center.csv'
data = pd.read_csv(filename, index_col='SID', delimit... | [
"kaeru_yuya@hotmail.com"
] | kaeru_yuya@hotmail.com |
1f65100839d9ff8b15648173db4bdc566eb7e7b4 | 439e3b0fcc8959483bc35ff9c1229ce240037bbe | /tests/test_kanwa.py | db033372d8214dbf5ebd4d6f1563242af952d467 | [
"MIT"
] | permissive | 403JFW/kakasi-utils | 16fe27265f1b7f05045e4370cf19de080c649e8f | 698b6fc8d812637473dc941b36d9ccff87410d0c | refs/heads/master | 2021-01-02T09:54:13.425825 | 2014-04-15T00:55:51 | 2014-04-15T00:55:51 | 17,693,614 | 3 | 0 | null | 2014-05-12T06:39:36 | 2014-03-13T03:37:09 | Python | UTF-8 | Python | false | false | 1,754 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import os
import unittest
from kakasi_utils.kanwa import Kanwa
class TestKanwa(unittest.TestCase):
def test_merge(self):
"""Test merge"""
# Get dict file paths
data_dir = os.path.dirname(os.path.realpath(__file__)) + '/'
... | [
"miyazaki.dev@gmail.com"
] | miyazaki.dev@gmail.com |
c6ce9e4a4ce2934670386105b410efd371bb56c3 | 87140007e96872d3611f0778eb0eebe5799616d7 | /runs/1000KB/src2-tgt1/seq-nobro-iter08000.cfg.py | d889d92141bd83f110aee7e52fd487b910171abe | [
"MIT"
] | permissive | janpawellek/broeval | 49499fa302abff916ffced201034d3b9394503cd | 57e31aa6e354d0bba88103b44910483e8d982d00 | refs/heads/master | 2021-01-11T12:19:13.619220 | 2016-12-20T16:23:27 | 2016-12-20T16:23:27 | 76,468,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py |
# Write results to this file
OUTFILE = 'runs/1000KB/src2-tgt1/seq-nobro-iter08000.result.csv'
# Source computers for the requests
SOURCE = ['10.0.0.1', '10.0.0.3']
# Should Bro be enabled on the source machines?
SOURCE_BRO = [False, False]
# Target machines for the requests (aka server)
TARGET = ['10.0.0.2']
# Sho... | [
"pawellek@stud.uni-heidelberg.de"
] | pawellek@stud.uni-heidelberg.de |
086d727ec9d02496b8aed3098471ba7117856217 | 8b7a9ba0c2f8259ee7cfdfa83d8b702cb494c95b | /MyQuickDQR.py | a5e9a3a657d8985a49cee91a27141c9f92aff41f | [] | no_license | danyiwang/Fraud-Analytics-Coursework | cd216b7e6c57470b513bbb29eb92248d851a17b7 | 04396a7b7c13476a3493a4f3aeed36273cdf1d78 | refs/heads/master | 2020-04-25T11:56:23.792373 | 2019-04-11T09:31:55 | 2019-04-11T09:31:55 | 172,761,849 | 0 | 0 | null | 2019-02-26T18:14:05 | 2019-02-26T17:55:47 | Python | UTF-8 | Python | false | false | 13,117 | py | ## Note: the format and style can be customized.
## Process
## Step 1: read data
## import pandas as pd
## import MyQuickDQR as dqr
## mydata = pd.read_csv()
## Step 2: define category columns
## mydata[category_columns] = mydata[category_columns].astype('category')
## keep in mind that some columns may need to chan... | [
"noreply@github.com"
] | noreply@github.com |
576e64402ae40dbdfa0ff48cf98e3ac2a5e8f284 | b5e2b49ff6cf665e25030c0e472bb3fccb4d8318 | /comment/models.py | e2e51082354dac9ea270d39736ac802052248e2b | [
"Apache-2.0"
] | permissive | sevenaper/simple_blog | f03b802bfe88239e176cd5ad613e7db5d1dc9fd8 | 2ebe177b02477ae1d108155545f8cbec9070fdb3 | refs/heads/master | 2021-01-24T12:37:55.352824 | 2018-12-18T06:58:15 | 2018-12-18T06:58:15 | 123,146,661 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from django.db import models
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.models import User
# Create your models here.
class Comment(models.Model):
content_type = models.ForeignKey(ContentType, on_delete=model... | [
"lxsdwlhh@163.com"
] | lxsdwlhh@163.com |
61d2d4e19055b2c5e330f42f506a5a25e1550bae | c0b3e2e92efe8e2a2497a0850b136f42e59d9303 | /预分词.py | 86a1088574c1a4fd86b5ef5f69200a42588ea4a9 | [] | no_license | Asuraqi/AushorShipAnalysis | 126236b053a47947f344c05ab73a174650973c8e | 1cc2a96f9e02e31b9f671ab88151fc0138db9c8e | refs/heads/master | 2022-11-17T13:12:05.412748 | 2020-07-11T15:30:09 | 2020-07-11T15:30:09 | 278,858,763 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | import os
import re
import numpy as np
import jieba
import jieba.posseg
TRAIN_DIR = r"E:\TrainData"
OUT_DIR = r"D:\output_train"
for train_file in os.listdir(TRAIN_DIR):
file_path = os.path.join(TRAIN_DIR, train_file)
out_path = os.path.join(OUT_DIR, train_file + ".seg")
if os.path.exists(... | [
"noreply@github.com"
] | noreply@github.com |
82fd235db118646fc86003f4b9b8c9456cea7a02 | c5758c1f4c880f4530df1a5ffb4c30ee2da445ee | /pytracking/vot_ep/sk3x3_meanmax_adaptive/vot_wrapper_sk3x3_meanmax_adaptive_ep0024.py | 23ccb4ec2fc0650043d494e0655d884737572b61 | [] | no_license | bfjei2825401/d3s | 6d662fc301181a0e3ad831b0db6111e3cf8f4097 | 32140a3c67252f0e98cbfbf6ad6d2a79267c221b | refs/heads/master | 2023-02-27T09:57:25.692878 | 2021-01-27T14:20:57 | 2021-01-27T14:20:57 | 297,217,521 | 0 | 0 | null | 2020-09-21T03:23:09 | 2020-09-21T03:23:09 | null | UTF-8 | Python | false | false | 2,523 | py | import pytracking.vot as vot
import sys
import cv2
import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
from pytracking.tracker.segm_sk3x3_meanmax_adaptive import SegmSK3x3MeanMaxAdaptive
from pytracking.parameter.segm_sk3x3_meanmax_adaptive import default_params_ep as vot_... | [
"752958525@qq.com"
] | 752958525@qq.com |
628e76b331e9bbba8db71887247e3e6d96e01d2d | a337eb50ad01d93a8fe27103169fd8a0675af4f7 | /showEachHeight.py | 0dcc5772c849939f6a1fd1e3dfd6f218f4f6fe0e | [] | no_license | pangshumao/CARN | c18368c9f08bcf99bc205b53c5a4780ce744dc7e | dbdeae1abb4ea486b86dfa7806c9e3a4a3c9837e | refs/heads/master | 2020-05-15T00:20:31.732168 | 2019-05-29T14:25:47 | 2019-05-29T14:25:47 | 182,010,317 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,806 | py | import numpy as np
import scipy.io as sio
import os
from utils.preprocessing import scale2actual
from scipy.stats import ttest_rel as ttest
# rootDir = 'F:\\ImageData\\spine\\aligned(results from graham-previous landmarks)\\DenseNet-Gan\\disc_vb_height\\results'
# foldDir = 'F:\\ImageData\\spine\\aligned(results from ... | [
"pangshumao@126.com"
] | pangshumao@126.com |
d469a66212b1827ea7a58d057836e8a4a912d946 | a00054cc4bc93c7cc6b371a4ab8ce5aeb80eb271 | /a0/a0.py | 89566a3fa9c550b5809001311ab796499406b203 | [] | no_license | yrzhou0120berk/w266 | 707e5317e18b3dd87d1078d17415bdcb00ef297c | 721e149922ec4dbc8abeb43e8702b2b2d2ab367e | refs/heads/master | 2020-03-16T16:38:37.136839 | 2018-05-09T18:31:23 | 2018-05-09T18:31:23 | 132,797,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,392 | py |
# coding: utf-8
# # Assignment 0
#
# This notebook will help verify that you're all set up with the Python packages we'll be using this semester.
#
# **Your task:** just run the cells below, and verify that the output is as expected. If anything looks wrong, weird, or crashes, update your Python installation or con... | [
"yrzhou0120@berkeley.edu"
] | yrzhou0120@berkeley.edu |
8926a41249f5bf629df53010e4f7708af8c89efb | a69543dbb496cb05fdbadaf72aff9cc5f39cf073 | /cracker3.py | 9503293544fd986a5755c0fdec7bc344a3150df3 | [] | no_license | alghuried-ahod/py-breaking-docx-passwoed- | 48bda54efa23f17aead3ed43fd9e06ce90b40586 | bf19f2e28116a523a55a662851b4ddf2e76a5665 | refs/heads/master | 2016-08-12T06:30:50.920390 | 2016-02-21T22:30:58 | 2016-02-21T22:30:58 | 52,231,401 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | """
Ahod Alghuried, D15123616
Mobile Forinsic, Lab #3
This Python program has been designed to break the password for docx files.
To get Windows Extensions you could download it from this link
( https://sourceforge.net/projects/pywin32/files/pywin32/Build%2520220/ ).
After download it write this command in the ter... | [
"Ahoud.al-g@hotmail.com"
] | Ahoud.al-g@hotmail.com |
72acf8c8711eef2cf5d22862dd046ca6895b2303 | a8412e4fe55924d407d51bca173bf2283086dd82 | /signals_define.py | 4e42105d820312e68269b223ce2fced193289e05 | [] | no_license | isabelangelo/SETI_2018 | 5f38a495ab88c9dc6a74f15e7459592664db4537 | 72dffea9308b4d2faa482d8f470f32f9bacc675e | refs/heads/master | 2020-03-22T20:46:36.508024 | 2018-07-11T21:50:36 | 2018-07-11T21:50:36 | 140,630,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,062 | py | gaussian = {'id':0,
'result_id': 0,
'peak_power': 0.0000000,
'mean_power': 0.0000000,
'time': 0.0000000000000000,
'ra': 0.0000000,
'dec': 0.0000000,
'q_pix': 0,
'freq': 0.0000000000000000,
'detection_freq': 0.000... | [
"isabelangelo@berkeley.edu"
] | isabelangelo@berkeley.edu |
667a6a1286fe0c8a7c4877e2d9a1aab0a9a79399 | c3ff891e0e23c5f9488508d30349259cc6b64b4d | /python练习/django exercise/FormsDemo/first/views.py | ebcd835469f1f68f965b5e54504c5e8ab9bab17f | [] | no_license | JacksonMike/python_exercise | 2af2b8913ec8aded8a17a98aaa0fc9c6ccd7ba53 | 7698f8ce260439abb3cbdf478586fa1888791a61 | refs/heads/master | 2020-07-14T18:16:39.265372 | 2019-08-30T11:56:29 | 2019-08-30T11:56:29 | 205,370,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | from django.shortcuts import render, HttpResponse
from django.core.exceptions import ValidationError
from django.forms import widgets
from first.models import UserInfo
from django import forms
# Create your views here.
def register(request):
if request.method == "GET":
form = UserForm()
return ren... | [
"2101706902@qq.com"
] | 2101706902@qq.com |
2fd8dbf6abe18275d82d901f3df3fe5125902e96 | cf873f8d8ca5611ddba0ca307a394565045b99d9 | /Code_Unblock_the_Block.py | 8f12c27da132c1482f04036feaa50622e3642b7f | [] | no_license | Cyrton/RushHour-Python | 4c598552c8673558033674f0fb09cb8ef767f3e5 | 7fb81081c0acd3e1365a2ac707222efa6c755fc2 | refs/heads/main | 2023-04-17T21:21:03.496202 | 2021-04-23T14:38:33 | 2021-04-23T14:38:33 | 308,906,986 | 0 | 1 | null | 2021-04-23T14:38:34 | 2020-10-31T15:03:04 | Python | UTF-8 | Python | false | false | 2,539 | py | # -*- coding: utf-8 -*-
"""
@author: marti and cyril
"""
from tkinter import *
from pickle import dump, load
from fenetre_charger import *
from fenetre_jouer import *
#----------------------------------Programme Fenetre Principale-----------------------------------------
#Fonction de la fenêtre principale
def Fe... | [
"m.perdaens@students.ephec.be"
] | m.perdaens@students.ephec.be |
01bb1719a713b296a199496170f298ee3b30ab81 | 32d09d58d45b55f3032722ffa82432122287b5a9 | /TE-1/PL-1/OSD/9. Uefi or Legacy/ueleg.py | 7bdd7a6380e973329fe2e6740c3d3ddf3d1b6318 | [
"Unlicense"
] | permissive | adityajn105/College-Codes | 013aa63710d5da71710f93d6aafc1417212e936d | f40e1eee53b951f2101981230fc72201081fd5f7 | refs/heads/master | 2021-09-11T14:19:25.053663 | 2018-04-08T19:49:13 | 2018-04-08T19:49:13 | 76,291,624 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | import os
if os.path.exists("/boot/efi") or os.path.exists("/boot/firmware/efi"):
print("System is booted to UEFI")
else:
print("System is booted to LEGACY")
| [
"adityajn105@gmail.com"
] | adityajn105@gmail.com |
a895ca4cd57fb5125091e7f2633fac2b96567c90 | a996967a72b4ac0341c82635f2ca5fcb311b1080 | /Programas com pygame/pygame/jogos/Pong-master/engine.py | 546d9b3c36e9fe68b2a3f8a0d99e11fd6cd53660 | [] | no_license | Victormbg/Python | 157eea29db78c3a17fa1670be3aad0e610dc8f14 | 8d7671486065dfcc3820e968fa7b50a42aa7b169 | refs/heads/master | 2022-06-27T03:36:00.166727 | 2022-06-14T23:51:16 | 2022-06-14T23:51:16 | 149,981,858 | 1 | 0 | null | 2020-01-28T21:02:15 | 2018-09-23T12:22:16 | Python | UTF-8 | Python | false | false | 5,380 | py | import random, sys
from math import *
from ball import *
from constants import *
from ai import *
"""
Desc file:
The Main Class Engine, for managing the logic of the game, contains a
global update() & draw() functions to update and draw the whole main game. Init all class too.
main function of the ... | [
"43515539+Victormbg@users.noreply.github.com"
] | 43515539+Victormbg@users.noreply.github.com |
b41ea892a7093a5b363d79919a66fa1c446ea822 | 4de0321d3114750ba200bdbb73cf4ad8d1e0efdb | /spike_swarm_sim/actuators/led_actuator.py | cb9524ec9810621a43bb03214a87e38349332ef2 | [
"MIT"
] | permissive | r-sendra/SpikeSwarmSim | 525f575eb8e14d7abfc70cb6757299f7b50cf589 | a5bd71cb93df0963588640c5d44b3891fa07457c | refs/heads/main | 2023-02-19T11:12:43.195818 | 2021-01-22T12:30:26 | 2021-01-22T12:30:26 | 328,186,128 | 0 | 0 | null | 2021-01-21T16:24:47 | 2021-01-09T15:32:15 | Python | UTF-8 | Python | false | false | 304 | py | from spike_swarm_sim.register import actuator_registry
@actuator_registry(name='led_actuator')
class LedActuator:
""" LED actuator that turns on or off the LED depending on
the action. """
def __init__(self):
self.on = 0
def step(self, action):
self.on = action | [
"r.sendra@alumnos.upm.es"
] | r.sendra@alumnos.upm.es |
044981268b892180d97eb9fca6a3211510a808a1 | 2560ab2e2d90cf259a84de8eeedd9f1953e8943b | /aur.py | 8aea9176c262176a9e2abf2d9ce08c4cd47467ce | [] | no_license | ryantaylor/nas | 6b17776979e2f235040aa31a485da5a6867db881 | 5aaeb539a0b50a357d5ed5080c95117e6ab5a6e0 | refs/heads/master | 2022-11-19T03:44:44.000137 | 2022-11-06T15:58:33 | 2022-11-06T15:58:33 | 143,469,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | import os
import subprocess
from pushover import Pushover
def check_updates(application, pushover):
application = application.strip()
os.chdir(f"{os.environ['AUR_DIR']}/{application}")
subprocess.run(['git', 'fetch'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
local_result = subprocess.run(['gi... | [
"2320507+ryantaylor@users.noreply.github.com"
] | 2320507+ryantaylor@users.noreply.github.com |
66eb41b497be5f43356f205ce49307cd2e618a2e | 63ba933a294865f65409635f62e0f1d59f725f37 | /src/linkedLists/flatten.py | 4b148dc9198652a6473dde5fda7746be4087ad87 | [
"CC0-1.0"
] | permissive | way2arun/datastructures_algorithms | fc4302bdbb923ef8912a4acf75a286f2b695de2a | 4ea4c1579c28308455be4dfa02bd45ebd88b2d0a | refs/heads/master | 2021-12-07T04:34:35.732026 | 2021-09-30T12:11:32 | 2021-09-30T12:11:32 | 203,658,808 | 1 | 0 | null | 2020-08-08T15:55:09 | 2019-08-21T20:23:46 | Python | UTF-8 | Python | false | false | 3,212 | py | """
https://leetcode.com/explore/challenge/card/july-leetcoding-challenge/545/week-2-july-8th-july-14th/3386/
You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to a separate doubly linked list. These child lists may have one... | [
"way2aru@yahoo.com"
] | way2aru@yahoo.com |
a6f371f9a7b5daf0f563373f301f2318be7fd87f | 9d25837a05eaa9d32b7b88ab1dd133ab28dba0a2 | /robot02_pwm.py | 6bdc34684856ee5b0afbb6b66706048430896736 | [] | no_license | DarkMaguz/Python-pi | 2d2d14c061c9a4437e68e5755bc49fc4b7a0a76e | 34b49c5f4f26abc46d29c9f45fcccc954cd8a679 | refs/heads/master | 2020-04-16T23:47:08.963626 | 2018-04-08T13:43:55 | 2018-04-08T13:43:55 | 49,954,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,344 | py | # -*- encoding: latin-1 -*-
import RPi.GPIO as GPIO
import time
import spidev
# Initialiser et ny spi objekt.
spi = spidev.SpiDev()
# Forbinder til den specifikke SPI enhed, ved "/dev/spidev0.0".
spi.open(0, 0) # Åben port 0, enhed 0.
# Set grænseværdien for hvornår vi med stor sandsynlighed kan sige at vi er på en s... | [
"magnuz.andersen@gmail.com"
] | magnuz.andersen@gmail.com |
182d2c133c867b48df3b915ff9cc056dcdba61d5 | f03e50ab105c8dd97bda374fa2d604d480b85fb3 | /apps/projects/models.py | ca45800eb9e00a783cdea3dae4a0abef2f2c4541 | [] | no_license | callowayproject/callowaysite | 9717b7d934ef142b5e6b8fa1e0c93651382198bb | eb25d208586a7dc9ffb88660b07ad942ba9fe231 | refs/heads/master | 2022-12-15T11:38:57.787801 | 2019-07-14T13:21:13 | 2019-07-14T13:21:13 | 730,944 | 1 | 0 | null | 2022-11-22T00:40:56 | 2010-06-20T19:50:00 | CSS | UTF-8 | Python | false | false | 1,511 | py | import datetime
from django.db import models
from django.core.files.images import get_image_dimensions
from projects.settings import LOGO_STORAGE, PROJECT_TYPES, STATUSES
class Project(models.Model):
"""Something that we work on"""
name = models.CharField(blank=True, max_length=255)
description = models... | [
"coreyoordt@gmail.com"
] | coreyoordt@gmail.com |
3f0334e74a172b28d97ef4fe5641f86b7070ca66 | 9426f2e4f25c85c351a4d1b8855fe7d4cfd35210 | /fardel_ecommerce/order/models.py | 43289b3f939406b8fb0777a2648784f5577f747c | [] | no_license | FardelCMS/fardel_ecommerce | 52e4eaebb243c863f0dd6af22be093f4c90af8cd | d4221a7f4f7812d3e491234fc4cca6b828665ae3 | refs/heads/master | 2021-08-01T01:52:22.809056 | 2021-07-29T09:58:11 | 2021-07-29T09:58:11 | 229,290,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,175 | py | import datetime
from ..checkout.models import Cart, CartLine
from sqlalchemy import func
from sqlalchemy.dialects.postgresql import JSONB, UUID
from flask_sqlalchemy import BaseQuery
from flask_jwt_extended import current_user
from fardel_ecommerce.product.models import ProductVariant
from fardel.ext import db
cl... | [
"s.hamzelooy@gmail.com"
] | s.hamzelooy@gmail.com |
39765aad0f84ce97c089987f6a920f1900d8407c | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /tools/CrossStackProfiler/CspReporter.py | 7ae672a2e99fd3f8e3f64c223b2fc2c9a0b3ecf5 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 8,467 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | [
"noreply@github.com"
] | noreply@github.com |
e881c66dc6ff89dbb21016ef1bd13a9edd91ae75 | 5e6155ad914b8bf67c0b8eb07baf12dccdcc0dbb | /data_sources/technology.py | b43b8372fa35160adc63a84bfee7ee1a5839ee79 | [
"Apache-2.0"
] | permissive | fabio-pintodacosta/gu-email-renderer | 08cc85b06580768ba89c262f1633ffcbbfbf02a5 | f9f62f6e8048cc0a6f79df734b6217f3dbcec8fa | refs/heads/master | 2020-12-27T21:16:41.510316 | 2015-11-03T13:36:57 | 2015-11-03T13:36:57 | 39,622,245 | 0 | 0 | null | 2015-07-24T09:02:11 | 2015-07-24T09:02:11 | null | UTF-8 | Python | false | false | 1,272 | py | from data_source import DataSource, ItemDataSource, SearchDataSource
class TechnologyDataSource(ItemDataSource):
def __init__(self, client):
ItemDataSource.__init__(self, client, 'technology', show_editors_picks=True)
self.name = 'technology' + client.edition
self.show_tags = ['keyword']
... | [
"robert.rees@guardian.co.uk"
] | robert.rees@guardian.co.uk |
03c9b8c1400c21f8f1f1f697eace517cba3fabce | f0b75bd94f133a13f469f429a696f26be3be9862 | /week 2/.history/python_second_assignment_20200204154901.py | ca2a7780d18decaa9aca7b5410cab8eda6e90bd4 | [] | no_license | dechavez4/Python_handin_assignments | 023350fabd212cdf2a4ee9cd301306dc5fd6bea0 | 82fd8c991e560c18ecb2152ea5a8fc35dfc3c608 | refs/heads/master | 2023-01-11T23:31:27.220757 | 2020-05-22T10:33:56 | 2020-05-22T10:33:56 | 237,179,899 | 0 | 0 | null | 2022-12-30T20:14:04 | 2020-01-30T09:30:16 | Python | UTF-8 | Python | false | false | 1,447 | py | # Exercise 1
# Create a python file with 3 functions:
# A. def print_file_content(file) that can print content of a csv file to the console
import csv
from sys import argv
import platform
filename = argv[1]
def print_file_content(file):
with open(filename) as csv_file:
content = csv_file.readlines()... | [
"chavezgamingv2@hotmail.com"
] | chavezgamingv2@hotmail.com |
3f89fb97ec5363fc81efe42ce4a627e34436e809 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_suite.py | 5d9059953940881ade58e572a6b7dde68f38bcfb | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py |
#calss header
class _SUITE():
def __init__(self,):
self.name = "SUITE"
self.definitions = [u'a set of connected rooms, especially in a hotel: ', u'a set of furniture for one room, of matching design and colour: ', u'a piece of music with several parts, usually all in the same key', u'a set of related software (... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
517ceef7d532629cbd27d99cf7de9e4ef01c918a | 27bdba388094658bd691d3f2947dc5bc265e8ddb | /frontend/website2/ownermanagement/ownermanagement/settings.py | cc136cd2b672194c5dda25482bcd171c55e17d17 | [] | no_license | ankithbala/blockchain | 793042f67fce2c7cbc5808086204737f60aac21d | 77fa2aab2fd201ad022672e96439112e2edb3cdd | refs/heads/master | 2020-05-24T17:44:42.429929 | 2019-05-18T19:03:11 | 2019-05-18T19:03:11 | 187,393,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,307 | py | """
Django settings for ownermanagement project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import... | [
"ankith.bhat.india@gmail.com"
] | ankith.bhat.india@gmail.com |
1bdd34e88fd6277b360b09b84201d96e1a50fe44 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/143_15.py | 8d67528a49ea0ab7b49f24cfcb96309e98a02750 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,669 | py | Python | Check if string ends with any string in given list
While working with strings, their prefixes and suffix play an important role
in making any decision. For data manipulation tasks, we may need to sometimes,
check if a string ends with any of the matching strings. Let’s discuss certain
ways in which t... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
d6df5d5c5c0f842ee9b27fe154a5370091ca3c8d | f2d494db4a736354e8f7705a0d94f4ba6104c911 | /class_env/bin/pylint | e913b43385126dfe009821bcb89a1a525b427be1 | [] | no_license | Shankar1598/Training | 6b40bde89bfd448429c4807a6e81a41c900c1ab1 | 3cc3bcbbd3fbb35118cd16e7e99ba532039e237a | refs/heads/master | 2022-11-27T04:54:40.765334 | 2020-08-07T05:30:37 | 2020-08-07T05:30:37 | 285,745,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/home/shankar/Desktop/Class/class_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_pylint())
| [
"shankar@tagalys.com"
] | shankar@tagalys.com | |
f4b33a1d107c661005411ee377782495662a53f5 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py | 57696edccfe1612b68eccd942bdcaf4fd0b1173b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 62,915 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | noreply@github.com |
6d480975a561d743abbf7d61a83e83bc554fdf14 | 9438cb7f1dc8e237eab174ebcfb24694d6067146 | /db_manager.py | efec3bed7ddc298e522bcfea2e5313a161fc85ab | [] | no_license | BraweGit/Malware-scanner | 84c440dfd269dc7d361571a732c86ec7fad98b3d | 1dec369f2ac122ef593f13090e5041f07fec6939 | refs/heads/master | 2020-03-26T18:42:04.420290 | 2018-08-18T15:22:42 | 2018-08-18T15:22:42 | 145,225,942 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,286 | py | import json
from pathlib import Path
from tinydb import TinyDB, Query
from tinydb import where
class DBManager:
""" Provides basic functionality for communication with local JSON database.
Creating database. Inserting new records. Updating existing records.
Or selecting record by its MD5 hash.
"""
... | [
"brstak.honza@gmail.com"
] | brstak.honza@gmail.com |
07e129d0519352914bd0d2a4d1e1c026b289bc19 | 58e7a18c0dff5af960934e8f436a2021a88db39b | /src/useful/computeCoverage.py | 25102709b110a974f4bbdce376dd268f840b21a7 | [] | no_license | nluhmann/EWRA | a8e09c1b38548bf04f0c0eabc970b34b26551337 | 2aa2b77b42d6653acf23a7d035de409758d1e479 | refs/heads/master | 2021-01-21T20:53:25.262195 | 2018-01-23T17:38:36 | 2018-01-23T17:38:36 | 94,756,469 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | #!/usr/bin/env python
import sys
markerfile import sys
families = sys.argv[2]
file = open(markerfile, "r")
markerset = []
for line in file:
if len(line) != 0:
if line[0] != "N":
array = line.replace('\n', '').split(' ')
markerset.extend(array)
file.close()
familyHash = {}
filef = open(families, "r")
for l... | [
"nluhmann@techfak.uni-bielefeld.de"
] | nluhmann@techfak.uni-bielefeld.de |
dea5643daac0785ee31f186a7cbdf1027b9724b6 | fe04f5ceef3447f9e8c3ada52c1173808fdb9360 | /inventory/dashboard/urls.py | ac361874ac2d28db9c9d1c71f4ab76022d85bd17 | [] | no_license | GuardME/inventory | 289c6d2b059500aa181d0a66bf598d108d1facb0 | b8cab5d1179b99e14068674aee7b87147bcb06cf | refs/heads/master | 2023-08-23T22:30:24.183684 | 2021-10-25T09:49:55 | 2021-10-25T09:49:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | from django.urls import path
from dashboard import apps
from . import views
urlpatterns = [
path('dashboard', views.index, name='dashboard-index'),
path('staff/', views.staff, name="dashboard-staff"),
path('staff/detail/<int:pk>', views.staff_detail, name="dashboard-staff-detail"),
path('product/', ... | [
"ramadanyosi30@gmail.com"
] | ramadanyosi30@gmail.com |
17f68468ed1bec0220733058ab02887e08228ee7 | 1e8c4293d02cd72297eb80aab776cc8dffb71690 | /Data Types and Variables/10.Gladiator Expenses.py | 2eee653802d2b6b8caa110d2fcbf652bf9b1e498 | [] | no_license | deyandyankov1/Fundamentals | cacdf8f4c9aeee02ffd5f91ba5494f6c4cdc504a | 0152e8f307a44b7ee355a4020405e6e1e42ab1e6 | refs/heads/main | 2023-02-25T11:36:14.840005 | 2021-02-02T10:46:44 | 2021-02-02T10:46:44 | 330,765,629 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | lost_fights_count = int(input())
helmet_price = float(input())
sword_price = float(input())
shield_price = float(input())
armor_price = float(input())
sum_for_repair = 0
broken_shield_count = 0
for lost_fight in range(1, lost_fights_count +1):
if lost_fight % 2 == 0:
sum_for_repair += helmet_pr... | [
"noreply@github.com"
] | noreply@github.com |
f913ae905247b8e0dff1b76960b7bc3560d658f1 | f87c90c4721a0855980d51e8b65d8cfa5e37664b | /tools/releasetools/common.py | f4f67eaa9e27dedd3cdf2545a9ef809b505f5015 | [
"Apache-2.0"
] | permissive | Ankits-lab/build | 493ab6fe9c025621e22475e85af320a3330216df | 59c4a076a04708b36ffff0c81429bed3fb121370 | refs/heads/main | 2023-01-13T20:48:59.399800 | 2020-11-14T08:53:57 | 2020-11-14T08:53:57 | 312,779,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124,331 | py | # Copyright (C) 2008 The Android Open Source Project
#
# 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 applica... | [
"keneankit01@gmail.com"
] | keneankit01@gmail.com |
ca64a8620097e64cd0e3f07acf0fdbadf7c62a6a | 458eafbb2763c8d8056312fe8254fc1b43ce2cf7 | /CloudShell.py | d7ad15aa3a5c0890036221ac7c507001da4be917 | [] | no_license | hxtin001/SeleniumPython | f9bbe052462dfe8a4b68bee5056fad23cfae7953 | 38450ec0eaef771756dd837d4a0b76cbb783d8ca | refs/heads/master | 2020-03-17T20:29:33.500266 | 2018-06-07T03:56:52 | 2018-06-07T03:56:52 | 133,912,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,416 | py | # -*- coding: utf-8 -*-
import time
from selenium import webdriver
# from pyvirtualdisplay import Display
import logging.handlers
from selenium.webdriver.common.keys import Keys
import constants
import json
# For display none
# display = Display(visible=True, size=(constants.screen_width_default, constants.screen_heig... | [
"tinhx@evolableasia.vn"
] | tinhx@evolableasia.vn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.