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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
228c37ece0125c92fb794abdbe15e5d3e7549659 | fcbdf75b7ed7a07eddbbf76f4f372ce86b063dff | /pywal/post-wal-hook.py | 5d7f40d53fab1f9e6d4625d07172ed89ca20293c | [] | no_license | jcpetkovich/etc | b23cdfc0d09e0e6c58331988facf33ecebdec8c9 | 849c6821c3e15f0ffdab11f846f7cf16366ffb8f | refs/heads/master | 2021-04-09T17:50:12.743242 | 2019-05-19T13:48:55 | 2019-05-19T13:48:55 | 2,250,102 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | #!/usr/bin/env python
import os
import pywal
import subprocess
wallpaper = pywal.wallpaper.get()
colours = pywal.colors.get(wallpaper)
homedir = os.path.expanduser("~")
template = os.path.join(
homedir,
"etc",
"pywal",
"stresources"
)
with open(template, "r") as f:
template = f.read()
template... | [
"jcpetkovich@gmail.com"
] | jcpetkovich@gmail.com |
ec28931ea5a08543eec3a1e6c60e61002578a4b5 | f375f786dc428aaff33ee03d119fc12206d64090 | /sprd/vowifi/tmtc_ut/sample/selecttest.py | 21c876317f721078a05a11dabff09e389c9a2e83 | [
"MIT"
] | permissive | deevarvar/myLab | 1b77773d5bfa334ee0331cf1926ebbb141c82984 | 7a5019f5f7fc11e173d350e6e2a7d2c80504782d | refs/heads/master | 2021-04-15T15:39:39.248990 | 2020-02-12T13:18:53 | 2020-02-12T13:18:53 | 21,227,445 | 0 | 3 | MIT | 2019-12-19T09:47:29 | 2014-06-26T03:58:19 | Python | UTF-8 | Python | false | false | 1,195 | py | #-*- coding=utf-8 -*-
#author: zhihua.ye@spreadtrum.com
import os
import select, sys, subprocess
import shlex
import time
netstat="netstat -antpu"
vmstat = subprocess.Popen(shlex.split(netstat), shell=True, bufsize=1024,
stdout=subprocess.PIPE)
vmstat_pipe = vmstat.stdout
iostat_pipe = subproces... | [
"zhihua.ye@spreadtrum.com"
] | zhihua.ye@spreadtrum.com |
bf9588ee2a4af4d9357a51e13ab14a30f1f6561b | fe6775ca8c5b42710785e3a923974ae079f92c8f | /剑指offer/剑指 Offer 34. 二叉树中和为某一值的路径.py | d2c0d8e5407fb27e278426b603c91c3daad77a31 | [] | no_license | AiZhanghan/Leetcode | 41bda6676fa1a25fa19e393553c1148ed51fdf72 | 101bce2fac8b188a4eb2f5e017293d21ad0ecb21 | refs/heads/master | 2021-06-28T10:48:07.865968 | 2020-11-20T09:45:15 | 2020-11-20T09:45:15 | 188,155,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def pathSum(self, root, target):
"""
Args:
root: TreeNode
target: int
Return:
... | [
"35103759+AiZhanghan@users.noreply.github.com"
] | 35103759+AiZhanghan@users.noreply.github.com |
3d96ef785703ba706cef3debfff21cb923ef6a21 | 8aa473c740acae28c2f2392208335f7463cedb70 | /scripts/new_summary.py | 8ca66c2022577f20430c02d6e822b365db3be5cc | [] | no_license | nikvaessen/deep-learning-papers | 74ad10c687421561df84e74e451bf3c5633d60f0 | 0892e053fb30d8e9f90bbcbea2fef4af6028db4a | refs/heads/master | 2020-12-11T10:52:15.966968 | 2020-01-23T07:46:47 | 2020-01-23T07:46:47 | 233,828,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,405 | py | ################################################################################
# This script will ask the user for some information regarding the soon-to-be
# read paper before generating the starting point for the summary according to
# a summary template.
#
# Usage: python new_summary.py
#
# Author: Nik Vaessen
###... | [
"nikvaes@gmail.com"
] | nikvaes@gmail.com |
137bfd132fed47b27d3068a21b99a6a95fa99caa | ab25d838bd9904d6fb7eb6d5259d30bab63f4ec5 | /python scripts/temp_meas.py | 5c0aeab89d07484341f1d0fa052cf70937ebe3ce | [] | no_license | crilleman/sensors_rust_rtic | adc83b09f7998e4934db0547476421e0efd68e9d | 47012d7e26b735de8a28ea32ffecffaa440f4f9c | refs/heads/main | 2023-05-02T08:31:46.824640 | 2021-05-24T10:00:22 | 2021-05-24T10:00:22 | 370,303,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,864 | py | import matplotlib.pyplot as plt
import matplotlib.animation as animation
import serial
import datetime
# initialize serial port
ser = serial.Serial()
ser.port = '/dev/ttyACM0'
ser.baudrate = 115200
ser.timeout = 100 # specify timeout when using readline()
ser.open()
ser.flush()
if ser.is_open == True:
print("\nA... | [
"crille.nilsson98@outlook.com"
] | crille.nilsson98@outlook.com |
8c95ca238969c6cc4e144442f02d17a785ad82f5 | d668209e9951d249020765c011a836f193004c01 | /tools/pnnx/tests/test_nn_Dropout3d.py | 4e6564745ef606264205fa1908bb385bd9700f5b | [
"BSD-3-Clause",
"Zlib",
"BSD-2-Clause"
] | permissive | Tencent/ncnn | d8371746c00439304c279041647362a723330a79 | 14b000d2b739bd0f169a9ccfeb042da06fa0a84a | refs/heads/master | 2023-08-31T14:04:36.635201 | 2023-08-31T04:19:23 | 2023-08-31T04:19:23 | 95,879,426 | 18,818 | 4,491 | NOASSERTION | 2023-09-14T15:44:56 | 2017-06-30T10:55:37 | C++ | UTF-8 | Python | false | false | 1,694 | py | # Tencent is pleased to support the open source community by making ncnn available.
#
# Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the... | [
"noreply@github.com"
] | Tencent.noreply@github.com |
1180029814716f39bfe32a649fda8713b18156e3 | 310f39f99a975bb30fe7ec0231fe1ee75e96bb00 | /Insertion_Sort/Insertion_Sort_Nested_ForLoop.py | e3eb2d3a8fbd7b84790c4c54fc95281fe7af5325 | [] | no_license | saurabhchris1/Algorithm-and-Data-Structure-Python | 8ffc8b52b112f741758f6a5965c8c69cb2172745 | 152a217bb2c9f06cd1522516d3b9613d3dd07b57 | refs/heads/master | 2020-08-23T11:35:09.410942 | 2019-12-28T06:27:14 | 2019-12-28T06:27:14 | 216,606,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # Insertion sort is a simple sorting algorithm that works the way
# we sort playing cards in our hands
def insertion_sort(arr):
for i in range(1, len(arr)):
key = arr[i]
for j in range(i - 1, -1, -1):
if key < arr[j]:
arr[j + 1] = arr[j]
arr[j] = key... | [
"saurabhchris1@gmail.com"
] | saurabhchris1@gmail.com |
18eb874b1c5193fb3f259bf045d9037e84ec371f | 3b8f3c7e9b4dde71f96a4b98566937d0d1a912d3 | /part3/NYT/Code/stemming.py | 4c96b5ac1eafdf32ea33af83df6f45fce596e3ff | [] | no_license | vijayjag-repo/Big-Data-Analysis | 3951261f04943b20e550829a70eba454d41dbe36 | 273047cb42d2204883b4c721cd649987f0370d31 | refs/heads/master | 2020-06-17T09:00:53.278323 | 2019-07-08T19:16:33 | 2019-07-08T19:16:33 | 195,871,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | import nltk
import csv
import re
import stemming
from nltk.corpus import stopwords,wordnet
from nltk.stem import PorterStemmer, WordNetLemmatizer
from nltk.tokenize import word_tokenize
def main():
stop_words = stopwords.words('english') + ['advertisement','support']
print(stop_words)
#stop_words.append('said')
... | [
"vijayjag@Vijays-MacBook-Pro.local"
] | vijayjag@Vijays-MacBook-Pro.local |
68c7b4afa78595c8214c5f807fe0d4ac67aa3bdf | ce772fdcd3a84a9c00667051f008a3e0a7a62135 | /voice.py | f1a3bb834a79e86928a7074ec7eb9010130a5ef4 | [] | no_license | mugeshk97/generative-chatbot | d8e3bd3cc22a8c8e9e9a3b39896959ffd612a0ce | d52f17c88b6471dcbd1937258ceed127f768db21 | refs/heads/master | 2022-12-07T10:12:59.535612 | 2020-08-28T09:17:53 | 2020-08-28T09:17:53 | 291,003,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | import speech_recognition as sr
import os
import playsound
import pyttsx3
from gtts import gTTS
r = sr.Recognizer()
def get_audio():
with sr.Microphone(sample_rate=48000, chunk_size=2048) as source:
r.adjust_for_ambient_noise(source)
playsound.playsound(f'Asset/Audio/start_sound.mp3')
aud... | [
"noreply@github.com"
] | mugeshk97.noreply@github.com |
e8f1cc28656377cae6863757ccfa1b6b8e74f65f | 5384b403a64c51c658d0b1f93d1998ec41857bd2 | /python/DES/HW4.py | 57517fe19077d2562814fd3d61862384dfe3b31b | [] | no_license | BryanColeman/Projects | 741850b9c996c2ea9cda208b0960fd4dd418080b | 0ead1eaaafdd7504f52a68479fe4285cd95d958c | refs/heads/master | 2021-01-01T07:19:09.523771 | 2020-05-05T14:36:53 | 2020-05-05T14:36:53 | 239,166,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,221 | py | '''
Bryan Coleman
BJC18BV
The program in this file is the individual work of Bryan Coleman
'''
from random import seed,randint
from datetime import datetime
import string
'''
All the boxes that we will need to permute values
'''
shift = [1,1,2,2,2,2,2,2,
1,2,2,2,2,2,2,1]
PC = [14, 17, 11, 24, 1, 5,
... | [
"colemanbryanj@gmail.com"
] | colemanbryanj@gmail.com |
d16d1e28a015971cd399228d22c3657e3dc0d5c5 | df4d186b49cfe42d9a38e61084eea4b3c8efa66a | /photoslider/admin.py | 53ded041d5327a894b85b102bab04a4695759f85 | [] | no_license | kaczor3213/Django-Practice | b2858e2bcf3dc5fb4fef42cfa8656f62de02781a | 369e3386e58725c7e5fe1a54b9e52ad2bc74c699 | refs/heads/master | 2020-08-07T13:39:18.283363 | 2019-10-11T16:35:39 | 2019-10-11T16:35:39 | 213,473,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Photo) | [
"przemyslaw.markiewicz@besidethepark.com"
] | przemyslaw.markiewicz@besidethepark.com |
7286f58bf6438bc71997980f9fe2c6195b5975be | 12a85f18bd3966672e6a009f7a424880983a98c0 | /base/migrations/0004_auto_20201230_1113.py | 7c50c6fd96c09c61c8009c1f5cba10b3a8accbf8 | [] | no_license | strange-hawk/portfolio_template | 266b5198fb5cde4c8b47ac118f3c06cdb27f3724 | d61b942328c3f15a99510f331841ee91c525314c | refs/heads/master | 2023-02-08T16:47:54.297135 | 2020-12-30T12:32:51 | 2020-12-30T12:32:51 | 325,543,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 3.1.2 on 2020-12-30 11:13
import ckeditor.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('base', '0003_post_slug'),
]
operations = [
migrations.AlterField(
model_name='post',
name='body',
... | [
"201852004@iiitvadodara.ac.in"
] | 201852004@iiitvadodara.ac.in |
fc7a71b09ff372d2f6c8f55f2101389855085b67 | 896e21e59afe46d8cd1885eb23af6e5b172ad67c | /en/src/connective.py | 2e3b284deadb120c0093eb19cf258265d802105e | [] | no_license | lzswangjian/conll2016 | b8884567901bb2a4576149b1720da4ee42396229 | 5731a4094bf16c9be64727c7ea127105759758c7 | refs/heads/master | 2021-01-20T02:54:36.118646 | 2016-06-20T08:34:19 | 2016-06-20T08:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,780 | py | # -*- coding: utf-8 -*-
import sys
import os
from common import *
from corpus import Corpus
logs = sys.stderr
FILE_PATH = os.path.dirname(os.path.abspath(__file__))
class Connective():
"""
Connective Identification Component
"""
def __init__(self):
self.train_file = FILE_PATH + '/../data/con... | [
"qcl6355@gmail.com"
] | qcl6355@gmail.com |
7514df890190e4719f61257b18916137929a571d | bc2aec84f43df1918fd43f6a5adaea6280ae1282 | /movement.py | 39532c569e05d137ae790913ee0f447677176e54 | [
"MIT"
] | permissive | pennz/pi-zero-mouse | 0e2e7ad7dbf250e4817bfa079b05fb57b5ed4168 | 7de6683430b7fecbe8fdf6b21d9818c2305c599c | refs/heads/master | 2020-05-23T11:39:31.956667 | 2020-03-29T11:53:40 | 2020-03-29T11:53:40 | 186,741,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,682 | py | import numpy as np
from numpy.random import normal
import time
import math
class operator():
def __init__(self, g_n='/dev/hidg0'):
self.gadget_name = g_n
self.dev_pf = open(self.gadget_name, "wb", buffering=0)
self._pointer_accuracy = 0 # for debug
self.screen_x_len = 1080
... | [
"fireflysuccess@gmail.com"
] | fireflysuccess@gmail.com |
a666d88336202c9bc0120035e3080b32cbd3505a | b4b900170acb702b12aa77c2708f59ec2107fa49 | /blast/RNA_vs_rRNA.py | 877d165b9820f2247f7c7d4451191c698b9dfe18 | [] | no_license | wegnerce/python_scripting | cf6435d0fa2ad41615c6ff06d44f28449904272c | 6230d3f0489c67af18db5b13e48e888018b2cceb | refs/heads/main | 2023-04-11T23:28:39.990998 | 2021-04-28T06:43:17 | 2021-04-28T06:43:17 | 362,132,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,804 | py | '''
Created on June 18, 2012
@author: Carl-Eric - AG Liesack - Molecular Ecology - MPI Marburg
The given script compares BLAST outputs from PRINSEQ processed .fasta files, which have
been BLASTed against the latest release of SILVA NR SSU/LSU. Based on the comparison the
script generates three output files:
(1) sequenc... | [
"noreply@github.com"
] | wegnerce.noreply@github.com |
e91b8bf18bf8bb434bac931c42dd942974fb28cc | 273e20078706cfd80822144283f0f0da5e347239 | /douban/items.py | 336cbf404b37855678af2ea84f6432a917532c8f | [] | no_license | lvshaobo/scrapy_cookie | 00db97399b0c5622fa77e15578f406be94e86c87 | a4c298c00a41d408fc7ba0e6b7e9aa159dc99ac3 | refs/heads/master | 2021-01-17T22:20:53.330544 | 2016-09-21T06:00:06 | 2016-09-21T06:00:06 | 68,784,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class DoubanItem(scrapy.Item):
# define the fields for your item here like:
title = scrapy.Field() # Web Title
name = scrapy.Field(... | [
"lvshaoboftd@gmail.com"
] | lvshaoboftd@gmail.com |
bbea56d9d779d079e4776b06ad59756cdf7c935a | f60cc85e3f150723e6589d100618df41ba2c1c3b | /LAB2/queensS.py | 1e812e4d931832c38027b0b0e0dc4533ded9e9d2 | [] | no_license | GustafWallstrom/TNM096-Labs | b4d0d1a143bc3fe374a4ee37600a2e4b4f39c4ed | 0de1608ac3aec9f4d3a7ef843c1bb25490124409 | refs/heads/master | 2021-05-20T20:35:54.758637 | 2020-05-13T09:44:05 | 2020-05-13T09:44:05 | 252,408,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py |
# Solve the nQueens problem by using depth-first search
from time import time
from datetime import timedelta
from aima.search import depth_first_tree_search, NQueensProblem, Problem
def secondsToStr(t):
return str(timedelta(seconds=t))
def now():
return secondsToStr(time())
# 1. Set up the problem an... | [
"46966247+GustafWallstrom@users.noreply.github.com"
] | 46966247+GustafWallstrom@users.noreply.github.com |
b5fcaefc1ee465b5d6d8da03f4dcbeaf6a246b6a | da73042e63a17f2288747d426b718d6e516da9d4 | /fast_genetic_algorithm.py | 8267dfd653d142afe27f60084d0e1837080e12d5 | [] | no_license | AntipovDen/XdivK | 002ee3fdf5cbbad7a6e1428008aadfe3ff5a29c3 | 2ce70f7151e302c9e1dded83e12d184f49c3e6b3 | refs/heads/master | 2021-01-20T02:08:13.593075 | 2018-11-08T10:39:15 | 2018-11-08T10:39:15 | 89,378,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,233 | py | from math import factorial
from random import random
from sys import argv
from scipy.stats import rv_discrete
from numpy import arange, mean
# from matplotlib import pyplot as plt
RUNS = 100
run_number = 0
logfile = None
def get_statistics_fga(n, k, beta):
global run_number
probabilities = 1 / arange(1, (n +... | [
"antipovden@yandex.ru"
] | antipovden@yandex.ru |
8e29269f55422007a8fa6a08128916caecc6a06e | f8fa95af388eead9af3c278245592a78b1cddb92 | /models/Rules.py | 8816b781a73b660978078d17724137eecab60d5d | [] | no_license | Toohk/chess | b11403f7d2d0e1c87e245058f546a4e2736ea21f | 637bdde6801c8ed256f04688902a6d67fc08d650 | refs/heads/main | 2023-02-09T02:19:20.305993 | 2020-12-26T13:39:48 | 2020-12-26T13:39:48 | 324,562,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | class Rules:
def __init__(self):
self.num_pieces = {
'king': 1,
'queen': 1,
'bishop': 2,
'knight': 2,
'rook': 2,
'pawn': 8
}
| [
"thomasdufayet3@gmail.com"
] | thomasdufayet3@gmail.com |
21fdb5bc849341c7bb79fd762910a63ed603dbc4 | 4bf615df3e09532222f1ca024a3a71f490d3c504 | /4. Colecciones en Python/2_Tuplas.py | fd6b23f42f13ef3e2a753b67feac3fd72ebbf76c | [] | no_license | ErickTocasca/PROYECTO_MINSUP_UNCP | 72180c875bd973760fa6ddb3aeed5667de6c303d | 6647b738d8bd355b7cda4faad8fc58e16e2b453b | refs/heads/main | 2023-04-28T04:32:42.853717 | 2021-05-02T15:57:03 | 2021-05-02T15:57:03 | 332,873,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 24 21:54:33 2021
@author: egt_d
"""
mina = ("geologia", "costos", "perforacion y voladura")
print(mina)
print(mina.count("geologia"))
minalist = list(mina)
minalist.append("metalurgia")
print(minalist) | [
"60368138+ErickTocasca@users.noreply.github.com"
] | 60368138+ErickTocasca@users.noreply.github.com |
f300d8c3ad2c73285efe5a41a77810407745f6ab | 109d21430a292a9f51c18171bff1b5bdc9c480da | /docxcompose-script - Copy.py | c1fb6f5730697ae74362582788caadadab72eea6 | [] | no_license | PY-Venom/ScreenshotToReport | 0a1f1725e3ebf66a431898f5792960c55505d0ea | 2800b3b3a790d40dfd62dd279ecaaaca33c691cf | refs/heads/master | 2020-04-30T21:11:40.475432 | 2019-03-22T07:09:29 | 2019-03-22T07:09:29 | 177,088,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | #!"c:\users\lathan larue\appdata\local\programs\python\python37-32\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'docxcompose==1.0.0a16','console_scripts','docxcompose'
__requires__ = 'docxcompose==1.0.0a16'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] =... | [
"noreply@github.com"
] | PY-Venom.noreply@github.com |
d35885251fdd0e6976cf51d67620328aa0ebf072 | f69e44d26eafd7293b63de0a5037b4f969bad333 | /hello_flask_1_1.py | 295401fc166332c29e48b1f654a941ed37b587d1 | [] | no_license | astroshima/hiflask | ea145e0832022c65f520b4a01f6cc75a3caa0b44 | e7b4d3491e1e44705a0f5151d1d53b1ac126a365 | refs/heads/master | 2020-06-26T14:10:41.034749 | 2019-08-17T00:13:31 | 2019-08-17T00:13:31 | 199,654,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from flask import Flask
app=Flask(__name__)
@app.route('/')
def hello():
return 'Hello world from Flask!'
print('Naziv aktivnog modula je:', __name__)
if __name__=='__main__': # ako je ovaj program startovan komandom python3
app.run() # pokreni veb server i aplikaciju
"""
Podešavanje prome... | [
"noreply@github.com"
] | astroshima.noreply@github.com |
0abdf8254d9f4f1e0d295afae5919f7d4f839984 | fa4b4d30755a9e5a22b590906ff03c48ffbde7e3 | /UseCases/Airbus/A_1/A_1.py | 339f18dd38e355fd7bd01f0add374102c3c0f99b | [] | no_license | COMPOSELECTOR/Composelector | c7f33c6fe805f7ff3d5f97eace5c452ed8b12f97 | b852a7585e8ff48e93f062f552d514013a3dcf6d | refs/heads/master | 2021-07-09T17:07:54.419237 | 2020-07-16T11:45:43 | 2020-07-16T11:45:43 | 158,224,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,085 | py | import sys
sys.path.extend(['/home/nitram/Documents/work/MUPIF/mupif'])
from mupif import *
import Pyro4
import logging
log = logging.getLogger()
import time as timeT
import mupif.Physics.PhysicalQuantities as PQ
debug = True
if not debug:
import ComposelectorSimulationTools.MIUtilities as miu
log = ... | [
"nitramkaroh@seznam.cz"
] | nitramkaroh@seznam.cz |
76cd052ef18943eae6f0c461c344715be186a795 | 3024cafafbfc75193105af7f225d3b12eb2aea46 | /DjangoProjects/project51/project49/urls.py | 56c44854fe3856264652ba6f6bf223a7ab1c345e | [] | no_license | jaishankarg24/Django-Rest-Framework | 33266f6825d51abb8a512426baedf59f2ee957c8 | 809ee9208ffbef4202a8f4058a84f5322793af52 | refs/heads/master | 2023-03-02T20:56:38.051060 | 2021-02-12T05:37:48 | 2021-02-12T05:37:48 | 338,233,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | """project49 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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-bas... | [
"jaishankarg24@gmail.com"
] | jaishankarg24@gmail.com |
7f1a854cba3d9439a93ad06764b73667bb5fc299 | bb04d91ffb856c6660f7066f091c4179ed505456 | /Elementary/FirstWordSimplified.py | bd7559b159197dd17e8d85c97cf15f0f77462719 | [] | no_license | tirsodelalamo/Checkio-Python | b7ca52072a60b6d90d2f39a6577c89528faaf3a0 | 1e791201da223cf1f43271cc502733e74a874f6c | refs/heads/master | 2021-04-03T14:04:54.457640 | 2020-05-14T10:56:52 | 2020-05-14T10:56:52 | 251,434,379 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | def first_word(text: str) -> str:
"""
returns the first word in a given text.
"""
# your code here
return text.split()[0]
if __name__ == '__main__':
print("Example:")
print(first_word("Hello world"))
# These "asserts" are used for self-checking and not for an auto-testing
... | [
"tirsodelalamomartin@gmail.com"
] | tirsodelalamomartin@gmail.com |
2e817e3cfa827b9fe6f262cb0092f0009813a60b | 98dd8499f692775972665752c1e5be5dccc2ea6d | /scripts/uknPSF_ANN.py | 5c4a1758a947036de9fd131fee5e6db5e4680993 | [
"MIT"
] | permissive | kuntzer/binfind | 850bc51342a8b36def775e9a683706ddb46e5b11 | 28f9cf9474e6b39a55a1a22d19ca8131a0408c84 | refs/heads/master | 2021-01-12T14:45:49.617155 | 2017-05-30T15:02:27 | 2017-05-30T15:02:27 | 72,079,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,815 | py | import itertools
import matplotlib.pyplot as plt
import numpy as np
import os
import binfind
import utils as u
import logging
logging.basicConfig(format='%(asctime)s %(levelname)s: %(name)s(%(funcName)s): %(message)s', level=logging.DEBUG)
n_exposures = 4
binfind.plots.figures.set_fancy()
########################... | [
"thibault.kuntzer@epfl.ch"
] | thibault.kuntzer@epfl.ch |
e5c91c7fd1bd25cc3f7f768d48043b34c72f92c9 | 1900a250ac0544a1dfa64334d5d84e13d754c657 | /django_back_end/auto_smart_graph/smart_backend/graph_provider/urls.py | 5eb2f1ffd9c6f91b163d06cd1bdf8a288c76d846 | [
"MIT"
] | permissive | hjellison/AutoKnowledge | 8a4a0e23feb3edc8d5e6419b6b8328a3dd926314 | 561a3703d5be0639ef76d0b4f8866c32bd9d7ec1 | refs/heads/master | 2022-02-20T02:19:12.403123 | 2019-01-08T17:19:10 | 2019-01-08T17:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | # -*- coding: utf-8 -*-
from django.conf.urls import url
import graph_provider.services as services
"""为webservice分配url"""
urlpatterns = [
url(r'^query/$', services.fetch_data),
]
| [
"guitarmonyz@gmail.com"
] | guitarmonyz@gmail.com |
39edc2c652c3cfae8486b41bcca3f97222ca09ff | ec690eb923d6fc76acd69f27d5a25f00ac763b7d | /Compare the SMT and MILP for Job shop scheduling/Optimization problem/job shop (disjunctive graph model)-Cplex IBM.py | 6d0f32980e03766f9cb081801a8ec458c01f732e | [] | no_license | CTU-IIG/LSP_SMT_Machine_learning | 60af8bedd49cc7c38becb1031d8c237cdd92ff66 | 4dfa5bad5b7f1625c0bc6a2d2ac67d7978cba192 | refs/heads/master | 2020-10-01T23:57:27.138047 | 2020-08-26T13:23:38 | 2020-08-26T13:23:38 | 227,652,141 | 0 | 1 | null | 2019-12-13T14:26:02 | 2019-12-12T16:41:32 | null | UTF-8 | Python | false | false | 2,318 | py | from docplex.mp.model import Model
from docplex.util.environment import get_environment
import os
# ----------------------------------------------------------------------------
# Initialize the problem data
# ----------------------------------------------------------------------------
filename = os.path.dirname(os.pat... | [
"Rohanmoh@users.noreply.github.com"
] | Rohanmoh@users.noreply.github.com |
168afb92f5871535bc501a9436acf2551621e45e | 3c821e371b6b079f42710e88b68d967579193315 | /apps/dashboard/helpers.py | dce8147d03ae7b89dd6a6070a8d19492fe1efbfc | [] | no_license | prafulbagai/grabhalo | 883991082043fb06a9b95b22838fd7459c9e2fce | 374a1dadc8a53621cf01149ee0c0d3e998922770 | refs/heads/master | 2021-01-10T19:00:12.851476 | 2013-11-15T04:44:56 | 2013-11-15T04:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | import datetime
from apps.data.models import *
def send_query(request,selected_users,query):
date_time = datetime.datetime.now()
web_query_data = WebQuery.objects.all()
user_id = GrabhaloUser.objects.filter(user_id = request.user.id)[0].id
if not web_query_data:
c_id = 0
else:
for data in web_quer... | [
"praful.bagai1991@gmail.com"
] | praful.bagai1991@gmail.com |
80337020802ca9fd802f8ae2cfdf0b3637aa4160 | e05f2ac4d37becd314082d558fc737b85f71d56d | /conf.py | a45f47df0a4cbbbb7335a4ce79897d2e19875f00 | [] | no_license | QMickael/abilian-developer-guide | bebef4987ecc91a60c9327011e540e3fa4e235fc | 0f0432f00ccad74aeb4006bc7ec8af3557bedaab | refs/heads/master | 2020-07-09T08:17:32.629372 | 2016-11-17T11:45:49 | 2016-11-17T11:45:49 | 74,018,558 | 0 | 0 | null | 2016-11-17T10:59:38 | 2016-11-17T10:59:38 | null | UTF-8 | Python | false | false | 10,985 | py | # -*- coding: utf-8 -*-
#
# Abilian Developer Guide documentation build configuration file, created by
# sphinx-quickstart on Mon Feb 23 23:47:37 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogener... | [
"sf@fermigier.com"
] | sf@fermigier.com |
2234facacdd73c0c307317c6f99846c445f65e0e | 583e87b01151fa9cdcf6146ad1cfa0a9be7483f0 | /test/machine/KNN.py | 212274ec80ef5ba2da4c4072625a7e3643090d9d | [] | no_license | IRH01/snake | 0f9063da27104b51c9c6400ee0ae0d21061542a6 | adba7389f340ba1dd3f2d41df6dba8508a809434 | refs/heads/master | 2021-01-16T20:37:20.562565 | 2018-10-09T03:58:29 | 2018-10-09T03:58:29 | 62,103,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
from array import array
def createDataSet():
group = array([[1.0, 1.1], [1.0, 1.0], [0, 0], [0, 0.1]])
labels = ['A', 'A', 'B', 'B']
return group, labels
| [
"renh@dtds.com.cn"
] | renh@dtds.com.cn |
917c3822abace0c2821005d30b4bad8758f5a716 | 7c35adf38ef567757336db5b17ff3dc7da4785c4 | /kernelSvm.py | 901bb5b03b62c7f1bbf956c7f3743eeacb8455e7 | [] | no_license | lex624/MLclassificationModels | 00fc577aeab881dd9a0762bbe2e9fabfab26954a | e0d37b3c5fb4c332193b811c0deae3496d9f78a8 | refs/heads/master | 2022-12-17T14:23:59.988214 | 2020-09-16T11:26:51 | 2020-09-16T11:26:51 | 296,010,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,629 | py |
# Kernel SVM
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, -1].values
# Splitting the dataset into the Training set and Test set
from skle... | [
"36929005+lex624@users.noreply.github.com"
] | 36929005+lex624@users.noreply.github.com |
2f2b0aea171d99911f7b4b61ba6b9d5ba00a473f | 689670446bfacf0dfaaeca072c6328e34bb603b7 | /solutions/5/guillaume/scheduler_superconvergence_09J.py | f3de3f7c7556b0475c2be461a13e0b87e6f578d9 | [
"MIT"
] | permissive | xiemeigongzi/champs_kaggle | edb0aa870b6380f6585ab83cd9f4d3881dae9781 | fda4f213d02fd5e0138a86c52b4140c9f94fec6e | refs/heads/master | 2022-11-17T15:27:36.662280 | 2020-07-15T13:13:06 | 2020-07-15T13:13:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,853 | py | import math
import pandas as pd
import numpy as np
class CosineAnnealing:
def __init__(self, step_start, step_end, lr_start, lr_end):
self.step_start = step_start
self.step_end = step_end
self.lr_start = lr_start
self.lr_end = lr_end
def get(self, step):
if step >= self... | [
"larsbratholm@gmail.com"
] | larsbratholm@gmail.com |
f96c7bed2103f0d0226c011abf234a228c1e8afd | cd6d278443ac4a64af0954c9b8af3b8f0be06b45 | /AnimalsShop/wsgi.py | 682110bb553d97127e594eeb42012c13dc734b09 | [] | no_license | IlyasNugaev000/HappyPet | eecca2656690daa3aab26f4de1a1d92303be873e | 1c99b3b6d50f38461f8b8007f896a9d66b971350 | refs/heads/master | 2023-05-30T21:55:10.015925 | 2021-06-11T07:02:01 | 2021-06-11T07:02:01 | 375,980,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for AnimalsShop project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"ilyas-nugaev@mail.ru"
] | ilyas-nugaev@mail.ru |
918361fe7ccc6b8702e3b92faba463d9772ca61f | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/Jet/common_utils.py | ebb04ce3493f13c055cc5e8a5ee1b2ea5ac90d8e | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,496 | py | import bpy, sys
from . import bl_info
def get_id(object):
if "id" not in object.keys():
object["id"] = str(hash(object))
return object["id"]
def select_obj_exclusive(obj, edit_mode = False):
bpy.context.scene.objects.active = obj
bpy.ops.object.mode_set(mode="OBJECT")
bpy.ops.object.select... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a558cec8621f8f9edd1a20c78659c0cef87aa908 | b161ebfe06c22a2f18ac27695cf56ad283d037f1 | /scrimp/provisioner.py | 45bc62967cfc63c0456607dfd53e8c619075108b | [] | no_license | globus-labs/SCRIMP | afb0e335959e7c1436ce88a8176a284156cc85fd | 0aada1fe9fff0827e44771bf983e722eb40b09b6 | refs/heads/master | 2021-01-02T22:41:38.919422 | 2017-08-09T20:47:40 | 2017-08-09T20:47:40 | 99,370,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,117 | py | import psycopg2
import datetime
import calendar
import time
# import sys
from decimal import *
import requests
from scrimp import logger, ProvisionerConfig, tenant, scheduler
from scrimp.cloud import aws
from scrimp.cloud import simaws
from scrimp.scheduler.condor.condor_scheduler import CondorScheduler
from scrimp.sc... | [
"ryan@chard.co.nz"
] | ryan@chard.co.nz |
8e0efa58c0b98131af15ab586df5ead9463701e1 | 7d8ada540b3e17cd471a26d24a7677fa4cf07f3e | /pythonds/test.py | bd9aeeedbf1827f8fb768550ad6f8d355c3a3bcc | [] | no_license | mfy-royce/51cto1 | bd155b606cd55ac4c01b79bfdb86cd320ee8df06 | 8e35e1412b08261704fc86074f87725e00b55548 | refs/heads/master | 2021-01-14T00:26:44.291036 | 2020-02-23T15:24:03 | 2020-02-23T15:24:03 | 242,541,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,683 | py | #!/usr/bin/python
# encoding: utf-8
"""
author:Royce
contact:mfy-111@163.com
@file: test.py
@time: 16:43
@welcom to learn ai
"""
import random
def randomList(n):
iList = []
for i in range(n):
iList.append(random.randrange(0,100))
return iList
def sortVerify(times,length,sortFunc):
# iList = ... | [
"mfy-111@163.com"
] | mfy-111@163.com |
c7b04e2e02ff27de0681a5e583a172e9a2e935fb | 69c882c678103b182988fb60d3e898d569980f1c | /Day 6/day6prog1.py | 0955d6850a007bffc3233d9711192a9943ab85cc | [] | no_license | gittygupta/stcet-python | 44be9d91cdd6215879d9f04497214819228821be | e77456172746ee76b6e2a901ddb0c3dbe457f82a | refs/heads/master | 2022-03-05T11:37:08.720226 | 2019-12-01T00:56:03 | 2019-12-01T00:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | x = input("Enter number:")
product = 1
def fact(x):
pro = 1
for i in range(1, x+1):
pro *= i
return pro
def factrec(x):
product = 1
if x == 1:
return 1
product = product * x * factrec(x - 1)
return product
product = factrec(x)
print(product)
| [
"noreply@github.com"
] | gittygupta.noreply@github.com |
464271ebe2e0dd530ebb1d568ce07035e5ea6033 | 5261e3c72259991fbdb9737c4c764eb0686860d3 | /packages/fetchai/skills/simple_data_request/__init__.py | e5ceab9b030383f3520c9ad6b711ecfb8cad4d52 | [
"Apache-2.0"
] | permissive | eorituz/agents-aea | 45dfb9729718421290c71da91ac4c51f9cc6a608 | 197451196728141a27ec73fd8210c05cb74501f7 | refs/heads/main | 2023-03-24T02:40:27.132664 | 2021-03-23T14:42:58 | 2021-03-23T14:42:58 | 350,744,268 | 0 | 0 | Apache-2.0 | 2021-03-23T14:40:13 | 2021-03-23T14:32:29 | null | UTF-8 | Python | false | false | 991 | py | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | [
"david.minarsch@googlemail.com"
] | david.minarsch@googlemail.com |
3af579131f3adede67cd81132bc2b423f4c7162d | ba8f410097500a9325714527507af8b567fb7716 | /WEEK_2/String/program5.py | 76c1a4a5d90ebd4283cbc6aa4b9c7854de8b700b | [] | no_license | GaikwadHarshad/ML-FellowShip-Program | 56b27434dc738273ac04ba9b0056ff45d871ff90 | a702db1a726b7c404a4e2dbc39ea336d148e0b28 | refs/heads/master | 2020-04-26T04:24:59.883661 | 2019-06-20T11:13:38 | 2019-06-20T11:13:38 | 173,301,157 | 0 | 0 | null | 2019-06-20T11:13:39 | 2019-03-01T12:50:34 | Jupyter Notebook | UTF-8 | Python | false | false | 1,918 | py | """ Write a Python function that takes a list of words and returns the length of the longest one. """
from myprograms.Utility import UtilityDS
class String5:
str1 = []
# perform operation on string
def long_word(self):
while 1:
print("------------------------------------------------... | [
"mr.gaikwad0605@gmail.com"
] | mr.gaikwad0605@gmail.com |
597c3fd526e4cd2ec3c0819d9e04516a311d4311 | a84eeba8ab8ff4711253defa9e63abca130de84b | /simple_solution_api.py | 14fc516248b03322926ab9ef041d40540f85dfba | [] | no_license | t-pleasure/productcloud | 6da2d5eacd8c667034ca91cf426291aec6328835 | 29dd6725df052387eba1c3081fcd973c105a50b5 | refs/heads/master | 2016-09-14T02:19:29.577976 | 2016-05-24T17:03:25 | 2016-05-24T17:03:25 | 59,478,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,005 | py | #!/usr/bin/python
"""
STAND ALONE SCRIPT TO RUN SINGLE PROCESS SOLUTION.
"""
import json, os, threading
import amazon_products.product_status as pstatus
from amazon_products.product import Product
from data_services.mapstore import KVDiskStore, WordCountDisk
from data_services.queue import KafkaTopicQueue
from algos.h... | [
"totran@Tonys-MBP-2.lan"
] | totran@Tonys-MBP-2.lan |
d432973d55120799261bd375528ec13c063740f9 | 9d19a6b00be95c92f3e32fff51c90ab2e2a76293 | /chat/tests.py | 276d4fd1effc528efd993757b116f2af42f55b2e | [] | no_license | TobKed/django-channels-chat | 70d5892dedac44179e3366d5423aa763383aa753 | f247c3e7195619906bdf7f67680a712cc17e5cf8 | refs/heads/master | 2022-12-10T11:19:42.444003 | 2018-12-30T15:12:32 | 2018-12-30T15:12:32 | 163,593,656 | 0 | 0 | null | 2022-12-08T01:30:26 | 2018-12-30T14:32:49 | Python | UTF-8 | Python | false | false | 3,665 | py | from channels.testing import ChannelsLiveServerTestCase
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.wait import WebDriverWait
from webdriver_manager.chrome import ChromeDriverManager
class ChatTests(ChannelsLiveServerTestCase):
se... | [
"tobiaszkedzierski@gmail.com"
] | tobiaszkedzierski@gmail.com |
07284a6e486092fdaa4633f81f08fb768c68f944 | 88a8bec01a7f6631714f19a896a715fcee830552 | /KKK/members/urls.py | 04f043f97d044c9cff033046b6ec6ddae50827a5 | [] | no_license | ajeethkumar-2/ImageBlogStateful | 30a850ed11dadc186bed5d641d0d9f32f8fdc554 | 2175acaae8cd625300624078387c575534bc3e65 | refs/heads/master | 2022-12-26T09:50:00.639256 | 2020-10-08T11:53:12 | 2020-10-08T11:53:12 | 302,323,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | from django.urls import path
from .views import *
urlpatterns = [
path('register', UserRegistration.as_view(), name='register'),
path('edit_login_settings', EditLoginSettings.as_view(), name='edit_login_settings'),
path('password', ChangePassword.as_view(), name='password'),
path('password_success', pa... | [
"ajeeethkumar.skr@gmail.com"
] | ajeeethkumar.skr@gmail.com |
43e2989d39a42e37d7741d5ca8c6153862f4876d | 37be91337af68767906a776aaaf8ab2106f8e6a9 | /dataAPI/dictionary/migrations/0003_auto_20200221_0958.py | c6e5566c0b15ea834670bb138399b352fd85f070 | [] | no_license | KelongZ/mysite | 7962d64d202e46638e7e8647ddedfcc4855db040 | e8b507d2c10cf3f7a947bcd3c951103f6db9eaf7 | refs/heads/master | 2020-12-08T14:29:44.320592 | 2020-03-31T11:25:14 | 2020-03-31T11:25:14 | 233,005,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # Generated by Django 3.0.2 on 2020-02-21 01:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dictionary', '0002_configdata'),
]
operations = [
migrations.AlterField(
model_name='configsrc',
name='port',
... | [
"a313974633@163.com"
] | a313974633@163.com |
9e92bb4d6e710b562df16db9e0988f4b6e21ed35 | 557cebc2ca2d462bfed042e3d47f25549c7fdb47 | /apps/ideas/migrations/0005_remove_idea_category.py | 5a7aab7fe3a932594854d474ba86bd704b521ab0 | [] | no_license | jmshulett/django_web_development | b1964192025476077ca5d8ae12b66928a844ceea | 3cb311f55624a97ae72702aa28d18aa289336fe1 | refs/heads/main | 2023-08-15T02:17:14.011696 | 2021-09-18T21:59:12 | 2021-09-18T21:59:12 | 407,973,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | # Generated by Django 3.0.14 on 2021-09-18 17:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ideas', '0004_copy_categories'),
]
operations = [
migrations.RemoveField(
model_name='idea',
name='category',
),
... | [
"jphulett1@buffS.wtamu.edu"
] | jphulett1@buffS.wtamu.edu |
b38c937fd5d4516fab51a890b7ef25abaeca0505 | 36cc6e08580c8085f93555cb74a3f3ae0bca87a5 | /day8.0.py | 2a506fa09d372dcf1d1f7ce0df63e86d3d2f9737 | [
"MIT"
] | permissive | dp1/AoC17 | 262074a46a6d0675e54b7422b9046d130b4c489f | 7253c34f8d061144534ae21ff4310bce2fdfb5e0 | refs/heads/master | 2021-09-01T06:33:35.657942 | 2017-12-25T10:58:42 | 2017-12-25T10:58:42 | 112,944,220 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | with open("day8.txt", "r") as fin:
data = fin.read().strip().split('\n')
regs = {}
for l in data:
ll = l.split(' ')
reg, op, val, target, cmp, cval = ll[0], ll[1], int(ll[2]), ll[4], ll[5], int(ll[6])
if reg not in regs:
regs[reg] = 0
if target not in regs:
regs[target] = 0
ok = False
if cmp ... | [
"dario.pk1@gmail.com"
] | dario.pk1@gmail.com |
6f8bddcfb3703b2be846835c4d7059aeb3b7b713 | 13c34615485f841cc3522dde99ccf5090da9a4d6 | /tests/unit_tests/networks/tf/object_classification/__init__.py | db5aa25af4bc14c6f17e9ac6d263f68010c54af2 | [] | no_license | sallamander/dl-playground | 3e2dcd88ec3beae67401511912f5a1d202842525 | e05b2a15dd2925fca5206c2509e1da29c1806834 | refs/heads/master | 2021-06-12T13:52:48.302728 | 2019-05-29T15:54:34 | 2019-10-14T19:00:46 | 142,235,475 | 5 | 1 | null | 2019-08-28T21:32:21 | 2018-07-25T02:15:21 | Python | UTF-8 | Python | false | false | 67 | py | """Unit tests for applications.tf.object_classification modules"""
| [
"noreply@github.com"
] | sallamander.noreply@github.com |
6d0b522024a5885efbca8ba209c333c47ef8641e | bab4c9bebbfadd76c11dd022452c916bf4a3ad75 | /analysis/region graph.py | 507d00fa5c548263e0f275a5488e22fb2144e6ef | [] | no_license | Y-Hyehye/project_safecovid | 81aeab383d9674f10fc82aeb59fafe4f8215b8f1 | d81795df47e90d1905d65c89dd144fe15d3f7e5a | refs/heads/master | 2023-02-15T18:54:25.515100 | 2021-01-18T14:46:33 | 2021-01-18T14:46:33 | 330,680,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,204 | py | import urllib.request
import json
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import xmltodict
from google.cloud import storage
from firebase import firebase
import os
from os import path
# 한글폰트 적용
from matplotlib import font_manager, rc
import matplotlib
font_location="C:\Windows\Fonts\malg... | [
"yang_hyeji1@daum.net"
] | yang_hyeji1@daum.net |
c012f9c59f940bc7e0291d153248da24b9b21db3 | 372558f4337c539871e2e25fcaa06c45041a700e | /userInterface.py | b4733d79c954769bdfd048ac726fb2b350f69af4 | [] | no_license | kubicius/blockchain | 452be7990be91f322acceafdfba7f2664cd2311c | bf4368975e6f2198d90c0a3b1c8005503b3ae851 | refs/heads/main | 2023-04-12T17:42:52.096126 | 2021-05-05T20:44:46 | 2021-05-05T20:44:46 | 364,521,496 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | from fastapi.templating import Jinja2Templates
class UserInterface:
"""
Class preparing html templates.
"""
def __init__(self):
self.templates = Jinja2Templates(directory="templates/")
def show_template(self, request, result):
return self.templates.TemplateResponse('default.html', ... | [
"kskubicius@gmail.com"
] | kskubicius@gmail.com |
d45c64018c5559929a424479f55941ef74fffbfb | 84379e15e54ba79b7e63c1fceecf712b46f22977 | /apps/cards/migrations/0052_auto_20200516_1545.py | e7249b0638f24725e1ab93e5956e11c91eed3149 | [] | no_license | CoderEnko007/HearthStoneStationBackend | a1d74c324233ebd617ad01df13bc609d1f1aa2f6 | 6cc92cb806f19f2a2a0596645028cfe2fa5895d6 | refs/heads/master | 2022-12-11T23:20:24.335737 | 2022-09-18T07:04:08 | 2022-09-18T07:04:08 | 144,392,864 | 0 | 0 | null | 2022-12-08T02:22:42 | 2018-08-11T14:40:48 | JavaScript | UTF-8 | Python | false | false | 642 | py | # Generated by Django 2.0.4 on 2020-05-16 15:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cards', '0051_hscards_update_time'),
]
operations = [
migrations.AddField(
model_name='hsbattlegroundcards',
name='e... | [
"yf381966217@163.com"
] | yf381966217@163.com |
114faf3399990d6091ca6561a042f283688d53cc | 085148f472eb07a565df7ea513b90ec84270d40a | /petalapp/config.py | 3623889fee5098390e9b4ced2860cbd81297cf3a | [] | no_license | drewverlee/petal | 165af8073f01afc9230534b73128cc5fb8ccd631 | cde63d27af7d6059c102a9980aeb442ea21eda22 | refs/heads/master | 2021-01-19T10:26:16.627874 | 2014-01-11T16:39:29 | 2014-01-11T16:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | '''
File: config.py
Date: 2012-11
Author: Drew Verlee
Description: configuration setup to handle aws,heroku, local machine,
database, etc...
'''
import os
# flask
PORT = int(os.environ.get("PORT", 5000))
basedir = str(os.path.abspath(os.path.dirname(__file__)))
SECRET_KEY = str(os.environ.get("APP_SECRET_KEY"))
DEBUG ... | [
"Drew.verlee@gmail.com"
] | Drew.verlee@gmail.com |
292a7efec1a7e17418ca697c6361e6cd703ed8b4 | 621a40fa363dc0c32c96a4c8fdfe9142877e2ff1 | /ietf/sync/mails.py | a58894e3d1cc66becadded97bb3aca98e9b74879 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | omunroe-com/ietfdb2 | d9c40bebe4b25059f810c70dd1370cca30cb3c36 | aeaae292fbd55aca1b6043227ec105e67d73367f | refs/heads/master | 2020-04-04T21:05:56.067430 | 2018-11-05T09:08:27 | 2018-11-05T09:08:27 | 156,273,382 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | from django.urls import reverse as urlreverse
from django.conf import settings
from ietf.utils.mail import send_mail
from ietf.sync.discrepancies import find_discrepancies
def email_discrepancies(receivers):
sections = find_discrepancies()
send_mail(None,
receivers,
None,
... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
537854fc42c02d114a9c6a582dd68c42475254ce | ec87588d0032c551a114b27c9491582d4191889c | /Week_1/1068.py | dd4c0bebcc6c207599bd6c772d69a24e3e157332 | [] | no_license | MurylloEx/Data-Structures-and-Algorithms | 0f28de436debb25acc1ae36acb88b12d1bd7b140 | 6a9c38ce5e925ac1d221a7cc7405daf5d46b43ed | refs/heads/master | 2021-02-19T17:33:18.288885 | 2020-11-13T15:08:34 | 2020-11-13T15:08:34 | 245,316,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | while True:
try:
expr = input()
if (expr not in '\n\r'):
raw_expr = str()
for idx in range(0, len(expr)):
if (expr[idx] in '()'):
raw_expr += expr[idx]
if (len(raw_expr) % 2 == 1):
print('incorrect')
... | [
"noreply@github.com"
] | MurylloEx.noreply@github.com |
b442671190ebc5c0787131c5aab2a40f6a028ce6 | 3b239e588f2ca6e49a28a63d906dd8dd26173f88 | /code/play_train_eval_q.py | 098d7e50fdc67e62c6665a9b62a6477517ed596a | [] | no_license | Angi16/deep_learning_and_the_game_of_go | 3bbf4f075f41359b87cb06fe01b4c7af85837c18 | ba63d5e3f60ec42fa1088921ecf93bdec641fd04 | refs/heads/master | 2020-03-23T16:02:47.431241 | 2018-07-21T02:57:16 | 2018-07-21T02:57:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,494 | py | import argparse
import datetime
import multiprocessing
import os
import random
import shutil
import time
import tempfile
from collections import namedtuple
import h5py
import numpy as np
from dlgo import kerasutil
from dlgo import scoring
from dlgo import rl
from dlgo.goboard_fast import GameState, Player, Point
de... | [
"max.pumperla@googlemail.com"
] | max.pumperla@googlemail.com |
4515847506698c8aa7f7ffc59048f1339af96ed8 | 9bd8b82a2aa4a126863b497e276e3d54dba56050 | /pytorch_transformers/modeling_roberta.py | 87f797d42fd5f9bdb99cc9de8116d336793367f7 | [
"Apache-2.0"
] | permissive | Nstats/pytorch_senti_analysis_ch | d905600f16c168dad9f4a5da9b68dd19cdb5a578 | bb01cc508c37638670b26259a6ee35c4e857f2b6 | refs/heads/master | 2022-12-11T11:40:11.785573 | 2019-11-29T10:03:49 | 2019-11-29T10:03:49 | 208,766,887 | 3 | 0 | Apache-2.0 | 2022-12-08T06:09:42 | 2019-09-16T09:56:58 | Python | UTF-8 | Python | false | false | 18,426 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | [
"17801238715@163.com"
] | 17801238715@163.com |
73d2cffae018f4ee3e6b3605bbc5eb17ef895fc2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02886/s682827583.py | 180261c0dad26a28d3b99ade929a4b036e335d73 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | n = int(input())
d = list(map(lambda x: int(x), input().split(" ")))
ans = 0
for i in range(n - 1):
ans += d[i] * sum(d[i + 1:])
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d090b2a3de4de477fd8d316b88a68204f8466762 | 17a8ed643eb39759409187a7e6b5483a616da212 | /example/svm_demo.py | c556f00c7a32c77e313b8eba1a9a79b117d552a3 | [
"MIT"
] | permissive | Lving/outlier_detection | a59086b8528b718f12838167ba722b7a80533891 | 13ffe460c35af7dcc49314b36791b2c4dabc7348 | refs/heads/master | 2021-05-08T06:33:26.182552 | 2016-09-19T09:18:22 | 2016-09-19T09:18:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | import numpy as np
import matplotlib.pyplot as plt
from outlier_detector.base_detector import OutlierDetector
# Generate train data
X_train = 0.3 * np.random.randn(100, 2)
# Generate some regular novel observations
X_test = 0.3 * np.random.randn(20, 2)
# Generate some abnormal novel observations
X_outliers = np.rand... | [
"wg@gizwits.com"
] | wg@gizwits.com |
ec9abecd68f805a633d5bb84759c798bc7535ad6 | 9fe84516b363ec5be12b37b12063d2e94f9255cf | /lib/networks/VGGnet_train.py | 40a885c1d4caca742453194a2f025b6866762005 | [] | no_license | justrypython/text-detection-ctpn | f14543dccf278744886111f1e1f50e3d02edc6d0 | 6783c2212d56b7133aebc827fe75c26f2a8c1fd8 | refs/heads/master | 2021-07-04T07:10:12.503395 | 2017-09-26T08:21:56 | 2017-09-26T08:21:56 | 104,291,038 | 0 | 0 | null | 2017-09-21T02:21:59 | 2017-09-21T02:21:59 | null | UTF-8 | Python | false | false | 5,210 | py | # -*- coding:utf-8 -*-
import tensorflow as tf
import numpy as np
from network import Network
from ..fast_rcnn.config import cfg
class VGGnet_train(Network):
def __init__(self, trainable=True):
self.inputs = []
self.data = tf.placeholder(tf.float32, shape=[None, None, None, 3], name='data'... | [
"kerzhao@163.com"
] | kerzhao@163.com |
e68d4c563be6e6974f20f1df9d5d4e92f618c805 | ea6c1dbf5a56bb8524db3ab0c8d36f86531535de | /rp-portfolio/blog/views.py | 6908f85df6edaaf743f6c840ecf0ae02d3c397e6 | [] | no_license | brahada/portfolio-blog-django | eedbd4a18436bf6753f190e607c3bbcb77871e23 | a7cf3a4643cc02c0317fa2eba709536722615be1 | refs/heads/master | 2022-12-31T15:59:31.096722 | 2020-10-14T16:56:07 | 2020-10-14T16:56:07 | 304,079,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | from django.shortcuts import render
from blog.forms import CommentForm
from blog.models import Post, Comment
#from blog.forms import ContactForm
def blog_index(request):
posts = Post.objects.all().order_by("-created_on")
context = {"posts": posts}
return render(request, "blog_index.html", context)
def b... | [
"brahada25@gmail.com"
] | brahada25@gmail.com |
05df7dc2db7b637991a6d8462dc57fecd50efcce | de40d3fa8d8af0030556d27d6833f6a1a0e7700c | /baekjoon/2592py/a.py | 4390728c02561068188fc42c3f63a8de97110232 | [] | no_license | NeoMindStd/CodingLife | cd6a627209c0353f4855f09fd5dfef8da4bbfef6 | bcb6c3752f472e6a4f3b8f158d02bc3599dfcda3 | refs/heads/master | 2022-12-24T10:42:45.390085 | 2022-12-11T16:27:16 | 2022-12-11T16:27:16 | 191,797,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | s=0
d={}
for _ in range(10):
n=int(input())
try:d[n]+=1
except:d[n]=1
s+=n
print(s//10)
print(max(d.items(),key=lambda x:x[1])[0])
| [
"dwj1996@naver.com"
] | dwj1996@naver.com |
5dd00d6d5517f4c7a804a51d9acf545ea04f39f4 | e26149b575f166d052ce09ceaeb6ef2a31735860 | /models/mlp_classifier.py | 7cbac5c4b4cf8e56614e2d49fa9dcbdcec69d06f | [] | no_license | mireshghallah/A4NT | 0ccd755d9710c17010d8bb3d01eb9d82fb4b869f | d5aa57e8266a472b84216da254025e21308639a5 | refs/heads/master | 2023-04-25T01:16:25.951623 | 2021-05-04T18:52:39 | 2021-05-04T18:52:39 | 364,344,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,128 | py | import torch
import torch.utils.data
import torch.nn as nn
from torch.autograd import Variable
from torch import tensor
from tqdm import trange, tqdm
import numpy as np
class MLP_classifier(nn.Module):
def __init__(self, params):
super(MLP_classifier, self).__init__()
#+1 is to allow padding index
... | [
"f.mireshghallah@gmail.com"
] | f.mireshghallah@gmail.com |
ffb2e6251978a942c62d69f3a5f6b154501ad76c | 1e7440822556f589cee3efe7023ee341a13ba5d7 | /env/bin/jupyter-migrate | b12841132d82b056172d1072e62304c11de4a172 | [] | no_license | nhatminh2947/deep-learning | 2b4f2e288fdb954801c10e79347b3116433be55e | afa3a5a4a77d033c91a7ed6c40e51791e06cea64 | refs/heads/master | 2020-04-03T20:30:02.522061 | 2018-11-05T19:30:11 | 2018-11-05T19:30:11 | 155,547,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/home/cgilab/working/deeplearning/DLhw1/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.migrate import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nhatminh2947@gmail.com"
] | nhatminh2947@gmail.com | |
44bab2d0245a7c589ff32e3972a72df4dd038efb | 1aa1e6083c41bdb1337618f6403be0b8d02fb222 | /catkin_ws/src/vicon_bridge/src/tester.py~ | ed5d68ba9ac4a52c079b9e0a33f489821a4af9b8 | [
"BSD-3-Clause"
] | permissive | fantasYu-Chao/Stupid-Baxter | 7cc05b9d292c42a9c74c3223c3be7dd78659ff61 | d7dad7aba023f29bbca389175994e72ae3486315 | refs/heads/master | 2021-06-27T10:44:53.574794 | 2017-09-10T21:27:18 | 2017-09-10T21:27:18 | 103,059,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | #!/usr/bin/env python
import roslib
import sys
import rospy
import numpy as np
import pdb
from matplotlib import pyplot as plt
from std_msgs.msg import String
from sensor_msgs.msg import Image
from geometry_msgs.msg import TransformStamped
import os
#define subscriber node
binCor = []
class getBin():
def __init__(s... | [
"noreply@github.com"
] | fantasYu-Chao.noreply@github.com | |
63685baeb08e46ae65f832ecc2847c370da279e7 | ca3863b7e1fc320cdf92b48924458f7109b3098f | /migrations/0020_auto_20170924_0549.py | 82ae95006e7dcee2f698d91e5c8b56710f6a78b1 | [] | no_license | rcrowther/django-category-collection | eda27123954cdfd5a4062f9da830e659a99ed7ff | 548591a27ebdae537cf663d7cd4a600fa2e570b2 | refs/heads/master | 2021-06-24T19:28:41.577466 | 2020-11-03T19:45:54 | 2020-11-03T19:45:54 | 102,010,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-24 05:49
from __future__ import unicode_literals
from django.db import migrations, models
import taxonomy.models
class Migration(migrations.Migration):
dependencies = [
('taxonomy', '0019_auto_20170908_1804'),
]
operations = [
... | [
"rw.crowther@gmail.com"
] | rw.crowther@gmail.com |
0cd0f206c60724b2e71d6f6c33a6c782ea179603 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/testing/scripts/common.py | 5cba136cb51561bbf0a1833997927573eba604c7 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 5,124 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import contextlib
import json
import os
import subprocess
import sys
import tempfile
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
dfe42d3ff33a07cb33c6ff63594af3c18284b2e4 | 7e27687d12192b9ac44059801e1d4f5b4cd7575c | /dev2/Buscar palabra.py | 2e61b6b9a090b23d02b4ec50de7faf9939c9b6f6 | [] | no_license | Latinaheadshot/DevF | 6c220db2f508ddc0fe781bb98524e7345077bdac | d04e7953b2df661bf239e945990609a83447baf6 | refs/heads/master | 2021-07-10T10:55:49.634102 | 2017-10-11T01:39:50 | 2017-10-11T01:39:50 | 106,357,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | # Dar palabras y encontrar cuantas veces se repita
palabra = []
contador = 0
numero_palabras = input("Introduce una frase con palabras repetidas")
for i in numero_palabras:
print.filter("Hola") | [
"latinaheadshot@gmail.com"
] | latinaheadshot@gmail.com |
e71b52e341f37e5239e11b063025b35f18eb7355 | d1e217093ee70dd9f2911781ea7ac60eb923bbbd | /python/prod_HCalMIPCali_test4_Data_PromptReco2017_v3_DoubleMuon_Run2017B-PromptReco-v2_v1.py | 4c0a293106c2d70333b8b873c84b0c119d33df81 | [] | no_license | nanlu06/MuonCalibrationHCalPhaseI | 555375b45fbeabe849d5f2e458e723cec1a5e1b9 | 5c2df37fc8760cf38da0894b65a69559eb29e639 | refs/heads/master | 2021-01-20T21:12:49.593639 | 2017-08-29T12:19:33 | 2017-08-29T12:19:33 | 101,739,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py |
from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = "prod_HCalMIPCali_test4_Data_PromptReco2017_v3_5f20d31dd66741a69a27f27941a283cf_v1"
config.General.workArea = "crab_prod"
config.section_("JobType")
config.JobType.pluginName = "Analysis"
co... | [
"nan.lu@cern.ch"
] | nan.lu@cern.ch |
7633fd8074fa4323502df4f92dd8f1339ac6bfb3 | 60411095686f8046d5b5c53bad123c35df6a379a | /texttutils/texttutils/settings.py | 4c2d31cf4466811dc8f5c73b54a971389ba1b08e | [] | no_license | suraj-001/text_operations | 463d49654d3b30ab440d451b5d1aefa3d22a773c | 9a64c91434dd1dad91fa5639347c18c7572d709f | refs/heads/master | 2023-07-18T06:03:12.105472 | 2021-09-07T10:09:41 | 2021-09-07T10:09:41 | 401,244,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,262 | py | """
Django settings for texttutils project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from path... | [
"surajkumaragarwal36@gmail.com"
] | surajkumaragarwal36@gmail.com |
e05f4a9adc90c0dc69f6eff1b2ba02e28e11f695 | 18e3873e4c8b66ae5fc53dbc4ba595f8e7be6a85 | /EntrepriseDevScraper/pagesjaune/pagesjaune/middlewares.py | c1126d7a9778a5f20f2ba75fbc582bf5e49a6ce2 | [] | no_license | zestelle2/page_scrape | b3557755c5c0cb38907f46d03dbc0cea13467172 | 191ffc7bc9d5437c4f5af844a42b17a716615ea8 | refs/heads/master | 2020-03-31T20:56:49.175581 | 2018-10-25T07:18:11 | 2018-10-25T07:18:11 | 152,561,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class PagesjauneSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scra... | [
"noreply@github.com"
] | zestelle2.noreply@github.com |
8a8a91c3279bc0806a46df31b528f0258eb4f877 | 331368bdb5a9965a7c2b229094f749c733950196 | /backend/test_27281/wsgi.py | 67fa9715ca926805d323adc68be6449985f451bb | [] | no_license | crowdbotics-apps/test-27281 | 86705fe86fc63745abf9b34129ca54db0f4d0d48 | ce835ef081ae7006acf911dc9b6cd65f2b1fa0cd | refs/heads/master | 2023-05-05T10:31:53.099862 | 2021-05-23T17:13:44 | 2021-05-23T17:13:44 | 370,111,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for test_27281 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("DJANGO_SE... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f5c72769a2d84c877c0181b35d3f1f9c2a4c7277 | 89b33345a9c949c72231c0e09e31c2c2f3033a3e | /anagram.py | 1a3fe93f440840315d00a387b781e865fef082f6 | [] | no_license | rakhiPurwar/hackerrank-solutions | 2ab3c88930d7c0aa94122e64c020b63d354683dc | cbfd2dba11d410715d80a039bff511b43ad9e8e4 | refs/heads/master | 2022-11-14T23:28:37.472249 | 2020-07-07T05:46:56 | 2020-07-07T05:46:56 | 267,019,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | from collections import Counter
# Complete the anagram function below.
def anagram(s):
c = 0
l = len(s)
r = int(l/2)
print(r)
print(l)
if l%2 != 0:
return -1
else:
p = Counter(s[0:r])
q = Counter(s[r:l])
diff = p - q
print(diff)
return sum([va... | [
"noreply@github.com"
] | rakhiPurwar.noreply@github.com |
b0830505869673479f63ede4681823d98ca19bff | d22b6c2b4923f43f217bd0efc6584f6183afabd9 | /tools/gh_api.py | 6b042ed4c6801169763ef1ca2f150d35075e5aee | [
"BSD-3-Clause"
] | permissive | fccoelho/ipython | 9719e4d50f10b7996448ac5f8d9629b6c8b2f76b | 128c40ea8cacd2f7c9bf6228765fdc0b31f8b816 | refs/heads/master | 2021-01-18T06:28:25.593133 | 2012-06-18T01:25:01 | 2012-06-18T01:25:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | """Functions for Github authorisation."""
from __future__ import print_function
try:
input = raw_input
except NameError:
pass
import requests
import getpass
import json
# Keyring stores passwords by a 'username', but we're not storing a username and
# password
fake_username = 'ipython_tools'
token = None
de... | [
"takowl@gmail.com"
] | takowl@gmail.com |
c0cebb568d34cd714bb6bd5ad5eef84e6f688068 | c5c56d8c00e9c30ed58893b0ad776c3f874fc493 | /backend/vocabulary_wizard_21967/wsgi.py | 2530f6001ac3b68ea7f972da5548202362a9fd6b | [] | no_license | crowdbotics-apps/vocabulary-wizard-21967 | 4e512a10372746800dfc99f5a79cfba3d339cfc1 | d63c837e95a0e06bd4bd740ef61eb9449fa82401 | refs/heads/master | 2023-01-06T17:02:34.971325 | 2020-10-26T14:22:41 | 2020-10-26T14:22:41 | 307,394,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | """
WSGI config for vocabulary_wizard_21967 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.setdefau... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
dbea2e0eecf115e2d3e3c8613f4c8003d1dc1fd2 | cb8a064f74a195f43d61b4e020e8d01e3e743c2c | /store/migrations/0002_variation.py | 0689a1383cfc691814eb34223e29fe9132894b16 | [] | no_license | yifan1003/E-Commerce-application | c784441f6794bce59dd18287215a19d23a662e55 | 3a1388478fae3679068b3e44e3b736e9d6cbd313 | refs/heads/main | 2023-06-21T23:51:56.221425 | 2021-07-26T04:08:44 | 2021-07-26T04:08:44 | 381,929,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | # Generated by Django 3.1.7 on 2021-07-15 22:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Variation... | [
"hyifan9988@gmail.com"
] | hyifan9988@gmail.com |
5ffe0e1a00a723873eb6f90c2251bd8659623cef | 05105d09c6f3298dffc86cd2c33478e054a34017 | /firstProject/urls.py | fdf4a1a9444974f1efcad99797895c82220b330e | [] | no_license | LeeHyogeum12/tone1 | 0c660b7c02e5569b06c7a0dc24a8b38525aaaf75 | bf0a4de8cd54da3ab6568ffd2069918487edc265 | refs/heads/master | 2022-11-13T02:02:13.100184 | 2020-07-05T14:47:16 | 2020-07-05T14:47:16 | 277,316,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | """firstProject 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-... | [
"lhgeum0728@hs.ac.kr"
] | lhgeum0728@hs.ac.kr |
ed10f54681be411ff65af9f60f5ed3a72b206f90 | 4366d13ff81a552c933f9d57d04a541c9d76ce3a | /eHealth/migrations/0002_auto_20160313_0039.py | a17bdda414cab4a37a36dd364672c3812fa4c501 | [] | no_license | mariosfx540/eHealthProjectGoU | d3cde3922fdd59fdfe0c2a9f95d425601cb56cc5 | c23aea48d0011a8fbd5fb8762094d5af84c2ca19 | refs/heads/master | 2021-01-10T07:14:09.805479 | 2016-03-25T23:58:44 | 2016-03-25T23:58:44 | 53,608,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('eHealth', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='category_list',
name... | [
"marios_540@hotmail.com"
] | marios_540@hotmail.com |
d41d9b60b8385ac21e16adcbafb795302d3934f7 | a8062308fb3bf6c8952257504a50c3e97d801294 | /problems/N1610_Maximum_Number_Of_Visible_Points.py | ecf9ff8e7f827ff53db8bd41ec7802b16da2af95 | [] | no_license | wan-catherine/Leetcode | 650d697a873ad23c0b64d08ad525bf9fcdb62b1b | 238995bd23c8a6c40c6035890e94baa2473d4bbc | refs/heads/master | 2023-09-01T00:56:27.677230 | 2023-08-31T00:49:31 | 2023-08-31T00:49:31 | 143,770,000 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | import math
class Solution(object):
def visiblePoints(self, points, angle, location):
"""
:type points: List[List[int]]
:type angle: int
:type location: List[int]
:rtype: int
"""
angles, same = [], 0
for x, y in points:
if x == location[0... | [
"rarry2012@gmail.com"
] | rarry2012@gmail.com |
15956d66ac056dbba08a63443b13fbbd58cebae0 | 6fcee2268c4fad9c4e37069d9c18a1452303b38e | /apps/user/views.py | 91c6eaf0087402d13f2ec3e15aa8be2d353d1c21 | [] | no_license | JorgitoR/omnilatan-backend | ec6586492883f14c2a0bd6a99b9fb7dadfd63a4f | 77f7d55278e595ebd47f9a96af165a08ca9a4354 | refs/heads/main | 2023-07-18T09:25:28.481306 | 2021-08-31T17:29:18 | 2021-08-31T17:29:18 | 400,928,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | from django.shortcuts import render
# Models
from omnilatam.apps.order.models import Order
def signup(request):
return render(request, 'user/signup.html')
def login(request):
return render(request, 'user/login.html')
def profile(request):
orders = Order.objects.filter(product__order_product__user=request.user... | [
"jorgitouribe@gmail.com"
] | jorgitouribe@gmail.com |
89ec2782bfac4b4bb21af8aa6c412cdb5b0c0648 | f552ca018542184f34246405afb9b30999a57f2e | /criacionais/abstractFactory/carro/modelos/fiestaSedan.py | ce31e8fb64f1ba2656813f84c9d18ad256923a2f | [] | no_license | PlumpMath/DesignPatterns-440 | feea6847160e3c7393a2da80e6b22b9b2273ee92 | bef2ff66dddc90b7e6b529828b094bfc48754a01 | refs/heads/master | 2021-01-20T09:52:12.704627 | 2017-04-29T22:58:07 | 2017-04-29T22:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from carro.categorias.carroSedan import CarroSedan
class FiestaSedan(CarroSedan):
def mostra_informacao(self):
print("Modelo: Fiesta")
print("Fabricante: Ford")
print("Categoria: Sedan\n")
| [
"victorhad@gmail.com"
] | victorhad@gmail.com |
023a701fcbd187c2d9e32af920c7d0a29a98b36c | 6600952c5a14bf306819feac737d3617024c1320 | /core/guest.py | 8861088cfc62646be2e8258211f8bd33b90aa6ee | [] | no_license | SNDBOXLTD/cuckoo | aae51173a59d8085a53a175a4d825af40fec8b58 | d2f342f128ea1d8c69fa481775362b3fee5757f8 | refs/heads/master | 2021-06-08T09:26:45.598247 | 2020-04-26T15:34:43 | 2020-04-26T15:34:43 | 115,909,717 | 3 | 2 | null | 2020-10-01T17:50:57 | 2018-01-01T09:17:05 | JavaScript | UTF-8 | Python | false | false | 20,797 | py | # Copyright (C) 2012-2013 Claudio Guarnieri.
# Copyright (C) 2014-2017 Cuckoo Foundation.
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
import datetime
import io
import json
import logging
import os
import requests
import socket
import time
i... | [
"ariel.koren@gmail.com"
] | ariel.koren@gmail.com |
c0540f6c40def264c7e6b7c6505f57004630d2f7 | b3c47795e8b6d95ae5521dcbbb920ab71851a92f | /Nowcoder/剑指Offer/矩形覆盖.py | 472cec999f79e099d22c2612bfd92794514a660a | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Wizmann/ACM-ICPC | 6afecd0fd09918c53a2a84c4d22c244de0065710 | 7c30454c49485a794dcc4d1c09daf2f755f9ecc1 | refs/heads/master | 2023-07-15T02:46:21.372860 | 2023-07-09T15:30:27 | 2023-07-09T15:30:27 | 3,009,276 | 51 | 23 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # -*- coding:utf-8 -*-
class Solution:
def __init__(self):
self.dp = {}
def rectCover(self, number):
if number == 0:
return 0
return self.solve(number)
def solve(self, number):
assert number >= 0
if number == 0:
return 1
if number ... | [
"noreply@github.com"
] | Wizmann.noreply@github.com |
c055c9f040fe6d19593fdb454ed7a5f6213662bf | 69a306c83b8638be36b013cb0bcfa89a14ffe6b0 | /genice2/lattices/preparing/12_2_32449.py | 3dea0104b3a9af9f18f23602a8b1e23da21d161d | [
"MIT"
] | permissive | vitroid/GenIce | 10bda02a05e1042138f2481f301794eb3e870224 | 4162db1ff57af526abf3ab473a5a56300977dd73 | refs/heads/main | 2023-08-17T23:14:32.760909 | 2023-08-04T10:24:56 | 2023-08-04T10:24:56 | 37,752,975 | 58 | 23 | null | 2022-03-13T04:05:44 | 2015-06-20T01:03:52 | Python | UTF-8 | Python | false | false | 915 | py | from genice2.cell import cellvectors
import genice2.lattices
import numpy as np
desc = {
"ref": {
"12_2_32449": "Engel 2018",
"engel09": "Engel 2018"
},
"usage": "No options available.",
"brief": "Hypothetical zeolitic ice",
"test": ({"args": "",
"options": "-r 2 2 2"},)... | [
"vitroid@gmail.com"
] | vitroid@gmail.com |
fcc1d9295eab3144a1ea29ba91e9c212543422d0 | 3614e22372f9f0a7f4c7c9baffc38b3468876432 | /day2/school.py | 50765fb4272dbdcaabb61a1798b0897b6d4907df | [
"MIT"
] | permissive | jeonghkim/python-washu-2014 | c94ac6d628e1d0278e792d3abdb05c4e74089e86 | ef903ebaed96aad5752fbc7d348a17e6c1963d39 | refs/heads/master | 2021-01-21T00:38:47.644541 | 2014-08-26T00:03:38 | 2014-08-26T00:03:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | class School:
def __init__(self, schoolname): # initialize: it takes the argument "schoolname"
self.schoolname = schoolname # the element schoolname will be the input for the argument schoolname
self.db = {} # the element "db" will be an empty dictionary.
def add(self, student, grade): # add method takes the a... | [
"jhkim0508@gmail.com"
] | jhkim0508@gmail.com |
46f94efe29b346ecda0d7dc713057133d2069298 | 0687db020813c1de043ac0af6e463e41b981d300 | /samtranslator/intrinsics/resolver.py | 99967a1cc59fcd403de0da743271708d1b2ee502 | [
"Apache-2.0"
] | permissive | danishbacker/serverless-application-model | a1664e26553130e0f96ffc4fb3c3abd3730a8ab4 | 0ead3441b047fa2010a0fd4d05d70326dfe47f9e | refs/heads/develop | 2020-03-15T19:53:49.824509 | 2018-05-03T21:24:35 | 2018-05-03T21:24:35 | 132,319,725 | 0 | 0 | Apache-2.0 | 2019-03-24T18:54:25 | 2018-05-06T08:20:57 | Python | UTF-8 | Python | false | false | 9,455 | py | # Help resolve intrinsic functions
from samtranslator.intrinsics.actions import Action, SubAction, RefAction, GetAttAction
# All intrinsics are supported by default
DEFAULT_SUPPORTED_INTRINSICS = {action.intrinsic_name:action() for action in [RefAction, SubAction, GetAttAction]}
class IntrinsicsResolver(object):
... | [
"noreply@github.com"
] | danishbacker.noreply@github.com |
32d16c4be1951f647216c0e08722a51c8040eb27 | 5319df622cf03ec1a23b41c31a0d5d98969b886a | /radish.py | 4a6f849ceb621733c098e61e24ce1ecf7708754a | [] | no_license | erinleeny/the-radish | 3769b182087cc13700e2b0e42367467126447936 | 8c6c222d65cbb86bdeb91d81b3df6f5ff017fbf4 | refs/heads/master | 2022-01-29T12:04:21.166471 | 2019-07-18T18:57:39 | 2019-07-18T18:57:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,649 | py | #!/usr/bin/python3
print('Content-type: text/html\n')
import cgitb
import cgi
import random
cgitb.enable()
page = cgi.FieldStorage()['page'].value
print('''
<!DOCTYPE HTML>
<html>
<head>
<title>The Radish</title>
<link rel="icon" href="radish.png">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/boot... | [
"erin.lee.ny@gmail.com"
] | erin.lee.ny@gmail.com |
83e8030e31ad2c23f459c9b048dbafbf0f63fee1 | bc441bb06b8948288f110af63feda4e798f30225 | /monitor_sdk/model/easy_command/task_spec_pb2.py | dcb02fe5c9c9e655bdfa977987c035f067083564 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 9,514 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: task_spec.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | [
"service@easyops.cn"
] | service@easyops.cn |
f4e4f4503c9f478bd1926f4eb1748e96798b0abc | ddb9f17a4d943123f5e9c48cf02659ad54e968a9 | /electionSoup_05.py | 2c5a134d338b247b430b846cbd7f2131323850cb | [] | no_license | jotasprout/scrapingElectionResults | 665bcc76dc5c25bd0302914eeabdf9120bc0fb99 | 3c2e80ee67eb6c1ec4509d4bbfbeeafbef258b61 | refs/heads/master | 2021-09-17T06:40:27.550765 | 2018-06-28T18:40:53 | 2018-06-28T18:40:53 | 74,492,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | from bs4 import BeautifulSoup
import csv
# Grab local file I downloaded
htmlDoc = open("2016ElectionResultsPresidentPolitico2.htm")
soup = BeautifulSoup(htmlDoc)
# create a text file in which to put leftover soup
f = csv.writer(open("myElectionResults3.csv", "w"))
# Grab just the results table
articles = soup.find_a... | [
"jotasprout@gmail.com"
] | jotasprout@gmail.com |
c11ce1adc65498d3491e4e59b546206ff74eb43b | ab40571d5051ad53c0f205fa797ba36eac516d06 | /language/conpono/cpc/run_cpc.py | 48d27c2350227bd9c3f6ac1f7daf95683099c8eb | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | google-research/language | e941b1a92ab46d40d8d03bb0c314905cb6902ce2 | ac9447064195e06de48cc91ff642f7fffa28ffe8 | refs/heads/master | 2023-08-24T23:10:13.207294 | 2023-05-25T20:47:18 | 2023-05-25T22:29:27 | 153,201,352 | 1,567 | 371 | Apache-2.0 | 2023-07-06T23:03:15 | 2018-10-16T00:58:14 | Python | UTF-8 | Python | false | false | 18,336 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# 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 ... | [
"kentonl@google.com"
] | kentonl@google.com |
3de801a5cf89ce31e26495438899885b07a98824 | 9170f6cecd25b963254ea456da5cd9c5d2decd23 | /mode.py | 95c22b6b2686814884e0625d0925999ee35ac6de | [] | no_license | sandeeppunmia/PROJECT-104 | a1ad8f90846417e95edf8c272081ec37cd6aa122 | cf44848a6549173eea6a9d65aa082a9071f50c7f | refs/heads/main | 2023-05-07T18:03:03.061990 | 2021-06-01T12:53:46 | 2021-06-01T12:53:46 | 372,829,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | import csv
import statistics
with open('SOCR-HeightWeight.csv',newline='') as f:
reader= csv.reader(f)
file_data = list(reader)
file_data.pop(0)
new_data=[]
for i in range(len(file_data)):
n_num = file_data[i][2]
new_data.append(n_num)
mode = statistics.mode(new_data)
print('Mode is '... | [
"noreply@github.com"
] | sandeeppunmia.noreply@github.com |
00fae6a272f80eac4199b2bbe400a042ce45afa0 | 99aa48b929961a3e8ac238a1f51ce0b2499af2b7 | /exercises/dot-dsl/example.py | 125bf278d07febe3ae509bed675a10ec219d3c07 | [
"MIT",
"Python-2.0"
] | permissive | JodieHaywood/python-6 | b4dfbadcddd97d81e8bcb16b315395610f7fb8be | b71bfb6f82fb43d49752635d89eab843cb627e4c | refs/heads/master | 2020-03-30T13:24:16.929668 | 2018-10-02T12:45:25 | 2018-10-02T12:45:25 | 151,271,387 | 1 | 0 | MIT | 2018-10-02T14:46:03 | 2018-10-02T14:46:02 | null | UTF-8 | Python | false | false | 1,521 | py | NODE, EDGE, ATTR = range(3)
class Node(object):
def __init__(self, name, attrs={}):
self.name = name
self.attrs = attrs
def __eq__(self, other):
return self.name == other.name and self.attrs == other.attrs
class Edge(object):
def __init__(self, src, dst, attrs={}):
self.... | [
"nathan.parsons@warwick.ac.uk"
] | nathan.parsons@warwick.ac.uk |
6132066f7af58efd64ae52142b80a77a2a711ff6 | f925f8778355445bea1950703e21d804b069eda5 | /main.py | a6fcfca6d383f3021cf7d8c98c067d41cb2f8fac | [] | no_license | tanerahmed/play_with_git | adc5bf89056542395df6e587fbca1710abdecf6f | 154000c1599979cfba17bd22d10087743988f50c | refs/heads/main | 2023-07-27T13:03:26.902738 | 2021-09-09T14:41:45 | 2021-09-09T14:41:45 | 383,704,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press ... | [
"tanerahmed87@gmail.com"
] | tanerahmed87@gmail.com |
8b1df3ff3fc5477fb786efbc0cf04d80a24235f4 | b45dc624c7bf5eb02da6853a3ae3cfb4fb61e4c4 | /splash/__init__.py | 1be2693f75edf80fddc0092ae29605f85e097927 | [
"BSD-2-Clause"
] | permissive | TrinityComputers/splash | c8fbf82c06b77016c32b3fbed3f880a21b5add39 | f8421cab0594d9417f068f74d45d8fa64c97ae79 | refs/heads/master | 2020-12-25T02:20:39.219817 | 2016-02-20T21:33:17 | 2016-02-20T21:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | __version__ = '2.0'
from distutils.version import LooseVersion
version_info = tuple(LooseVersion(__version__).version)
__all__ = ['__version__', 'version_info']
| [
"kmike84@gmail.com"
] | kmike84@gmail.com |
8cea7d6e9eb15d5318ed4c600ab7f89ddc82ac29 | 838642b4f7dae35e37198f0932ec713ef755f5b7 | /solarproject/solarproject/settings.py | 73607dcfd44b47e01c22a3a23d03d00390839030 | [] | no_license | guaka/kloud | a4d350d7f50898d4fd13689741626623aac38201 | 1d97dd21a90953ffd956e12d9dcb74fc9548c772 | refs/heads/master | 2020-05-29T20:52:47.657235 | 2014-03-11T22:12:47 | 2014-03-11T22:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # Scrapy settings for solarproject project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
#
BOT_NAME = 'solarproject'
SPIDER_MODULES = ['solarproject.spiders']
NEWSPIDER_MODU... | [
"kasper@guaka.org"
] | kasper@guaka.org |
1f941c786360efa674c2f027ec77232546ede5bf | 5bd9ffad4ce5e0f0f2a7cd0dac51e6abe3470b9c | /reassessor/normalizer/gt.py | 194f4269d38af11bad689102232c0643c1b61511 | [
"MIT"
] | permissive | SoftSec-KAIST/Reassessor | cd3e0cb698289b7c0bcf65efc07617d7aaf5d85f | 55d40ec4ebb9c13a0e850967bc2ecc79fe16df25 | refs/heads/main | 2023-03-07T10:18:39.188463 | 2022-12-12T23:56:15 | 2022-12-12T23:56:15 | 537,323,886 | 23 | 2 | null | null | null | null | UTF-8 | Python | false | false | 33,957 | py | import re
import struct
import capstone
import sys
import os
import pickle
import glob, json
from elftools.elf.elffile import ELFFile
from elftools.elf.descriptions import describe_reloc_type
from elftools.elf.relocation import RelocationSection
from collections import defaultdict
from reassessor.lib.types import Prog... | [
"witbring@kaist.ac.kr"
] | witbring@kaist.ac.kr |
d5434e7f51707038dc79b37284a8b24146724f72 | beeee5695deeb3b21eefcf44b31558746e9bc575 | /build/ddynamic_reconfigure/catkin_generated/pkg.installspace.context.pc.py | aac9221fbfafd02e0785370f727f84f86861035d | [] | no_license | mannylazalde/EECS106A | 47db0728a02db498e77184010f1b59983c5a98a2 | 0ac0de951bdba56eb8634711448677b7c8a73114 | refs/heads/master | 2020-09-13T11:48:36.878212 | 2019-12-21T07:03:57 | 2019-12-21T07:03:57 | 222,768,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/cc/ee106a/fa19/class/ee106a-abe/ros_workspaces/project/install/include".split(';') if "/home/cc/ee106a/fa19/class/ee106a-abe/ros_workspaces/project/install/include" != "" else []
PROJECT_CATKIN_D... | [
"mannylazalde@berkeley.edu"
] | mannylazalde@berkeley.edu |
5c0adca41bca66a94c48640ccd512fc21f71e304 | d8ce069f4eee6c9a58fb7980b92d7b36f5698733 | /last_digit_fibo.py | 5c2524cbb36e5bbf6738da7c2c35578c4a37b743 | [] | no_license | vaibhavik/LeetCode | daf37ba88c3c47d05f7387da980a448d90850681 | 0d7bd671a2a5e00446f3a16d5750c74c6a4e08dd | refs/heads/master | 2020-04-27T20:44:42.599566 | 2019-09-11T07:12:08 | 2019-09-11T07:12:08 | 174,668,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | n = input()
f=[]
i=2
f.append(0)
f.append(1)
for i in range(2,n+1):
f.append((f[i-1]+f[i-2])%10)
print f
print f[n] | [
"vaibhavikardale@gmail.com"
] | vaibhavikardale@gmail.com |
ddb5ec09564108fbfb8bbff984793835df0f096f | fea59bd9b97ca20a35315cda3927a261f48b64b4 | /aws/serverlessjams/backend/verify_token.py | 85d8c76036bd22436e2c1269fae5a35d8841cf28 | [
"MIT"
] | permissive | mengwangk/serverless-apps | f2eeb5f43c077e44f578a9e208d22d583615d584 | cd6599c4f932bfceb2021af21ac15ca0d76b56a6 | refs/heads/master | 2023-01-23T09:17:23.580205 | 2021-01-18T15:08:46 | 2021-01-18T15:08:46 | 249,721,001 | 1 | 1 | MIT | 2023-01-09T22:30:23 | 2020-03-24T13:51:58 | JavaScript | UTF-8 | Python | false | false | 1,558 | py | import os
import json
from six.moves.urllib.request import urlopen
from jose import jwt
AUTH0_DOMAIN = os.environ.get("AUTH0_DOMAIN")
AUTH0_API_ID = os.environ.get("AUTH0_API_ID")
def verify_token(token):
# Validate the token to make sure it's authentic
jsonurl = urlopen("https://"+AUTH0_DOMAIN+"/.well-known... | [
"mengwangk@gmail.com"
] | mengwangk@gmail.com |
d7dcf1a33e440f7aba2c1ecc218ad4394276baf1 | 9caaf8613ca4f351275bebc0aa2cbe0f3e65beb0 | /classes.py | 0eda94d15cf5fa3538eb1040b93f9516eea4ce48 | [] | no_license | fatimarenderos/Polyglot-Sidequest | 95e05dd66843d66bb307ec64aa460dd93736a4c8 | 7456adbb3aa12c9b6f675373a759d4eded9349e8 | refs/heads/main | 2023-05-12T06:39:35.958044 | 2021-05-29T00:11:41 | 2021-05-29T00:11:41 | 371,844,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | from enum import Enum
from abc import ABCMeta, abstractmethod
class indicators(Enum):
NOTHING = 0
class lines(Enum):
NOLINE = 0
SINGLELINE = 1
DOUBLELINE = 2
class modes(Enum):
NOMODE = 0
INT_FLOAT = 1
INT_FLOAT_FLOAT = 2
INT_INT_INT_INT = 3
class parameters(Enum):
... | [
"noreply@github.com"
] | fatimarenderos.noreply@github.com |
c2e0c1cfd66bc5b8b7071ef717dd8dbf1b53d813 | 54f438fd29c63aa18bee3319c90b3a4beb98502b | /tests/test-minioconfiguration.py | 8e75e0cbedc2dc8da101b1429c66c1c27864e1f5 | [
"MIT"
] | permissive | ronnyfriedland/minioclient | e949987c8e55f7e67ade30683177ad0b42311064 | b4a55ed62f1d61f39254a4003ee65b3a778f3526 | refs/heads/master | 2020-08-26T19:45:02.041555 | 2020-01-17T19:16:08 | 2020-01-17T19:16:08 | 217,125,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | import unittest as ut
import os
from config.MinioConfiguration import MinioConfiguration
class TestAuthenticationConfiguration(ut.TestCase):
def test_init(self):
result = MinioConfiguration("config-test.ini")
self.assertIsNotNone(result.config)
def test_has_section(self):
self.asser... | [
"mail@ronnyfriedland.de"
] | mail@ronnyfriedland.de |
53a9111f5f398929fad8cf7a9a0bf02ae6d4ea28 | 189dcd9950284a096e6ced953f5c075bd235308f | /py_scripts/COOLH2+H+Hp.py | f53cf5f81647b788f5118aa607f502e809ab0116 | [] | no_license | ANDREMIV/stageM2 | 1ef7144d7ed7463c07b8d74062b4100a78c88f1d | 6886baefb162ac374b182ca5a9618c02d9abfdf2 | refs/heads/master | 2021-04-02T12:28:14.899612 | 2020-06-26T11:48:03 | 2020-06-26T11:48:03 | 248,274,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,436 | py | import matplotlib.pyplot as plt
import matplotlib
import numpy as np
from numpy.random import randn
import os
#In each pop file, you need to manually add number of levels, collisionners in y description, level file name, nbofplots
os.chdir('../')
file = "PD2.txt"
f = open(file, "r")
S=f.read()
A=S.splitlines()
L... | [
"andremiv@live.fr"
] | andremiv@live.fr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.