blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15ed73aa9d59827398ca3d5f8fe89d7baaf23d8d | f5645f685c8be36711f71c3a6763d6a4f93788b5 | /sandbox/settings/test.py | 9ef14ae7a9e7f1cd9b73a4a8de05e269cc2be55b | [
"MIT"
] | permissive | pincoin/rakmai | ef034c6b6d5501cd433869446275f4f3b622a73b | fe41fd0ab88bf143e65b450ceb798741d0f80330 | refs/heads/master | 2023-03-02T13:24:10.885714 | 2023-02-27T14:37:10 | 2023-02-27T14:37:10 | 112,416,258 | 13 | 4 | MIT | 2023-02-15T18:54:11 | 2017-11-29T02:34:15 | JavaScript | UTF-8 | Python | false | false | 2,098 | py | SECRET_KEY = 'rakmai_fake_key'
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
INSTALLED_APPS += [
'mptt',
'taggit',
'django.contrib.sites',
'a... | [
"pincoins@gmail.com"
] | pincoins@gmail.com |
98339983b1e4307347e91ea5bd70d06acc138f94 | bb26f1a453591503f29b50fec203d239a34ad9a3 | /Programs/Python/area_of_circle.py | 5f722866bbd3b7f806efb63582bd5e408fae9e74 | [] | no_license | tejas4m/All_Programs_and_algorithms | 95111a2775b2f6d5c86c863180fc25c033619491 | 3dfb7ed352e1730613efb9a321082adc53006f1c | refs/heads/main | 2023-08-02T17:39:56.315276 | 2021-10-07T10:55:20 | 2021-10-07T10:55:20 | 414,315,589 | 1 | 0 | null | 2021-10-06T17:51:13 | 2021-10-06T17:51:12 | null | UTF-8 | Python | false | false | 62 | py | r = 10.45
a = 3.14 * r * r
print("r =",r," Areaof Circle =",a) | [
"worldhacker2430@gmail.com"
] | worldhacker2430@gmail.com |
a2f6f4bc17af8705d6be9946aaa92419fedca1a7 | 944c5ac6562e43826bb7738b95fe2f1221a5a130 | /machine/slack.py | 9543c42d9c46b5aecd8f25b4f3420459dbc2abdc | [
"MIT"
] | permissive | bvujnovac/breakbot | 7f8839be21572c565cddc4a0da55b612c8dc028e | 0e7f55fe22f74074395fb2c656c573fada7f57a9 | refs/heads/master | 2022-08-31T06:57:03.334249 | 2022-08-07T21:49:30 | 2022-08-07T21:49:30 | 202,620,752 | 0 | 0 | MIT | 2022-08-07T21:49:31 | 2019-08-15T22:42:30 | Python | UTF-8 | Python | false | false | 4,993 | py | from machine.singletons import Slack, Scheduler
class MessagingClient:
@property
def users(self):
return Slack.get_instance().server.users
@property
def channels(self):
return Slack.get_instance().server.channels
def retrieve_bot_info(self):
return Slack.get_instance().se... | [
"bvujnovac@gmail.com"
] | bvujnovac@gmail.com |
81f06a3c3d2539e16c495fe0ba2b0486850a8aca | 7d7a3553729fcedad45cdd6fd77865ccbb245f23 | /将excel导出成dll/Run.py | ee77a52700d3f850146f213254f33ae18a7507d8 | [] | no_license | paoshuipao/exportDll | 40838f5d837adf848d87f01254c0f7c3abcbe96b | 68ee7f74726421cb4bfe33da256122f2215dd715 | refs/heads/master | 2020-03-12T14:49:20.898290 | 2018-04-23T16:21:19 | 2018-04-23T16:21:19 | 130,676,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,490 | py | #coding:utf8
import os
import sys
import xlrd
import json
import shutil
print 'platform', sys.platform
platname = sys.platform
encodeType = 'gbk'
if platname == 'darwin':
encodeType = 'utf8'
xlsfile = u"配置表"
iconfig = '''
using System.Collections;
namespace PSPUtil
{
public class IConfig
{
public int id;
... | [
"1016837056@qq.com"
] | 1016837056@qq.com |
04d85229140105d80808751baa8a53c7abcfbc20 | 8ff51cce23c87cb4e0452abf41b84881924e26eb | /BackUp/DG_Project_BoB_OnetoMany(ParametrizAmount)/manage.py | 321f33b43f1efad20834bf073156319151d25150 | [] | no_license | bodianli/Generat_Fake_Data | 1052f13b469ff576650598f221cb849112de742a | 7ef884ac2042fb92c1b59597355abd956a0eaaee | refs/heads/master | 2023-03-08T01:16:24.343485 | 2021-02-23T20:10:13 | 2021-02-23T20:10:13 | 341,676,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DG_Project_BoB_OnetoMany.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't im... | [
"lbd941223@gmail.com"
] | lbd941223@gmail.com |
7089ce2997caa0906fdb6ca385e862bf3d1ffb8e | a5f95d0564f03191b75171b00bfbaf25a86e57f1 | /hathi-0-match-registrations.py | 2eb85d6f28d5bf3537dc9ec9cfc9db82e90c9d9d | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | leonardr/cce-python | ec9b96f13c59abfa44b050be6762727f924b7ffc | 4240ad3f175c7b74ca160e260fa71d624b7681ca | refs/heads/master | 2020-06-28T18:47:47.078133 | 2019-09-12T20:39:50 | 2019-09-12T20:39:50 | 200,312,152 | 36 | 2 | MIT | 2019-08-22T12:46:40 | 2019-08-03T00:10:55 | Python | UTF-8 | Python | false | false | 13,396 | py | import sys
import Levenshtein as lev
from pdb import set_trace
from model import Registration
import datetime
import re
import json
from collections import defaultdict
# Ignore CCE entries if they have more than this many matches on the
# IA side.
MATCH_CUTOFF = 50
# Only output potential matches if the quality score... | [
"leonardr@segfault.org"
] | leonardr@segfault.org |
256daba98bb5fd3243c913d51345d43bbe19b75a | 9214736766cce5399cf0d178b1398438fc40357d | /examples/reconfigurable_radio_power/fitness_script.py | b0de944cef7cf06c61ef7588267d230e52ec7d20 | [] | no_license | CustomComputingGroup/MLO | daaa391984a7b795354e518563733c98692b460c | 3af52321da6a5bfb3b3cc04df714eb04250e157c | refs/heads/master | 2021-01-01T19:34:15.891410 | 2013-05-21T16:23:26 | 2013-05-21T16:23:26 | 7,650,010 | 0 | 1 | null | 2019-01-21T19:53:47 | 2013-01-16T17:12:56 | Python | UTF-8 | Python | false | false | 8,467 | py | import math
import operator
import csv
from deap import base
from deap import creator
from deap import tools
from numpy import *
from copy import deepcopy
from numpy.random import uniform, seed,rand
cost_maxVal = 1.0
cost_minVal = 0.0
initMin = -1
initMax = 1
global reconfiguration_time_set
rotate = False
#aecc ... | [
"liutianchi@yahoo.com"
] | liutianchi@yahoo.com |
03184a2f469e1ce27641847dc30183d3a658359d | f2a5680231e205dc49a083578d9bd90e4603036c | /Grokking-Coding-Interview-Patterns/14. Top K Numbers/KpointsClosestTwoOrigin.py | ef7a6e0c1f638611eb0b6307af2de741ced1381e | [] | no_license | flogothetis/Technical-Coding-Interviews-Algorithms-LeetCode | d592451f7d297fd52395e33dc67686e9990a663c | 7c8473fce4b5b5affbfde5ed8c39fdb89cbc77d4 | refs/heads/master | 2023-01-13T15:56:07.706164 | 2020-11-18T18:54:52 | 2020-11-18T18:54:52 | 281,101,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | '''
Problem Statement #
Given an array of points in the a 2D2D2D plane, find ‘K’ closest points to the origin.
'''
from heapq import *
# Time Comp : O(NlogK)
# Space Comp : O(K)
class Point:
def __init__(self, x, y):
self.x = x
self.y = y
def __lt__(self, other):
self.euclidean_dist() > other.eu... | [
"flogothetis95@gmail.com"
] | flogothetis95@gmail.com |
d82ef6bbea01a30b187c3429d68858efdbac650b | a8264d7a20880722ff42e8195e500e451dd24902 | /first_project/settings.py | 14c452e168bcf069a8d499fab61ebcee42c019ff | [] | no_license | suraj-kanbarkar/UserRegistration | c6e1784568202250207188f84a9ea057bc4c4952 | d7db419c1167dfd32fe6540639278830ef58d46b | refs/heads/master | 2022-09-07T15:36:18.353731 | 2020-05-29T08:50:57 | 2020-05-29T08:50:57 | 267,568,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | """
Django settings for first_project project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import... | [
"suraj.kanbarkar@grssl.uk"
] | suraj.kanbarkar@grssl.uk |
69ab8318d7d56591fb47b9a3477baf39cf069ee7 | 882db26b6567feffc7f859eec2c57b2273b40c43 | /flaskwithwebsite(heroku)/otherfiles/scrapenamepic.py | b9cfd474b6bad2116a97b6cb5eb2de59e3dd544f | [] | no_license | gokulp01/student-management-system | 694d6060e29163ab9a009ecbffcf45750dc8ae76 | a923580eb1345b1ddf6358e79de754d80f65d102 | refs/heads/master | 2023-01-13T14:26:45.698222 | 2020-11-18T14:39:43 | 2020-11-18T14:39:43 | 290,752,201 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | import requests
from bs4 import BeautifulSoup
from json import dumps
import urllib.request
url = r'D:\WEBDEV\SLCM API\homepage.html'
soup = BeautifulSoup(open(url).read(),features='lxml')
name = soup.find('span',{'id':'lblUserName'})
image = soup.find('img',{'id':'Repeater1_Image2_0'})
urlfinal = image['src']
print(n... | [
"karthikramakrishnan14@gmail.com"
] | karthikramakrishnan14@gmail.com |
6646cc717a3f4998c9ce1ffd9d3410843ee7e950 | cc657a33b4463d5651a780a24108757988f38146 | /todo.py | ff5ecec92faf6b684ddd113e79293135d26744de | [] | no_license | darcymeyer/command-line-todo-list | 7f8ed51e43f946461d2017c4a2de4a16eaeba788 | 54e751c1e265482a85defef235f93697f0f5803c | refs/heads/master | 2020-07-25T00:28:58.310069 | 2019-09-12T17:00:54 | 2019-09-12T17:00:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,917 | py | #!/usr/bin/env python3
import click
import json
import os
TODO_LOC = os.path.expanduser("~") + "/.todo/todo.json"
cli = click.Group()
@cli.command(name="init")
def initialize():
"""Initialize list, only run this once"""
home = os.path.expanduser("~")
try:
os.makedirs(home+"/.todo/")
except:
pass
if not os.... | [
"darcy2252755@gmail.com"
] | darcy2252755@gmail.com |
81cb94dc9dcae1e5ee3e377700a0e9eca4bb5cc3 | 3c8661eee71a7e0f264599d574f927e9b7d55e54 | /code/extrinsic_sphere_opt.py | 553df654a33b0f52c8f944c75ca5431da3caaf46 | [] | no_license | michaelzhang01/manifold_opt | b15139a8126983c3e8a3d393c3d5525d7402e7f0 | 057350595f1b0b6f5fd9b136cb87aa9723b56bc6 | refs/heads/master | 2022-12-19T19:18:02.429436 | 2020-10-17T09:59:32 | 2020-10-17T09:59:32 | 147,734,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 2 02:16:19 2020
Extrinsic Sphere Code
@author: Michael Zhang
"""
import numpy as np
from manifold_opt import ManifoldOpt
class ExtrinsicSphereOpt(ManifoldOpt):
def __init__(self, X, theta_init, lambda_init, iters=500,
filename="extrinsic_sphe... | [
"michaelzhang01@gmail.com"
] | michaelzhang01@gmail.com |
50f57cdf741ff10781381d4764ff69474278b5b8 | 124b9b3aa4d6c4e1014e2119a32b711c9bfe3b78 | /Problem Solving/Birthday cake candles.py | b40d1a9bc11bff36ff280ded0ffb1d7af6ec3d14 | [] | no_license | Devendra33/HackerRank | 5f4929c1161fade3ed1a593b847403943e757bdb | 980f8577677e24da654627b35fbfccb69b17f218 | refs/heads/master | 2022-12-14T05:13:30.405197 | 2020-09-12T09:24:31 | 2020-09-12T09:24:31 | 264,129,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the birthdayCakeCandles function below.
def birthdayCakeCandles(ar, ar_count):
cnt = 0
num = max(ar)
for i in ar:
if i == num:
cnt += 1
return cnt
if __name__ == '__main__':
fp... | [
"noreply@github.com"
] | Devendra33.noreply@github.com |
c5758e2074eda4a844f6e212dc956b083fe001e8 | 5e6c27a68ccabe0f8b1981536cd1a23de6ae3522 | /fixed_queue_test.py | 988f2f1d8aa6eb7fb22f5c099a13d7036b8d6dbc | [] | no_license | fedecaccia/data_structures | 14513d0fad07a195ae69dc0a8cb11087c5fc0200 | 74aa9c553712b0f18a255940495ed6e3ff2c76e0 | refs/heads/master | 2020-10-01T05:07:51.420008 | 2019-12-17T00:30:45 | 2019-12-17T00:30:45 | 227,465,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | import pytest
from fixed_queue import FixedQueue, FixedQueueLinkedList
@pytest.fixture
def empty_queue():
q = FixedQueue(0)
return q
@pytest.fixture
def new_queue():
q = FixedQueue(2)
return q
def test_size(empty_queue, new_queue):
assert(len(new_queue) == 0)
assert(len(empty_queue) =... | [
"federicoagustincaccia@gmail.com"
] | federicoagustincaccia@gmail.com |
dcd82fd2a59803baeb191e7c636fb4021b62689e | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_46/run_cfg.py | d0f4e8c6b8e8c8ce3a1c19aadea1c9c7a03b7ca4 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
ac3f681ff49d500b4fa57354e421919c40815772 | d1bcd1a55221d52cab88f397183ee6492fc7f5a5 | /workmail-translate-email/src/translate_helper.py | 3fb6cccbe58ab4aa99341ff7ff29997ad198d655 | [
"Apache-2.0"
] | permissive | aws-samples/amazon-workmail-lambda-templates | fccd1b490d69a08b512e2e666d4a85000745b793 | d7b83d7f4499768f60fd115f5f995e1d8daccf89 | refs/heads/master | 2022-06-30T22:22:43.030710 | 2022-06-30T19:05:15 | 2022-06-30T19:05:15 | 168,240,710 | 39 | 18 | Apache-2.0 | 2022-06-30T19:05:16 | 2019-01-29T22:38:50 | Python | UTF-8 | Python | false | false | 1,323 | py | import boto3
comprehend = boto3.client(service_name='comprehend')
translate = boto3.client(service_name='translate')
def detect_language(text):
"""
Detects the dominant language in a text
Parameters
----------
text: string, required
Input text
Returns
-------
string
Rep... | [
"noreply@github.com"
] | aws-samples.noreply@github.com |
025db735a8bb10085e682efa3925f9e3af939983 | 3d44f334acdee27ce14e5c78d2ac82c11ffd27da | /resources/percuiro_lib/percuiro/util.py | 6da92e1de45852c7e9c134cbc8099fc21484ee76 | [] | no_license | dbsr/plugin.video.percuiro.tacobell | ea94bd56f3ebf2a1b2957b243634feaec52da01e | f30af66f1388008e7c11e836361e42a27dc6835a | refs/heads/master | 2020-03-29T18:14:13.105914 | 2014-04-11T10:39:12 | 2014-04-11T10:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | # -*- coding: utf-8 -*-
# dydrmntion@gmail.com
import os
import re
import subprocess
from urlparse import urlparse
import urllib
from common import REAL_DEBRID_REGEX, PROVIDERS_THUMBNAIL_PATH, FILTER_EXTENSIONS
def clipboard_paste():
ret = ''
try:
prc = subprocess.Popen(['xclip', '-o'], stdout=subpr... | [
"daanmathot@gmail.com"
] | daanmathot@gmail.com |
0886adbd3f53a5f2e6057087ff694feed85a9e08 | dcaecca28f39f73c8bcafed70269176088eee567 | /hash_check.py | 13860c35ed2f022027f0ae7a9bfb31485a9d26ec | [] | no_license | CHOI-JINHO04/hash_check | 3adb591a77119b6f6d64ac03a5d78dc9ea59b664 | 5248ae1cbf289b1030ea43d3424be36e438bc55a | refs/heads/master | 2022-11-30T12:39:54.297482 | 2020-08-16T01:18:59 | 2020-08-16T01:18:59 | 286,919,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,869 | py | ###################
# /usr/bin/bash
# made by jackson
# using > python hash_check.py [filename.xlsx]
###################
import requests
import time
import csv,sys
from openpyxl import Workbook
import queue
q = queue.Queue()
container=[]
matrix = []
de_metrix=[]
result_check_hash = []
check_malwares = []
readf... | [
"noreply@github.com"
] | CHOI-JINHO04.noreply@github.com |
6917050299f1823f1d2ee59d315284a2893e5b65 | 5775aad5976aa7c41db3631dfe081a0f295cd079 | /IntersectionOfTwoLinkedLists/solution.py | a52dae303c796a1786176d4656784566d380309e | [] | no_license | x2mercy/Leetcode_Solution | 6de44c065053cc2704595a2630bd6357d8611417 | 1063b075858978788990c67ac2542e9899ff0358 | refs/heads/master | 2021-08-28T11:41:51.497211 | 2017-12-12T04:19:37 | 2017-12-12T04:19:37 | 103,789,837 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def getIntersectionNode(self, headA, headB):
"""
:type head1, head1: ListNode
:rtype: ListNode
"""
a=headA
... | [
"noreply@github.com"
] | x2mercy.noreply@github.com |
d5b52b8524245f61acd2d4b18944962cbd6d4090 | 0ea9876ea7335899297bad0b85b1d75d636846a8 | /quickapp/models.py | 771a0f2675860e40e18e088dde1d63362473eee5 | [] | no_license | muhmmadAffan/Shopper | 77af31a0fba031669e3217298650a44cdac2aa90 | 3cd32b8528941b71e858e30cec6427a454b925ec | refs/heads/main | 2023-06-01T01:03:36.152023 | 2021-07-02T12:21:31 | 2021-07-02T12:21:31 | 382,255,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from django.db import models
# Create your models here.
class customer(models.Model):
customer_name = models.CharField(max_length=100)
postal_code = models.IntegerField()
email = models.EmailField(max_length=100)
def __str__(self):
return self.customer_name
class salesperson(models.Model):
... | [
"maffan@codexnow.com"
] | maffan@codexnow.com |
d19aa8bff94b8449918f14546fde67f6fd21762a | a76cd3e9e90cc835e5937d66e5e6ec9a2e64b9c9 | /main.py | 811b99f09fe3fb1f7ce8a58d3683473365f5d618 | [
"MIT"
] | permissive | cgmv123/CS-534 | 0b7e0b3a81ca370cb5169b7fad3470f241be62b0 | 32c13454eb8b7fc7b5c733eae5d4144805671544 | refs/heads/master | 2020-03-29T07:45:05.165180 | 2018-12-13T18:39:50 | 2018-12-13T18:39:50 | 149,677,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,493 | py | import cv2
import sys
from src import extract
from src import match
from src import stitch
import numpy as np
from src import input
from src import frames
from cv2 import createStitcher
import time
OUTPUT = "output/"
SCALE = .5
WARP_PARAM = 1650
def drawMatches(imageA, imageB, kpsA, kpsB, matches, status):
# ini... | [
"jasonmohoney@gmail.com"
] | jasonmohoney@gmail.com |
cdf2d6deb8c50d81d8af943c1a5cc1350fad7063 | 815a3dd3d3c84c6baf9f49b9a9fb5c125584d5e7 | /2nd year/IA/lab7-LSM-ML/MatrixHandler.py | 065230ba5abde0b81649de9c674ee98b47d6d2fe | [] | no_license | Tonissonn/college-ubb-labs | c97bbbe48adbcbfe9b8a0bbfc77149c0535411d6 | 87b05fc4033868d1e9d3553e001f0ef821016b1f | refs/heads/main | 2023-08-01T01:49:03.656923 | 2021-09-13T11:48:46 | 2021-09-13T11:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py | def eliminate(r1, r2, col, target=0):
fac = (r2[col] - target) / r1[col]
for i in range(len(r2)):
r2[i] -= fac * r1[i]
def gauss(a):
for i in range(len(a)):
if a[i][i] == 0:
for j in range(i + 1, len(a)):
if a[i][j] != 0:
a[i], a[j] = a[j], a... | [
"radu_vintila20@yahoo.com"
] | radu_vintila20@yahoo.com |
48177a5e8be0a8e6387f1dfd7aa3912c48396476 | 6e3b3a56e44c33155d59638bb015be9c15e5e7ce | /product/apps.py | ec534bd803a09a6f4614f9fcb000f0931613c0e3 | [] | no_license | maurxeugenio/cardapioz | 86658aea82e4899106f73ae16e09cc6b1a969751 | 7a4f79e3dfa532664e78066d5edef0a3c973f86d | refs/heads/master | 2021-05-02T07:26:25.035312 | 2018-01-27T01:44:28 | 2018-01-27T01:44:28 | 120,828,516 | 0 | 0 | null | 2018-02-08T22:59:39 | 2018-02-08T22:59:39 | null | UTF-8 | Python | false | false | 174 | py | from django.apps import AppConfig
class ProductConfig(AppConfig):
name = 'product'
verbose_name = 'Setor de produto'
verbose_name_plural = 'Setor de produtos'
| [
"maurx.dev@gmail.com"
] | maurx.dev@gmail.com |
e9692a13fdee83b0b0144047bd00cff5f3640179 | 2df463afc8c1dad80b5e3132c8e945d0b2d606e3 | /exploratory_data_analysis/utils.py | de0811c6c413ecdc5dbcb79d6acfc5cb6632692b | [] | no_license | DaviRamos/ml-utils | 791de59ea8ee2f99629185f39d34a000e48fa4ec | de812c0a6eaaca79b1b582a9daba84cd66b42180 | refs/heads/master | 2022-11-22T19:56:37.471355 | 2020-07-25T19:14:16 | 2020-07-25T19:14:16 | 295,758,490 | 1 | 0 | null | 2020-09-15T14:43:47 | 2020-09-15T14:43:47 | null | UTF-8 | Python | false | false | 1,678 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 28 19:42:30 2019
@author: Jessica Cabral
"""
############################################################################
# TOOLS SCRIPT #
#########################################################################... | [
"jessica_5548@hotmail.com"
] | jessica_5548@hotmail.com |
03d5325ec088f2701d3826c732407eeba995016a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /g7sh7oLoArRLmM2ky_6.py | d4615fa5b39a2c4ba13bdd9812cce19b2372f521 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py |
import re
def baconify(msg, mask=""):
d_key={
"uuuuu" :"a" ,
"uuuul" :"b" ,
"uuulu" :"c" ,
"uuull" :"d" ,
"uuluu" :"e" ,
"uulul" :"f" ,
"uullu" :"g" ,
"uulll" :"h" ,
"uluuu" :"i" ,
"uluul" :"j" ,
"ululu" :"k" ,
"ulull" :"l" ,
"ulluu" :"m" ,
"ullul" :"n" ,
"ulllu" :"o"... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
546a4af39360350465c0ca3bda6e5dabafad1e0c | 3208f15876e5ae0275366763f57380f383eae55b | /manage.py | baef8477b5382806b9d2514ca37998eb21f3ff95 | [
"MIT"
] | permissive | jpadilla/feedleap | 05d4abbd21408ec2c4d1f2a99aaba0fe22a7e3f7 | 06d87a680a4bd2ead550b3540e58a8c520a733ba | refs/heads/master | 2023-05-31T19:22:14.143515 | 2014-06-27T13:02:52 | 2014-06-27T13:02:52 | 9,079,296 | 1 | 1 | null | 2013-05-05T17:05:29 | 2013-03-28T14:53:25 | Python | UTF-8 | Python | false | false | 1,004 | py | #!/usr/bin/env python
import os
import sys
import re
def read_env():
"""Pulled from Honcho code with minor updates, reads local default
environment variables from a .env file located in the project root
directory.
"""
try:
with open('.env') as f:
content = f.read()
except ... | [
"jpadilla@webapplicate.com"
] | jpadilla@webapplicate.com |
88e05384c3366b553d65a5bfe96227230b8a712e | 4c5e830bf63be15ec98a0445663fc3b573efde24 | /app/cart/admin.py | 4e0014dcb1c753a2001bcd52f463a07feea7c107 | [] | no_license | Eslamhathout/pm_task | 4e6072bdbd93a2ca8041d3b70e3f16e5e9ce547d | ad0c8edb95b97235a8a0123b88afe751e4a6ddf5 | refs/heads/master | 2023-07-21T10:22:13.429529 | 2021-09-05T21:06:27 | 2021-09-05T21:06:27 | 399,228,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from django.contrib import admin
from cart import models
admin.site.register(models.Cart)
| [
"i.a.hathout@gmail.com"
] | i.a.hathout@gmail.com |
ca93204a00373b06690345a47392831fa59520db | 477ddbb411b0b9d7431eed8e1d5be155f4940e05 | /feedly/serializers/base.py | 06687c2c8bd6ca74134fb5225350beb2598cde3b | [
"BSD-3-Clause"
] | permissive | atefzed/Feedly | 9ba531d183637e9d42bfdade4c831825f549e2d1 | f3824b95cefc360ebbfc2d2166b53a5505f49fbc | refs/heads/master | 2021-01-15T17:07:40.795228 | 2013-05-07T22:17:15 | 2013-05-07T22:17:15 | 10,055,814 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 41 | py |
class BaseSerializer(object):
pass
| [
"thierryschellenbach@gmail.com"
] | thierryschellenbach@gmail.com |
2bdae1ebed565e28e97db48d2572f1ee884a22a6 | fef5cbf4db4e12d995c02a68537c3631fe71cbcd | /dominoes/skinny_board.py | f2ca2f733b5d91a6de7f2115b16fa0bc8681c76b | [
"MIT"
] | permissive | deniscsz/dominoes | ccecaabb651a9dfd5c725fcfabd0ce902a60ad60 | 9b5f0c34735aef9c4c165468bf0d4722d24ceeea | refs/heads/master | 2020-03-22T13:49:00.604586 | 2017-01-13T03:31:23 | 2017-01-13T03:31:23 | 140,133,372 | 1 | 0 | MIT | 2018-07-08T03:08:15 | 2018-07-08T03:08:15 | null | UTF-8 | Python | false | false | 5,089 | py | import dominoes
class SkinnyBoard:
'''
Python class for objects that represent a domino board.
A domino board consists of a series of dominoes placed
end to end such that the values on connected ends match.
This class reduces the memory required by each instance
by remembering only the values a... | [
"alanwagner333@gmail.com"
] | alanwagner333@gmail.com |
d983c1aff3d7d0d86bb0014cdfdc082c9bdd1cc9 | c35067034cff76ccd5568abc15d745fc480f02cc | /config_db.py | ecfe65f53e92806bd69194ba99ae584eeb035c08 | [] | no_license | eneasmarques/item-catalog | 9c82c8374c7ba8f394a60bcd9cd049638e30731f | 088523f8fed50c691df867a225f1a76c0fe0d6c4 | refs/heads/master | 2020-07-10T18:24:31.666866 | 2019-08-26T21:53:13 | 2019-08-26T21:53:13 | 204,334,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | # urls for database
DATABASE_URL = 'sqlite:///restaurantmenu.db'
| [
"eneasmarques@outlook.com.br"
] | eneasmarques@outlook.com.br |
6069be8064002ba6e48ace2e422ed62d65f716d8 | 51888119e10cdff12dafb060a54824632edccf3f | /Folders/Python/stamps.py | 2a699233a77790833fb5c81c1d8085e8eff222c2 | [
"BSD-2-Clause"
] | permissive | kuchinal/lamakaha | b64511ad8c6d2b36da5a84a266b9e7a69acd3106 | 24e3b2ff53bcac2ad1c0e5a3b9afd4593d85f22d | refs/heads/master | 2023-09-01T17:55:56.551183 | 2023-07-31T19:32:04 | 2023-07-31T19:32:04 | 182,849,747 | 0 | 0 | null | 2021-09-10T06:34:22 | 2019-04-22T19:00:02 | Python | UTF-8 | Python | false | false | 33,729 | py | """
Stamps rebuilt by Adrian Pueyo
Full original concept and Postage Stamps created by Alexey Kuchinski and Ernest Dios.
"""
version= "v0.2"
# Constants
STAMP_DEFAULTS = { "note_font_size":20, "hide_input":0 }
ANCHOR_DEFAULTS = { "tile_color" : int('%02x%02x%02x%02x' % (255,255,255,1),16),
"autolabel": 'nuke.t... | [
"lamakaha@gmail.com"
] | lamakaha@gmail.com |
908221d3c6b4f0613a9fba45fa811bc1671512b0 | d8d8bcae3199c75907450e86e4a966e6ee385957 | /network/models.py | 1c1fc69f2ed2190266738de89cd17a89b246dc14 | [] | no_license | MigueSnow20/Django-Tutorial | 19ef178148e2a895e81c0b338fee02fdeb9d65e3 | 21471e81ad2afd305366eb05d1428a1df079b9e3 | refs/heads/main | 2023-08-22T10:59:37.471119 | 2021-09-15T03:12:27 | 2021-09-15T03:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
from django.conf import settings
import uuid
class Post(models.Model):
identifier = models.UUIDField(primary_key=True, default=uuid.uuid4)
slug = models.SlugField(max_length=250)
description = models.... | [
"lucianolivares.lo@gmail.com"
] | lucianolivares.lo@gmail.com |
a239106cef8442b230dac2f06621bbc87229ae02 | 70dfd771c9505bb225ac77eb9becf491c72630c9 | /RadiButtonsAndCheckboxes.py | 59668fc99f8b7714b47947a604aab6ed4a634e7b | [] | no_license | MLPriyareddy/AutomationWithPython | 39aa07951d0c5cde13dcfa90db3c92ef9811ea63 | 4f9af6b020aaadc27606ac689aa6421736eefe27 | refs/heads/main | 2023-01-03T18:11:30.693226 | 2020-11-02T22:09:36 | 2020-11-02T22:09:36 | 307,513,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
import time
driver=webdriver.Chrome(executable_path="C:\ChromeDriver\chromedriver_win32\chromedriver")
driver.maximize_window()
driver.get("https://fs2.formsite.com/meherpavan/form2/index.html?1537702596407")
# Working with the Radio Buttons
s... | [
"sreejareddy.mandapati@gmail.com"
] | sreejareddy.mandapati@gmail.com |
ee5becf7cc0e2b4eb31ae9929294f296e882bc85 | e75c9e26c181098c22a992a79ab4f4072ab50b57 | /tests/analyses/reaching_definitions/test_dep_graph.py | e01a74884b6d8f726af892ade127e90fdf6ac298 | [
"BSD-2-Clause"
] | permissive | mehrdad-shokri/angr | 3d93a830a909099a6899c2d7dac8f935f75c6f3a | 878dbec77260261c144df0bf3364606fd862141b | refs/heads/master | 2021-07-03T21:49:28.746502 | 2020-08-22T04:57:15 | 2020-08-22T04:57:15 | 150,834,717 | 0 | 0 | BSD-2-Clause | 2020-08-19T22:30:01 | 2018-09-29T06:56:02 | Python | UTF-8 | Python | false | false | 5,821 | py | # pylint: disable=no-self-use
from random import randrange
from unittest import mock, TestCase
import networkx
from angr.code_location import CodeLocation
from angr.knowledge_plugins.key_definitions.dataset import DataSet
from angr.knowledge_plugins.key_definitions.atoms import Atom, Register
from angr.knowledge_plug... | [
"noreply@github.com"
] | mehrdad-shokri.noreply@github.com |
f6798ebfad5c33af8f1ba50e464abb3f065494b9 | 9b2772b377608d5d2ac104a54bbb107bf3f269e3 | /rewind/client/test/test_code.py | 08fc95e27d009f312dc1c094cd3f79b6bb4fe3c3 | [
"MIT"
] | permissive | JensRantil/rewind-client | fa4f995261c9c38a63f1362963c02a5eea87bbf4 | 3177f3fc1595678a093e03aca13cc92721c58330 | refs/heads/master | 2021-03-12T20:41:11.037641 | 2012-12-17T00:00:48 | 2012-12-17T00:00:48 | 6,010,472 | 2 | 0 | null | 2012-10-21T22:59:59 | 2012-09-29T15:56:52 | Python | UTF-8 | Python | false | false | 2,698 | py | # rewind-client talks to rewind, an event store server.
#
# Copyright (C) 2012 Jens Rantil
#
# This program is distributed under the MIT License. See the file LICENSE.txt
# for details.
"""Test code format and coding standards."""
from __future__ import print_function
import os
import pep8
import pep257
import unitte... | [
"jens.rantil@gmail.com"
] | jens.rantil@gmail.com |
88bc688e498094503a5fbc932872ebc11eb90b56 | f104705c6bf8679b4990e1c7cbddd88b00bb4526 | /zwave_power_meter_socket_a.py | 0ae8087081cd7efcf67222cfbb1c29be26b50f18 | [
"MIT"
] | permissive | ContinuumBridge/zwave_power_meter_socket | 80e8e108a581333fa770653ba93d238f64781c1e | 78aa6d59bebf1993ec376010b6f8b83a898ed69c | refs/heads/master | 2021-01-10T21:00:39.936142 | 2015-10-13T08:20:42 | 2015-10-13T08:20:42 | 24,646,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,348 | py | #!/usr/bin/env python
# zwave_power_meter_socket.py
# Copyright (C) ContinuumBridge Limited, 2014 - 2015
# Written by Peter Claydon
#
ModuleName = "zwave_power_meter_socket"
INTERVAL = 60 # How often to request sensor values
CHECK_ALIVE_INTERVAL = 120
TIME_CUTOFF = 1800 #... | [
"peter.claydon@continuumbridge.com"
] | peter.claydon@continuumbridge.com |
e1688c2b70a20925d085ddad423847170a53bf61 | cce454231eac4d2d9e8013b5347e3c2a219647f9 | /text_order_estimation.py | efdae0d2f49574a9c4cbd7f652ff987da8463099 | [] | no_license | ELanning/mantra-aaai21-tools | 71a3a43762d29587c8facdb91f86a3b8ab5ff641 | 0d0ae40657ec3b40f4e98eca2c1645cc7a3f6099 | refs/heads/main | 2023-03-26T19:42:55.540865 | 2021-03-25T09:51:46 | 2021-03-25T09:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,883 | py | import os
import copy
import matplotlib.pyplot as plt
import json
import numpy as np
from collections import defaultdict
from PIL import Image
class OrderEstimator:
def reorder_object(self, pagedata):
if len(pagedata["frame"]) == 0 or len(pagedata["text"]) == 0:
return pagedata
org_pan... | [
"ryotahinami@RyotanoMacBook-Air.local"
] | ryotahinami@RyotanoMacBook-Air.local |
6d35dc56063d37130d751ccb5eac14538dc2bad1 | 044be0cb69c94bb2ce5dba4bc582f567ef6d979a | /Lib/site-packages/daphne/tests/test_http.py | 73c63404459b9715dc7f2bf549325687dea19df9 | [] | no_license | Dnnsmoyo/myenv | 3733e2c92cf8f04400cb947468ef28fd361acdcb | 4362d4c969eca71a9c73acc956489c54db477ea7 | refs/heads/master | 2020-03-21T08:27:15.724582 | 2018-06-22T20:07:47 | 2018-06-22T20:07:47 | 138,344,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,834 | py | from __future__ import unicode_literals
from unittest import TestCase
from asgiref.inmemory import ChannelLayer
from twisted.test import proto_helpers
from ..http_protocol import HTTPFactory
class TestHTTPProtocol(TestCase):
"""
Tests that the HTTP protocol class correctly generates and parses messages.
... | [
"dnnsmoyo@gmail.com"
] | dnnsmoyo@gmail.com |
fd763332d17de843638a864028b2a299b79fb921 | c574bbccea8f2fb3385114d8902a0788c533bfca | /migrations/versions/53c9c429122a_.py | 277eeb6eb9c6b7482d7ecf87ecaa1dc1309773b9 | [] | no_license | schoolie/vocab_test | 3b17aca0320bfaebed373e52e63abf23359f58c4 | 5eded8dda1c0cb813e7fb304ba8ae26ef4a9c603 | refs/heads/master | 2021-03-12T23:25:58.641227 | 2015-09-08T22:04:41 | 2015-09-08T22:04:41 | 41,266,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | """empty message
Revision ID: 53c9c429122a
Revises: None
Create Date: 2015-08-22 22:30:38.855000
"""
# revision identifiers, used by Alembic.
revision = '53c9c429122a'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###... | [
"brian.p.schoolcraft@gmail.com"
] | brian.p.schoolcraft@gmail.com |
15168dec4626c3febf115566723fbfa419c9adc1 | 609b28919f94af3b3dd7ede76d7fad659c0ca363 | /hangman.py | cebf8182373b865cad7996ee2a98806f04be1d0b | [] | no_license | susmithavegesna/Hangman | 810e9439e694e962b720c8ac129fded7fbe015a0 | 1ce238fa8c6f54472268032540d58bec008bd4ce | refs/heads/master | 2020-05-07T19:57:03.774036 | 2019-05-13T16:52:55 | 2019-05-13T16:52:55 | 180,837,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | import random
import flask
from flask_sqlalchemy import SQLAlchemy
app = flask.Flask(__name__)
# Database
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///hangman.db'
db = SQLAlchemy(app)
# Model
def random_pk():
return random.randint(1e9, 1e10)
def random_word():
words = [line.strip(... | [
"noreply@github.com"
] | susmithavegesna.noreply@github.com |
ea6d7a09a0098c84b4c48d440ab621b0b6a8bec7 | 98d832289b7437247ce03ea54ad3cb7b95451159 | /test/test_smtp_alert.py | 1dfe158f6bb2b04eba1df72525a8c0295f830931 | [
"MIT"
] | permissive | rmehilli-r7/vm-console-client-python | 7f02f13345dce4f4d4d85e18da7146daeefbceb9 | 069041c1c7b53c6b3d8bfdd81b974141bfca3c0c | refs/heads/master | 2020-03-23T11:20:33.364442 | 2018-08-10T20:06:37 | 2018-08-10T20:06:37 | 141,498,444 | 0 | 0 | MIT | 2018-08-08T19:58:45 | 2018-07-18T23:00:41 | Python | UTF-8 | Python | false | false | 48,842 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
768150f246383009e4a6ae46eef17b5f3c86e942 | 1c9e3f49ee353744f5da37dd329fec53bf36f6a5 | /health/health_app/models.py | be45478fb57e4e2e31e08807758e92868e36d1c0 | [] | no_license | himanshisehgal19/care-and-cure-hospital | 3dc373eb67784c879fa24ce4771d153082f690a4 | efdbc44f0085cac53d4dcf0c0941277f74c09b03 | refs/heads/main | 2023-06-30T15:51:35.716561 | 2021-08-07T16:41:44 | 2021-08-07T16:41:44 | 363,623,527 | 1 | 0 | null | 2021-05-02T10:28:17 | 2021-05-02T10:28:17 | null | UTF-8 | Python | false | false | 15,803 | py | from django.db import models
# Create your models here.
class train(models.Model):
itching=models.IntegerField(null=True)
skin_rash=models.IntegerField(null=True)
nodal_skin_eruptions=models.IntegerField(null=True)
continuous_sneezing=models.IntegerField(null=True)
shivering=models.IntegerField(nu... | [
"yash167272745@gmail.com"
] | yash167272745@gmail.com |
98f694263451c4748f27f993918222f436b573c9 | a32ca3544bb5a587e5fd7aaa1c73ac0fb918f11e | /hypha/apply/funds/migrations/0102_add_projectapprovalform_to_fundbase_labbase.py | 882caed4c6e476984fe371711a1304045f239190 | [
"BSD-3-Clause"
] | permissive | jvasile/hypha | 87904bf514e7cf5af63c7146eaaa49d3611fd57f | b5ccad20dd3434f53a2b9d711fac510124c70a6e | refs/heads/main | 2023-07-08T04:10:08.233259 | 2023-06-20T05:35:29 | 2023-06-20T05:35:29 | 354,630,183 | 0 | 0 | BSD-3-Clause | 2021-04-04T19:32:38 | 2021-04-04T19:32:38 | null | UTF-8 | Python | false | false | 2,110 | py | # Generated by Django 3.2.15 on 2022-09-07 12:35
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('application_projects', '0055_alter_project_status_add_pafreviewersrole'),
('funds', '010... | [
"sandeepsajan0@gmail.com"
] | sandeepsajan0@gmail.com |
8a300c2e51962fe9f209c488a57201f4b476e3f5 | 65ac8b463c09e7acf7d64b293cf169ef9674a38f | /classification_micro/binary_classifier.py | dec2939de1e8083aba3333df7bcefef2c8f28950 | [] | no_license | tatieliseeva/nuclei-classification | a129c881252c666cb5556fe37d3528b702e9c0d0 | 6ed9255f56b6242bde326f00a52e783df494bd20 | refs/heads/master | 2023-01-04T09:44:45.243212 | 2020-10-22T13:53:55 | 2020-10-22T13:53:55 | 225,068,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 16 13:45:10 2019
@author: tati
"""
# uncomment if checkpoints are needed
#from keras.callbacks import EarlyStopping, ReduceLROnPlateau, ModelCheckpoint
import binary_utils as ub
#%% input generators & model skeleton
train, test = ub.create_generator... | [
"noreply@github.com"
] | tatieliseeva.noreply@github.com |
0d9f1b9c05692e0a4ac1c4911483ce370c67941c | 4ee01fbe543d78e4861e8166dcfaf18a0856c4a3 | /Synth_Div.py | aaa3ac5ac23aabce66e97741ea198ee03c188ba6 | [] | no_license | Manuel-Argueta/Synthetic-Div | 9cbe05250adf094220cee4bd51c7eea2df65cc16 | 8f367da4421c05bcdbf3be995ba8c20835529320 | refs/heads/master | 2023-03-19T05:29:42.124644 | 2021-03-17T23:22:24 | 2021-03-17T23:22:24 | 348,845,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | # The following program is a CLI application that will allow the user to perofrm a synthetic division on a
# polynomial of n terms.
import re
def syntheticDivide(terms,divisor):
answer_list = []
divisor = divisor * -1
temp = 0
temp_2 = 0
for i in range(len(terms)):
if i == 0:
t... | [
"manuel.argueta0314@gmail.com"
] | manuel.argueta0314@gmail.com |
c2b0b0a629b76f22b52ad0579751e6e0d6e33ace | 0ec57fb1986512c8bff214658529df9f42d52fda | /origin/bonds/serializers.py | 0889a0a1e517b028cceb92b0efc07dd22302442b | [] | no_license | Etenil/PythonTechnicalTest | 0aecb85686589b7c2a8e22e0aec41f0cc93645c8 | e4958b815176dd73f4a56c70de696a01be170c13 | refs/heads/master | 2020-11-24T07:28:09.327851 | 2019-12-14T20:15:35 | 2019-12-14T20:15:35 | 228,029,353 | 0 | 0 | null | 2019-12-14T13:41:58 | 2019-12-14T13:41:57 | null | UTF-8 | Python | false | false | 1,267 | py | from rest_framework import serializers
from .models import Bond, LegalEntity
from django.contrib.auth.models import User
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = [
'username'
]
class BondSerializer(serializers.Hyperlinked... | [
"dev@etenil.net"
] | dev@etenil.net |
e710851a689538325d804091ca103627905d86d5 | 8329282a8fda056d705c1af6dbcd0de1ed7ca25e | /.history/textutiles/textutiles/views_20210522225246.py | ec3d62029c51e1f60b0b7c91f234a8013ae9d2c6 | [] | no_license | ritikalohia/Django-beginners- | c069b16867407ef883bb00c6faf4f601921c118a | 829e28ab25201853de5c71a10ceff30496afea52 | refs/heads/main | 2023-05-04T03:34:29.082656 | 2021-05-22T17:38:21 | 2021-05-22T17:38:21 | 369,869,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | #created
from django.http import HttpResponse
from django.shortcuts import render
def index(request):
#params = {'name' : 'Ritika', 'place' : 'Mars'}
return render(request, 'index.html')
#return HttpResponse("Home")
def contact(request):
return render(request, 'contact.html')
def about(request):
... | [
"rtklohia@gmail.com"
] | rtklohia@gmail.com |
ee9753e59a4ee13fae080d5e3effa1f292f8f705 | ba63febebde629d72de66f71378ef0b589cb9c35 | /API's/mtg_api.py | 8aad716cf7468ec43e168ef617fe9c48967ae8bb | [] | no_license | 0king01243/CIT-129 | e456bc62815a6471521d8f435696016e5c398fe7 | f4dc6d49c60264bc10bf16a2ab52d7d7136f6432 | refs/heads/master | 2020-04-25T19:18:15.718552 | 2019-05-08T22:35:06 | 2019-05-08T22:35:06 | 173,014,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | import os
path = input("What is the path you would like to go to: ")
while True:
os.chdir(path)
os.makedirs(input("What directory would you like to make"))
if input("Would you like to make another directory (yes/no): ") == "yes":
if input("Would you like to change the path (yes/no): ") == "y... | [
"owen.king273@ccac.edu"
] | owen.king273@ccac.edu |
93b86270e92aaa2d75d51120b99d454e77ee61a3 | d64b8121a6fa2832ce422ec39fd63d54a6eca5ef | /api/utils.py | 0ed1bfd1f84486f36021e09777f4d60ac8dec475 | [] | no_license | pialoypolicu/api_yamdb | 73815d74ca1d98ea4a7a1de9efad74d28f84a920 | 9ce274a77970a1b9e84682c71d62d678d67a214a | refs/heads/master | 2023-08-11T02:34:06.630780 | 2021-09-20T14:00:33 | 2021-09-20T14:00:33 | 380,488,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from textwrap import fill, shorten
def wrap_text(text: str) -> str:
"""Return beautifully wrapped text."""
text = shorten(text, width=250, placeholder='...', initial_indent='\t')
return fill(text, width=70)
| [
"s.r.samoylenko@gmail.com"
] | s.r.samoylenko@gmail.com |
6f5dada2501a3c08273dc1299314d6a4bfeb23d1 | 3fba9558352f205091db1c326a48499df02cd567 | /stubs/requests/compat.pyi | df5f3a34263558503ad34004e6be5d3280924562 | [] | no_license | mtwtkman/apap | 27ae2700d0eb2e42a85da42761393010dae0a81f | 98ca66d2a4408b9943377079167c15bfc0290f60 | refs/heads/master | 2022-12-12T00:17:43.353015 | 2019-08-17T11:52:41 | 2019-08-17T11:52:41 | 174,843,476 | 0 | 0 | null | 2022-12-08T06:29:59 | 2019-03-10T15:36:22 | Python | UTF-8 | Python | false | false | 314 | pyi | # Stubs for requests.compat (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
is_py2: Any
is_py3: Any
builtin_str = str
bytes = str
str = unicode
basestring = basestring
numeric_types: Any
integer_types: Any
builtin_str = str
str = str
bytes = bytes
| [
"punipuniomochi@gmail.com"
] | punipuniomochi@gmail.com |
8696a19087064c39c337d882a19106f03f87eef9 | 4afa4d44ab14247df06c879a3fcd55385caf5852 | /ToolsNLP/sentiment_dict/make_wago_json.py | dd644f7efc4e95671caa8745ff4e6314ea774d15 | [
"MIT"
] | permissive | 9en/ToolsNLP | 3cf06cb89baa8c8bda281d1d10a2ec1a3f61af20 | 05bcbfd83857b87fe19fbe561013717589b21171 | refs/heads/master | 2021-06-27T10:49:17.427206 | 2020-12-30T03:08:46 | 2020-12-30T03:08:46 | 177,355,439 | 0 | 0 | MIT | 2019-09-01T06:12:49 | 2019-03-24T00:50:23 | Jupyter Notebook | UTF-8 | Python | false | false | 322 | py | # -*- coding: utf-8 -*-
import json
PATH = 'wago.121808.pn'
with open(PATH) as fd:
wago_dict = {}
for line in fd:
try:
polarity, word = line.rstrip().split('\t')
except:
continue
wago_dict[word] = polarity
json.dump(wago_dict, open('pn_wago.json', 'w'... | [
"mty.0613@gmail.com"
] | mty.0613@gmail.com |
2f897852f4c5d72497a3da7fcc8a2d2c6ffee6d6 | 2c9b638b9efac1ce53e6a3f1b859d3e4cb606d92 | /tests_unit/test_cli_support.py | 326a2fd4290e5a3ad978b941c67e8e2fd96a89ad | [
"CC0-1.0"
] | permissive | HalfDeadPie/labelord_halfdeadpie | 3a6087d6e9cb3f7f0bc4e29195389c5d6852101a | d7d33c520926c6919a330e62a6336841ce881853 | refs/heads/master | 2021-03-19T16:53:57.588418 | 2017-11-30T12:51:32 | 2017-11-30T12:51:32 | 107,234,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | import pytest
import click
from labelord import cli_support
from labelord.cli_support import Label, is_named
from tests_unit.conftest import invoker
def create_label():
"""Test the label creating"""
label = Label('test','black')
assert label.n == 'test'
assert label.c == 'black'
@pytest.mark.paramet... | [
"stefusim@fit.cvut.cz"
] | stefusim@fit.cvut.cz |
3f737efead00dd344d007ac8aee36e7c516b8cd2 | 5d5a440be369b8a0fa6d6bc0ff43e1990c525eb2 | /mystuff/exercise_32/ex32.py | 8f9a93f4d09986c639156a80e27779cdcd55242d | [] | no_license | jaggerkyne/learn_python_the_hard_way | d8ff417e8aa8787e87575f646aa3c12e2aaac28c | be9b5614baae941df055b3476f76fc225685cffb | refs/heads/master | 2021-01-25T10:00:28.652727 | 2014-09-29T08:44:08 | 2014-09-29T08:44:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | #--coding: utf-8 --
# Another code written by Jagger Kyne
# Copyright 2006 - 2014 Jagger Kyne <jagger.kyne@gmail.com>
__author__ = 'Jagger Kyne'
the_count = [1,2,3,4,5]
fruits = ['apple','orange','pears','apricots']
change = [1, 'pennies',2,'dimes',3,'quarters']
#This is first kind of for-loop goes through a list
fo... | [
"jagger.kyne@gmail.com"
] | jagger.kyne@gmail.com |
07e4808bb0ce1a54cbfdd9da102fdf6de151ec49 | 089d0be9b87a54e828567c1347f7fa598bae79f9 | /isIn [correct].py | 0c721026c08d5df335261d6b8ee6f899e443b590 | [] | no_license | 303tek/EDx-MITx--6.00.1x | 8e610c94d3892df98d10704671a5dcef6c3494d1 | d0aa46373ccd213a1844b8cae0feaeb6a3850e65 | refs/heads/master | 2021-01-01T19:39:38.268479 | 2014-09-14T21:59:08 | 2014-09-14T21:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | def isIn(char, aStr):
'''
char: a single character
aStr: an alphabetized string
returns: True if char is in aStr; False otherwise
'''
minBound = 0
maxBound = len(aStr)-1
center = (maxBound + minBound)/2
if (len(aStr)==0):
return(False)
elif (aStr[center] == char):
... | [
"wmorales71@gmail.com"
] | wmorales71@gmail.com |
1edf4752f98ac1432b3f2f56600359ee59dc78df | 300204daeb176fea21e1c2147548b07c9daa8a6b | /polls/admin.py | 40dbfb775f54b43a1602acad9f94050c107e9164 | [] | no_license | SongJaegeun/MyPollSystem | bfba08c71c79ac512df32fdf3e4e7847f8257ad5 | 64ea7b5ca0912db774030682b8ee48852bc1e8d6 | refs/heads/master | 2022-12-01T03:03:11.370564 | 2020-08-05T08:53:23 | 2020-08-05T08:53:23 | 285,233,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.contrib import admin
from polls.models import Question, Choice
# () <- 등록할 클래스명
admin.site.register(Question)
admin.site.register(Choice)
| [
"s930925@naver.com"
] | s930925@naver.com |
38c9c9d16e3bf55d6a64c4cff2c45d96b020bb26 | b7c05c98c75c4f2ed849fb0f9f2454e33c289cf1 | /immunocore/immunocore_app/views/test_serialized_views.py | dc0f7eac2f85f5852515e50a1631d5907cf81bcc | [] | no_license | enric-serra-sanz/immunocore_app | 15a8dcb02e020edf2bf308d7751fe10f15386a56 | fca18545de132a145b8ddc89fd320c3e4c190957 | refs/heads/master | 2021-05-22T14:04:50.270425 | 2020-04-04T10:20:14 | 2020-04-04T10:20:14 | 252,956,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | from django.test import TestCase
from rest_framework.viewsets import GenericViewSet
from rest_framework.mixins import (
CreateModelMixin,
ListModelMixin,
RetrieveModelMixin,
UpdateModelMixin,
)
from .serialized_views import GeneViewSet
class GeneViewSetTestCase(TestCase):
def setUp(self):
... | [
"enricserrasanz@gmail.com"
] | enricserrasanz@gmail.com |
a8d7fd11f5d416311323c02331e80d7a43ef0c7a | 60fa434d7ddcf9cc6ee2e24a587f1fbbe789dec2 | /source/teacher/py200805_fruitshop_class/fruitshop.py | 560e4864d4ec963c77782bf0203bc19694ad1299 | [] | no_license | cram-school-study/jump | c16af9a47102d5c994be99d55d8650d202bd3d7b | ba5f021bce29053368386f8fbfab6768a26422ff | refs/heads/master | 2023-02-26T12:31:27.252380 | 2021-02-05T01:41:44 | 2021-02-05T01:41:44 | 336,132,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from py200805_fruitshop_class.mydir import MyDir
from py200805_fruitshop_class.mysale import MySale
my_dir_0701 = MyDir("200702")
my_dir_0701_list = []
for i in my_dir_0701.files:
path = "{}/{}".format(my_dir_0701.dir,i)
# my_dir_0701_list.append(MySale(path))
my_dir_0701_list.append(MySale(path).sale_list... | [
"dnjswnsakdmf@naver.com"
] | dnjswnsakdmf@naver.com |
117ff1f45621eab663ccccefa300fcfe4dccba09 | 7083e83b9a74f11d74ae915d05f7bf7b9bf8bbe3 | /checkpe.py | 317e5e8506fb73e093f21cd2d599f9321a1207d3 | [] | no_license | akhilsingh25/Malware-Analysis- | 4280631e900c7599306a71c162602123bddd73fe | a141884ff23ef4ec2ef8f1a55f435d82d7ec7766 | refs/heads/main | 2023-07-28T06:03:51.046671 | 2021-09-13T10:22:31 | 2021-09-13T10:22:31 | 405,912,039 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,753 | py | #! /usr/bin/python2
import pefile
import os
import array
import math
import pickle
#from sklearn.externals
import joblib
import sys
import argparse
def get_entropy(data):
if len(data) == 0:
return 0.0
occurences = array.array('L', [0]*256)
for x in data:
occurences[x if isinstance(x, int) e... | [
"noreply@github.com"
] | akhilsingh25.noreply@github.com |
82b262e6528870bd41e0231a81c5d9242080a628 | e567b06c895054d88758366e769de77ee693a568 | /SciComputing with Python/lesson_05-15/asteroids.py | 19db8c21126f49a799c2586684f0c759519408df | [
"MIT"
] | permissive | evtodorov/aerospace | 68986b4ae772e1de8cc7982b4f8497b6423ac8cc | 54a1b58c3c0b02c0eaa3aef14d0e732d7f867566 | refs/heads/main | 2023-01-19T17:52:29.520340 | 2020-11-29T13:23:31 | 2020-11-29T13:23:31 | 315,653,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 15 14:13:36 2014
@author: etodorov
"""
import pygame as pg
import numpy as np
#Loading resources
pg.init()
bg = pg.image.load("background.jpg")
scrWidth, scrHeight = bg.get_width(), bg.get_height()
scr = pg.display.set_mode((scrWidth, scrHeight))
scr.blit(bg,(0,0))
ship =... | [
"evgeni.todorov@tum.de"
] | evgeni.todorov@tum.de |
1d1dd4af573043766a29ed7a96b66713e2806647 | e76e61e1cb6eb591cc7a0f0750a1574dda3170e6 | /setup.py | 9d148508a63725b56333b9e93f025f718e327bd8 | [
"MIT"
] | permissive | hoffmann/kartothek | 38fc401d3eebef52317997554f4c57ffbc9f6451 | a017f509c2c1c9b922bbc233752b89578e74ac68 | refs/heads/master | 2020-05-19T07:38:46.356430 | 2019-05-03T13:03:47 | 2019-05-03T13:03:47 | 184,902,342 | 0 | 0 | null | 2019-05-04T14:03:14 | 2019-05-04T14:03:14 | null | UTF-8 | Python | false | false | 813 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages, setup
def get_install_requirements(path):
content = open(os.path.join(os.path.dirname(__file__), path)).read()
return [req for req in content.split("\n") if req != "" and not req.startswith("#")]
def setup_packag... | [
"fjetter@users.noreply.github.com"
] | fjetter@users.noreply.github.com |
e61b51289a1e1f6d48b961a5bb6f5bb63c5a30b8 | 5cec520ee3ce153d92772bc47b8aa186b0108b4a | /dec/bdec.py | f7e0309990eb602b012d466572938a1890fe2215 | [
"MIT"
] | permissive | bhavikajalli/dec | b61b6edea91abbeb5afb25d72358125aa85a041c | 9c7317ce2d7d152d5e727f077fa108c1ad05a63d | refs/heads/master | 2021-05-02T10:19:33.628104 | 2018-02-09T01:02:55 | 2018-02-09T01:02:55 | 120,793,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,930 | py | import os
os.environ['PATH'] = '../caffe/build/tools:'+os.environ['PATH']
import sys
sys.path = ['../caffe/python'] + sys.path
import cv2
import cv
import numpy as np
import shutil
import random
import leveldb
import caffe
from google import protobuf
from caffe.proto import caffe_pb2
from xml.dom import minidom
import... | [
"bhavikaj@gmail.com"
] | bhavikaj@gmail.com |
7dce3369e022519445fa95a03daedbe3c0688c66 | 34fa91a300e4935fc57a470a9cab66c67e3bf40a | /problemas/1100/1101.py | bb365e853b574ec3fdd80ca524af5607425eaff5 | [
"MIT"
] | permissive | heymrtoufiq/uri-online-judge | 7a779346593fbe2700bb3022d0a78d55d70f7d0a | 08b3bae3e02cc35ba8f6fba869d643ba3d028e58 | refs/heads/master | 2023-08-16T13:27:01.268377 | 2021-02-10T19:53:00 | 2021-02-10T19:53:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | while True:
entrada = list(map(int, input().split(' ')))
menor = min(entrada[0], entrada[1])
maior = max(entrada[0], entrada[1])
if menor <= 0 or maior <= 0:
break
soma = 0
for i in range(menor, maior + 1):
print(f'{i} ', end='')
soma += i
print(f'Sum={soma}')
| [
"filimor@posteo.com.br"
] | filimor@posteo.com.br |
981e3a1e484acfb814836f3f1d5064be825ea9bf | ef9e7858cf48a8fa8c07d31ffe0e1ab8efe89b85 | /create_folder.py | 08fef9b9b7c2552e76d6a5998228597ef3be4910 | [
"MIT"
] | permissive | Deyui/Art-Rewards-Project | 5b655231f585d7816473427809c1d1064e0d9bd5 | fc58b0937ed26c0dc1ac2e2096de9a68440fba19 | refs/heads/master | 2022-11-17T17:14:42.139362 | 2020-07-09T14:43:22 | 2020-07-09T14:43:22 | 275,023,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
gauth = GoogleAuth()
drive = GoogleDrive(gauth)
users = ['a', 'b', 'Liao']
def create_folder(users):
folder_name = users
folder = drive.CreateFile({'title' : folder_name, 'mimeType' : 'application/vnd.google-apps.folder'})
folder.U... | [
"46270478+Deyui@users.noreply.github.com"
] | 46270478+Deyui@users.noreply.github.com |
1a8488cb169c8573a4bdfef987c5c8cb077b56db | 59fb25d01386d759cff112b4d80140fa30cebf20 | /StatsAndVisualization.py | eb2f3a5ff03f078d966d48c3c7f9e5f70800e8df | [] | no_license | rajsankhe/text_choice_game | cf5807453c41c997118cb21de07a52359514151d | 2362a887c1741ce83308e5822380090e5419333d | refs/heads/master | 2020-03-30T08:12:16.181634 | 2019-09-27T13:12:32 | 2019-09-27T13:12:32 | 150,997,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | import matplotlib.backends.backend_pdf
import matplotlib.pyplot as plt
import pandas as pd
try:
#Plotting historam stating rewards collected in given range by number of players
reward = pd.read_csv("player_stats.csv")
values = reward["Rewards"]
bins = [0, 100, 100, 200, 300, 400, 500] #Maximu... | [
"noreply@github.com"
] | rajsankhe.noreply@github.com |
d0c0ada98ca93fd50965148c85fac09b8295da92 | 4a28995530e5766675869266704fa3b59e6b9908 | /bravo/tests/infini/test_packets.py | f50d0439be585dfeb0bfd3b52df85d8a54feeb0c | [
"MIT"
] | permissive | CyberFlameGO/bravo | e732dc87309e98e52fb02195d542f3105486b9c8 | 7be5d792871a8447499911fa1502c6a7c1437dc3 | refs/heads/master | 2021-12-04T02:04:00.138404 | 2014-09-09T04:43:18 | 2014-09-09T04:43:18 | 415,181,334 | 0 | 0 | NOASSERTION | 2023-08-16T22:12:36 | 2021-10-09T02:34:28 | null | UTF-8 | Python | false | false | 989 | py | from twisted.trial import unittest
from bravo.infini.packets import packets, parse_packets
class TestInfiniPacketParsing(unittest.TestCase):
def test_ping(self):
raw = "\x00\x01\x00\x00\x00\x06\x00\x10\x00\x4d\x3c\x7d\x7c"
parsed = packets[0].parse(raw)
self.assertEqual(parsed.header.iden... | [
"MostAwesomeDude@gmail.com"
] | MostAwesomeDude@gmail.com |
e2a6c5df7b7cd9517f22a4bb01c0c90576fa220c | 20abb5de118e1bb821152125c0cd176a4c905336 | /src/sicuro/nazgul.py | c6992a209a576f601e5325da15c4f54e70f71e89 | [
"MIT"
] | permissive | beenum22/sicuro | c8dc3447d1cfb1df83340aaa1ea68a627ab6f5f4 | 48860ff37ad1669ba64b8a4a9089f03e85e6e747 | refs/heads/master | 2021-06-19T12:11:18.465776 | 2021-04-02T18:52:27 | 2021-04-02T18:52:27 | 145,160,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | from Crypto.Protocol.KDF import PBKDF2
from Crypto import Random
from Crypto.Util.Padding import pad,unpad
from Crypto.Random import get_random_bytes
from Crypto.Cipher import AES
import base64
import logging
import codecs
logger = logging.getLogger(__name__)
class Nazgul(object):
def __init__(self, key, data):
... | [
"muneeb@ng-voice.com"
] | muneeb@ng-voice.com |
fa3f251fb424199862c850ed710955fcd5306df6 | b6cd2e9cfd560e369193bcb6f5744097adcd1f21 | /system/core/adb/test_device.py | c893ad42ddded053ee20a2a869b026ca68283dcc | [
"Apache-2.0",
"LicenseRef-scancode-unicode"
] | permissive | peterdocter/ShakaAapt | 452eff61aea0cecd929baba12b2f2f87502055f1 | 3e54e864a526bbbe78f3ce3c3e0862772f091f21 | refs/heads/master | 2021-01-16T20:43:13.361947 | 2015-09-22T21:47:43 | 2015-09-22T21:47:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,020 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015 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/LI... | [
"rover12421@163.com"
] | rover12421@163.com |
88e6c63af8d731a52a4a1dadce908166c7b8ca15 | d966c2cd810790d929c10d92a45f6687ed7fd468 | /b2ls_cnn2.py | 4bc3825b29cef6185dcdfa87287a4ae84301b60b | [] | no_license | caiomarcos/codes | aa58ed0a78f24c577ec3d891a1326176a97b224a | 888f52238e4ea010c9ccec86df5a923bd3dc4ed1 | refs/heads/master | 2023-07-25T14:58:37.415688 | 2021-09-01T20:46:24 | 2021-09-01T20:46:24 | 272,705,404 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,626 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 29 11:06:52 2020
@author: caiom
"""
# %%
# Importing modules
import numpy as np
import pandas as pd
from keras.utils import np_utils
import scipy.io
import scipy.signal
import matplotlib.pyplot as plt
from scipy.fftpack import fft
from sklearn.model_selection import train... | [
"caiomarcos@gmail.com"
] | caiomarcos@gmail.com |
bdee5332a2d18af8fb0341f6d0cd99f199502564 | c467b443f7e81b32b1184f7bd8f6fef84f9dae9e | /utils/lime_sort_feature_imp.py | 52feb7cc5ec8ead2738df3deca64e6d16395ad5b | [] | no_license | yue123161/ENIDS | c117ce169e4d0d3f139bc44e03f8f5b98840dcb0 | 13ff5b90a8aa7b10ab35d9d818def8f8eeb7f666 | refs/heads/master | 2021-08-19T05:52:28.307723 | 2017-11-24T22:14:16 | 2017-11-24T22:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | import pandas as pd
import scipy
from scipy.stats import spearmanr
import numpy as np
IG_MTL = '/home/aabdul/projects/enids/data/NSL-KDD/report/lime/mtl.csv'
IG_MLP = '/home/aabdul/projects/enids/data/NSL-KDD/report/lime/mlp.csv'
if __name__=="__main__":
exp_files = [IG_MTL, IG_MLP]
model = ['mtl', 'mlp']
... | [
"ashrafabdul@users.noreply.github.com"
] | ashrafabdul@users.noreply.github.com |
1275ac53b3e7341c476b71b2ad1ca6ad0b0a1055 | 0ce733ce34bec9422c185802e2e9212329086eb7 | /scripts/Generate_Data.py | d8c8ac1c5bb0bf08e300deda68cde68916bc2afb | [] | no_license | petersim1/COVID-19_Project | c436bee3f43ab05c6fc1f9e8943f237310cb22fe | fc6878056ec805784813df4f5af5d4cf3e9d1d2c | refs/heads/master | 2022-11-17T02:51:09.844229 | 2020-07-12T22:03:57 | 2020-07-12T22:03:57 | 265,407,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,928 | py | from importlib.machinery import SourceFileLoader
import algosdk
import numpy as np
import pandas as pd
import datetime
import os
import re
import json
import joblib
# load custome module from path.
covid19_WebScrapes = SourceFileLoader("covid19_WebScrapes", "./scripts/covid19_WebScrapes.py").load_module()
merge_prep_d... | [
"plssimone@gmail.com"
] | plssimone@gmail.com |
f6ed307305ac991a2a922af645d6169197b603d8 | d2fedd2085cbdbd5e54228abf0633001989787cc | /36.COUNT PALINDROMIC SUBSEQUENCE IN A RANGE.py | 55ab57ce87bc84e1d63299856106adef6cff022f | [] | no_license | KumarAmbuj/dynamic-programing-intermediate | 228d25205d370ebc329eaf6ffbcfbc2853b18abe | 4b40f322f57762e0cf264fb2024ae56d1fa3243b | refs/heads/main | 2023-02-23T20:42:26.865855 | 2021-01-23T11:10:44 | 2021-01-23T11:10:44 | 332,188,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | def findpalindromicsequence(s,l,r):
n=len(s)
dp=[[False for j in range(len(s))] for i in range(len(s))]
for g in range(len(s)):
i=0
for j in range(g,len(s)):
if g==0:
dp[i][j]=True
elif g==1:
if s[i]==s[j]:
... | [
"noreply@github.com"
] | KumarAmbuj.noreply@github.com |
4c845a32442a113f46cb75f913399b8eec3f6f02 | 03af1ed81d94773498640c399736071b5387d052 | /dev.opensnowmap.org/cgi/offset-renderer.py | cb50b5faa1cf9596c311aeb7e9f5e306d1616c6f | [] | no_license | clemhoh/opensnowmap.org | 0634fb66bfbf13b16f1c092e813b7d9c899c4b7c | 6710f9124ca24d5c780ca765abac563bccac2087 | refs/heads/master | 2021-01-15T21:39:49.184179 | 2016-01-16T07:07:47 | 2016-01-16T07:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,315 | py | ##!/usr/bin/env python
# Tile renderer for mapnik with mod_python
# From Sylvain Letuffe work, simplified for better comprehension
import math
import os
from mapnik import *
#
def deg2num(lat_deg, lon_deg, zoom):
# from lon lat to tile names, see http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
lat_rad = mat... | [
"yvecai@gmail.com"
] | yvecai@gmail.com |
49869b77fef23d2b4bef119a349bac2b3c4b8258 | b315056385e631e4b5a250d3c7e1c0ae32c479f0 | /illumiprocessor/__init__.py | bf0b82f71bf8a5dda73842deac3484f6c1ff42aa | [] | no_license | mkweskin/illumiprocessor | e7e20cb0d24a1d7cc89e5519e08c3e435c32a070 | 4e37e037c7b9db8c89bbafe21ca9b59ed7630211 | refs/heads/master | 2021-09-15T16:34:00.846218 | 2018-06-06T19:35:43 | 2018-06-06T19:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | #!/usr/bin/env python
# encoding: utf-8
from __future__ import absolute_import
__version__ = "2.0.9"
| [
"brant@faircloth-lab.org"
] | brant@faircloth-lab.org |
388fdd600f19350ec4bd6f994220942643805af6 | d0e804a5afcd3f934ea043745820ab31069b34f6 | /page_object_pattern/utils/search_data.py | d6c6412ca263581bf304d3a90cc562525e64f30f | [] | no_license | juliawalczak/hotel_search_test | 79103c1ecc32cb2386c5118fcaf2b6f0e1f3968e | 9f69418b3843c2fd2bffba136e92b024ad96ef48 | refs/heads/master | 2020-07-11T12:59:58.442184 | 2019-08-26T19:21:24 | 2019-08-26T19:21:24 | 193,751,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | class SearchData:
def __init__(self, city, check_in, check_out, adults, child):
self.city = city
self.check_in = check_in
self.check_out = check_out
self.adults = adults
self.child = child
| [
"juliawalczak@users.noreply.github.com"
] | juliawalczak@users.noreply.github.com |
fd3a588f74b00bfeeca3294cbcecee86898db09f | 50e8fbf1f9d0edba1a427644dacdee6f9228605e | /blog/urls.py | 6d38c09b638c73cfec2458916f65abbfe338272a | [] | no_license | kratzjgy/regex_url | 60995fa8a2106efe948eebf0e6f6d98119432518 | e22c7a9e4344ac22b6a842dd46c85431038fb307 | refs/heads/master | 2020-04-18T07:08:52.724742 | 2019-01-24T10:37:28 | 2019-01-24T10:37:28 | 167,350,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$',views.post_list),
]
| [
"guyoungjung@Guui-MacBook-Pro.local"
] | guyoungjung@Guui-MacBook-Pro.local |
155ca21a031843068751b8ddbdcfbf24f351ae2c | 5f5ca75e5056f11d3d0420bae9f4ed83a355fb1f | /Products/migrations/0001_initial.py | a444af5decc61d0b8cd04af42e5c479055026c37 | [] | no_license | abhigupta19/Restapp | 8278231c9b76b1a757729530c9d0d96f42cdb4a8 | c280b1ed146ea0b968b8f874af3053ecabeb9999 | refs/heads/master | 2020-04-21T03:03:11.401902 | 2019-02-05T16:31:14 | 2019-02-05T16:31:14 | 169,273,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | # Generated by Django 2.1.5 on 2019-02-05 10:53
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | [
"17ume005@lnmiit.ac.in"
] | 17ume005@lnmiit.ac.in |
039cac7b768bb157fd2e8b5309799b9bf104f879 | 7fd44c4d6bb626926221d8d9620bf96740df11ae | /141_LinkedListCycle.py | 7d505056fe99ae102554a5a49b6a5e18b81ae364 | [] | no_license | mansidabhole/leetcode | 0bd280c781cfadd99cdd427304fa55e33de62998 | af75400aba89dc0be88a18a030b942005eb6278a | refs/heads/master | 2020-04-15T18:23:47.724617 | 2019-02-16T20:56:07 | 2019-02-16T20:56:07 | 164,911,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def hasCycle(self, head):
if not head:
return False
ptr1=head
ptr2=ptr1.next
while (ptr2!= None and ptr2!... | [
"prdmansi@gmail.com"
] | prdmansi@gmail.com |
ef164c0ec66eb86a5c0846948db758b2ec2c7a55 | 6c1b0055ea9041f0b034f0d6cba1b0fcb52c7dd3 | /tests/snuba/api/serializers/test_group.py | c9b10a121afa0b44c23b5a2cc1728c1fd6ea232c | [
"BSD-2-Clause"
] | permissive | restinpeaceinout/sentry | dd9ed768063215356c43ed028d38114c59e380d8 | e0cd92edbd4b65fd83ac5a1ffcb75aa9bb495d50 | refs/heads/master | 2023-08-23T06:55:57.057527 | 2020-10-21T20:18:51 | 2020-10-21T20:18:51 | 163,629,379 | 0 | 0 | BSD-3-Clause | 2023-09-14T06:58:58 | 2018-12-31T01:15:32 | Python | UTF-8 | Python | false | false | 12,169 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import six
from datetime import timedelta
from django.utils import timezone
from mock import patch
from sentry.api.serializers import serialize
from sentry.api.serializers.models.group import GroupSerializerSnuba
from sentry.models import (
GroupLi... | [
"macqueen@users.noreply.github.com"
] | macqueen@users.noreply.github.com |
eafec4733775b023c1b2b9de75a58d4fa681f74c | 6c53847f9956edc8f31b23c24b1786d1b9789f03 | /gps-server-master/setup.py | d313f9422a4ec8e4b70cb05bc8e2ad640ac49b23 | [] | no_license | kunal1510010/Quikmile | c64a9264798cf834aaf32ecb4653b9b81dab0dd5 | 244d2749eb8438ce858de51c088a52ca3de58992 | refs/heads/master | 2022-12-12T08:03:50.628252 | 2018-11-29T15:24:46 | 2018-11-29T15:24:46 | 159,226,383 | 0 | 0 | null | 2022-12-08T02:27:44 | 2018-11-26T20:10:20 | Python | UTF-8 | Python | false | false | 580 | py | from pip.download import PipSession
from pip.req import parse_requirements
from setuptools import setup, find_packages
install_reqs = parse_requirements("./requirements.txt", session=PipSession())
install_requires = [str(ir.req).split('==')[0] for ir in install_reqs]
setup(
name='gps-server',
packages=find_pac... | [
"kunal1510010@gmail.com"
] | kunal1510010@gmail.com |
655336405110736f512110ebd9c030bcf75f08fa | c09b2a634dabfc458f1d0aae9bf792b4d3bf6a3a | /treehouse/Django/learning_site/courses/migrations/0002_step.py | 68a908dce3b00227124bdda8aec3cf6cd7d9558e | [] | no_license | kadensungbincho/Online_Lectures | 539bed24e344a6815e090cd0bda194db9fa801cd | 21afbfe9c4c41a9041ffedaf51c6c980c6e743bb | refs/heads/master | 2023-01-12T18:59:05.128000 | 2022-02-20T13:04:45 | 2022-02-20T13:04:45 | 124,209,787 | 2 | 1 | null | 2023-01-07T20:04:16 | 2018-03-07T09:11:09 | Jupyter Notebook | UTF-8 | Python | false | false | 825 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-17 01:09
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('courses', '0001_initial'),
]
operations = [
... | [
"kadensungbincho@gmail.com"
] | kadensungbincho@gmail.com |
9273ca856f79d88214685a99bd7bda3038bfddb4 | 2f76e005c81698bfea9ed2e9465a314eef0cd499 | /examples/imdb_fasttext.py | 50baeca45e6840a04693eabb458eda852fd1ecca | [
"MIT"
] | permissive | cnvrg/keras | 6c5807d70e68eb431d179cc7e8bc95348a33e1fd | 7f9bea44d5d4512fe21d0263d00fd39a9fb5c671 | refs/heads/master | 2020-04-05T20:02:57.125252 | 2018-11-12T05:41:54 | 2018-11-12T05:41:54 | 157,162,007 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,094 | py | '''This example demonstrates the use of fasttext for text classification
Based on Joulin et al's paper:
Bags of Tricks for Efficient Text Classification
https://arxiv.org/abs/1607.01759
Results on IMDB datasets with uni and bi-gram embeddings:
Uni-gram: 0.8813 test accuracy after 5 epochs. 8s/epoch on i7... | [
"leah@cnvrg.io"
] | leah@cnvrg.io |
5f17776f0d418e002f2e8eccfa4a50e6b6f107f7 | 58e506bcaba3cd6700ac761eca41d73a9758f50d | /saltlint/rules/StateDeprecationDockerNetworkPresent.py | 2d0bc6d3700f599c03ed5d0a2d63d28fc4b6dad0 | [
"MIT"
] | permissive | Poulpatine/salt-lint | f4b604197a70e645b1c5aec2d1137ecd17b8c908 | 304917d95d2730e7df8bd7b5dd29a3bd77c80250 | refs/heads/main | 2023-02-13T14:30:26.094334 | 2020-12-09T20:35:57 | 2020-12-09T20:35:57 | 326,970,587 | 0 | 0 | NOASSERTION | 2021-01-05T10:56:22 | 2021-01-05T10:56:22 | null | UTF-8 | Python | false | false | 287 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020 Warpnet B.V.
from saltlint.linter.rule import DeprecationRule
class StateDeprecationDockerNetworkPresent(DeprecationRule):
id = '911'
state = 'docker.network_present'
deprecated_since = '2017.7.0'
version_added = 'develop'
| [
"noreply@github.com"
] | Poulpatine.noreply@github.com |
0fa27f3dbde72413f62234e535780a75528a0a78 | 95c136abf286d1c7a4a344a21f41f7127c8e3ea9 | /computer_architecture/task_2/traceConverter.py | 22d1daee72a7e246885258cfda2bf65045c6a655 | [] | no_license | lynnewallace/university_projects | 16bb31ecca173a1cc643207aaa6d32321a9e82af | 5ea7e188d1c9c07bf03ab4754388dbaf1308207f | refs/heads/master | 2021-01-21T04:25:07.576928 | 2016-07-30T20:39:37 | 2016-07-30T20:39:43 | 10,479,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | #s0829961
#traceConverter.py
#takes in argument - filename
#collects information about the cache configuration and creates a list of traces
#this is given to the cache simulator
import collections
import sys
class TraceConverter:
def converter(self,filename):
#create tuples to hold cache and access info... | [
"lwallace890@gmail.com"
] | lwallace890@gmail.com |
81e1f2e42200c29c59d886f7ef9b518383a36c1b | 18ad52cad842741c37a98f2653fa05b6deea4c25 | /venv/task 2.py | c3d59022bc3bfcdf9e1056af0627e2126cb27d77 | [] | no_license | MaryAyla/training-101 | dffd343a48ddae5f2e63121af3a51eb3eaeaa936 | bfac2e575bc3369467f73b0271703567c344b7b4 | refs/heads/master | 2020-04-25T23:44:40.140432 | 2019-02-28T17:22:03 | 2019-02-28T17:22:03 | 173,155,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | #implement a functuin that takes as input three variables,and returns the largest of the three.Do this without using
# the pythonmax () function.
def large_var(x):
var=[J,K,L]
var.sort()
largest=var[-1]
return largest
J=int(input("please enter variable1: \n"))
K=int(input("please enter variable2: \n" ))... | [
"carolinemwende92@gmail.com"
] | carolinemwende92@gmail.com |
080640d2f5b64be243b6d27525601a1e140be296 | 8c47b5b1e8af14561f83801ced1dac98d19d4fd9 | /ui/main.py | 8c67863ed1a3d21f6557ba6e88a6824f387f8c6e | [] | no_license | rightmousebutton/sandbox | 4662b7040fe5853b27d0cd027509b49bac27cd48 | ddaa04b1f09418b39a0795aaae5aeaf1684cb4b1 | refs/heads/master | 2021-01-01T17:04:11.781987 | 2017-07-22T00:32:12 | 2017-07-22T00:32:12 | 97,994,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | """
PEP8 linting test file
"""
def my_funnc():
"""
My test fucntion
PEP8 might take a little getting used to
"""
print("Hello world!")
print('what')
print("why")
| [
"rightmousebutton@gmail.com"
] | rightmousebutton@gmail.com |
09a1bd8a7dcd1624936316d0b0f5d12d27a0b11a | 02beff788d4852f688d161e3551288400d1fec74 | /problem.py | 0f2e43b8a893e21cde1fb9ea1951330af72a04bc | [] | no_license | muraliadithya/Synthesis | e7ddeae59371ae84432e950ce60bb114acaab322 | 7cf477f8b4d9977bb063a5c748f1e56f659f7807 | refs/heads/master | 2022-01-19T23:08:25.368269 | 2019-05-21T17:56:00 | 2019-05-21T17:56:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,874 | py | from parsetree import *
from absformula_datatypes import *
from absformula_gen import *
from rels import *
from objs_and_imgs import *
from io import *
from utilities import *
from alternaterels import *
#from smtoutput import *
import sys
# Dictionary has to store the following key-value pairs:
# elem -> points to ... | [
"murali24adithya@gmail.com"
] | murali24adithya@gmail.com |
f3be71e40920fcd037077a0ccc436e53172b0db7 | 65bf0dab76d3b45c41b4b9ddd6e427366511111e | /stringJoinerExample.py | 8be28dc85bb6760c8467aac284f1b44b4612e607 | [] | no_license | chilango-o/python_learning | 34beec252d687f3f4fd2a7608acbaf3970a0bb69 | e7cb8d71b7055e9293145f98af38fa01888d9176 | refs/heads/master | 2022-11-30T15:15:35.708155 | 2020-08-11T01:24:14 | 2020-08-11T01:24:14 | 285,450,439 | 0 | 1 | null | 2020-08-11T01:24:15 | 2020-08-06T02:11:39 | Python | UTF-8 | Python | false | false | 171 | py | def strJoiner(str1):
print(str1)
str2 = 'world'
str1 += str2
print(str1)
return str1
exmpl = 'hello'
result = strJoiner(exmpl)
#print(result) | [
"ismael@ca.taly.st"
] | ismael@ca.taly.st |
828d680c2d1538b21c4b8b9195efc0e26cac2b28 | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/2023/0321_40_Combination_Sum_II/myunghak.py | 8d64f62cc7c6d9a896ef5565521251d1cff3a514 | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 796 | py | # 답보고 풀었습니다. 풀이 안해주셔도 되요
from collections import deque
class Solution:
def combinationSum2(self, candidates: List[int], target: int) -> List[List[int]]:
def backtrack(start, target):
if target == 0:
result.append(list(dq))
return
fo... | [
"noreply@github.com"
] | ai-kmu.noreply@github.com |
89e3c5c2c55d178ad61eb93db58ca05320bd60b7 | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /devel/.private/play_motion_msgs/lib/python2.7/dist-packages/play_motion_msgs/msg/_PlayMotionActionGoal.py | a5370afc34256859512ca7341d9f7c63bf486bcb | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,736 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from play_motion_msgs/PlayMotionActionGoal.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import actionlib_msgs.msg
import genpy
import play_motion_msgs.msg... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
2131681365efc05ba1105dd453257b1ea60ea71e | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/surface/compute/org_security_policies/associations/create_associations_test.py | d67314583ec45ddf3221e10dda33832b9c249e68 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 4,684 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. 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 requir... | [
"code@bootstraponline.com"
] | code@bootstraponline.com |
84556777071ffab5b8c1f579290547ce3213c2be | 600864e8ce22adc886dfde3ede6b4306832b4c24 | /aws/fetch_params.py | 53781266fe7a31eda5a3a090a09e19e0c4559507 | [] | no_license | BenVosper/scripts | d8096211cd4ad7535fae634c0b53680a6c5f9626 | 37b4fea9aafa355f993cc3bf672b20422fb248dc | refs/heads/master | 2022-06-18T08:24:44.235239 | 2022-05-30T10:56:31 | 2022-05-30T10:58:31 | 136,738,763 | 0 | 0 | null | 2019-02-23T23:35:26 | 2018-06-09T16:16:55 | Python | UTF-8 | Python | false | false | 4,123 | py | """
A command-line utility for fetching Parameter Store parameters via the AWS CLI.
Allows the names, types and values of all parameters matching a given name filter to be collected.
Usage:
Provide:
<name-prefix> - The string by which to filter parameters
Returns an array containing the names, type... | [
"ben-vosper@hotmail.com"
] | ben-vosper@hotmail.com |
e0e5613b292d5c751dd9129c0ea1d1af5c946c44 | 47c9aaeb2088b8852344aab2435d52252f9dd692 | /CoLinSimulation/te.py | 711c9a0ddcf86cd99c20ac2b69b312920bad2b83 | [] | no_license | scheeloong/Multi-arm-Banidt-Exp3 | 608a910821cef9d949c94737d8d6a476c23e984b | 9afe8390c8ac42bb92462d05d96650fb1363f842 | refs/heads/master | 2020-03-24T13:25:10.322575 | 2015-08-07T14:43:33 | 2015-08-07T14:43:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | import numpy as np
from scipy.linalg import sqrtm
import matplotlib.pyplot as plt
from scipy.optimize import minimize
import math
def vectorize(M):
temp = []
for i in range(M.shape[0]*M.shape[1]):
temp.append(M.T.item(i))
V = np.asarray(temp)
return V
def matrixize(V, C_dimension):
temp = np.zeros(shape = (C_d... | [
"qw2ky@virginia.edu"
] | qw2ky@virginia.edu |
70d66948b2005ab7cc105c4e0b5de97bf1cc8383 | 584aefa111a279250bde4d2d0fa3fc64fda8706b | /models/layers/layers.py | 87a1bd515be2a7423a0309a1e2f3c7cf306793cc | [] | no_license | shotakikuchi/GenerativeDeepLearning | cce2b851ba722b44432566a7b5bc02d1c950c0f7 | a67bc43986df63065e81a3a840160e25099653bc | refs/heads/master | 2020-07-02T16:43:09.508058 | 2019-08-17T13:10:14 | 2019-08-17T13:10:14 | 201,592,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import tensorflow as tf
from keras.layers import Layer, InputSpec
class ReflectionPadding2D(Layer):
def __init__(self, padding=(1, 1), **kwargs):
self.padding = tuple(padding)
self.input_spec = [InputSpec(ndim=4)]
super(ReflectionPadding2D, self).__init__(**kwargs)
def compute_output... | [
"goodtime683@icloud.com"
] | goodtime683@icloud.com |
f62bc53a14e0b7d7234b908408e75bfd098b82f0 | 8675d3d3486358b29ec416b647e6c654223ebed3 | /commandSearch.py | c3da464bf1c053653288f60b33d125593a7298b9 | [] | no_license | hatchetProject/LipstickMiniProgram | 72a8f00362857a2a7069936cbad979c49bd8d5d5 | f514dbd332a15239b46cc65205fc340a40739dfe | refs/heads/master | 2020-04-19T23:50:38.762238 | 2019-02-01T04:11:45 | 2019-02-01T04:11:45 | 168,507,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,139 | py | def parseCommand(command,brand):
allowed_opt = ['title', 'brand', 'language','site','name']
command_dict = {}
opt = 'contents'
q=command.split()
try:
high=float(str(q[-1]))
q.pop()
except:
high=99999
try:
low=float(str(q[-1]))
q.pop()
except:
low=0
if brand!="1":... | [
"noreply@github.com"
] | hatchetProject.noreply@github.com |
7e64a456bfd4f4beeaeaa4529eea9d1ba73dbc57 | c4c65934631c68808671de8c0a967f3a8f704849 | /FEFLOW_ReadFEMASCII_Plot_Mesh.py | a35fed113549d41a126acb56ac61a2b3cca4ec4d | [] | no_license | Coastal0/FEFLOWtoPyGIMLI | a7e5fa811a3fb827ceb0a72a760ff5ec34a994b1 | 7aae1b7fda4ef8cf9b7329d741d7e6621c35b2d3 | refs/heads/master | 2021-06-22T23:23:04.526649 | 2018-11-08T06:34:07 | 2018-11-08T06:34:07 | 156,659,487 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 18 09:59:17 2018
@author: 264401k
"""
import numpy as np
from tqdm import tqdm
from matplotlib.patches import Polygon
from matplotlib.collections import PatchCollection
import matplotlib.pyplot as plt
import tkinter as tk
from tkinter import filedialog
... | [
"noreply@github.com"
] | Coastal0.noreply@github.com |
722e3760e308ddbb94ac87c3a97c479c48429f9c | cc5226e149aa9717f0073a1b60e2a752d4e8389f | /registry/registry/urls.py | 9b238ff0ebd80060115baafb77a3c9e6c89e5577 | [] | no_license | manojvarmarudraraju/CivilRegistry | 44856d4a613b4b1e9e3b110c4b4c0107e3932c14 | f8e53d06f870bc88ae88253fcbe3849be49c2fa0 | refs/heads/master | 2023-01-22T12:07:10.284442 | 2020-11-28T12:31:46 | 2020-11-28T12:31:46 | 316,729,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | """CivilRegistry 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... | [
"manojrudraraju007@gmail.com"
] | manojrudraraju007@gmail.com |
09de35b9c9569a3d6a18907aa2a1c17e263a55cb | 32f34baaa620d6ec945a08c842123a8872c7a2a5 | /blog/admin.py | 31122591ac74349107d324ee346326f92261f9a7 | [] | no_license | devArist/bankapp_kivy | e3590723643d30746c3ffce9d70868b3524b6e30 | 701db3a856722a618fbcfa8fbd0b606415265ca9 | refs/heads/main | 2023-07-18T06:38:00.148288 | 2021-08-27T14:05:47 | 2021-08-27T14:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from django.contrib import admin
from blog import models
from django.utils.safestring import mark_safe
# Register your models here.
@admin.register(models.Blog)
class BlogAdmin(admin.ModelAdmin):
list_display = ('title', 'imageblog')
search_fields = ('title',)
def imageblog(self, obj):
return ma... | [
"aridev97@gmail.com"
] | aridev97@gmail.com |
526da7b66b7f3a0e2d31d78cfa9e1e610ce48f3b | 15e6385746ccf4b8eb6c6e302aca236021bb8781 | /BinaryTree and Divide and Conquer/le257_binaryTreePaths.py | 04f6722ba0b8cd3e57bdecab9d2bbb33d805064f | [] | no_license | akb46mayu/Data-Structures-and-Algorithms | 11c4bbddc9b4d286e1aeaa9481eb6a620cd54746 | de98494e14fff3e2a468da681c48d60b4d1445a1 | refs/heads/master | 2021-01-12T09:51:32.618362 | 2018-05-16T16:37:18 | 2018-05-16T16:37:18 | 76,279,268 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | """
Given a binary tree, return all root-to-leaf paths.
For example, given the following binary tree:
1
/ \
2 3
\
5
All root-to-leaf paths are:
["1->2->5", "1->3"]
"""
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left... | [
"noreply@github.com"
] | akb46mayu.noreply@github.com |
ec1d247a817e6d22d13b5965cb4b2e0360ee1127 | f31f7578de53a376606d2b76b00fb5bfc78616b6 | /management/views.py | 1aca4165feafd8200b8a2ba4d05dd90e2203df0f | [] | no_license | Narongded/dormlab | d1b6eac2b1c5b9e3854fdac8a3a80593f4daf593 | a679aab6dbc201d537dfb22164879e6e73b4ca83 | refs/heads/master | 2023-04-15T07:03:57.730961 | 2021-04-25T16:06:41 | 2021-04-25T16:06:41 | 263,393,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,747 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from .models import Room, Contracting,... | [
"32951598+Narongded@users.noreply.github.com"
] | 32951598+Narongded@users.noreply.github.com |
24e44fad7a0778bc157f14c04038f3d5ea2422d8 | 0f1e33ad30fc9b23f21ade9dee267592c1d430e6 | /pollsapp/apps.py | d0981b7af17696c289d1dc6edf3e6c60c7eb3853 | [] | no_license | yoshi47/poll | 7ddec1e567a9a6711ddcf852bbb533ec9dd0373e | cff7c7ae49546469740c4b816c8fef2b5f5d78ff | refs/heads/master | 2023-07-05T20:05:52.499237 | 2020-05-29T06:13:54 | 2020-05-29T06:13:54 | 267,043,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from django.apps import AppConfig
class PollsConfig(AppConfig):
name = 'pollsapp'
| [
"yoshix47@gmail.com"
] | yoshix47@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.