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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c741c82f60033d5741291f9c750eaae6cd647749 | 16d6233d8cf00c8e2b7eb30a397fd1f151da3318 | /preprocess.py | 20173fbab6c0d9022ce086098731d55ed0a9a60b | [] | no_license | marcohatran/FingerPrintMatching_FlaskAPi | 0de62a0b845996cd349044fb3c5db4615817e521 | 7fe82d7905a745a58ac6f3e6192d32e611c774d3 | refs/heads/main | 2023-01-13T22:28:01.726181 | 2020-11-18T12:49:48 | 2020-11-18T12:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | import sys
import numpy as np
import cv2
# from zhangsuen import ZhangSuen
import math
import matplotlib.pyplot as plt
import scipy.ndimage as ndimage
import scipy.signal as signal
import helper
from ridge_filter import ridge_filter
# @jit(nopython=True)
def preprocess(image):
# Normalize and Segment
image, mask =... | [
"noreply@github.com"
] | marcohatran.noreply@github.com |
fcb86b462567ee404c53bd49dede77630920145b | 4d38a2b48bb2ec8e4f9ca8a646d6263aec8f39fc | /client/accounts_services/doctype/bank_account/bank_account.py | ea77b356db81d562b32da96b45c5a9a0533c9bdf | [
"MIT"
] | permissive | ahmad18189/client | 4b38f05146dfad7723f730ea9b8f5850c07dd3ca | a4f4fa873be4115579dd0f304d688b0ba71a94c4 | refs/heads/master | 2021-05-05T10:07:30.470311 | 2018-05-17T13:04:01 | 2018-05-17T13:04:01 | 117,957,650 | 3 | 0 | null | 2018-01-20T13:47:36 | 2018-01-18T08:55:50 | JavaScript | UTF-8 | Python | false | false | 277 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class BankAccount(Document):
pass
| [
"ubuntu@ip-172-31-39-86.us-east-2.compute.internal"
] | ubuntu@ip-172-31-39-86.us-east-2.compute.internal |
41eeb3b1e3a7cf61c0e2b16ae63ce4c9826894f2 | d785e993ed65049c82607a1482b45bddb2a03dda | /loose/loose_SingleMuon_G_cfg.py | 46a90679fcd22958110855f1922ec226777629c0 | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'loose_SingleMuon_G'
config.General.transferLogs= True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
co... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
64d3f5135fb3d0364ae51f12ecd1754da66c6f54 | cef683fc347c31e3c8a229eb6935e0015bfdf6ba | /run_file.py | a0c2240822fb08b3d85a063e1e12bd8e4715c3e2 | [] | no_license | mpwesthuizen/eng57_files_and_error_handling | 07e32d879e8a1b8b2c63aac98abda5d925c971bd | 465ce61f275b8d8d5aeaf47ba486e11d179ee340 | refs/heads/master | 2022-10-14T08:39:46.805617 | 2020-06-15T09:14:41 | 2020-06-15T09:14:41 | 271,541,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # example of error handling with try and except
def int_convert(var):
try:
return int(var)
except ValueError:
print("ValueError: The value doesn't contain numbers")
# print(int_convert(13))
#
# print(int_convert("string"))
#
# print(int_convert(13.00))
def int_convert2(var):
if type(v... | [
"mp.westhuizen@gmail.com"
] | mp.westhuizen@gmail.com |
7d8bab73db00486fdf0ddec612c38617dcfb51f6 | 2dd4cfdc8395b2bb840d91b2dd0050443635da86 | /529-minesweeper/john/solution.py | 5d8fb5735ccd1304dfa33e236e9fb39e1d455396 | [] | no_license | dennis2030/leetcodeStudyGroup | b10bde7e79cd86d6eb46409d0a3ba82d963de657 | fbd42d8c0cc142aa56531b4fe127bf4bc2996abd | refs/heads/master | 2021-01-14T08:10:55.432693 | 2018-05-18T15:55:18 | 2018-05-18T15:55:18 | 81,933,655 | 6 | 2 | null | 2017-04-02T13:43:00 | 2017-02-14T10:26:24 | Python | UTF-8 | Python | false | false | 1,351 | py | class Solution:
def updateBoard(self, board, click):
"""
:type board: List[List[str]]
:type click: List[int]
:rtype: List[List[str]]
"""
def getCell(row, col):
if row < 0 or col < 0:
return None
if row >= len(board) or col >= le... | [
"johnlinp@gmail.com"
] | johnlinp@gmail.com |
e3c48f229a745daf0b952b2271ce1868e7306c1c | eb19b2769fae425cbe1c13526c857267b76fc46d | /build/rbx2/rbx2_bringup/catkin_generated/pkg.installspace.context.pc.py | 87bbbb03dad08fd7309f8c672c38e42557d68cf0 | [] | no_license | shantengfei/jaka_ur | 6d0877159f2a8a4d84262c6f5440734cb24d4c6b | b478bfc003ab1d103e5df928af12806582844b1a | refs/heads/master | 2021-05-15T15:47:17.665110 | 2017-10-18T14:52:31 | 2017-10-18T14:52:31 | 107,420,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | 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 = "rbx2_bringup"
PROJECT_SPACE_DIR = "/h... | [
"shantengfei@sjtu.edu.cn"
] | shantengfei@sjtu.edu.cn |
9bd90299eaa46d54955252ca6e3183a2d1ae3d21 | f72c689bd0d756b4817cc03cb434a228343c8936 | /test/functional/rpc_getchaintips.py | c71c2d08d2237c1b28f7c8b61f61971edd4ffe9d | [
"MIT"
] | permissive | CircuitProject/Circuit-Core | 7f68a8b4cb180a715cb24e247b899d8d8dc29e95 | 831dc33d57050ea2955983b2e8f1fc088a819e97 | refs/heads/main | 2023-04-09T00:08:37.954538 | 2021-04-12T19:09:42 | 2021-04-12T19:09:42 | 357,308,816 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,177 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the getchaintips RPC.
- introduce a network split
- work on chains of different lengths
- join th... | [
"development@SpectreSecurity.io"
] | development@SpectreSecurity.io |
24d5d233b19405e72bb7342861b126dfc737fb56 | 393a387cdb286cde75b4b7d760625d5851b6b080 | /range.py | 6a0fd7aece9c532af35818008db4fa6baffa1ce3 | [] | no_license | nami-h/Python | b57f12ae48d5bc17a3de72ec7c5abb5622ba0cd2 | 7b067950da29df705237405742564d2f127f1446 | refs/heads/master | 2021-06-27T16:00:10.113762 | 2020-09-22T19:59:05 | 2020-09-22T19:59:05 | 136,550,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | digits=range(10)
print(list(digits),"\n")
| [
"noreply@github.com"
] | nami-h.noreply@github.com |
59cbd00de94ea0b4a3b7608732f8325b879b67fe | 1ddbd4f7194fb52ea8344e8f80dcbd87e8d41cfc | /restconf/pagination.py | 67556c262f5a6216f1bf85d067790445fbcf1af1 | [] | no_license | TruthTheDeveloper/Huggie-backend | cc9444571a5e147e789c2dcfaae51a694d37d917 | 8a686beb2635557f4235047cde3eccd79d3ea3b7 | refs/heads/master | 2023-08-20T06:12:31.465811 | 2021-10-31T18:21:15 | 2021-10-31T18:21:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from rest_framework import pagination
class CFEAPIPagination(pagination.PageNumberPagination):
page_size = 10
# default_limit = 6
# max_limit = 20
# limit_query_param = 'lim' | [
"henrysempire111gmail.com"
] | henrysempire111gmail.com |
21250bfe85976f56c9b601959a095686652af6d9 | 46c36bbd0428bd149fb660db00a96da7cd629784 | /ann.py | f94a1783369bd644e737f7765d5e183e7c640833 | [] | no_license | ramrockety/Churn_customer_Prediction | 6d3f1d406bdbe5e99d42ade772d446b4a7f48a87 | 63c5f10d5b4e73eb393da16e37c492b20852e889 | refs/heads/master | 2020-08-09T19:59:43.155933 | 2019-10-10T11:17:24 | 2019-10-10T11:17:24 | 214,162,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,062 | py | # Part 1 - Data Preprocessing
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Churn_Modelling.csv')
X = dataset.iloc[:, 3:13].values
y = dataset.iloc[:, 13].values
# Encoding categorical data
from sklearn.preprocessing im... | [
"noreply@github.com"
] | ramrockety.noreply@github.com |
a8fd28ce6011ac9e1b7097c60a35bb40db51fcdf | 3b1c342b0b269449ec5029d89f01813a520d4dae | /pythonx/px/python.py | 55d1281f07bc4cb50dd6d270db8eeafd32e26097 | [] | no_license | zazab/vim-pythonx | ddbc98ce3b8a03193452eb8c891b2445d2b79036 | f4b57fba21a231be0eb6f15e37906dde84de1e41 | refs/heads/master | 2020-12-03T06:33:29.803963 | 2015-11-10T04:33:46 | 2015-11-10T04:33:46 | 46,963,389 | 0 | 0 | null | 2015-11-27T06:23:57 | 2015-11-27T06:23:57 | null | UTF-8 | Python | false | false | 1,001 | py | # coding=utf8
import vim
import re
import all
import px.util
function_re = re.compile('^def ')
method_re = re.compile('^\s+def ')
class_re = re.compile('^class ')
def ensure_newlines(buffer, cursor):
line_number, _ = cursor
line = buffer[line_number]
if function_re.match(line):
all.ensure_newline... | [
"s.seletskiy@gmail.com"
] | s.seletskiy@gmail.com |
620b6da8d5391c16a4d7ba3684a0072fba268d7a | 4108ad48cda33136d9752da06ee0bbbf889ce6f8 | /camera.py | 4c099c16d49e0165f381e2f6f1685234b825d09f | [] | no_license | thearmanhammer/videoSurveillance | 429fef1b0c39f101249d5da93d520f9fd888176d | 3c1e2107cd2c9dca422b2f2f47a7d6398e39bab3 | refs/heads/master | 2020-04-05T12:36:44.435833 | 2017-09-10T23:04:54 | 2017-09-10T23:04:54 | 95,160,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | import cv2
import numpy as np
import time
import requests
global i
i=0
while True:
# Create a VideoCapture object
cap = cv2.VideoCapture(0)
# Check if camera opened successfully
if (cap.isOpened() == False):
print("Unable to read camera feed")
# Default resolutions of the frame are obtain... | [
"armandeeps@gmail.com"
] | armandeeps@gmail.com |
369ce0f7c9ed744ccb928dbc2c825424a005ca2f | b4e098fc5aa86f0f4a314491bca52f782193d0e8 | /LearnPython/osModules.py | 066c0c59ebbf21e8c92728799464473bdef3fe7e | [] | no_license | memukesh18/pythonProjects | 74c863292710ace9a990904e6720d5e31472e9ef | 20644a09085c2b0f6ffdf020a536cdf8699d15de | refs/heads/master | 2022-12-05T09:12:55.983755 | 2020-09-05T19:40:48 | 2020-09-05T19:40:48 | 289,723,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #!/usr/bin/python
import os
import time
curDir = os.getcwd()
print(curDir)
os.mkdir('newDir')
time.sleep(5)
os.rename('newDir', 'newDir2')
time.sleep(2)
os.rmdir('newDir2')
| [
"me.mukesh18@gmail.com"
] | me.mukesh18@gmail.com |
637a0eef028137f426e1c61e401351abe1588071 | 2f9608f57dd42b1a177cf27ac8d3cc9fd9a58ed1 | /Django_tutorial/Day2/views.py | aa5ad08d33f54071ab4b49467e8b8ede65de76d2 | [] | no_license | dipeshpandit12/Python | e5a08076e35f7e1aec13d46f0e03edcb4428e8d2 | 95ddeb220d726779be6a21a0f0ad8ac43d09661a | refs/heads/master | 2023-08-25T08:54:16.356167 | 2021-10-10T18:24:31 | 2021-10-10T18:24:31 | 381,918,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | # I am the honour of this website --Dipesh Pandit
from django.http import HttpResponse
#from django.shortcuts import render
def index(request):
return HttpResponse('<a href="http://127.0.0.1:8080/"><button>Home</button></a>'
'<a href="http://127.0.0.1:8080/about"><button>About</button></a... | [
"noreply@github.com"
] | dipeshpandit12.noreply@github.com |
5f6cb6c94ca4f16d8f6f26845918c9f4b4708db8 | 54d2887e3c910f68366bd0aab3c692d54245e22a | /abc/abc_042_125/abc067/c.py | b4ed060ee9fec1215b76ac1a828de13f9a096cb0 | [] | no_license | Kevinrobot34/atcoder | 7aec367fd2c6b589e9d583dae7b3c7520ce9fa12 | 482ea508f098f81e4f19522fe518dd22c781aca9 | refs/heads/master | 2022-07-10T23:44:45.290022 | 2022-06-29T11:30:26 | 2022-06-29T11:30:26 | 158,081,477 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | n = int(input())
a = list(map(int, input().split()))
s = sum(a)
s1 = 0
ans = 10**15
for i in range(n-1):
s1 += a[i]
ans = min(ans, abs(s1 - (s-s1)))
print(ans)
| [
"kevinrobot34@yahoo.co.jp"
] | kevinrobot34@yahoo.co.jp |
b303f2cbd4fed1c57cc4eac37adc18f1b4fd6317 | bbd7d24e36994db55a0278377b364e48417ffac0 | /terenas_app/frostmourne.py | 7b2f20f5081f500d4efd36f7efb660d8c0f8e5fc | [] | no_license | KarPon/test | bd6d7cf229caa17c969e4a98b1f721fefddda631 | 8271fb58b60e9da2b77488a053d4d6d354acdc52 | refs/heads/master | 2020-04-05T11:09:49.001307 | 2018-11-09T07:49:29 | 2018-11-09T07:49:29 | 156,825,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | from arthas import app
| [
"karamelka.poni@yandex.ru"
] | karamelka.poni@yandex.ru |
00e06a108b23557880081231628b7ed7e6100876 | fa4327bde9907c787407850cb6aa5af5c4df7a27 | /Click-The-Square-Game.py | 70dd7f0096ecbe4708e2a79bc1590581f6a94238 | [] | no_license | CameronLooney/Click-the-Square-Game | 42543063e91d843ae459d7a1454186a2004535f5 | d6a8cc47809c43575d80f3d157fbe11c964e424f | refs/heads/master | 2023-05-27T07:30:39.064973 | 2021-06-11T13:22:17 | 2021-06-11T13:22:17 | 376,025,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,341 | py | from tkinter import *
from random import randint
from datetime import datetime
import sys
import os
FONT = ("Verdana", 12)
class GameSetup(Tk):
def __init__(self):
Tk.__init__(self)
package = Frame(self)
package.pack(side="top", fill="both", expand=True)
self.frames = ... | [
"noreply@github.com"
] | CameronLooney.noreply@github.com |
f302855d8a7813a76d771890993afc22fb552c98 | 7bf19240ec9708518b6f18336c0222167b40f631 | /100.相同的树.py | fe4192500e56d3e89ebcef96068be38d33c2c6e6 | [] | no_license | Zhth/learnleetcode | 29fbd6ea76a57f029eb4e6988f82bb63f42a490f | 2675281fa2cf7ace347f672d80adc9509f82af49 | refs/heads/master | 2020-09-21T01:32:55.279812 | 2020-01-05T07:21:07 | 2020-01-05T07:21:07 | 224,641,374 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | #
# @lc app=leetcode.cn id=100 lang=python3
#
# [100] 相同的树
#
# @lc code=start
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def isSameTree(self, p: TreeNode, q: TreeNo... | [
"328404526@qq.com"
] | 328404526@qq.com |
ed4b24475ea5aa9dbc26d495c1202324cf99e85b | 5248ed6521bd30a241d4e4685d2784d76654ae50 | /gui.py | 377917f77a42d27bf70adba43cf0c4fe15fc0be1 | [] | no_license | PrakharQ/Audio_Fingerprinting | 211d7d53481f0b9c5e9ef7b2d99baf8f3e901c85 | b789725ee0e1f24cd54e1d65f40319937ea990c7 | refs/heads/master | 2020-04-27T23:48:12.386136 | 2019-03-13T17:30:36 | 2019-03-13T17:30:36 | 174,790,777 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | import pygame
pygame.init()
BLACK = ( 0, 0, 0)
WHITE = ( 255, 255, 255)
GREEN = ( 0, 255, 0)
| [
"noreply@github.com"
] | PrakharQ.noreply@github.com |
fc458eb74717792b8f04e50b26c2e1046385d558 | 00848c7014fae4f370a14c27cc05963f5ed155d4 | /model.py | 6150916ff4f5b1a4bca63ebea382b1624253eb95 | [] | no_license | miziha-zp/cikm21-video-match | 7b44a089eb9af0873bfd171dacb0f06950ed18e3 | 470960bbd78d00da48057462ee87542a90059540 | refs/heads/main | 2023-08-23T23:20:33.261582 | 2021-10-20T06:23:34 | 2021-10-20T06:23:34 | 419,209,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,830 | py | import transformers as tfs
import torch
from torch import nn
from basemodel import *
import torch.nn as nn
import torch
from torch.nn.functional import normalize, dropout
from torch.nn import functional as F
from e2econfig import base_config, transformer_vision_config
transformer_frame_config = transformer_vision_conf... | [
"xingzhang.zp@alibaba-inc.com"
] | xingzhang.zp@alibaba-inc.com |
75ee7c17272c618d5bc86df3c6eab8a95d85f9a6 | 91d2e9cf2c51a8084916b88641fbebc30e888c15 | /ai_vision_for_endoscopy/analyzers_2_categories.py | 3079beb88118f8c81d3bbb3f4ec1e383ae13f5bd | [] | no_license | juingzhou/ai-vision-for-endoscopy | 531685c91a8074b67a38272223bc9b4487557d0b | ef2db47da1cbcc193d37f230d254de803f2c40a6 | refs/heads/master | 2023-05-30T01:36:05.225395 | 2019-06-01T00:34:06 | 2019-06-01T00:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,120 | py | #!/usr/bin/env python3
# filename: analyzers_2_categories.py
# version: 1
# Attribution:
# This code is a modification of code from
# James Requa's Kaggle notebook found here:
# https://www.kaggle.com/
# jamesrequa/keras-k-fold-inception-v3-1st-place-lb-0-99770/notebook
import os
import glob
import pickle
import nu... | [
"awforrester@gmail.com"
] | awforrester@gmail.com |
561b47de98c0c00412be39fac507e0389218b73b | 29334ead97f3a34b53261fd443417955fdb5f671 | /Chapter 10/Challenges/gui_guess_my_number.py | 0bd533155bdf264d230c354d3bdd18c3ffed9dd0 | [] | no_license | dguzman96/Python-Practice | 30da13c720163110d249a5358aefa0d87b6c354a | 2e96474567d31988944a865aad35dc8ae63a990a | refs/heads/main | 2023-06-06T10:36:06.025424 | 2021-06-20T16:48:08 | 2021-06-20T16:48:08 | 378,687,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,161 | py | #Guess My Number
#With GUI
import random
from tkinter import *
class Application(Frame):
"""GUI Application which lets a user play Guess My Number"""
def __init__(self, master):
super(Application, self).__init__(master)
self.grid()
self.create_widgets()
self.reset_g... | [
"darren.guzman15@gmail.com"
] | darren.guzman15@gmail.com |
b58ffe6e25b93afcc5d0259a098b3a6b8d16d2e8 | 0e3094d528c6a274aa617a18ec036d5a34586efc | /test_affine.py | dee7e36a6cd51d3081dd42c1ac68509609d7c477 | [] | no_license | shivekkhurana/affine-cipher | bc627abe73e8530e8589ec7660650fe8e4e8e6f2 | 763f5f5fd7c6860bd6cfb736cb129024be3eb1d7 | refs/heads/master | 2021-01-21T05:06:05.101459 | 2013-09-05T05:35:55 | 2013-09-05T05:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | #!/usr/bin/python
#coding=utf-8
from affine import *
import unittest
#!/usr/bin/python
# -*- coding: utf-8 -*-
original = Affine("टमाटर",'devnagri.txt')
print original.string.read()
encrypt = original.encrypt(1,7)
print "encrypted :\n", encrypt.read()
print "break attempts :\n"
choice1=raw_input("Do you want to try ... | [
"khuranashivek@gmail.com"
] | khuranashivek@gmail.com |
88e5a1c762f31f83b92155220f8455c491f163fc | 29bdc25f1fe529429d01aad9de007184d3de4bb7 | /news-summarizer/a2_test.py | c38c636e1afdea56dff8308090177e036d2d1fe7 | [] | no_license | sumitgadhwal/Extractive-Multi-document-News-summarizer-using-BERT | 5e21d4a351ccbacf16331a5db14afa260b46d659 | 4d263c6b47cc2e4f6af19346cd7ab5970a27b705 | refs/heads/main | 2023-06-10T00:54:03.041076 | 2021-06-29T16:42:50 | 2021-06-29T16:42:50 | 381,415,915 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56,159 | py |
#30/200/110 ---> 28 / 32/ 5
#30/150/110 ---> 25 / 29/ 5
#20/200/110 ---> 26 / 30/ 5
#40/200/110 ---> 25 / 34/ 6
from summarizer import Summarizer
from summarizer.centroid_embeddings import summarize
from summarizer.mmr_summarizer import MMRsummarize
doc1 = '''Exxon Corp. and Mobil Corp. have held discussions about ... | [
"skgskg575757@gmail.com"
] | skgskg575757@gmail.com |
354f0e7014b53e14fcfb3cfc31eea71c192a3907 | dc5b4cc4b1e7b8b6df54a883ae5415b9a543f211 | /pattern_matching/aho-corasick.py | 5ec1e788e4e7e635a901d4a494f82ff969bb9e9c | [] | no_license | AaronJeeHo/bioinformatics-tools | a42f41ac4dc4deddb2f3764a62e757a0cc46c492 | 5383fac0d1ff788c76fbaf243280e981e356d661 | refs/heads/master | 2023-02-21T17:12:24.696847 | 2021-01-21T09:30:09 | 2021-01-21T09:30:09 | 286,941,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,706 | py | """
Author: Aaron Ho
Python Version: 3.7
"""
import argparse
import time
import csv
class AhoCorasick:
"""
Class that creates a trie to pattern match
queries to a database using the aho-corasick algorithm
"""
def __init__(self):
"""
Initialize matching trie
"""
self... | [
"aaron.jee.ho@gmail.com"
] | aaron.jee.ho@gmail.com |
eea60186b66f547ac36ca96e784886c172de17c6 | 8c83d2815d7022462c87adc1886c15ee9ab83d07 | /capture.py | 6eef59c2ac013a17e555cd65f186b445e0d69231 | [] | no_license | Toletum/OpenCV | 3ce8f273562744f8649b23ad06182e25b48c1ae2 | 1ca5aaa4b43641f95b6a5b753f38b1db4cbe5501 | refs/heads/master | 2020-04-25T17:20:34.649859 | 2019-02-27T15:54:17 | 2019-02-27T15:54:17 | 172,944,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,933 | py | #OpenCV module
import cv2
#Modulo para leer directorios y rutas de archivos
import os
#OpenCV trabaja con arreglos de numpy
import numpy
#Obtener el nombre de la persona que estamos capturando
import sys
nombre = sys.argv[1]
import matplotlib.pyplot as plt
import matplotlib.animation as animation
#Directorio donde s... | [
"noreply@github.com"
] | Toletum.noreply@github.com |
cbc29002d921db95ac1f89e346ba80b97c873b11 | d80d84ec38782246708e0d93d0a87b7813178507 | /homework7/phys162hw7prob1.py | 2a930229ff5d0215bda8be74a2469bfb0fe3577b | [] | no_license | rber14/Python- | 06315c06c4a6eed83bb7559e626b62280421e498 | 9840048e8206090f18dbf545875faa267cd800d8 | refs/heads/master | 2020-04-16T05:42:22.355954 | 2019-03-01T07:02:41 | 2019-03-01T07:02:41 | 165,317,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | #robertoCampos
#phys162HW7Problem1
import numpy as np
import numpy.random as ran
import matplotlib.pyplot as plt
from scipy.optimize import brentq
from scipy.optimize import curve_fit
d0 = 1
mean = 5
standardDev = 1.25
def func(x,d0,mean,standardDev):
return d0 * np.exp((-((x - mean) ** 2) / ((2 * standardDev) ... | [
"noreply@github.com"
] | rber14.noreply@github.com |
9d229b181c03cf5d722df0af0e71948bd8c939c5 | 9c3492caabd96a39e9463b95eca55d3e6d274942 | /IPscan_to_GO.py | 0a435f548c9e47472410a91a3dd69a53f564dcab | [] | no_license | shanedenecke/ABC_scan | 380d2f8007ba07fe7c061f77c97f570fb4a91d95 | 2c11674f2f32a2e38dd20048e645559b45ac7676 | refs/heads/master | 2023-05-27T02:22:52.093049 | 2021-06-08T13:11:10 | 2021-06-08T13:11:10 | 311,924,233 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 20 16:09:40 2020
@author: shanedenecke
"""
import pandas as pd
pd.set_option('display.max_columns', None)
import argparse
import re
CLI=argparse.ArgumentParser()
CLI.add_argument("-ip",type=str,help='Output of interpro scan with GO terms in 13th ... | [
"shanedenecke@gmail.com"
] | shanedenecke@gmail.com |
08442036c4b07c98ed97b71bbee402abbcfc2004 | be9a56d49a308b5d70c57989d11c7e6207d9d349 | /pynext/stats.py | 45a94ac1e650e4253f9a9df750d0fddbc56f5793 | [] | no_license | jjgomezcadenas/pynextsw | ab7e9823f8eb12424084c849c7c099ac6a64351b | 84db6ce3eb2cac3567dce9950a35fbbe4027f0fd | refs/heads/master | 2020-12-14T14:38:48.940016 | 2020-02-10T17:39:51 | 2020-02-10T17:39:51 | 234,772,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,040 | py | import numpy as np
from typing import Tuple, List
from numpy import sqrt
NN = np.nan
from . pynext_types import Number, Array, Str, Range
def in_range(data, minval=-np.inf, maxval=np.inf):
"""
Find values in range [minval, maxval).
Parameters
---------
data : ... | [
"jjgomezcadenas@gmail.com"
] | jjgomezcadenas@gmail.com |
8c7e26d6b961374892a5ed37c68264a090488f16 | 3949f5b7d91dcf0cc9194dde4d5d9e159bba6772 | /app/PythonCal.py | 807e28ef82733c483b12af07cbf673721eb557eb | [] | no_license | willmichael/PythonCal | b140c838c2efa4bb810997e49ed39649c17df552 | 56d9623a0e9c03f2a340ab4ae47d92a83e52273b | refs/heads/master | 2021-01-20T15:51:15.606873 | 2017-05-12T22:24:51 | 2017-05-12T22:24:51 | 90,796,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,214 | py | import calendar
import sys
import time
import fire
import os
import httplib2
from apiclient import discovery
from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage
import datetime as dt
from dateutil import tz
### MARK: - Constant
timeZone = "America/Los_Angeles"
### MA... | [
"oleemir@gmail.com"
] | oleemir@gmail.com |
eff0f3bde17a06c35fa546038b052be1cd26852e | 9d3b264a75264a28bafa0d22889c0bf6c429bbf4 | /fluent_contents/plugins/googledocsviewer/migrations/0001_initial.py | fbcd4d67df193997e4cdf05b2d235f059a3574e6 | [
"Apache-2.0"
] | permissive | hexenxp14/django-fluent-contents | a799b3864c826edf9ed67f4132589f73a4cf7807 | 613a4cd51ac201b86adfd5434e08f9a56eebfa2d | refs/heads/master | 2020-12-30T19:22:42.340848 | 2014-10-30T12:41:13 | 2014-10-30T12:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import fluent_contents.utils.validators
class Migration(migrations.Migration):
dependencies = [
('fluent_contents', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"cdshryock@gannett.com"
] | cdshryock@gannett.com |
0ad83e8f3d57405b7257baea33455b48fb6456a6 | efb9647a0c0f8f80e5c25abacbb097e9d74dc042 | /hooks/push-git-commit-ectomy-gh-pages | 0a8f6f141f5c5c8113aa28c73a0de44df1effa49 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Apache-2.0"
] | permissive | charlesreid1/b-captain-hook | 3bf38f24b9cd017e36f90e3481dd2780e553c8bc | 361f59c21a733a484f48e9bd60bce2d94dbf7b1b | refs/heads/master | 2020-03-17T06:00:49.865927 | 2019-07-13T06:06:30 | 2019-07-13T06:06:30 | 133,337,907 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,007 | #!/usr/bin/env python
from datetime import datetime
repo = "git-commit-ectomy"
org = "charlesreid1"
branch = "gh-pages"
action = 'push'
name = '%s'%(repo)
git_url = 'https://git.charlesreid1.com/%s/%s.git'%(org,repo)
logfile = '/tmp/{action}-{name}-{branch}.log'.format(action=action,
... | [
"charlesreid1@gmail.com"
] | charlesreid1@gmail.com | |
2aa38ea27bb35136c565483221792c4464d1f8a4 | 3a45e8ef64580bd38cf4b756166a628d27c08b3d | /Programmation/Components/Card.py | 71f17c16c303a529ebe9c3ee9a2d1731da40f7aa | [] | no_license | adrgaspard/Hearthston-o-tron | 327dfc73f6fcb3520a4a1a71cebd93fa93f84dec | e83c90b5e59b14bfe2156f343c8df1910d569dd4 | refs/heads/main | 2023-08-23T20:26:11.972923 | 2021-10-24T01:17:06 | 2021-10-24T01:17:06 | 420,558,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import pygame
from Definitions.MinionCardDefinition import MinionCardDefinition
from Utils.Configuration import Configuration
class Card(pygame.sprite.Sprite):
def __init__(self, definition: MinionCardDefinition):
self.definition: MinionCardDefinition = definition
pygame.sprite.Sprite.__init__(s... | [
"adr.gaspard@gmail.com"
] | adr.gaspard@gmail.com |
5b4712ed0482a02374da7911fc08398c6e1bf3c0 | 5cc31c46e227106332097557f377437c17410559 | /todo_list/webapp/views.py | c8a3f27a710a3cef6da4ad7a9a62bbaebdf4ea8b | [] | no_license | jarkysh/homeWork39_40-httphomeWork-python-group_1-homework_39-Kurmushueva_Jarkynai | c768cfcf9e36de7c984221dd40f2d20e7044243e | 9fd402eef81019a042e9898d70560d38954544ef | refs/heads/master | 2020-04-15T05:25:27.988933 | 2019-01-07T09:59:57 | 2019-01-07T09:59:57 | 164,421,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | from django.shortcuts import render, redirect, get_object_or_404
from webapp.models import Task
from django.shortcuts import render
def index_view(request):
tasks = Task.objects.all()
return render(request, 'index.html', context={
'tasks': tasks
})
def create_view(request):
if request.metho... | [
"jarkynai.kurmushueva@gmail.com"
] | jarkynai.kurmushueva@gmail.com |
e85ab084b65f72e9f5ae1f4ec9668097345df8dd | 13724823af94e5e5351ffa42ca896397f12f1f05 | /LaMachine-master/lamachine/lib/python3.5/site-packages/pynlpl/tests/FoLiA/foliatools/folia2columns.py | 6216095f2be4a7ef5cf5bb37d0e68be00b20ffe5 | [] | no_license | AymanYac/Neonec-Deep-Classsifier | 21e00cb0c5561f4ac22968f748ada0aa299e0a94 | a7978f434cc09d9e00a7df5d391bae77daf17637 | refs/heads/master | 2022-06-08T12:44:10.203386 | 2018-07-06T15:28:00 | 2018-07-06T15:28:00 | 139,996,406 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,807 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from __future__ import print_function, unicode_literals, division, absolute_import
import getopt
import io
import sys
import os
import glob
try:
from pynlpl.formats import folia
except:
print("ERROR: pynlpl not found, please obtain PyNLPL from the Python Package Man... | [
"root@Razer-Stealth.localdomain"
] | root@Razer-Stealth.localdomain |
08757d1866c0da3c3a97506e1056b5d70c1b13a3 | 270baf5e2a83b47fc9a04fb8ed8b8767082b7ef7 | /shabak_thing/gs/test.py | 768b933761691cd3cb3a6f1fde7c1d4c783b5131 | [] | no_license | potatoes-and-molasses/ctfs_and_such | 573a21d2c89453757ea45fd65f0f81cb9280d486 | 3c933bb5d0361c8897b091f9a93edfdeb02ff358 | refs/heads/master | 2021-08-23T04:52:27.893335 | 2017-12-03T12:20:02 | 2017-12-03T12:20:02 | 107,012,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from ctypes import*
import thread
import subprocess
import win32pipe, win32file
import os
import time
import string
import itertools
inp = 'ice cold'
p = win32pipe.CreateNamedPipe(r'\\.\pipe\flumbus_channel',
win32pipe.PIPE_ACCESS_DUPLEX,
win32pipe.PIPE_TYPE_MESSAGE | win32pipe.PIPE_WAIT,
1, 655... | [
"eedoshapira@gmail.com"
] | eedoshapira@gmail.com |
1091d68182a55bd32f5206727ba3573dcacd874c | bfd57b910adbe315197c28fc8bcbccdbd234b809 | /cbot/bot/log.py | 270328c4a87464e8e61fd7bd39c3fe874c3e2fc3 | [] | no_license | oplatek/cleverobot | cb21167f9ec418b4161755658b220f73d25a0bfb | d07d560f00d1ea24d10ddaf0f6a5a9d5e3d7aca7 | refs/heads/master | 2020-04-24T09:27:05.060831 | 2015-08-03T08:38:18 | 2015-08-03T08:38:18 | 29,197,244 | 0 | 0 | null | 2020-02-20T13:04:47 | 2015-01-13T15:47:23 | Python | UTF-8 | Python | false | false | 5,265 | py | from __future__ import unicode_literals, division
import json
from logging.handlers import TimedRotatingFileHandler
import time
import os
import errno
from zmq.log.handlers import PUBHandler
from zmq.utils import jsonapi
import logging
from logging.config import dictConfig
import zmq
from cbot.bot.alias import LOGGING_... | [
"ondrej.platek@seznam.cz"
] | ondrej.platek@seznam.cz |
b27c0f5cb1792867ff2a11fb0a3d012b8d914310 | 75bb99cc7c92ea5049a07e43f963b0eb8a18bc31 | /flattenpersons.py | 3e9871fe7a50892bd674e639f7f40c7c94636c75 | [
"ISC",
"CC-BY-4.0"
] | permissive | d-r-p/wsl-migration_initial-conversion | d008503952282e927c4c17d1c85a400648ae9ed8 | e36b4de610a28184a825042df0655c6af1fad4fe | refs/heads/master | 2021-08-29T19:31:27.951627 | 2017-07-02T00:00:00 | 2017-07-02T00:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,585 | py | #!/usr/bin/python
# coding=utf-8
###
# Copyright (c) 2016, 2017 d-r-p (Lib4RI) <d-r-p@users.noreply.github.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in... | [
"d-r-p@users.noreply.github.com"
] | d-r-p@users.noreply.github.com |
3dc766d34fc1024e82aeccd197b2a1c1368f667d | b09d446eb5a97901b4eafcec288038373f31d2cc | /airflow/calcat/dags/ihme_pull.py | cb68a0da391660efeeee6419aa49718bde6e0fda | [] | no_license | dcaseykc/restart | 1d458b07ceab4204fa3e81379fd27278e1587b59 | 93b0ddddd872f953feec46025aef80a990e6bbeb | refs/heads/master | 2022-12-26T06:45:04.109176 | 2020-10-07T23:14:53 | 2020-10-07T23:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | """DAG for pulling IMHE Data."""
from zipfile import ZipFile
from typing import List
from pathlib import Path
import requests
import io
import pandas as pd # type: ignore
from airflow import DAG # type: ignore
from airflow.operators.bash_operator import BashOperator # type: ignore
from airflow.operators.python_ope... | [
"lhahn1@me.com"
] | lhahn1@me.com |
d5d032d705eaf3f64d34af33806a614bb7b63ec5 | 747eafd9ca1df96ef32e73eb99ebdba3d719c3af | /apps/quit/__init__.py | 43aba8cfb663f3f5f1043569f702082c5005d998 | [
"MIT"
] | permissive | mcecchi/PythonOS | 2f525d28003c2dad041db4a49a78e205f3d29a41 | 863ed70b21b372eb73416b23bacf206e84468330 | refs/heads/master | 2021-01-12T10:52:37.238693 | 2018-05-23T13:52:17 | 2018-05-23T13:52:17 | 72,739,401 | 0 | 0 | MIT | 2018-05-23T13:52:18 | 2016-11-03T11:38:44 | Python | UTF-8 | Python | false | false | 486 | py | import pyos
state = None
app = None
def onLoad(s, a):
global state, app
state = s
app = a
app.ui.backgroundColor = (0, 0, 0, 0)
dialog = pyos.GUI.YNDialog("Exit Python OS", "Are you sure you want to exit Python OS 6?\nThis will close all active applications and you may lose unsaved data.", parseRes... | [
"furmada@gmail.com"
] | furmada@gmail.com |
b3cb4b8b2be2d65f5d39a4dd3bd247b27dba11f0 | 7d1a54df9094f6586a5ebe5621f6461e3319cd40 | /regression.py | 74fa152a9201cc18f8af8a6daeb2634301d4f0b5 | [] | no_license | sunmarknatecom/ml_training | 6d71423a39dc4d1ace77fde9cfcb8bb52adafea0 | 183713749ff11b2ac744311624410992b9a3291c | refs/heads/master | 2020-12-15T18:24:11.719438 | 2020-01-20T22:32:00 | 2020-01-20T22:32:00 | 235,209,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/rasbt/python-machine-learning-book-2nd-edition/master/code/ch10/housing.data.txt', header=None, sep='\s+')
df.columns = ['CRIM', 'ZN', 'INDUS', 'CHAS', 'NOX', 'RM', 'AGE', 'DIS', 'RAD', 'TAX', 'PTRATIO', 'B', 'LSTAT', 'MEDV']
df.head()
import mat... | [
"sunmark@nate.com"
] | sunmark@nate.com |
d8058f5e4cbe243bee00c6577f15413580447589 | 5cec3e3330b6a7b951cccc7b5606ec0adc3f94bb | /hangman_site/hangman/urls.py | 6a56704035ee521c0bec34252bdee1807e24a890 | [] | no_license | claudiadadamo/hangman | f00e0ab213b69d36079b9c84b1a8429fdc4234eb | 34c9e6754b2b53f799bc66edec214dbbc91916f3 | refs/heads/master | 2020-05-30T00:45:09.583406 | 2014-11-18T00:39:15 | 2014-11-18T00:39:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.conf.urls import patterns, url
from django.contrib import admin
from hangman import views
urlpatterns = patterns('',
url(r'index.html', views.index, name='index'),
url(r'get_guess/$', views.get_guess, name='get_guess'),
)
# urlpatterns = patterns('',
# url(r'^hangman/', include(hangman.urls)... | [
"claudiadadamo@gmail.com"
] | claudiadadamo@gmail.com |
2d2d33b1f96726237fe2033b2cfd6180cb799052 | 74768f285874ee5d7606cde6efc21e291782996b | /web/dispatch/resource/dispatch.py | 7b2cc6650ae1e75a541e322212cc6912ee919c08 | [
"MIT"
] | permissive | marrow/web.dispatch.resource | 7354ec6b124b7c17744a810f5823c7856a2b6992 | 5f4e0a8ddbedba2390d9aaa0b8bf26292e8605f9 | refs/heads/master | 2023-01-24T11:26:03.140864 | 2016-09-26T15:02:39 | 2016-09-26T15:02:39 | 32,566,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,822 | py | # encoding: utf-8
import warnings
if __debug__:
from collections import deque
from functools import partial
from inspect import isclass, ismethod
from .exc import InvalidMethod
log = __import__('logging').getLogger(__name__)
def invalid_method(*args, **kw):
raise InvalidMethod()
class ResourceDispatch(objec... | [
"alice@gothcandy.com"
] | alice@gothcandy.com |
32c3a1099738887f52f94cc6ce3f142833c8b14a | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.5_rd=1_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=68/params.py | 3d804381e49cd62d377929a2bbcf69c13ca14dea | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | {'cpus': 4,
'duration': 30,
'final_util': '2.537238',
'max_util': '2.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 68,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
a981211505b492fc1aadc55f4069fe93c92ad350 | 8d6fbed858ea471c75a0f0c426939d86eb021fd0 | /liceum/liceum/wsgi.py | 33a04b267de2a0f1da1bd8552cba3d2e39d517a5 | [
"MIT"
] | permissive | KariSpace/Space-website | 2cbfd00deeba09e188a8672e58feb34db9a40380 | e10ba7f64713883a542384d859457558cc8fcd09 | refs/heads/master | 2020-09-22T14:28:20.546091 | 2019-12-01T22:17:56 | 2019-12-01T22:17:56 | 225,239,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for liceum project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('... | [
"noreply@github.com"
] | KariSpace.noreply@github.com |
32504d56aaa8688af75b901d5c62c20426c7ad5e | 149d339ba6fb301766a43450f6bf4a75bad9860d | /modeling_tree.py | 089f87e7d13cad1f484fbc66d8feb3e687ba5c16 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | s3bc40/tutorials | 9c6a4bfa407e25151b1adac23672803004d46696 | 8ecc11a0a7c4278f6d0b0c7f9273e63da3fb7780 | refs/heads/master | 2020-03-30T17:10:44.825995 | 2018-11-06T12:59:06 | 2018-11-06T12:59:06 | 151,444,626 | 0 | 0 | Apache-2.0 | 2018-10-03T16:30:28 | 2018-10-03T16:30:28 | null | UTF-8 | Python | false | false | 521 | py | from sklearn.datasets import load_iris
from sklearn import tree
import graphviz
#Preprocessing
iris = load_iris()
clf = tree.DecisionTreeClassifier()
clf = clf.fit(iris.data, iris.target)
#Modeling
dot_data = tree.export_graphviz(clf, out_file=None,
feature_names=iris.feature_names,
... | [
"s.goncalvesclaro@gmail.com"
] | s.goncalvesclaro@gmail.com |
63d080fd584253c883ba1ee166423a40e94b4853 | 6df31b46cab205a5699b15f36db26556c2a79ccd | /练习.py | 02ccc3f7f2c95a70a5cd55c2caf898825be46010 | [] | no_license | chenliang1990/RequestsTest | 89ac66c0e1fbf565b5a0ba60f6b4bc05ed8e84fd | 91b6a0f0c1bec94b9b99f46cb0627419129a3097 | refs/heads/master | 2022-11-26T10:16:04.677644 | 2020-08-10T06:40:18 | 2020-08-10T06:40:18 | 285,567,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | from dbtools import query,commit
"""
请使用代码完成一个登陆和注册功能,并且数据要存入数据库中
"""
def checkname(username,password):
#自动判断账号长度是5-8位,并且账号必须小写开头
if len(username) >= 5 and len(username) <= 8:
if username[0] in ("qwertyuiopasdfghjklzxcvbnm"):
if len(password) >= 8 and len(password) <= 16:
re... | [
"860714835@qq.com"
] | 860714835@qq.com |
bd577316d2ce497bf25e8de82422eabe18e8c8e3 | a212743226afdda85f9b468bb16f3195b38248f1 | /dispatcher.py | 1f3293143d1b5421a155b30b0bdb5009c79c018e | [] | no_license | evrythng/evrythng-pycom | 24a6597d8c88ead7e7ab387fd28962fd6571e554 | 4a54e591d7281812690ac5f150d8c853ae185229 | refs/heads/master | 2021-03-24T12:44:42.449779 | 2018-04-24T14:21:33 | 2018-04-24T14:21:33 | 99,595,447 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import time
import gc
class CloudDispatcher:
def __init__(self, queue, notifiers):
self._queue = queue
self._notifiers = notifiers
def cycle(self):
notifications = self._queue.pop()
for n in self._notifiers:
n.handle_notifications(notifications)
gc.col... | [
"ruslan.filipenko@evrythng.com"
] | ruslan.filipenko@evrythng.com |
ed02247eb0a5e87b05a7dea03227101bca64ab60 | 71ed291b47017982a38524b4ff8fe94aa947cc55 | /String/LC389. Find the difference.py | 46b2982b623687adc315be5bab3e80fd64c6bc44 | [] | no_license | pingting420/LeetCode_Algorithms | da83b77e8f37bd4f461b0a7e59c804871b6151e5 | f8786864796027cf4a7a8b0ad76e0b516cd99b54 | refs/heads/main | 2023-07-17T22:46:08.803128 | 2021-09-02T22:06:38 | 2021-09-02T22:06:38 | 375,401,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | def findTheDifference(s,t):
s = Counter(s)
t = COunter(t)
for i in (t-s):
return i
def findTheDifference(s,t):
return list(Counter(t) - Counter(s))[0]
def findTheDifference(s,t):
for i in set(t):
if s.count(i) != t.count(i):
return i
| [
"bellapingting@gmial.com"
] | bellapingting@gmial.com |
4e7c5cb3a9bddaad548a8537a1f053a9bb28304a | 3416464630bc3322dd677001811de1a6884c7dd0 | /dynamic_program/q121_bestTimeToBuyAndSellStock/dp_solution.py | e9bd3a005e1a0987481b0a013628cfb1511719b8 | [] | no_license | ttomchy/LeetCodeInAction | f10403189faa9fb21e6a952972d291dc04a01ff8 | 14a56b5eca8d292c823a028b196fe0c780a57e10 | refs/heads/master | 2023-03-29T22:10:04.324056 | 2021-03-25T13:37:01 | 2021-03-25T13:37:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
FileName: dp_solution.py
Description:
Author: Barry Chow
Date: 2020/10/19 10:52 PM
Version: 0.1
"""
class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if len(prices) == 0:
... | [
"zhouenguo@163.com"
] | zhouenguo@163.com |
1f8e3999592acb9ba315f2dfebdb58c789383604 | 2462c1ebc6ab4f76dd7877735cc63baf5516773d | /.history/app_20201111142543.py | be588b305bb1e02c5c114f767fe71c540087a5cf | [] | no_license | syedzubi/Python_Flask_API | 636606fa3549245876d71f7aaee11d871966b3b0 | 534f2bb0137fbffbd680c5639b3c8994f7fdd451 | refs/heads/main | 2023-01-22T04:19:50.550933 | 2020-11-11T21:44:33 | 2020-11-11T21:44:33 | 312,075,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from flask import Flask,jsonify
app= Flask(__name__)
#Normally we would store this in Database
stores = [
{
'name' : 'My_First_Store',
'item' : [
{
'name':'Shampoo',
'price': 15.99
}
]
}
]
@app.route("/")
def hello():
return "Hello World"
@app.route('... | [
"syedzubi270@gmail.com"
] | syedzubi270@gmail.com |
7c81a30415a63c9cc197660d8bea9891378f1cb6 | de712ec0d239fc36f7d7b4b11e9c0e6d6a45458b | /src/aptus/gui/help.py | d48d15c5dc912347cfb79a493963db3f7e5c2509 | [] | no_license | nedbat/aptus | b76f241df5aedc2dc92ffe1f6b6bfe222aca0810 | b58a914efa868ce85151ba8f0361912d77c3a2cb | refs/heads/master | 2023-08-20T03:40:57.405977 | 2023-08-08T14:13:26 | 2023-08-08T14:13:26 | 276,628,031 | 21 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,265 | py | """ Help dialog for Aptus.
"""
import webbrowser
import sys
import numpy
import wx
import wx.html2
import wx.lib.layoutf
from PIL import Image
from aptus import data_file, __version__
from aptus.options import AptusOptions
class HtmlDialog(wx.Dialog):
""" A simple dialog for displaying HTML, with clickable lin... | [
"ned@nedbatchelder.com"
] | ned@nedbatchelder.com |
c06aa5a70334144cf07ba7109e8eb0aa6b55d4d6 | 291c814c01108481460f6e90650baefdcb1cc1a3 | /bldbnk/migrations/0001_initial.py | 24d96d98b08c658c7f6526782b9f8b2a7e99420d | [] | no_license | Aj0008/bloodbank102 | 3cfd75cf3ca0b152632ad3d436e596b1ad75f719 | 2fd13f4498ff53eebd667230e25542ad8d6ff15a | refs/heads/main | 2023-08-26T04:16:24.196706 | 2021-10-20T01:27:06 | 2021-10-20T01:27:06 | 417,110,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # Generated by Django 3.2.7 on 2021-10-02 01:16
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Donor',
fields=[
('id', models.BigAutoField... | [
"ajayprasadh0008@gmail.com"
] | ajayprasadh0008@gmail.com |
2661e70feec5cebeefae3f67c6b64bbe35929ef3 | f700710ad4f7b776a2715c3bded94f6e763703b3 | /BucketConfig.py | 426a618961853f48fcbef5b45de3590a09d85638 | [
"Apache-2.0"
] | permissive | hasithadkr7/udp_150 | 445496d7d1eb316dd787a1fadafc70627cad9abb | b88e27cd254e12c97a4120e311d7269b1f7cf724 | refs/heads/master | 2020-03-09T11:05:13.655372 | 2018-04-26T06:51:25 | 2018-04-26T06:51:25 | 128,752,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | #!/bin/python
#Retrieving rain cell and men-ref files from google buckets.
# Common.
FILE_GEN_TIME = '18:00'
BUCKET_NAME = 'curwsl_nfs_1'
WRF_NODE = 'wrf0'
INITIAL_PATH_PREFIX = 'results/'
KEY_FILE_PATH = '/hec-hms/uwcc-admin.json'
# For Rain cell
RAIN_CELL_DIR = '/hec-hms/Raincell/'
WRF_RAINCELL_FILE_ZIP = 'RAINCELL_... | [
"hasithadkr7@gmail.com"
] | hasithadkr7@gmail.com |
724394af8904fffcdb6a9026badea913850837b1 | 2c63ab08d38dee0b49396c20472a6a485f401bb1 | /ToDoApp/ToDoApp/urls.py | 933fb7555b4c8900d11b5a981d9f282fcc113841 | [] | no_license | PratikM15/To-Do-App | 1db0518c73720eb416d42f5f2fe7481f863df2ca | 7b77a848df47eff05bb7479fa7b02dc7d5e1096f | refs/heads/master | 2022-11-25T09:20:22.300477 | 2020-07-28T07:17:15 | 2020-07-28T07:17:15 | 283,128,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | """ToDoApp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"pratikmoharkar@gmail.com"
] | pratikmoharkar@gmail.com |
0c3279f93e18bd3c389374d20d21d6c113ee4f62 | 3c080c1b6279faf2616db44f2b4a977418adb081 | /day 04/Oliver - Python/passphrase_part_two.py | c6c09092834b9006d18a370a949bae542c16fe28 | [
"MIT"
] | permissive | thomasdc/aedvent-code-2017 | fec9d4891bfcb8b36f5c41fd0808415d03e6c02b | 8b80339aca091e75cee1f8b9d78cf3f5f64bda65 | refs/heads/master | 2021-09-02T07:30:01.985670 | 2017-12-31T13:33:38 | 2017-12-31T13:33:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py |
import itertools
def read_input(path):
with open(path, "r") as a:
return [line.split() for line in a]
def compare(phrases):
result = []
for line in phrases:
temp = []
for word1, word2 in itertools.combinations(line, 2):
temp.append((sorted(word1) == sorted(word2)))
... | [
"oliver.belmans@gmail.com"
] | oliver.belmans@gmail.com |
a4c8124efd05fe9d21c63fec43d08e7cdf2a49d2 | 12a50973c231db4bceb8efe46f848a556dc50767 | /draftable/utilities/timezone.py | a2b208de44f98f6e737988d38fa9360df2d4d678 | [
"MIT"
] | permissive | rajjnish29/compare-api-python-client | 4053493cc9d3a1172c8f8bc09203c5aa2dd1d967 | 733b69beb1c4b3a1e2e384912d411bbcfee306b7 | refs/heads/master | 2021-01-04T21:48:34.166479 | 2020-02-02T08:27:03 | 2020-02-02T08:27:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | from __future__ import absolute_import
try:
# noinspection PyUnresolvedReferences
from datetime import timezone
utc = timezone.utc
except ImportError:
# If we're in python 2, we need to implement our own tzinfo class in order to make datetimes be aware...
from datetime import timedelta, tzinfo
... | [
"james@payor.com.au"
] | james@payor.com.au |
1b624b53cfa998e6952b5704e1f14e2719745292 | d22df07c5ba92ca63de10de0d385f9f62b5d12ad | /Boards/models.py | 35f33d49cd38f7df51236eda6ecc81dff7d1d28a | [] | no_license | alaminv2/WebBoards | 7f4382149a5023b201eca04dab9f95c96582c6f3 | a2b9649023b966bce2d05f6f155a22fd54c9fab6 | refs/heads/master | 2023-04-04T04:23:47.829697 | 2021-04-25T02:26:26 | 2021-04-25T02:26:26 | 345,509,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Boards(models.Model):
name = models.CharField(max_length=30, unique=True)
description = models.TextField(max_length=300)
def __str__(self):
return self.name
class Topics(models.Model):
... | [
"alaminversion2@gmail.com"
] | alaminversion2@gmail.com |
dd408d7bb7c75f2b873fb135914f22ae124a2df8 | 5d622c4b5df54f880f9476931ffb697afc63a9e2 | /src/runtime/workflows/guard_engine/guard_engine_wf.py | e1df46e5ac3932440dee2b15b1ee176242671edd | [] | no_license | anirudh458/final-lab-test | 96d27219387c91f7f7fd346899324dd672eb21cb | e9aab1cd5c82993941d605cfa4a045a8db01036f | refs/heads/master | 2021-06-16T19:06:41.569044 | 2017-05-31T19:22:59 | 2017-05-31T19:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py |
from runtime.components.guard.guard import Guard
from runtime.components.engine.engine import Guard
from runtime.emgrs.svem.svem import EntityMgr
from runtime.components import guard
from runtime.components import engine
class GuardSysWf():
def __init__(self):
em = EntityMgr()
guard = Guard(em)
... | [
"ravulaanirudh7@gmail.com"
] | ravulaanirudh7@gmail.com |
2a7c00cc821d355faf8695bc800b3c5143797d33 | a74b251ef79bb19c0cddd3f39810adc126213331 | /multiprocessing.py | 873fef2487faa00974fadb995e4af951de375ece | [] | no_license | rechardchen123/Multi_threading_in_Pyhton | 1de2bad3ffbaa96df32d3e83e27798fa67062300 | 777c52a0e00ff9f2f78fa620c1195f8f5f91d41d | refs/heads/master | 2020-04-21T22:39:25.640469 | 2019-02-15T16:09:16 | 2019-02-15T16:09:16 | 169,919,642 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2/10/2019 2:11 PM
# @Author : Xiang Chen (Richard)
# @File : multiprocessing.py
# @Software: PyCharm
| [
"rechardchen123@outlook.com"
] | rechardchen123@outlook.com |
3c1ca3b891d74eab1f18ad1b2920a3a124d56701 | 2336a4b31ff38d783e2b5e29d509ffbcc8369bdf | /samples/sha1.py | 55c6845160566f0e5ba7ce2b7871d258a33114b6 | [] | no_license | amath0312/py100 | d7ec5ffbb46bc0ed95c260dff03a7a0481770f91 | ac2deeedcbf35d53de7746f2887a79c79cb601b2 | refs/heads/master | 2020-05-20T23:35:33.584172 | 2019-09-22T04:55:58 | 2019-09-22T04:55:58 | 185,804,957 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:da3ff1eb36a1bbf4add8a28cf405321cbe1879a28a8a9fe0ab146943930b3233
size 2116
| [
"amath0312@gmail.com"
] | amath0312@gmail.com |
d2006f503fbc47b67190e3bbf65990d2acb5f777 | 8a245bdc04aa5d95c080217d78f7c665064d51d2 | /ImportMats/subject.py | c8d646fcb6470e284e99be54b4215bae7dc5b929 | [] | no_license | Code-Fight/python_study | 163f63d8ae9fe13f1c89a7896b8669576a300e97 | c8ff47c27f5b32daa2405aad6765a9dbac6ac421 | refs/heads/master | 2021-01-23T06:10:40.184545 | 2017-07-08T05:14:40 | 2017-07-08T05:14:40 | 86,342,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | # -*- coding: utf-8 -*-
# Author zfCode
import xlrd
import OracleHelper
# base params
FilePath = 'D:\公司文档\客运物资管理信息系统\各站段基础数据\import.xlsx'
# subject in sheet 2
sheet = 4
ys_type = {
"应税": "1",
"非应税": "0"
}
# 0材料、1燃料、2配件、3工具仪表、4设备、5办公用品、6劳保用品
item_category = {
"材料": "0",
"燃料": "1",
"配件": "2",
"工... | [
"97576419@qq.com"
] | 97576419@qq.com |
14900afbebfd01885dcd4c0bfc9ac91b81c3a9d6 | 6d09351d66cd9e03e25bb04c7567345be89df13c | /fleshcode.py | be1dc89092599079ce733c1bb5a8dc1a8dc9f763 | [
"MIT"
] | permissive | awendland/code-boilerplates | b071c0a8f80dc4cdc152ca541f37bda761ffbeeb | cdc93d45ec96ae7dc3b1fbdd64a0c283cf57b900 | refs/heads/master | 2021-01-18T06:34:42.620095 | 2016-03-23T19:40:05 | 2016-03-23T19:40:05 | 26,665,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | import urllib2
import json
import subprocess
import shutil
import os
import sys
import tempfile
class c:
HEADER = '\033[35m'
OKBLUE = '\033[34m'
OKGREEN = '\033[32m'
WARNING = '\033[93m'
FAIL = '\033[91m'
END = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
REPO_URL = "https://gith... | [
"me@alexwendland.com"
] | me@alexwendland.com |
8a0b21cbf0620ac62b1ae6c3a0f3eff8f492b018 | 22f664220043d102b202d6ca6051cd7d3f2d9a4c | /RML_ACD/ESF/Compute_ESF_Features.py | 8d4a5986f1552d5d193072f8ce912606ddbef6fd | [
"MIT"
] | permissive | sumants-dev/EJPLab_Computational_Projects | ab5154ef74756908cf52f14f928e994bdad6034e | 7ed5def04bf81a5f02df4fc0af5294a1234f2d52 | refs/heads/master | 2023-02-11T19:33:43.538579 | 2020-12-31T21:58:47 | 2020-12-31T21:58:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,342 | py | import os
import sys
import glob
import re
import yaml
import numpy as np
import numpy.linalg as LA
import pandas as pd
import Bio
import Bio.PDB
from Bio.PDB.PDBParser import PDBParser
from Bio import BiopythonWarning
import warnings
import doctest
parser = PDBParser()
doctest.testmod()
warnings.simplefilter('i... | [
"noreply@github.com"
] | sumants-dev.noreply@github.com |
44f7af07f42fb608cedc3c5e1f67676fcd65524f | ebc00ddf4c8c5f5076471e8b8d56c2b634c51230 | /test/functional/mempool_persist.py | 9e50e3a3ba0e5b22e31c19a362dc431b32c0d05b | [
"MIT"
] | permissive | BlockMechanic/rain | 584a9e245cfb7ab5fb1add97b699b86833bfbc5b | e8818b75240ff9277b0d14d38769378f05d0b525 | refs/heads/master | 2021-07-03T03:48:53.977665 | 2021-03-04T01:28:20 | 2021-03-04T01:28:20 | 228,412,343 | 0 | 0 | MIT | 2019-12-16T15:03:28 | 2019-12-16T15:03:27 | null | UTF-8 | Python | false | false | 6,556 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2020 The Rain Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test mempool persistence.
By default, raind will dump mempool on shutdown and
then reload it on startup. ... | [
"blockmecha@gmail.com"
] | blockmecha@gmail.com |
1362efbb6d53f3383cea29321ab304f0e370154a | 8dc6423cca2eb626b1f9ce76d576e95ac17181f8 | /news/migrations/0003_auto_20180919_1420.py | 0e3a984792ef8d8547e078b029e9116b1aab56dd | [] | no_license | codeSapience/django_news_app | 07d67c44105ee30626e740ec6c534d7d6cc07ee4 | 2a55d0503d128d88d4c7b03b766d68c9c99516a0 | refs/heads/master | 2020-03-29T01:49:12.729978 | 2018-10-05T00:00:15 | 2018-10-05T00:00:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-19 14:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0002_auto_20180919_1304'),
]
operations = [
migrations.AlterModelO... | [
"brittoakintade@gmail.com"
] | brittoakintade@gmail.com |
5052bed389896a4f70a830f17f2280b6968dce56 | 38238f576b302835a285954711c62c69e65009c0 | /about_page/migrations/0007_auto_20201124_1313.py | 02fac6e66687346980f0c787624df864fb9ac062 | [] | no_license | iamdarshan7/New | ca107680c247fa94340bfc3937edc6dff7b8060e | 9075f50438e3f9911dd0b27d7c5e2806f25f4d3c | refs/heads/master | 2023-01-21T00:01:31.489631 | 2020-11-27T05:00:48 | 2020-11-27T05:00:48 | 316,404,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | # Generated by Django 2.2.17 on 2020-11-24 13:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('about_page', '0006_auto_20201124_0926'),
]
operations = [
migrations.CreateModel(
name='Teamsec1',
fields=[
... | [
"darshanthapa872@gmail.com"
] | darshanthapa872@gmail.com |
bd9332a9db5df4dcf742e8acdd50f7e8469abe76 | 0314598e0951fd0873b8a357de2cc9016e3cb5cb | /weatherapp/weatherdetector/weatherdetector/urls.py | 64309bda469ec143578350cbfeaed5d40e9dab82 | [
"MIT"
] | permissive | skmodi649/Hacktober-Fest | 5eb5c0d7e2108998574a0b46468a7b5e67c48270 | 7dbec6a1782a61b03850b42550c48aaf6f580ef2 | refs/heads/main | 2023-08-28T14:30:17.290722 | 2021-10-16T08:44:25 | 2021-10-16T08:44:25 | 417,769,099 | 1 | 0 | MIT | 2021-10-16T08:41:53 | 2021-10-16T08:41:52 | null | UTF-8 | Python | false | false | 804 | py | """weatherdetector URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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')
Cla... | [
"sairavi2711@gmail.com"
] | sairavi2711@gmail.com |
bcdaf06c8e143503a9f3f2763d1cb94058093abd | 2d3f75811a50da2769fe991ded6816bb63883bf1 | /Snakefile | 08d6120444d94569ea13e6a47a40e97203f08615 | [] | no_license | BEFH/aj_enriched_af | 3b60a1e2940cce9757389458842de93501e96d30 | d73f7ed4a9522afdb5041aa8bdfa7a7583035616 | refs/heads/main | 2023-04-20T01:08:35.928307 | 2021-05-11T22:05:11 | 2021-05-11T22:05:11 | 366,523,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | builds = ['v2.1.1-b37', 'v3.1.1-b38']
ans = [1,10,20,30]
from snakemake.remote.HTTP import RemoteProvider as HTTPRemoteProvider
from urllib.request import urlopen
from urllib.error import URLError
try:
response = urlopen('https://www.google.com/', timeout=10)
iconnect = True
except urllib.error.URLError as ex:
... | [
"fultonh1@gmail.com"
] | fultonh1@gmail.com | |
1e79fed455a8597b7adcc453fa758b8842961b04 | d1c46f0df7199fb5ced3d12da296c190943c0db9 | /yuexingyu/day03.py | 80d8aa4a4e9f2b3ed873f860d06c6d2dc1f4c24e | [] | no_license | zhanghuaisheng/DAT | 6a2f42e94352b3ed65a5e41c2f0f2b8af043a894 | d15d3a3d5eed1090b54d3e4e9495dc0264830086 | refs/heads/master | 2020-04-01T13:32:24.514945 | 2018-10-29T05:35:35 | 2018-10-29T05:35:35 | 153,256,621 | 0 | 1 | null | 2018-10-29T05:30:06 | 2018-10-16T09:11:11 | Python | UTF-8 | Python | false | false | 263 | py | import math
print('请输入圆的半径:')
r = input()
r = int(r)
def area(r):
return math.pi * r * r
def length(r):
return math.pi * 2 * r
print('你输入的半径为:', r, '\n圆的面积为:', area(r), '\n圆的周长为:', length(r))
| [
"yuexingyu@aliyun.com"
] | yuexingyu@aliyun.com |
35123285e1569f4fd529e804592e81ec15765527 | 2a61b02c26e77686e38cd9039e6f4b0530ddb7c9 | /bitbots_navigation/bitbots_localization/src/bitbots_localization/localization_dsd/actions/initialize.py | 01deaa97243938ce01c27e519039c7f8aa8a5bea | [
"MIT"
] | permissive | fly-pigTH/bitbots_thmos_meta | 931413e86929751024013b8e35f87b799243e22c | f45ccc362dc689b69027be5b0d000d2a08580de4 | refs/heads/master | 2023-08-27T02:58:08.397650 | 2021-10-22T17:17:11 | 2021-10-22T17:17:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,154 | py | import rospy
from dynamic_stack_decider.abstract_action_element import AbstractActionElement
from bitbots_localization.srv import ResetFilter
class AbstractInitialize(AbstractActionElement):
def __init__(self, blackboard, dsd, parameters=None):
super(AbstractInitialize, self).__init__(blackboard, dsd, pa... | [
"759074800@qq.com"
] | 759074800@qq.com |
ae63eaacb85aca49596b6018f311e198db6f8d1e | 46a81e56d564e37d250350cdd862a39cf552c800 | /goodwoodserver/asgi.py | c5eb298108685057772a197f19498abe5e3a8e93 | [] | no_license | Younique98/good-wood-server | 235aba48c6cc7aac458b6a884bd24a2f144a43a0 | 6d04950e8afbc464a5e99484ee9cf51e5b73afed | refs/heads/main | 2023-06-01T03:32:46.481977 | 2021-06-16T14:57:10 | 2021-06-16T14:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for goodwoodserver 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('DJANG... | [
"loganwebb1994@gmail.com"
] | loganwebb1994@gmail.com |
0a0d866d10ea4ed1205beb4cf0a95127f77ad0ed | a581a1949638e0149985bc8412a81a098890c5bc | /codefights/arcade/intro/07_throughTheFog/circleOfNumbers.py | a0cfef820eb38180b512057cf63e588471515ca2 | [] | no_license | pavandata/learningPythonTheCompetitiveWay | 80a1902cae5e5f93ea5723136d9c2f510bd91b9b | 7353459f177eadb1cd8ecf0078d5cff69997eacb | refs/heads/master | 2022-09-30T20:40:10.510074 | 2020-06-04T02:56:11 | 2020-06-04T02:56:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | """
Consider integer numbers from 0 to n - 1 written down along the circle in such a way that the distance between any two neighbouring numbers is equal (note that 0 and n - 1 are neighbouring, too).
Given n and firstNumber, find the number which is written in the radially opposite position to firstNumber.
Example
For ... | [
"keenan.romain@gmail.com"
] | keenan.romain@gmail.com |
7ce31686205d472fb1883b4327ca1d1dd6db0ec6 | d859e135cb2c7bc4b5d3c62c99c3ca49784b6ca3 | /linehaul/cli.py | c4e3fbce803f1a4da2f591f4440d478ca743b71a | [
"Apache-2.0"
] | permissive | reaperhulk/linehaul | c7dfe2de163d5062572b2fd1626c69d3fae592fd | 1058adfdedec3c75f5e4f32108ff727fcddd4d9d | refs/heads/master | 2021-01-13T03:18:07.795816 | 2016-07-01T12:31:36 | 2016-07-01T12:31:36 | 77,585,767 | 0 | 0 | null | 2016-12-29T05:37:23 | 2016-12-29T05:37:23 | null | UTF-8 | Python | false | false | 4,335 | py | #!/usr/bin/env python3.5
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
#... | [
"donald@stufft.io"
] | donald@stufft.io |
0c321cc1447cbc53ccf11b21d458ede5c2f8cd35 | e03da7ac9da6061b4fdf811643f2d3807649def1 | /Task2.py | 8fd5e8befe5dd94a8e76fb9d0947c7e03c36e044 | [] | no_license | Gavr59222/Lesson7 | b43c6ae86830ecfedaf08ee8bd59c1fa89564fcd | 5c0d2a0ee7ae948ca593295504f2179a0a43308c | refs/heads/main | 2023-05-26T17:35:52.171676 | 2021-06-12T13:42:21 | 2021-06-12T13:42:21 | 376,299,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | from abc import ABC, abstractmethod
from typing import Any
class AbstractClothes(ABC):
@property
@abstractmethod
def tissue_required(self):
pass
@property
@abstractmethod
def measuring(self):
pass
@abstractmethod
def _calc_tissue_required(self):
pass
class ... | [
"noreply@github.com"
] | Gavr59222.noreply@github.com |
2307618b2d04ece4f2c0fbe2badcc4a58983542e | 719d0a49a8004857f783cc6f278168c148963efd | /app/models.py | eeaf9a7ce5bc073c655e319264612efbda3ec8b2 | [
"MIT"
] | permissive | daranguiz/barbell-io | 42c6890d56cf9621a8870d21cc828767a75efcbd | d91d1aa089cb3fcc6616f942c651106add9d1b6a | refs/heads/master | 2020-05-30T07:13:45.804811 | 2016-10-10T04:55:44 | 2016-10-10T04:55:44 | 69,143,870 | 1 | 2 | null | 2016-10-10T04:55:44 | 2016-09-25T04:34:04 | Python | UTF-8 | Python | false | false | 2,276 | py | from app import db
from hashlib import md5
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
uid = db.Column(db.String, unique=True)
username = db.Column(db.String(64), index=True, unique=True)
email = db.Column(db.String(120), index=True, unique=True)
about_me = db.Column(db.Strin... | [
"aranguizdario@gmail.com"
] | aranguizdario@gmail.com |
91999beb125ee28bc463045ff945bdb89d23ade0 | 540037953cb3c0bd4d987a98fca088d4280e94d6 | /camfi/datamodel/autoannotation.py | d2dba4d8ead7d528ffa0db214e0d0a250d8ba20d | [
"MIT"
] | permissive | J-Wall/camfi | 690464ae84db42de17de6f106fb40025c5077245 | 7443f6090954ec03986838a5ec6b66bd49fc9333 | refs/heads/main | 2023-04-18T04:06:38.289357 | 2023-03-14T01:51:56 | 2023-03-14T01:51:56 | 309,541,834 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 26,039 | py | """Defines data structures used during automatic annotation model training and
inference. Depends on camfi.util, camfi.datamodel.geometry, and camfi.datamodel.via."""
from __future__ import annotations
from abc import ABC, abstractmethod
from math import inf
from pathlib import Path
from typing import Optional, Union... | [
"jesse.rudolf.wallace@gmail.com"
] | jesse.rudolf.wallace@gmail.com |
da759b27d128d6e9aa104a0f85f04ed4e3c76397 | 2ae95f690e0ed16a730aee9544b4b8f63789a0a4 | /py3/general_tools/file_utils.py | 8773a8bdd7d9333df95142bfb9206c988346c649 | [
"MIT"
] | permissive | unfoldingWord-dev/tools | 9f147672719e9e570f9f39cf38f915a9b4c25b64 | f337286a99e11d5ceb1537bff07ee10f0d6c07ed | refs/heads/develop | 2023-08-09T15:00:16.883806 | 2023-07-31T19:43:53 | 2023-07-31T19:43:53 | 11,344,473 | 7 | 14 | NOASSERTION | 2022-12-11T08:05:58 | 2013-07-11T14:44:36 | Python | UTF-8 | Python | false | false | 7,133 | py | from __future__ import unicode_literals, print_function
import codecs
import json
import os
import zipfile
import sys
import shutil
import yaml
from mimetypes import MimeTypes
# we need this to check for string versus object
PY3 = sys.version_info[0] == 3
if PY3:
string_types = str,
else:
# noinspection PyCom... | [
"rich.mahn@unfoldingword.org"
] | rich.mahn@unfoldingword.org |
fd9be8c0f073ca76aec02eca6f75619dd2a9b892 | 4b6dad86479dc3f8130d57170fa03e5de0992399 | /Segnet_model/model.py | d34865aabbb5444ca646bc94d3e1ff0ef4c31d4b | [] | no_license | nappaillav/RTMRI-Segmentation | 126559c84bca5433fe78e48fb65ea74b957c09c6 | 4259c687ee827a90ad5312b46ff7e796163bc42c | refs/heads/master | 2020-04-10T01:43:51.695953 | 2018-12-06T19:47:38 | 2018-12-06T19:47:38 | 160,723,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,500 | py | from keras.models import *
from keras.layers import *
import cv2
import glob
import itertools
import numpy as np
import matplotlib.pyplot as plt
import os
import sys
from matplotlib.pyplot import imread
from keras import optimizers
from keras import models
from keras.layers.core import Activation, Reshape, ... | [
"spmanikam@gmail.com"
] | spmanikam@gmail.com |
b3a7e36a523ea2deada22151788d76f3ffcb36b8 | 7ca99ac08e99ecabebd022f11ecf238f039fdb4c | /app/test.py | 249b228b817e50ae3a6310d44ada524a8114b003 | [] | no_license | tylfin/McHacks | f7e25f53a8dfe621b34a19bc9bb46784625e0326 | 027cd2a6bc04b4d7f0cdba733696f81180c51488 | refs/heads/master | 2020-05-17T11:53:27.333205 | 2014-02-24T16:41:33 | 2014-02-24T16:41:33 | 17,088,133 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | from app import *
r = RandomGenerator('moonlight.mid')
| [
"tylfin@gmail.com"
] | tylfin@gmail.com |
e9a5a4858ee18294253987862fd245e034788500 | 57c13a2500561e72e382489c23e9c0b8347be605 | /network_programming/chat_project/chat_server.py | bd32ca8fa7b9bb2c5a8bc51e0d00e53983448314 | [] | no_license | linheimx/python_master | 7403d7af639e31810c90b2fba14972a6d3dcfcec | 7fb7c467bedaff1515975807552a0ba05e30f15e | refs/heads/master | 2021-01-21T21:54:55.537994 | 2016-12-23T15:05:14 | 2016-12-23T15:05:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | import sys
import socket
import select
HOST = ""
PORT = 9090
SOCKET_LIST = []
RECV_BUFFER = 4096
def chat_server():
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, True)
server_socket.bind((HOST, PORT))
server_socket... | [
"bonwho09@gmail.com"
] | bonwho09@gmail.com |
e5e04164c132ec7188ff9ad80e994aae47d25a42 | c9b88924141bec00db32c601fe24163f49612973 | /venv/bin/pip | d261b36b8a234eb71442f167555c1a3b09650bc1 | [] | no_license | cameronccohen/satirev | 23c70ecb9a5c6b60e3671ebde372fc0c3ca9b2b4 | 9e7d7cc9fdedc99ff274f332c86f7e82e2731f19 | refs/heads/master | 2021-03-27T16:47:33.026071 | 2019-10-24T02:44:12 | 2019-10-24T02:44:12 | 77,879,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | #!/Users/Cameron/satirev/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"cameron.c.cohen@gmail.com"
] | cameron.c.cohen@gmail.com | |
30646d0987234268e34573a0495516e66c0aa384 | 32dadc18334247e1523e4a7e64ec3f2746c688e5 | /motion/offline/genMatrixCode.py | 84759fce0d017fd03a184461f737c812ee136338 | [] | no_license | rdspring1/cs393r | 95861c3705119602d82dc53b4740af093f9ed295 | 150bdd9e759ce32ae222bad92437304171d85d01 | refs/heads/master | 2021-01-19T00:25:58.218904 | 2013-12-09T04:15:50 | 2013-12-09T04:15:50 | 13,565,545 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | #!/usr/bin/env python
import scipy.io
import subprocess, sys
argList = [['MEMORY_ROBOT',0.01,100],['MEMORY_SIM',0.02,100]]
heights = range(200,400,5)
f = open('../initWalkMatrices.cpp','w')
f.write('#include "WalkModule.h"\n\n')
f.write('// GENERATED via %s\n' % sys.argv[0])
f.write('void WalkModule::initMatrices(i... | [
"edaena@mondello.csres.utexas.edu"
] | edaena@mondello.csres.utexas.edu |
fdd2ce67c0d9667f1895e643a149d7deae0a8c96 | 12559d3e3d3dbd3af938577f18bf4ec14cb44d95 | /pandaScript/venv/Lib/site-packages/ipykernel/_version.py | 298a287cd298e4af2fa3c95ecc6c17526a4ceb53 | [
"Apache-2.0"
] | permissive | Arnzero/pandasScript | dfd43d8252ec1345e37fdbd9a6dae71a606ae36a | 9dd5b8dda35874372ab11898f1ac112e0c88f752 | refs/heads/master | 2023-05-01T11:25:34.428754 | 2020-03-27T05:11:37 | 2020-03-27T05:11:37 | 250,187,246 | 0 | 0 | Apache-2.0 | 2021-05-11T08:03:45 | 2020-03-26T07:16:08 | Python | UTF-8 | Python | false | false | 573 | py | version_info = (5, 1, 4)
__version__ = '.'.join(map(str, version_info[:3]))
# pep440 is annoying, beta/alpha/rc should _not_ have dots or pip/setuptools
# confuses which one between the wheel and sdist is the most recent.
if len(version_info) == 4:
extra = version_info[3]
if extra.startswith(('a','b','rc')):
... | [
"afh146@humboldt.edu"
] | afh146@humboldt.edu |
06494509579bb17864e8abe58841ace18318198c | 946862d505438230153c17fe90079651a7ccc395 | /lsp_cheminf_server/lspcheminf/fingerprint_server.py | c137e6f81a5d7a08a9872fc3ad17ec8f0ab4d268 | [
"MIT"
] | permissive | labsyspharm/lsp-cheminformatics | 0b71959d49741232123661e20e4fe989052fc6c5 | 1465a23d6d3f8dafa2830b0779ff1e17da8f4222 | refs/heads/master | 2023-04-15T14:01:56.575308 | 2021-03-04T18:59:30 | 2021-03-04T18:59:30 | 229,816,878 | 4 | 0 | null | 2023-04-11T23:31:22 | 2019-12-23T20:15:01 | Python | UTF-8 | Python | false | false | 10,831 | py | import base64
import gzip
import os
import pickle
import sys
import tempfile
import pandas as pd
from flask import Flask, request, send_file
from rdkit.Chem import AllChem, inchi, rdFMCS
from rdkit.Chem.Scaffolds import MurckoScaffold
from lspcheminf import app
from lspcheminf.util import (
convert_compound_reques... | [
"clemens.hug@gmail.com"
] | clemens.hug@gmail.com |
9a66e68be0ed52f7a537e3e9581cc7e7818be1c1 | 732bd966cd16345d48e49bf7455737049a7f99c6 | /verp/crm/doctype/engagement_letter/engagement_letter.py | cc5f0c1d8522a7e9b38c795a630e1c31fd305a88 | [] | no_license | vsadminpk18/verpproduction1 | 12f6b721a53bacc578b7368e80342547867cf162 | ac209731a35c2132c3895f2030449e138c90ab89 | refs/heads/master | 2023-07-26T00:01:53.711552 | 2021-09-08T10:50:47 | 2021-09-08T10:50:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # Copyright (c) 2021, Vesper Solutions and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class EngagementLetter(Document):
pass
| [
"vespersolutionspk@gmail.com"
] | vespersolutionspk@gmail.com |
150469c71a6f14221ce179e9ef83666be0906cae | d26518a58914d3d6d2550ef68e5fa197fe7c3ab4 | /api/urls.py | 05956996c1fcfcd5dac4a164732c84631679f402 | [] | no_license | ukozhakova/Django2021_Midterm | 9f67c881bda6c7bb8fa580d9881f3a4dad7ad130 | 8acdb92306b03fa96f8952bc205f7ab09a5db6ca | refs/heads/main | 2023-03-17T20:42:28.545043 | 2021-03-20T06:23:25 | 2021-03-20T06:23:25 | 349,619,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from django.urls import path, include
from . import views
from rest_framework import routers
urlpatterns = [
path('books/', views.BookAPIView.as_view()),
path('books/<int:pk>/', views.BookRetrieveAPIView.as_view()),
path('journals/', views.JournalAPIView.as_view()),
path('journals/<int:pk>/', views.Jo... | [
"u_kozhakova@MacBook-Pro-Ulbossyn.local"
] | u_kozhakova@MacBook-Pro-Ulbossyn.local |
e15dc937b5e2d36ebf2d0f6163a4acfbd4dc3827 | af59ab2e05b637dc02164d8d5560940d20b82c23 | /refinement.py | 29080cc0dbb3375a3b044602e7581b952432d3a0 | [] | no_license | XNetLab/DeepMatching | 39cbdae55f6acf03f9e4ceee8f308e91462f8805 | 8ebe3858de924e4331b457f4416a1c18433c26ea | refs/heads/master | 2020-03-13T14:55:04.839041 | 2018-04-26T15:02:13 | 2018-04-26T15:02:13 | 131,167,679 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,577 | py | #!/usr/bin/python
from __future__ import division
from DeepMatching import *
def match_propagation(matches, G1, G2):
'''
Start from the seeds, matching the remaining nodes of the two graph gradually.
In each step, the top nodes whose degrees are greater than 2^i, i=\log n, ..., 1 are matched based on the s... | [
"noreply@github.com"
] | XNetLab.noreply@github.com |
9c1dfe4e06be103f2edb8c2de9c44c89fe92a910 | edc3287eacfd289d11cfc3347863ae46704b0b88 | /todo_app/base/views.py | 666943960e4827c097b7444452b559680f041e22 | [] | no_license | LakshyaNegi/Django_Todo-app | 0fce76d7e00971b0132166b30dd860ca29ac2c96 | e9ce2ee92e18c4543e1e9959833b183e07b147ae | refs/heads/master | 2023-05-01T20:46:47.788323 | 2021-05-22T10:53:13 | 2021-05-22T10:53:13 | 369,783,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | from django.shortcuts import render,redirect
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView,UpdateView,DeleteView,FormView
from .models import Task
from django.urls import reverse_lazy
from django.contrib.auth.views imp... | [
"lakshya.negi.1997@gmail.com"
] | lakshya.negi.1997@gmail.com |
0b5ef3d75664e973d42db706c3d83768ccc1934e | 4f74e6d72b98cd1da2190313e4a7eb9d342cc93d | /environments/admin.py | 352cb786ec086a6c618fb44c7ec20f14f7ba1fc8 | [
"BSD-3-Clause",
"MIT"
] | permissive | adamgogogo/glitchtip-backend | ef0c529b71d5a4632a235b40a10e0b428a1cee3a | ee71d1b732d92868189d520aa111c09b116b7b22 | refs/heads/master | 2023-02-01T23:10:53.734450 | 2020-12-19T19:32:10 | 2020-12-19T19:32:10 | 323,588,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from django.contrib import admin
from .models import Environment, EnvironmentProject
class EnvironmentAdmin(admin.ModelAdmin):
pass
admin.site.register(Environment, EnvironmentAdmin)
class EnvironmentProjectAdmin(admin.ModelAdmin):
pass
admin.site.register(EnvironmentProject, EnvironmentProjectAdmin)
| [
"david@burkesoftware.com"
] | david@burkesoftware.com |
0ce968f356fa74ead20e23c85013d5616097e5c6 | 3141b64b2e2ffd98676b76a7c494aa1f15168ab9 | /letter.py | 2582c4bf3f235909a1c4e0ab085c0667c792cda8 | [] | no_license | cloudsthere/love-letter | de7b5cf7fa76681e4d0209ada146c32677a1dc58 | feba3fbd732263c3c5979c48ce1ed72267aa5505 | refs/heads/master | 2021-06-28T22:06:04.937698 | 2017-09-17T13:38:19 | 2017-09-17T13:38:19 | 103,804,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | # -*- coding:utf-8 -*-
liang = Programmer()
xian = PrettyGirl()
time = Zazhiyun.begin('创新谷').to('M+创工场').together()
while time:
if xiang.happy() is True :
liang.son.shining()
if __name__ == '__main__':
liang.liao('约?');
| [
"cloudsthere@163.com"
] | cloudsthere@163.com |
7f4adc0c433e1c8f76de5eb5b022daf9210bc848 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1674486_0/Python/fantastication/diamond.py | 4d2de5d2b9dc57390ec5ef8ae812eb4b981604ce | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | def check(n, path):
#print "path to", n, ": ", path
parents = classes[n-1]
for parent in parents:
if parent == -1:
continue
if parent in path:
#print "FOUND", path
return True
else:
path.append(parent)
#print "adding", paren... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
2908fd07fe2fd22462f8f2a2583480b7ecfcf423 | 9023191df49e29170c309be2b3b66aa7f25a3b8b | /node_modules/dtrace-provider/src/build/config.gypi | a773e52d7256f9070198c836f1e2c1a438b65759 | [
"BSD-2-Clause"
] | permissive | spencerjoelGH/echobottest | b956d831e220081fd940a7ab12853b6dc979073d | 2ba1b7bea40ff665902a4416e18c0ce1a3592702 | refs/heads/master | 2020-04-01T18:54:58.938424 | 2018-10-17T22:12:33 | 2018-10-17T22:12:33 | 153,523,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,356 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"joelspencer@joels-MBP.lan"
] | joelspencer@joels-MBP.lan |
10e9a6549a1b2f8f9b6b61aba7cadc28940d1271 | 6efb749717209cce0e7f7e2f95d9298ad7c314f3 | /backend/api/admin.py | af571e705bb770cf08907e72929837398d8dbcee | [] | no_license | rume73/foodgram-project-react | 77db5b659cc788f2e833b2193b70a174b8495031 | a9b2cd755325fadaf7c381a99ee30f544f536081 | refs/heads/master | 2023-08-31T12:17:30.639971 | 2021-10-31T19:48:25 | 2021-10-31T19:48:25 | 403,512,470 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | from django.contrib import admin
from import_export import resources
from import_export.admin import ImportExportModelAdmin
from .models import (Favorite, Ingredient, IngredientAmount, Recipe,
Purchase, Tag)
class TagAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'color', 'slug')
... | [
"rume733@gmail.com"
] | rume733@gmail.com |
5c8cc819f5cecca0451e679ed7e65fc124c56630 | dc0cfa32a0f252d55e3ff4fdb2fc22f2a6ee7fe4 | /products/views.py | 8f9808059dbb97346d4d71fc789fddf840f4e98d | [] | no_license | Code-Institute-Submissions/ecommerce-goodbean | 484cb533f52ec42672ff84fe6c94ee05c06a0c74 | 5ee902b5ee84265433cc868eabd6555b8ab94bfc | refs/heads/master | 2022-04-22T00:15:27.214183 | 2020-04-17T22:06:59 | 2020-04-17T22:06:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | from django.shortcuts import render, redirect, reverse
from .models import Product
from review.models import Review
# Create your views here.
def all_products(request):
products = Product.objects.all()
return render(request, "products.html", {"products": products})
def about(request):
""" return the about... | [
"les.reddy@gmail.com"
] | les.reddy@gmail.com |
a950ba50a2b9b48d3fa41970ff5ac91a46546074 | dca02aaddfc5f5e13c2a027d6e92c679bbdcf6d9 | /manage.py | 618897188b28cf862129ebc1548b7394d73e5c2b | [] | no_license | tchayen/schedule_planner | 2ee745235ba57d3126aba27944ce4bc1c9b867b9 | d97b3297fffb1085d3210969864bdd9923cfd0ff | refs/heads/master | 2020-03-13T22:13:28.005254 | 2018-06-16T13:08:30 | 2018-06-16T13:08:30 | 131,312,281 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "schedule_planner.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Dja... | [
"tomek.czajecki@gmail.com"
] | tomek.czajecki@gmail.com |
62ae0d7af3dd171ce01f8012e7c26d949affedc2 | a5954ab06537bd1974f612d607b6a2367e195bda | /vocapp_back/vocapp_back/settings.py | 94eb56b3d9a9d1166965765837c9990b072b6f3b | [
"BSD-3-Clause"
] | permissive | zhengjiejiang/vocapp-back | c4daab5037a2e641820a8e3fd8a358cd80a55935 | 923fa76bd6da5b35f748e8a2847c9580835846a4 | refs/heads/master | 2020-09-21T07:24:52.542871 | 2019-12-17T23:26:02 | 2019-12-17T23:26:02 | 224,723,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,081 | py | """
Django settings for vocapp_back project.
Generated by 'django-admin startproject' using Django 1.11.26.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impo... | [
"zhengjie@bcinnovationlabs.com"
] | zhengjie@bcinnovationlabs.com |
c2867740cb5f78444e1cd652e06ea817001d4ae3 | 07bdfcb29eda2048278dff96f7e2d3a52a199ece | /Backend Python/ExamSystemPython/examsystemapp/api/college.py | d67de71b0f26e4f0526d89cd1be488c466285a78 | [] | no_license | shreyassiddanagoudar/shreya | 5ac11e4ba0312b55c7a221d82b6c36cafcd291ab | c51bc363e74a300d97b6d78d4f5aee043762ac38 | refs/heads/master | 2023-07-15T09:38:19.653419 | 2021-08-28T09:48:09 | 2021-08-28T09:48:09 | 361,653,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,134 | py | """
Created By : <Auto generated code>
Created On :
Reviewed By :
Reviewed On :
Version :
"""
import json
from django.http import HttpRequest
from examsystemapp.api.base_controller import BaseController
from examsystemapp.models.college import CollegeModel
from examsystemapp.services.college_service import C... | [
"noreply@github.com"
] | shreyassiddanagoudar.noreply@github.com |
f2776cf8026c189c2a2aa1e53aa4d94fd55e6f58 | c825ab84e533f4f306656a758ee469a27c5b232b | /mysite/settings.py | 1833cee2fa370af6a81c1ff217ece67f36bc030f | [] | no_license | wataru-ikeda/my-first-blog | e6244c54b509d0c3e6dd42c1c49f90b6ec93397a | d2f293a112ae9454006edd5647fc5c992673c0f9 | refs/heads/master | 2021-05-25T07:56:25.395351 | 2020-04-08T03:12:01 | 2020-04-08T03:12:01 | 253,728,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,200 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.5.
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 os
# ... | [
"you@example.com"
] | you@example.com |
6fba9c80db47a8a35c2ef95cc16a4cfd2647252c | 4f8e25e93ded45865293747c5bf393bab2394d09 | /codility/Python/countdiv_50.py | b98a8be2bbcc098c4ee46873407c7aaa014c9fac | [] | no_license | GB255/code-tests | 8b0965b39c108834eb33c855093c6a5cd779abe9 | e4e3e95c41fa9b0935076d9906842a9e806514b0 | refs/heads/master | 2022-11-07T09:54:06.051367 | 2020-06-14T21:48:09 | 2020-06-14T21:48:09 | 270,309,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(A, B, K):
x=0
for i in range(A,B+1):
if i%K==0:
x+=1
return x
pass
| [
"gabriel.amorim255@gmail.com"
] | gabriel.amorim255@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.