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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eacf7b7e2e8cbc4bef268a86f4123bc20ea172cb | 1d6a727f7ce4aba5e74b4aea61e5f14a833ab014 | /pytext/main.py | a2a3e0ce3a525bfe8fd998810158e1d292050f24 | [
"BSD-3-Clause"
] | permissive | Smerity/pytext | 56daa678c8ea7f3a48eb074cb11e5ea90fb3ed8d | 3c7ecd48860b9f02680f297873a222fa47d1efe6 | refs/heads/master | 2023-08-10T01:32:46.256450 | 2019-04-05T18:21:38 | 2019-04-05T18:25:05 | 179,795,531 | 0 | 0 | NOASSERTION | 2019-04-06T06:06:09 | 2019-04-06T06:06:08 | null | UTF-8 | Python | false | false | 14,695 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import json
import pprint
import sys
import tempfile
from importlib import import_module
from pydoc import locate
from typing import Dict, List, Optional, Union
import click
import torch
from pytext import create_predictor
f... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
1a9e69058adada5cf59211d0e18c4d57611b5fc0 | dcfd89a6a8ebf3b32948dbf93e222063c223bec4 | /v2/api/Models.py | 3b97f745e06490cfcab6047d4c1f5baeb491b429 | [] | no_license | SirYaro/kdm-manager | a19ff1d7711bc39a2de9e8f740cb03fac28a52b7 | 263d1330764b915f3acb0771e58845020cce06b2 | refs/heads/master | 2021-09-05T05:47:58.511224 | 2018-01-24T15:09:18 | 2018-01-24T15:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,307 | py | #!/usr/bin/python2.7
from bson.objectid import ObjectId
from collections import OrderedDict
from copy import copy, deepcopy
from datetime import datetime, timedelta
import json
from bson import json_util
import inspect
import operator
import os
import random
import socket
from user_agents import parse as ua_parse
fro... | [
"toconnell@tyrannybelle.com"
] | toconnell@tyrannybelle.com |
6a11f96cbc8c1186af1c7cbd1479b1d709b55083 | e9aede4745da6fba31654408e4843175df682adf | /News_Retrieval.py | b14401f087abccf21c7faea71da7440470219c45 | [] | no_license | Susannnn/Information-Retrieval | 378747d7b9cf000355d28c9d35649baf8dd215a9 | 36ff660e3dac486699e5862706f9ff53595c683b | refs/heads/master | 2021-04-06T21:20:54.776448 | 2020-03-25T14:49:14 | 2020-03-25T14:49:14 | 248,614,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | import pandas as pd
from newsapi import NewsApiClient
# Initialisation
newsapi = NewsApiClient(api_key='dcb7e5eba8914cdda61d0c092d776c92')
# Retrieve all the news written in English between specified date
all_articles = newsapi.get_everything(q='coronavirus',
from_param='2020-02-... | [
"noreply@github.com"
] | Susannnn.noreply@github.com |
fbd5434718f074b8215b74b61004255aac3896fb | 59ea89f1162f8048d9f7f10f6e6a3a1567c56607 | /python/bil_decode_gabor_itc_binning.py | 51d7409843d01aaea7582a440a6139510cbb5533 | [] | no_license | elshafeh/own | a9b8199efb3511aa1b30b53755be9337d572b116 | ef3c4e1a444b1231e3357c4b25b0ba1ba85267d6 | refs/heads/master | 2023-09-03T01:23:35.888318 | 2021-11-03T09:56:33 | 2021-11-03T09:56:33 | 314,668,569 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,512 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 23 15:22:50 2019
@author: heshamelshafei
"""
import os
if os.name != 'nt':
os.chdir('/home/mrphys/hesels/.conda/envs/mne_final/lib/python3.5/site-packages/')
import mne
import numpy as np
from mne.decoding import (SlidingEstimator, cross_v... | [
"elshafeh@gmail.com"
] | elshafeh@gmail.com |
1ae466d23222088d28716c1920a9d455e51dde44 | d9776a630c276c4779501afede9bd20331b8c0bc | /Homework_3/mean.py | 017eedb9661ddce14ba3509e32cab4ce491015b5 | [] | no_license | itsEdu/CSCI220-Introduction-to-Programming | 38b62f532327170ec2663866b86cec09215bfbf2 | f2a3a9a4028e1b61709a8ebf3bee3bfbfb78c27f | refs/heads/master | 2020-09-13T08:30:35.675373 | 2017-10-10T13:52:03 | 2017-10-10T13:52:03 | 73,516,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | '''
Name: Eduardo Abreu
Problem: Write a Python program designed to output the
RMS (root-mean-square) Average and the Harmonic Mean.
'''
import math
def parseRawLst(rawLst):
lst = rawLst.split(",")
newLst = []
for numString in lst:
newLst.append(int(numString))
return new... | [
"noreply@github.com"
] | itsEdu.noreply@github.com |
58cd54b5f3208c9da701917f46cc021dda256bf4 | 7bf444edaa9305b3fac1197ff9661c61011bfcc4 | /Zoddok/shop/products/migrations/0011_product_favorite.py | ff21f1d0aea50809c47628b86a6a669de85e5925 | [] | no_license | ViralSoni104/Shopping-Site | 5f4d3e123ad6918efd643be37b3bcd4d120d627d | 33053ba62e4bc8a5a060c0c958951d67739c8929 | refs/heads/master | 2023-02-13T13:21:34.324448 | 2021-01-12T06:41:53 | 2021-01-12T06:41:53 | 290,803,336 | 0 | 1 | null | 2020-10-01T12:56:30 | 2020-08-27T14:51:17 | CSS | UTF-8 | Python | false | false | 534 | py | # Generated by Django 3.0.8 on 2020-09-29 19:26
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('products', '0010_delete_team'),
]
operations = [... | [
"47710626+ViralSoni104@users.noreply.github.com"
] | 47710626+ViralSoni104@users.noreply.github.com |
fbb2860ca4221244c0a63770d79e6e96dac90529 | 3603f8f76ff81ea75bfc916888bdcfa55b7f12e4 | /alds/alds1_6_c.py | ac675e72489195bfa0b40dd0da0ab01f62841d94 | [] | no_license | kimotot/aizu | 4de0319959a3b166b8c2c4940ab7b701b6ee3395 | 315be1240cff733e1c6a7cd98942a95b3bd7ec96 | refs/heads/master | 2021-07-24T12:37:41.935302 | 2021-03-10T09:05:05 | 2021-03-10T09:05:05 | 91,927,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | def decode():
n = int(input())
cards = []
for i in range(n):
[m, v] = input().split()
cards.append((m, int(v), i))
return n, cards
def partition(a, p, r):
x = a[r][1]
i = p - 1
for j in range(p, r):
if a[j][1] <= x:
i += 1
t = a[j]
... | [
"god4bid@hear.to"
] | god4bid@hear.to |
84330694197b406ea79fd66aedead88784a21bdd | 602f46f5b16f50ac3ca7883b95cd07a6b9010e00 | /chocolatefeast.py | 378759f2a7d5cb06f8d7820e2556749c8cb65739 | [] | no_license | raghothams/rankerhack | bf88c5fc4c6c78ba49c900489859a9f57eaf09f5 | 67fa4ea7de36d4eaf710a1d52cfe5df3fb57dd10 | refs/heads/master | 2016-09-10T15:41:36.899940 | 2014-05-05T04:20:22 | 2014-05-05T04:20:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py |
T = int(raw_input())
for i in range (0,T):
N,C,M = [int(x) for x in raw_input().strip().split(' ')]
total_choc = 0
chocs = 0
if N > C:
total_choc = N / C
wrappers = total_choc
while wrappers >= M:
chocs = wrappers / M
wrappers = (wra... | [
"raghotham.s@gmail.com"
] | raghotham.s@gmail.com |
ee5c4afe63fa31ea2d01bec4656b019058d5622e | 2feb50463d6b21162664c1592ffa6f3c1db7a122 | /board/workSpace/main.py | 970fb957d4105dcf2c2dc3e667c8c157ec9df79c | [] | no_license | Lancer-zhang/ESP32_MQTT | fccacff7678c3c986ed689229c01fdc5b1a77d50 | bbf304e84241415e9a6adb3b42e283b4f0b6a119 | refs/heads/master | 2020-06-18T05:10:03.492147 | 2019-07-10T09:52:44 | 2019-07-10T09:52:44 | 196,174,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | import subcriber
subcriber.mqtt_connect()
| [
"zhangyufei@hangsheng.com.cn"
] | zhangyufei@hangsheng.com.cn |
665a87a65f3939ca3dfd6824b1d96fcfadf8dae7 | 120a41a50c1127e88e4e4d4781625394c0d6047e | /imu_9drazor/scripts/msgConverter.py | ea8dbb5bbcfe0fd77a91f5866b16d1bfa67d9a6f | [] | no_license | adasta/rutgers-ros-pkg | 0004ed77ef1202c9f0c169a73f851f6c1396ebf3 | 93b88641ea60d06a5b1ea8af5f823b81c1c98e2b | refs/heads/master | 2018-12-28T18:29:47.943244 | 2011-01-29T22:26:56 | 2011-01-29T22:26:56 | 849,863 | 1 | 0 | null | 2014-07-04T16:30:17 | 2010-08-19T21:26:59 | C | UTF-8 | Python | false | false | 1,757 | py | #! /usr/bin/env python
# ROS driver for Sparkfun 9degree of freedom AHRS
#
# microstrain stdev="0.00017"
# cov = (std*std)^2 (ie variance * variance)
# since the sparkfun imu cant be as good as the microstrain, i am going to say
# that the std = 0.01
import roslib
roslib.load_manifest('imu_9drazor')
import rospy
impo... | [
"adasta@gmail.com"
] | adasta@gmail.com |
0b06ccb8ca16626f5a41f60647f485724de940ff | f232e836ed460fe23c76b48573fb1b3c7d6c8150 | /engine/api/router.py | 3bce071710b0af950cc09df7319028bb18fc5016 | [
"Apache-2.0"
] | permissive | subratcall/katana-skipper | 6b5e768841e91a11f569270dbd53764899fe01af | aa9bef644c27caa4d8515e3bded322860111e915 | refs/heads/master | 2023-05-28T09:59:52.518915 | 2021-06-04T20:11:30 | 2021-06-04T20:11:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,127 | py | from fastapi import APIRouter
from .models import WorkflowTask, WorkflowTaskResult, WorkflowTaskData, WorkflowTaskCancelled
from .tasks import process_workflow
from celery.result import AsyncResult
from fastapi.responses import JSONResponse
import json
from .backend.event_producer import EventProducer
router_tasks = A... | [
"andrejus.baranovskis@gmail.com"
] | andrejus.baranovskis@gmail.com |
934c5f591cbd1e889937d83917b0417c2fa830bf | d9f0789ed43b0870f3a93675c511afa6844cd9ee | /venv/bin/python-config | 87643da503fdf2e6f588cc256a118c10133d96e9 | [] | no_license | fmors/webdiff | 7d3e194440b69272c4723354c02eaf53e8fb4a1b | 9abd2a07f80ff30ed98b4dcd96ac0a92384e5c20 | refs/heads/master | 2021-05-07T09:11:48.787934 | 2017-11-06T00:57:12 | 2017-11-06T00:57:12 | 109,513,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | #!/home/fernando/Documents/webdiff/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.vers... | [
"fernandomslvr@gmail.com"
] | fernandomslvr@gmail.com | |
10f845697bd2d9209660d1082d7ed90a2352d08d | 6f2cccf7c9aaa8f473ca1749ebd4e0f62b3452e8 | /edX/Introduction into Programming - Python (MIT)/Problem Set 4/ps4b.py | 98b80fbf2ee81f7c5d5c467c1248454df4f55ba4 | [
"Giftware"
] | permissive | abudish/Course_Materials_and_Certificates | 01138ef2203800f6c279cfd68d8ad5eea4a07c5d | fee27859569624f1e8df143001e1ab995b10088c | refs/heads/master | 2021-06-04T09:15:20.516215 | 2020-12-17T18:16:19 | 2020-12-17T18:16:19 | 109,249,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,698 | py | from ps4a import *
import time
#
#
# Problem #6: Computer chooses a word
#
#
def compChooseWord(hand, wordList, n):
"""
Given a hand and a wordList, find the word that gives
the maximum value score, and return it.
This word should be calculated by considering all the words
in the wordList.
... | [
"andreybudish@gmail.com"
] | andreybudish@gmail.com |
a9d91b1bfd4583bb647e6e8df8bfea24c76353a5 | 41b6d42bfc8b0ce28952595132ce93a0e75176dd | /2020/12/A - Calc.py | 9a5ed757c746c4a793821cb5fa4f3b28e14d2970 | [] | no_license | g0-I/AtCoder_log | e013103d88855146c474756d84f81a47811765f9 | db29528a80c7332e5bd7b401575e881682eb1929 | refs/heads/main | 2023-03-29T15:27:31.388324 | 2021-04-11T15:00:52 | 2021-04-11T15:00:52 | 302,367,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | a = int(input())
print(a * (1+a*(1+a)))
| [
"noreply@github.com"
] | g0-I.noreply@github.com |
5e3fbd7e68a9f9a546b5ab547039decf8d759b24 | c50cf19707ecf44c8e15acf0e994d288fe4f01a7 | /credit/admin.py | d27528df722953df4b3f2fcffcb8d2b79e4637f8 | [
"MIT"
] | permissive | JeremyParker/idlecars-backend | ee5981356c60161dee05c22e01e5c913e73083c0 | 819cce48e4679d61164b238b81dab0e4d51b8afa | refs/heads/master | 2021-03-16T04:29:43.287760 | 2018-03-03T23:16:02 | 2018-03-03T23:16:02 | 31,734,223 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # -*- encoding:utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from credit import models
class CustomerAdmin(admin.ModelAdmin):
readonly_fields = [
'user',
'invite_code',
'invitor_code',
'invitor_credited',
]
list_display = [
'use... | [
"github@jeremyparker.org"
] | github@jeremyparker.org |
ce580dc80f9d1e254df39bbd9c803c0514315380 | ffaba5d94ea820281fee39be0841e3bf08ed157c | /setup.py | c3e69ea047bbcb8f389a65050e82f6fedcd67a85 | [
"MIT"
] | permissive | arruda/Twitter-Get-Old-Tweets-Scraper | d532e316ce013f94426bb9c999112c554b0f585f | 6999a2c72df3866cb4a196370172c50b90b57e8d | refs/heads/master | 2020-03-19T17:29:46.926370 | 2018-06-10T06:09:32 | 2018-06-10T06:09:32 | 136,762,748 | 1 | 1 | MIT | 2020-03-19T06:35:05 | 2018-06-09T22:35:46 | Python | UTF-8 | Python | false | false | 1,202 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.md') as readme_file:
readme = readme_file.read()
requirements = [
"pyquery>=1.2.17",
"requests>=2.13.0",
]
setup_requirements = [ ]
test_requirements = [ ]
setup(
au... | [
"felipe.arruda.pontes@gmail.com"
] | felipe.arruda.pontes@gmail.com |
597ea0852a5bef65bea9fe83d2dcac3322fadd3f | 1165e63f222dc7a139cb3005e205f27e44ed0826 | /plus_one.py | 215778018d933be99abdee6bd85e884727cdfc91 | [] | no_license | misrashashank/Competitive-Problems | ac6c80c6a7d8365004452552a06801ac002ef809 | bcd5517fe834062c9e941300ad07a37efdff9c75 | refs/heads/master | 2021-07-19T09:42:41.221405 | 2020-05-16T22:04:46 | 2020-05-16T22:04:46 | 162,201,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | '''
Given a non-empty array of digits representing a non-negative integer,
plus one to the integer.
The digits are stored such that the most significant digit is at the head
of the list, and each element in the array contain a single digit.
You may assume the integer does not contain any leading zero,
except the numb... | [
"misra.shashank1@gmail.com"
] | misra.shashank1@gmail.com |
ec81c5347f900f5b8390d51c5ec6dc1d24fd7dd3 | b29349323954d7a7036f56cef4139ed2c8fcb4f0 | /scripts/color_sample.py | cbecd9d3b9924273ebb76deaaba6cd36e6b5d975 | [
"MIT"
] | permissive | JDevlieghere/dotfiles | e23098fb0241367764243531804c8b9f0ef41ac5 | 09fbb4369c2e54dd38c2566a283eb05864499068 | refs/heads/main | 2023-09-01T02:23:14.303513 | 2023-08-23T16:36:05 | 2023-08-23T16:36:05 | 39,687,300 | 336 | 123 | MIT | 2020-02-24T05:32:45 | 2015-07-25T13:52:36 | Perl | UTF-8 | Python | false | false | 2,707 | py | #!/usr/bin/python3
"""
usage: color_sample.py [-h] [file]
Color a call tree file generated by sample
positional arguments:
file sample file
optional arguments:
-h, --help show this help message and exit
"""
import re
import argparse
import fileinput
import bisect
END_MARKER = "Total number in stack"
BE... | [
"jonas@devlieghere.com"
] | jonas@devlieghere.com |
8fe9a9aa9e67b8b7e97efc8e2c7a2c3c38191481 | 56383649a68bae78972299a06a072605379303de | /Practice Midterm 2 2016 Spring.py | 29c8807f857eb83f272435cd3d26b4d267665090 | [] | no_license | ChainsawRambo/NJIT-CS-100 | 3b4edd4dbce498ac608d9e107d852fc0d6cdfe9f | ff5791c2efc20469b468152c0bfdc34dc303ac13 | refs/heads/master | 2020-09-30T00:44:55.828705 | 2019-12-10T16:02:14 | 2019-12-10T16:02:14 | 227,159,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | #Devon Keen
##CS 100-017
#10/29/18
#Practice Midterm 2 2016 Spring
#MCQ
#1. a
#2. d
#3. c
#4. d
#5. e (nothing happens when you run it, only an empty line)
#6. e (Key Error)
#7. c
#8. d
#9. d
#10. e (answer is 4)
#11a.
def capitalL(t,width):
height = 2*width
t.down()
t.forward(wid... | [
"noreply@github.com"
] | ChainsawRambo.noreply@github.com |
e12d33b1eaa43f0f96a5312c21d3e31d8d937c06 | c3df0f8ed5b7ad2ebc387b1f49430f9a31a5ef23 | /mychannels/settings.py | 99d8408da203cdcbdd9cf841dd41cd0bd362985c | [] | no_license | leonardo1497/myChannels | a05352a6a812b4883ee4a259493202646bf8b9a7 | 1f977a4b53d0561a76b6260dac656204c6bf3f26 | refs/heads/main | 2023-02-01T00:35:17.517485 | 2020-12-17T23:38:05 | 2020-12-17T23:38:05 | 322,436,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,740 | py | """
Django settings for mychannels project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from path... | [
"1497enrique@gmail.com"
] | 1497enrique@gmail.com |
570829b019832f73ad2eafe492f835da998da1ee | 1dfb14458c4f968e685ed6ef79a21c849e7f896f | /website/urls.py | ffc36dcd2ddd9d8c00dd6b914f8e8f77c1b0c683 | [] | no_license | Mirofd33/website | 93af79edee34b307d15c4fa8adf54f91776e1206 | 1e10eab38316cce9e69e1cc11935d3e39b96118f | refs/heads/master | 2023-04-10T10:15:39.811956 | 2021-04-08T03:42:41 | 2021-04-08T03:42:41 | 363,418,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | """website URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"xunsizuobi84@126.com"
] | xunsizuobi84@126.com |
4e2e0d61af7f46cb132981be20e6f6fd6aae140e | ae677649b6a862b57bb82b0a87f113743b14cd62 | /taxi/taxi/urls.py | a8a751820d15109d69151ef8236c467ac9fe4742 | [
"Apache-2.0"
] | permissive | rombr/agile-fusion-test-task | 6e5b32159f5b4efd3f60cd75e3668417562aaa46 | eacf3d5e41afdac9b88658e9ddd1e0dc8fef7631 | refs/heads/master | 2021-01-10T04:22:58.402845 | 2015-11-23T17:35:20 | 2015-11-23T17:35:20 | 46,679,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """taxi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"rombr5@gmail.com"
] | rombr5@gmail.com |
f23bd713f2e4459533a57f0986fe4a39bbce0390 | 0b2a4ddaaf35b9a6101ef54ef9831519390488b9 | /interleave/interleave.py | d47caa5644926ea4db0d7f57774751bb2aa7a7d3 | [] | no_license | mUtterberg/python_morsels | 074c98b68497de21e97aab4e5f2f695f6a2751f3 | 09266424ead659b1e8e0a489c878ca828c5e7520 | refs/heads/master | 2021-06-07T17:50:32.665461 | 2021-04-30T19:16:14 | 2021-04-30T19:16:14 | 148,316,985 | 2 | 1 | null | 2019-06-01T11:18:38 | 2018-09-11T12:54:10 | Python | UTF-8 | Python | false | false | 163 | py |
def interleave(list_1, list_2):
for (item_1, item_2) in zip(list_1, list_2):
yield item_1
yield item_2
if __name__ == "__main__":
pass
| [
"Marissa@UtterbergDataDev.com"
] | Marissa@UtterbergDataDev.com |
671beb39be989c85863783d02e141e31d53be4be | 8516bcb2cd4f40f5fbdff488605019d6c7ac3e01 | /accelerator/twitter_handle_cleanup/organization_cleanup.py | b0db1610538e12a45761a9b1ba5bd4fba7ebdfe9 | [
"MIT"
] | permissive | masschallenge/django-accelerator | 0b0782ceb3b010715fbe829f774246ca4a68af23 | 665351d06c2adc65c48642905c499b8226276d12 | refs/heads/development | 2022-11-22T18:40:08.410117 | 2022-11-10T15:11:38 | 2022-11-10T15:11:38 | 94,241,861 | 6 | 0 | MIT | 2022-11-10T15:11:40 | 2017-06-13T17:55:54 | Python | UTF-8 | Python | false | false | 1,760 | py | import re
from .utils import (
remove_leading_slashes,
remove_trailing_slashes,
remove_trailing_and_leading_whitespace,
remove_leading_hashtag_on_valid_twitter_handles,
remove_twitter_url_prefix_from_handles,
remove_not_available_abbreviation_from_twitter_handles,
remove_hashbang_from_twitt... | [
"vincenthokie@gmail.com"
] | vincenthokie@gmail.com |
75a5ad57248ab570bc94a24c02b246e07f9534cf | f9e105785cad44fc7b492ed1b0a16e28e7535423 | /ros_workspace_TETRIX/ros_workspace/build/rpi_camera/catkin_generated/pkg.installspace.context.pc.py | 10955a5a4d43251c247852aef9606411372c559a | [] | no_license | lnewbrook/Robotics | 04bfa8b84b91f6c25cea3a9eb3230bdb135ea9a9 | f8b7829cc53957c5574f6c7baca34d107ca00be9 | refs/heads/master | 2021-01-01T20:19:11.109983 | 2014-12-19T01:23:46 | 2014-12-19T01:23:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | CATKIN_PACKAGE_PREFIX=""
PROJECT_ABSOLUTE_INCLUDE_DIRS=""
PROJECT_CATKIN_DEPENDS=""
PKG_CONFIG_LIBRARIES_WITH_PREFIX=""
PROJECT_NAME="rpi_camera"
PROJECT_SPACE_DIR="/home/pi/ros_workspace/install"
PROJECT_VERSION="0.0.0"
| [
"jialiang@berkeley.edu"
] | jialiang@berkeley.edu |
c10bc84fef0f66a4b4a58a2786700ce395a7866b | d9c9a5cfbcc6635785bfee750b96869c2308a98a | /pde.py | 9b39f39b8f945a70aa23a63c61cf2a111df71749 | [] | no_license | neolee/learn-tf-1.0 | 39ce2cba4cdcf32b15a4775dccaa482c2f03c0f5 | 3db65da4e28beebdad692e1a0a6e155bbd6cbdca | refs/heads/master | 2021-09-18T12:58:57.759275 | 2018-07-14T10:31:43 | 2018-07-14T10:31:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | import tensorflow as tf
import numpy as np
import PIL.Image
from io import BytesIO
def draw_array(a, fname, fmt='jpeg', range=[0, 1]):
"""Draw an array as a image file"""
a = (a - range[0]) / float(range[1] - range[0]) * 255
a = np.uint8(np.clip(a, 0, 255))
with open(fname, 'w') as f:
PIL.Ima... | [
"neo.lee@gmail.com"
] | neo.lee@gmail.com |
00342589534bc8d2b1b183d4fffc87cf8363fd73 | 63deaf056c59db72a1df338fddaa99453a4fbb6f | /haystack/nodes/question_generator/question_generator.py | 05f26d5e7c577959fa1f867d3c7a54e6e78f10f1 | [
"Apache-2.0"
] | permissive | aantti/haystack | 60efb46b090fdaf3b00e14e9b16afb617107a7fe | 6f6f2357fdef9e98850a7ffcd80f18b05aa7cfaf | refs/heads/master | 2023-08-20T23:41:10.416841 | 2021-10-26T09:47:25 | 2021-10-26T09:47:25 | 339,123,743 | 0 | 1 | Apache-2.0 | 2021-02-16T15:15:18 | 2021-02-15T15:39:59 | null | UTF-8 | Python | false | false | 5,386 | py | from typing import List
from transformers import AutoModelForSeq2SeqLM
from transformers import AutoTokenizer
from haystack.schema import Document
from haystack.nodes.base import BaseComponent
from haystack.nodes.preprocessor import PreProcessor
from haystack.modeling.utils import initialize_device_settings
class Q... | [
"noreply@github.com"
] | aantti.noreply@github.com |
037c4ca4bc34aaba9dbec1cf244192ff70767f46 | ebc021c80facc0026934f2e8a8b430ef89081126 | /CalBarraMomentum.py | f27735a2f21d0a78bc9b2c12a09d5619efe1d74d | [] | no_license | lxj0276/BARRA_risk | 22af9d7eb9d21e876f8dd527805e6b89adddf5eb | 76d7c6cc4a93b219922b9382bf308692eea63476 | refs/heads/master | 2020-11-28T06:31:39.397308 | 2019-12-20T06:58:18 | 2019-12-20T06:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,760 | py | """
Created on Wed Nov 13 2019
@author: heyuan
"""
import pandas as pd
import numpy as np
import math
import datetime
import sqlalchemy
import urllib
from sklearn import datasets, linear_model
def linear_regression_int(X,y):
reg = linear_model.LinearRegression()
reg.fit(X,y)
return reg.intercept_
def cal... | [
"noreply@github.com"
] | lxj0276.noreply@github.com |
98295b2cb205c7507e6df57bc7fb0cb355b566da | 253ba65cb5b3267cc40e75416ca385fa34f3e4b9 | /pages/urls.py | c6fb117b6ba56045fd7628cfd07457fc5cb9ae44 | [] | no_license | hijal/Sharing-Caring | 3cf67fa358c7be343c2355031887db81c2f5c9d1 | 75b17b13bb67e37c5ecf8a33fcf99b598886061e | refs/heads/master | 2020-04-11T07:23:17.577335 | 2018-12-14T16:20:26 | 2018-12-14T16:20:26 | 161,608,567 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from django.urls import path
from .views import HomePageView
urlpatterns = [
path('', HomePageView.as_view(), name = 'home'),
] | [
"hijikeshhijal@gmail.com"
] | hijikeshhijal@gmail.com |
09a6fa7f3033f4fb40be0af0bda8c23201095e4a | 4d097d0e8c571874761463f698f5d34e38e549a0 | /python/b_1002 터렛.py | dbb3151cd939c0f0d6da6eb38b86c8cf3d2fd6e3 | [] | no_license | sondongmin0419/study | 533832151958fe8ae178d8aee183edf91ffa7e12 | 0c863e2c9111b35a15ccfaec3cc64828c584beb1 | refs/heads/master | 2023-03-24T11:54:04.139399 | 2021-03-15T13:40:21 | 2021-03-15T13:40:21 | 281,695,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import sys
input = sys.stdin.readline
n = int(input())
for TC in range(n):
x1, y1, r1, x2, y2, r2 = map(int, input().rstrip().split())
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
if x1 == x2 and y1 == y2:
if r1 == r2:
print(-1)
else:
print(0)
elif r1 + ... | [
"dongmin.dev0419@gmail.com"
] | dongmin.dev0419@gmail.com |
eb6166eec43fe151d8738787a51a433ff70d1972 | 5b9f7edaf22297d0d6d0239135f1b2484fd24b34 | /module07.mysql.with.python/exercise08.py | 9aad91a512ff126d042535a8a26bd58f3cb5c995 | [
"MIT"
] | permissive | deepcloudlabs/dcl162-2020-sep-02 | 925791b5c7adae8263e82a3c9a6a406d0b68eb0e | abd21c59d89985e9f5922df65fd1a5ccab019de4 | refs/heads/master | 2022-12-12T16:10:58.497846 | 2020-09-04T18:16:06 | 2020-09-04T18:16:06 | 291,666,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import mysql.connector
my_connection = mysql.connector.connect(host="localhost", user="root", password="Secret_123", database="world")
my_cursor = my_connection.cursor()
sql = "select ctry.name, city.name from country as ctry inner join city as city on ctry.capital = city.id limit 10"
my_cursor.execute(sql)
result... | [
"deepcloudlabs@gmail.com"
] | deepcloudlabs@gmail.com |
aafad1db0c1f63a9bddf8464f320ab460c616abe | 59d2d80ee18056525576e000a8ffb1c8a4501677 | /catalog/suggested/priority_queue/heap.py | 2d3d50d618466726596a5587cafa8c8d5e745aa5 | [] | no_license | tashakim/code-catalog-python | bbc04df54ba8f341c5d050d07df2da8242131085 | ed95d93c1c5fdfb01b6d2bd0c82df543abe364f8 | refs/heads/master | 2022-11-09T04:11:02.725197 | 2020-06-16T05:58:29 | 2020-06-16T05:58:29 | 272,621,835 | 1 | 0 | null | 2020-06-16T05:56:13 | 2020-06-16T05:56:13 | null | UTF-8 | Python | false | false | 1,427 | py | import numpy
def heap_sort(data):
heapify(data)
end = len(data) - 1
while end > 0:
data[end], data[0] = data[0], data[end]
end -= 1
sift_down(data, 0, end)
def heapify(data):
length = len(data)
for i in reversed(range(length // 2)):
sift_down(data, i, length - 1... | [
"john@readyprompt.com"
] | john@readyprompt.com |
970ad4b252df9b176f270a8a96ab8183609bc98c | 4936ea31ff84de57c2e646fef8cbb04516c03c99 | /reviews/management/commands/seed_reviews.py | d2b898129c630f95034dcbb3361b157219d10169 | [] | no_license | kkhh9469/airbnb-clone | e47b19f7231b156055025e629e6b4a5e428d5f67 | d9eae1a0e976b181f28d2f880d784f646fca545d | refs/heads/master | 2023-02-01T04:13:15.705941 | 2020-11-27T14:30:41 | 2020-11-27T14:30:41 | 293,695,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | import random
from django.core.management.base import BaseCommand
from django_seed import Seed
from reviews import models as review_models
from users import models as user_models
from rooms import models as room_models
class Command(BaseCommand):
help = "This command creates reviews"
def add_arguments(self,... | [
"66230761+kkhh9469@users.noreply.github.com"
] | 66230761+kkhh9469@users.noreply.github.com |
8439d19170cf896f5580caa519a737b1e0e12471 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/o11_j200739+544516/sdB_O11_J200739+544516_lc.py | c712c7ed5a3afda832ff3ba22080131102af8479 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[301.9125,54.754444], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_O11_J200739+544516 /sdB_O11_J200739+544516_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
f66ef8809a3ce8550baa37b01d6fbfb57d59fe22 | 041469cfe025d838bba0a40ca172d2874605d618 | /Python/environments/djangocourses/djangocourses/settings.py | 8f0a825cf27998f2d1cecfc8940ff19d5768cbba | [] | no_license | anarslez/repo1 | 06816547b21504e46fa0840e9c898c3470195321 | 625befde39851d9a3bb9dfd09067f344ce68665e | refs/heads/master | 2020-03-24T19:23:52.235714 | 2018-09-11T03:59:14 | 2018-09-11T03:59:14 | 142,923,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,137 | py | """
Django settings for djangocourses project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | [
"anarslez@gmail.com"
] | anarslez@gmail.com |
04a545784e294c836de742a6d821a7fb037be579 | 47af6dffa5c13dc07c5fbd2ca5fe737a0b07b7e9 | /translateAPI.py | 61e26bfe69636a000a8c29d175a6f7c91e72cd31 | [] | no_license | RootReturn0/Dictionary_Translate | d5c786c24ff9eaa24b4494e8df5e87489f1ac438 | 9962dd60b2c6107505e203a62b0578852c86dccb | refs/heads/master | 2020-08-25T02:16:29.462522 | 2020-01-09T02:54:18 | 2020-01-09T02:54:18 | 216,947,461 | 0 | 0 | null | 2020-01-09T02:58:47 | 2019-10-23T02:06:43 | Python | UTF-8 | Python | false | false | 2,840 | py | import requests
import http.client
import hashlib
import urllib
import random
import json
URL_TRANSLATE_API = 'http://fanyi.youdao.com/openapi.do?keyfrom=neverland&key=969918857&type=data&doctype=json&version=1.1&q='
def translateByAPI(word):
word = word.replace('_',' ')
res = youdaoTranslate(word)
# pri... | [
"1121149171@qq.com"
] | 1121149171@qq.com |
805a2619d4e4da6de40c77151c12caa6c35600e0 | 3ede8e6338936e08e6283b68bac0cb4e952b1b24 | /bytedance/question1/solution.py | dddcefb44c2dfe751b9d299332f8e24fe9209c49 | [] | no_license | Lemonstars/algorithm | 501726d40958c77a1f45520a68d43a04014aa2d2 | 944b633bc2718382628adfc136d72e3073fa2f03 | refs/heads/master | 2022-08-11T02:25:41.618059 | 2022-08-03T14:25:55 | 2022-08-03T14:30:29 | 173,030,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | # #coding=utf-8
# # 本题为考试单行多行输入输出规范示例,无需提交,不计分。
# import sys
# for line in sys.stdin:
# a = line.split()
# print(int(a[0]) + int(a[1]))
# 本题为考试多行输入输出规范示例,无需提交,不计分。
import sys
import copy
if __name__ == "__main__":
matrix = list()
for line in sys.stdin:
values = list(map(int, line.split()))
... | [
"mf1832103@smail.nju.edu.cn"
] | mf1832103@smail.nju.edu.cn |
fb64fe96d5866e6d6d405688f7e9a08ddb4cbd37 | 5cde49b859956e2d56e17d8314e238524367b504 | /asst3/newspaper/newspaper/settings.py | 676b7ee2f4898f1d5af122ef02d6f3acdffcf650 | [] | no_license | mridunanda/crimsoncomp | cce5f21b1475a495e7ab0766ec4fcd2936e78a3f | 18d73bc174a7af176ec2587a0ec60a86e3823475 | refs/heads/master | 2021-08-15T02:46:41.329831 | 2017-11-17T07:26:44 | 2017-11-17T07:26:44 | 104,650,956 | 0 | 0 | null | 2017-09-24T14:38:44 | 2017-09-24T14:38:44 | null | UTF-8 | Python | false | false | 3,188 | py | """
Django settings for newspaper project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import ... | [
"mridunanda@Homes-MacBook-Pro-2.local"
] | mridunanda@Homes-MacBook-Pro-2.local |
d446ecb118b19a35a16437d69b3143f2f614af98 | 3ceac0fdd6a6fb90c5402d3d5725dd13bd6c2ffe | /implementingnbdev/__init__.py | ca9ace776d2d4525b40fcbc9f056ca6ea2ffd1ed | [
"Apache-2.0"
] | permissive | leanne-kim/implementingnbdev | c75c54fa1943a6f6001091e83982ebb5c15422a7 | b4074c5723e698ff3fa5da2c72dc1d6087d52795 | refs/heads/master | 2023-04-12T22:27:29.094796 | 2020-01-17T15:48:22 | 2020-01-17T15:48:22 | 232,628,594 | 0 | 0 | Apache-2.0 | 2023-04-11T23:28:00 | 2020-01-08T18:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 44 | py | # from .core import *
__version__ = "0.0.1"
| [
"leanne@hellosoda.com"
] | leanne@hellosoda.com |
cae1a3b6d452892aea1aa186f1cdd345680d6a9d | 8c141f5f6672c59bf9fce7d87767a295bb4ddfae | /setMeeting.py | f8b1572a31a7693a54424e0a048c3d01a50291b6 | [] | no_license | saurabhkm/outlookAutomation | fb80e6407aacdb081bbdc3c0490cb5fdeb3a26ee | 9aadfc953108aefd1eeb857642f2849e9df3e337 | refs/heads/master | 2020-04-17T11:33:26.107208 | 2019-01-19T12:41:18 | 2019-01-19T12:41:18 | 166,545,186 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | import win32com.client
import datetime
OUTLOOK_FORMAT = '%m-%d-%Y %H:%M'
outlook_date = lambda dt: dt.strftime(OUTLOOK_FORMAT)
reminder = 15.5
oOutlook = win32com.client.Dispatch("Outlook.Application")
appt = oOutlook.CreateItem(1) # 1 - olAppointmentItem
#appt.Start = '2012-03-8 17:00'
appt.Start = outlook_d... | [
"saurabhkm007@gmail.com"
] | saurabhkm007@gmail.com |
d80af6ac6caa716e1f7c8f2cf9d5a0cab2561abb | 3b924c7eaf9f3df55df530b9b327a1e9ccdb9d17 | /tests/ui/screens/test_select_session_screen.py | ea9a386cee45d881930554ae8e5e4b07f2507d9f | [
"MIT"
] | permissive | ConstantinUrzica/mitzasql | 6209705a633951039ca873a55ed0a2ed16e1b08f | a0700c0bb159a770bf1f10f2826cefa0343dc724 | refs/heads/master | 2020-05-23T22:14:55.178028 | 2019-05-15T20:08:56 | 2019-05-15T20:08:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,865 | py | import tempfile
import os
import pytest
from mitzasql.ui.screens.session_select import (session_select, states)
from mitzasql.ui.widgets.saved_sessions_list import SavedSessionsList
from mitzasql.ui.widgets.create_new_session_dialog import CreateNewSessionDialog
from mitzasql.ui.widgets.edit_session_form import EditSe... | [
"vlad.balmos@gmail.com"
] | vlad.balmos@gmail.com |
07fa8c07b29110af5236f5a4438944f41a3b977f | ae7b48957fd15d3b79c62b0f936b18dd77878e6c | /rho_v_h.py | 2769bed66579326915e7d4d0000159cf81414d6f | [] | no_license | PDI16A/LAB3 | 856bd093784b46470c22dcb19c4b12e32f9ace2e | e620deefdbeb76d1f058b438d392183c43356b42 | refs/heads/master | 2020-12-25T14:39:16.278787 | 2016-06-07T17:27:37 | 2016-06-07T17:27:37 | 60,563,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,680 | py | import os
from SimpleCV import *
import matplotlib.pyplot as plt
import time
from pylab import imshow, figure, show, subplot
import numpy as np
import Image
import cv2
import math
def rho_v_h(img, promedio_rho):
b,g,r = cv2.split(img)
dimX,dimY = img.shape[:2]
A_h_r = 0
A_h_g = 0
A_... | [
"guimachuca@udec.cl"
] | guimachuca@udec.cl |
98578271ff134621aa5698f8dad4dd7168228fea | c4570396268e99fe4baca1260274cc95f4581723 | /src/contest/weekly-contest-187/code_5402.py | 77ffe466d524c51d3bcd039498280e2d530fba9c | [] | no_license | fanzijian/leet-code-practice | c255b5c49df72529a23a42452fb09d2ca5de51a0 | 70a580603d996d9843cda3c167c6e63c29df6656 | refs/heads/master | 2021-05-25T16:05:13.451770 | 2020-11-09T15:01:06 | 2020-11-09T15:01:06 | 253,818,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
"""
?????https://leetcode-cn.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit/submissions/
Authors: fanzijian
Date: 2020-05-03 11:23:56
"""
class Solution(object):
def longestSubarray(self, nums, limit):
"""
:ty... | [
"1158534904@qq.com"
] | 1158534904@qq.com |
ee8aa99ade23479a983764da1775a04a61b82685 | 0c9b91297ba31935c57c0bce7d1a06f15c4efec1 | /CreateWeatherHistogram.py | 215a319b3b99712e1b33c18ec327a5738d54246b | [] | no_license | ChadLei/Weather-Histogram | af9ec6c32f522a1de3699620f1bc692e6e1ec1fb | fc9823d73c3f3e93732ad2de7d0140ba4f91dbe8 | refs/heads/master | 2023-06-24T15:49:21.139015 | 2021-07-16T21:40:59 | 2021-07-16T21:40:59 | 386,767,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,078 | py | import re
import datetime
import requests
import json
import csv
import argparse
import logging
import time
import os
import matplotlib.pyplot as plt
class WeatherHistogram:
def __init__(self, input, output, bucket_count):
self.input_file = input
self.output_file = output
self.bucket_count ... | [
"cblei@uci.edu"
] | cblei@uci.edu |
cf57f5756ca9a19764d9c9aa304a6ca81b391407 | 3a1261f1ce05c16f37a2071766b419256120c767 | /Parte 1/Constructor/obtener_laberinto.py | cc969e1540f959b90a2610be60b027852ed58551 | [] | no_license | lautarodelosheros/TDA_tp2 | 22e39d13832702b27d3ec29b14e26fbbf6b41f7a | 4ba4a7767a63fdfd297d4fc9b03acd5a1b64fb27 | refs/heads/master | 2020-05-17T15:43:42.361513 | 2019-05-22T22:20:07 | 2019-05-22T22:20:07 | 183,799,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import random
from grafo import *
def obtener_laberinto(grafo, origen):
visitados = set()
arbol_dfs = Grafo(False)
for vertice in grafo:
arbol_dfs.agregar_vertice(vertice)
DFS(grafo, arbol_dfs, origen, visitados)
return arbol_dfs
def DFS(grafo, arbol_dfs, vertice, visitados)... | [
"noreply@github.com"
] | lautarodelosheros.noreply@github.com |
25234a7bc747b74d02c2cee1bf53e37771d84e71 | a211aafcd8ae2369cd3289fca6ced287ee09cc26 | /alogs_1/topic_62_strings_finals/task_b/task_b_find_substrings_dk.py | 193ff013243c6f74d92be164d89c8e80c015e9b1 | [] | no_license | vitt0ri0/yalgorithms | 562d27449bbc0907c37d632b6eff4d5dbf9da208 | 1ff6bdc92b61baf03463f299e62c6199d05be040 | refs/heads/master | 2023-03-21T21:07:02.339838 | 2021-03-21T13:00:43 | 2021-03-21T13:00:43 | 287,198,070 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | from collections import deque
# filename = '01'
filename = '09'
class Node:
def __init__(self):
self.next = {}
self.word = []
self.suffix = None
def ac_automate(patterns):
root = Node()
for path in patterns:
node = root
for symbol in path:
node = node.... | [
"vitt0ri0.progr@gmail.com"
] | vitt0ri0.progr@gmail.com |
4a17c47fd62d295fffa7b5a9de62eddf98f2d7f9 | 16401ee584c405675764e349f246b289d8938c16 | /teads/feature/feature_store.py | 8c8c8d786d008862915ee167876beaf90820fc63 | [] | no_license | tea1013/google_brain_ventilator_pressure_prediction | eca2a9a4b4ee7d814ff572234e6b3b992e9371c0 | 10107ca440877b197a16da4cd18c8e315b667446 | refs/heads/master | 2023-08-29T02:42:48.944730 | 2021-11-07T04:35:50 | 2021-11-07T04:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | import os
import traceback
from enum import Enum
from functools import wraps
from typing import Callable, Dict, List, Optional, Union
import pandas as pd
from pandas import DataFrame
class StoreMode(Enum):
Train = "train"
Test = "test"
class FeatureStore:
def __init__(self, target_df: DataFrame, mode: ... | [
"tomoi_ochiai@voyagegroup.com"
] | tomoi_ochiai@voyagegroup.com |
9a4e5074437b3d9f45c748ebed0fd38b0cd02ff1 | dc6e7960d948ae811d306886c18f02058ad0daf5 | /PlagiarismChecker/Plagiarism/wsgi.py | 83e75bc9c7e3488b69adbf9985e5b54d5f7e2c15 | [] | no_license | tabihh/PlagiarismCheckerDjangoPython | 0c2e26d65eba53dd3c9101852ef6416f5d35259d | 23c7f12938add54fafefb0f8dd2db44a3ae3e6e1 | refs/heads/master | 2022-11-03T03:00:11.556076 | 2020-06-12T17:24:52 | 2020-06-12T17:24:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for Plagiarism 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefau... | [
"noreply@github.com"
] | tabihh.noreply@github.com |
327930c5d02ee21e4a4e312baa8897fa3d39a0c9 | c82c24f9b17fbdc81f8794627c434f01e747740c | /setup.py | ac17ec720c7ad6cc152b563393be386e6bb303f4 | [] | no_license | ShihBrian/Snake | 3f2fa26552527076dd67d190cc8b0810cf38643b | 04f55d182854cb813a939d9ad719f8e9abaee41f | refs/heads/master | 2021-01-18T04:53:43.618939 | 2018-02-26T18:54:40 | 2018-02-26T18:54:40 | 55,740,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py |
from distutils.core import setup
import py2exe
import os
import sys
sys.argv.append('py2exe')
# The filename of the script you use to start your program.
target_file = 'Game.py'
# The root directory containing your assets, libraries, etc.
assets_dir = '.\\'
# Filetypes not to be included in the above.
exclude... | [
"brianshih33@hotmail.com"
] | brianshih33@hotmail.com |
16c5084c8facfaa531bb49fd7db885074c265ff4 | c04d5bc4fa98b32966ad4d5e59b8b4eeb65f4eae | /kmeans-and-sklearn/kmeans-and-sklearn-master/main3.py | 78e023b0369a89e6d61e19f3eade426e141a7499 | [
"MIT"
] | permissive | Shivvrat/Machine-Learning-Algorithms | 0c011d02a9f858674edf1826dc19c04f8467d66e | f20503ee513dbd7e51470c464e47358dd6c1e133 | refs/heads/master | 2022-09-21T12:07:05.572659 | 2020-05-31T15:16:12 | 2020-05-31T15:16:12 | 268,168,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import itertools
import import_mnist
import GradientBoostingClassifier
max_features = ['sqrt']
criterion = ['friedman_mse']
max_depth = [7]
X_train, y_train, X_test, y_test = import_mnist.import_mnist_data()
for each in list(itertools.product(max_features , criterion, max_depth)):
predicted_y = Gradient... | [
"noreply@github.com"
] | Shivvrat.noreply@github.com |
44a88ef6c47660f70db2f79b8fdd1d06f0611b66 | 875b9c5093efd688f79fada905bee80c42380ec1 | /tests/test_pygame_player.py | 20237226009ceb731a7dd5490eed46043acf0029 | [
"MIT"
] | permissive | chaheeee/PyGamePlayer | 945e64819b3e862757e1bf9dbf622ac844f6dbed | 430ced572eddcd638a2db5eb906e5f2016ac7250 | refs/heads/master | 2023-02-21T19:42:18.229341 | 2021-01-22T02:22:52 | 2021-01-22T02:22:52 | 330,974,347 | 0 | 0 | MIT | 2021-01-21T15:05:27 | 2021-01-19T12:35:22 | Python | UTF-8 | Python | false | false | 3,064 | py | import time
import pygame
from unittest import TestCase
from pygame_player import PyGamePlayer
class DummyPyGamePlayer(PyGamePlayer):
def __init__(self, force_game_fps=10, run_real_time=False):
super(DummyPyGamePlayer, self).__init__(force_game_fps=force_game_fps, run_real_time=run_real_time)
def get... | [
"danielslaterishere@gmail.com"
] | danielslaterishere@gmail.com |
f2ad85baa8cb06330ff675528a0ca2d588f8e06d | 0cbe294364a76e0bfd91a7bd5ab4ee6eb1622942 | /chapter4/03-catnames.py | 832a7352c0942562962e7ce4242aaa9cf0244226 | [] | no_license | explodinghat/automate-the-boring | d1ea6d476ec9e0361ab77019b79cf4ef8854a8f8 | 3f37aeb23594c6c9632f53af0e478a0c19ec89da | refs/heads/master | 2023-03-16T21:02:38.203917 | 2021-03-08T08:43:09 | 2021-03-08T08:43:09 | 279,683,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | catNames = []
while True:
print(f'Enter the name of a cat' + str(len(catNames) + 1) +
' (Or enter nothing to stop.):')
name = input()
if name =="":
break
catNames = catNames + [name] # list concatenation
print('The cat names are:')
for name in catNames:
print(f' ' + name)
| [
"hello@mattwarren.co.uk"
] | hello@mattwarren.co.uk |
1254ed52ba67bacf9db93bb9e2c70d3433f20b28 | 64edcd9fc50220905fdfb81c52b95d4cf43f08dd | /home/migrations/0025_auto_20210312_1951.py | 0d8e0defc56987aabd89b8ed79eed45bd7989c97 | [] | no_license | kbakhchedzhy/django_project | b922707558deb37cca011440a83902b71d893dd9 | e10c9d588277a5e5b8bd132653ce7b580613b5f8 | refs/heads/master | 2023-03-27T23:43:59.965039 | 2021-03-29T19:47:58 | 2021-03-29T19:47:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # Generated by Django 3.1.5 on 2021-03-12 19:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0024_auto_20210312_1947'),
]
operations = [
migrations.RemoveField(
model_name='student',
name='picture',
... | [
"k.bakhchedzhy@gmail.com"
] | k.bakhchedzhy@gmail.com |
712ceb3b77f28b34aa28bb7f6a929725c6ffaab5 | fff5194a319099f462c815cf8dc1f83c405e15e1 | /loss/mse_log_loss.py | e95ed45fa6cba041511f85bfeedd7ba7c74c3880 | [] | no_license | jensen199105/aispeech-training | ccb58c42d29d20ae804d95cbce9e9c010cf169ab | c37fad670a3dfe06612c56f16dc399e32d497299 | refs/heads/master | 2023-08-24T15:46:14.923682 | 2021-09-30T07:27:44 | 2021-09-30T07:27:44 | 411,964,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,928 | py | import torch
import torch.nn as nn
from .loss import Loss
class logMSELoss(Loss):
"""A warpper of original pytorch CELoss
It simply unpacks the output and batch into specific format, and computes
some useful metrics for logging purposes.
Args:
output (tensor, B,T,C)
data_batch (dict)... | [
"jensen199105@gmail.com"
] | jensen199105@gmail.com |
630460c13110f00655d3b584787d3d797ed2eee4 | 6d8c66c6768ffa15939f6277e050a62a1a94511b | /src/gru.py | 1c47874b49c9211053b3af6eec9a0bb0db973282 | [] | no_license | hongxiangqiu/MIT-6.864-Question-Retrieval-and-Transfer-Learning | 541f4110b820155053ac91db829879982e9cf0a8 | 59e9982e1c39b0436e54c8411a6e88343c1cefcf | refs/heads/master | 2021-08-30T08:59:38.075267 | 2017-12-17T04:36:56 | 2017-12-17T04:36:56 | 114,468,754 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,869 | py | import torch
import torch.nn.functional as F
class GRUEncoder(torch.nn.Module):
def __init__(self, hidden_dim, emb_size, bidirectional=False):
super().__init__()
self.hidden_dim = hidden_dim
self.gru = torch.nn.GRU(input_size=emb_size, hidden_size=hidden_dim, batch_first=True,
... | [
"hongxiangqiu@gmail.com"
] | hongxiangqiu@gmail.com |
4a8bac2371d97ba89629054070c2be40d2b66d43 | 51b8fc884a9dd1b42e20244343d7a05b8f457954 | /zlj/project/task_old/termweight/other/hanlptest.py | 44f23d2f757743601d2a4dbc202b17c6c2deca10 | [] | no_license | achmadnabawi/sparkdata | 89188f66dc416324177f7183a99b4ac6138164e7 | c235e5f7f1cf00ba85e72246b1c71c807b780766 | refs/heads/master | 2020-05-24T11:55:10.417082 | 2017-07-21T08:55:45 | 2017-07-21T08:55:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # encoding: utf-8
__author__ = 'zlj'
# corpus /user/zlj/tmp/title
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from pyspark import SparkContext
from jpype import *
import jpype
sys.setrecursionlimit(10000)
vmPath = jpype.getDefaultJVMPath()
jpype.startJVM(vmPath, "-Xms320m", "-Xmx1024m","-mx1024m","-Djava.cl... | [
"zhanglinjiang@wolongdata.com"
] | zhanglinjiang@wolongdata.com |
b3b434b287cc143cda89ffc6336037d41c32a53d | e00bfd4ef4bc3bfd97cc26e0b6fa08eae90090a4 | /mnist_tf_nn.py | 67e01351550ff086596638d6ae855b0c8471c259 | [] | no_license | benjaminhuanghuang/dl-study | 4995f99ed3776e7e01de8eef8e635ec9295a2e51 | 180f315da5c679f10b101ad0731f26bd21aa5772 | refs/heads/master | 2021-01-25T13:05:08.687512 | 2018-04-19T03:01:06 | 2018-04-19T03:01:06 | 123,523,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,069 | py | '''
TensorFlow Tutorials(1)——Windows下环境搭建
https://www.youtube.com/watch?v=gItz_fBTeLM
TensorFlow系列教程(2)——手写数字的识别
https://www.youtube.com/watch?v=gx7iEa9Q-Vs
TensorFlow Tutorials(3)——FC预测自己手写的图片
https://www.youtube.com/watch?v=WKHP6QBlb8Q
'''
import os
import tensorflow as tf
import nump... | [
"bhuang@rms.com"
] | bhuang@rms.com |
894d1e12ab24cf979a36e11cd9881e63a3cb2f1c | 127154745198fa7d1763efe6ea87793fa877e0d4 | /prettyNEAT/dataGatherer.py | 82269a2259c1a3350acf830c3801146a6553687d | [
"Apache-2.0"
] | permissive | h8go/EA-elective-NEAT | 1f397ab5192ae77ec864dd0adbc7de4af8fadd66 | f8b46516f30fd3b2ba41fa49327bd78fd94cd481 | refs/heads/main | 2023-05-07T09:29:07.482257 | 2021-06-05T13:20:37 | 2021-06-05T13:20:37 | 371,661,322 | 0 | 0 | Apache-2.0 | 2021-05-28T10:15:55 | 2021-05-28T10:15:55 | null | UTF-8 | Python | false | false | 5,669 | py | import os
import numpy as np
import copy
from .ann import exportNet
class DataGatherer():
"""Data recorder for NEAT algorithm
"""
def __init__(self, filename, hyp):
"""
Args:
filename - (string) - path+prefix of file output destination
hyp - (dict) - algorithm hyperparameters
"""
... | [
"d9w@pm.me"
] | d9w@pm.me |
20feba71c0e5589367855b3fbc6b4fb15d06de4b | 20398853a96fa9aee2f3e358fd5cfd0daf4a94b6 | /drafts/nansatExampleMODIS.py | 7047912bf5f3132ff785d03c15cd5073e669770d | [] | no_license | whigg/PySOL | fa78c36c65ab33db274709214dfb8a9159934f42 | 3c354f2ca69dc981eb4117976351e8d7454ad505 | refs/heads/master | 2021-05-31T05:47:13.633994 | 2016-05-11T08:33:06 | 2016-05-11T08:33:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 21 21:54:28 2012
@author: mag
"""
"""
Remarks to nansat
when "print n" units are "m/m"
"""
from nansat import Nansat
from domain import Domain
import matplotlib.pyplot as plt
from scipy.io import savemat
import distancelib
from numpy import array
iPath = '/media/SOLa... | [
"alexander.myasoedov@gmail.com"
] | alexander.myasoedov@gmail.com |
91826376e37e968eab0f407ca654d3ac0586fdbf | ef074c3aaaab0678c6b3dfeef0ad48fc7a0014dd | /github3.py | f5448c63e1c72668aa4c15e1a1e8326fad694fcb | [] | no_license | shashikant7/github_repo_3 | d0e0ffded10ed4d323f86b15b2f311fcf543a66e | 51a054adb21c17ca4cb09150c98b855079eaf9d9 | refs/heads/master | 2021-01-16T21:36:39.508162 | 2016-08-22T13:38:08 | 2016-08-22T13:38:08 | 63,946,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,950 | py | import random
import commands
import time
import multiprocessing
from multiprocessing import Process
import logging
import fileinput
# cmd = "git ls-remote github.com:Infoblox-CTO/xaas-web HEAD | tail -1"
# cmd = "git ls-remote github.com:Gopalkrish14/xaas-web HEAD | tail -1"
logging.basicConfig(filename='... | [
"shashikantsingh0158@gmail.com"
] | shashikantsingh0158@gmail.com |
3d7ee8ae84ab5ab58c26d82efde6cdd7d3a8ccaf | 461d2f0d79a7d5db82fcced6f7c29fc7bd5903d8 | /octant_functional/all.py | ecf165e73dba5ce094cd0768bfbe5d469979fefd | [
"Apache-2.0"
] | permissive | shrek/octant | f4f2f080e47200862ba0790c642e0eaed641d385 | 3b13b44b6727382de31ab969be0e8d3c80a882b8 | refs/heads/master | 2022-04-02T08:46:27.690193 | 2020-02-10T12:15:04 | 2020-02-10T12:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,004 | py | # Copyright 2018 Orange
#
# 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 t... | [
"pierre.cregut@orange.com"
] | pierre.cregut@orange.com |
60a7352ea9fa28baf709bc3938aeeb9ae85a08f7 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/third_party/logging_v2/gapic/config_service_v2_client_config.py | 918b29fd0f8ebf1f3e73a5596dbf58efcd6af258 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 3,721 | py | # Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"gcloud@google.com"
] | gcloud@google.com |
d0a5ee9bf1911b8439fca207e62882c15ff673b3 | 05b1758f58176fc0ca42c3ed92790da6b0c93a51 | /apps/demand/models/address.py | 2c6db328e046e857ea54c97db276ca65aee76500 | [] | no_license | danribeiro/droids_demand_api | 595be83a751ee242440708638ee807b12a1addae | 316526b0af6fe9eede9a39c3a96e398bea83cfd9 | refs/heads/master | 2023-01-24T02:39:04.736591 | 2020-12-14T01:09:17 | 2020-12-14T01:09:17 | 320,122,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,333 | py | from django.db import models
from .demand import Demand
class Uf(models.Model):
uf = models.CharField(
max_length=2,
unique=True,
null=False,
db_column='uf',
verbose_name="Uf",
)
name = models.CharField(
max_length=50,
unique=True,
null=False... | [
"danribeiro.u2@gmail.com"
] | danribeiro.u2@gmail.com |
a9ce49aadae5bb7546d8fffefc7834f013afb78e | de98786f325a87a71024e408a14a9eb01aeaed7a | /HandyKeras/Component/python/Lib/site-packages/pip/_vendor/pkg_resources/__init__.py | 0b432f689646268f3c7233b5eb3cb67727bdddba | [
"MIT"
] | permissive | HandyOrg/HandyKeras | 2efdb85b0aa40862d2ba07635a0ed3ece29a0b1f | 76d2b62cf6a4b3a9061124b9299a424b6e60725e | refs/heads/master | 2021-07-10T01:27:36.550482 | 2019-01-17T11:56:13 | 2019-01-17T11:56:13 | 152,439,874 | 6 | 2 | MIT | 2020-07-02T05:38:07 | 2018-10-10T14:45:48 | Python | UTF-8 | Python | false | false | 103,915 | py | # coding: utf-8
"""
Package resource API
--------------------
A resource is a logical file contained within a package, or a logical
subdirectory thereof. The package resource API expects resource names
to have their path parts separated with ``/``, *not* whatever the local
path separator is. Do not use os.path opera... | [
"836904362@qq.com"
] | 836904362@qq.com |
5171ac07d2be35016805b504c4184d500421005d | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/mrp_subcontracting/models/stock_picking.py | 34f266a39dd33ebb2f957f12845bc85be08de33c | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,173 | py | # -*- coding: utf-8 -*-
# Part of Harpiya. See LICENSE file for full copyright and licensing details.
from datetime import timedelta
from harpiya import api, fields, models
class StockPicking(models.Model):
_inherit = 'stock.picking'
display_action_record_components = fields.Boolean(compute='_compute_displ... | [
"yasir@harpiya.com"
] | yasir@harpiya.com |
02a4f5696cfea356cc47a1bc7c2afb417b53278f | 9d65fee98d227d474f1dec7e89647d0bc1eff56a | /model/torch/backup/caramel_train.py | c128aa73f9a288a88d0ffbca352b61b1ecca97f0 | [] | no_license | omarjamil/caramel | 2446cac90a3dcd022c7bbae95dac94a96e2ec86f | 17a8afc317e3f55903017fedcada591cdcdee4c1 | refs/heads/master | 2023-03-13T08:20:54.946440 | 2021-03-03T13:13:51 | 2021-03-03T13:13:51 | 233,057,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,661 | py | import torch
import pickle
import numpy as np
import math
import sys
import os
import h5py
import argparse
import model
import data_io
parser = argparse.ArgumentParser(description='Train Q')
parser.add_argument('--batch-size', type=int, default=128, metavar='N',
help='input batch size for training... | [
"omar.jamil@metoffice.gov.uk"
] | omar.jamil@metoffice.gov.uk |
732730ec5d579d7f153650432a993677c78e6b43 | 9f1e5cbe9a162a7d78f8ed9b56ee6d71d0e7dbf3 | /Question_2.py | 2bd90c2762bbfc0dfb9419dd030422d60cbe95c3 | [] | no_license | singhdharm17/Python_Edureka | adf2596836bc1b9133aa87fbada51168a7a14069 | 2e11b9359f9a27f083454472571efaf1096ae4ff | refs/heads/master | 2023-08-03T01:01:28.279668 | 2021-09-27T11:07:55 | 2021-09-27T11:07:55 | 410,875,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # Data of XYZ company is stored in sorted list. Write a program for searching specific data from that list.
c_data = input("Enter the data separated by commas:-")
print("Company List has been created")
list_c_data = str(c_data).split(",") # converting list into list by delimiter
f_data = input("Enter the item need to... | [
"dharmsingh.abu@gmail.com"
] | dharmsingh.abu@gmail.com |
c53f9d08e987cb2eaa08eab770874acb17fe3d03 | cabcd8d8c4addd284410794eca236b85e7650b42 | /main/views.py | c7c4c42ec3bfa23ae1c9706120d4c3eb819b99c6 | [] | no_license | khursani8/django-crud | b225e18c12c28de295c301d7479015b30f59be8d | 1a4fb4fbe0ab65058a4e819c7c694de72bd91021 | refs/heads/master | 2020-09-01T13:48:13.293277 | 2017-06-15T04:21:10 | 2017-06-15T04:21:10 | 94,398,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render,redirect,get_object_or_404
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from .models import Person
from .forms import PersonForm
# Create your views here.
def index(request):
p = Person.o... | [
"khursani8@gmail.com"
] | khursani8@gmail.com |
852ab10ecdb8670f8751fcedba7eb4b80be5f09a | f6c584a5292207f71c15f081b368c1d2de2e4dc9 | /reberGrammar/reber_utility.py | 24a4ec0850ece1a59275153e29992158e056a6b9 | [] | no_license | BSifringer/ArtificialComposer | f0bd6ba92aa3e9cc13e4b23594ddcee5c7609cd8 | 21420ac58b56ce050858164cd75c5e8bb9d4ebad | refs/heads/master | 2022-10-13T14:10:30.806749 | 2018-01-12T14:38:41 | 2018-01-12T14:38:41 | 104,663,961 | 1 | 2 | null | 2022-10-02T06:17:19 | 2017-09-24T17:43:38 | Python | UTF-8 | Python | false | false | 4,135 | py | import random
import numpy as np
class State_machine:
current_state = 'A'
# example: states: A,B,C -> transitions to A,B,C
# each transition contains probability + label (X,Y,Z)
# probabilities have to sum up to 1
state_transitions = ({
'A': {'A': [0.1, 'X'],'B': [0.2, 'Y'], 'C': [0.7, 'Z... | [
"brian.sifringer@epfl.ch"
] | brian.sifringer@epfl.ch |
64dd41ff98926126937644d4e32e20220989bc98 | 832ec7e234bc594df8dc67470a3a7005b643c08b | /smapp/forms.py | 0b4176e5634b7ce1eeb0531030f28f8e7632c682 | [] | no_license | riosschaa/sbuild | 8e1a40bd2b5318fa301110189473cb536da72b5a | 055c57556d3992d5f4e35fc7ca87fc2249af4f28 | refs/heads/master | 2021-06-10T17:09:50.595034 | 2017-01-25T19:15:58 | 2017-01-25T19:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,499 | py | # -*- coding: utf-8 -*-
from django import forms
from smapp.models import *
from chosen import forms as chosenforms
def filtra(rut):
"""
Esta funcion cumple el trabajo de filtrar el RUN.
Omitiendo asi los puntos (.) y Guiones (-) y cualquier otro caracter
que no incluya la variable 'caracteres'.
"... | [
"felipe.rios@mail.udp.cl"
] | felipe.rios@mail.udp.cl |
7373f6acf1b30d3c640c8a473466cee37e506c83 | d57d8c0acbda5e30f09345e3aed326a0658a631c | /user.py | 26195aecdad27488fb7438e50dacb64b1508db7b | [] | no_license | geekyprince/Crejofun | 9537b306f7f495239db11aae803988ca92da68b8 | 37cce07c47c10264fc74d0b5d811edb805e9d13b | refs/heads/master | 2023-02-17T11:17:59.451064 | 2021-01-15T06:20:50 | 2021-01-15T06:20:50 | 329,825,753 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | class user:
def __init__(self, name):
self.moviesReviewed = set()
self.reviewCount = 0
self.name = name
def isCritic(self):
return self.reviewCount > 3 | [
"arch.prince01@gmail.com"
] | arch.prince01@gmail.com |
c7784ce9b4355dd34e6aa6bffd236cddc92c45b3 | 94efbd46bec43b07f29f8718b378834f28cfa18c | /env/Lib/site-packages/discord/http.py | 85062e2d0a886558c544ec36b0903b615fd57172 | [
"Apache-2.0"
] | permissive | BiceCold/Citadel_of_Ricks | 2a9d1fc45fe36098dc61f2e00c55cedfd1dd22b7 | 72f1a447accc2c11d1fa1cbf3c3342913913e50e | refs/heads/master | 2021-06-15T17:52:35.999378 | 2019-06-15T18:29:55 | 2019-06-15T18:29:55 | 129,338,382 | 2 | 0 | Apache-2.0 | 2021-02-26T02:29:49 | 2018-04-13T02:45:19 | Python | UTF-8 | Python | false | false | 32,593 | py | # -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2015-2019 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to u... | [
"bice.jeremy@outlook.com"
] | bice.jeremy@outlook.com |
c7f2ae49249b5766291fc985c98da886adfc4f44 | 4f2e8c05e57aa9aabc7812eccf1cf03976bcbf6d | /xadmin/views/base.py | 53ee7890e6fa85e0bb50e56508ed812a02cdd280 | [] | no_license | SalvationN/MovieRecommend | aec7dc1a7d033248b2369198259b64bfb15719aa | 14d83cf2055f75b80ef6a1844701bf6e1c13556c | refs/heads/master | 2022-11-06T04:53:08.016663 | 2020-06-20T03:21:01 | 2020-06-20T03:21:01 | 273,628,956 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,439 | py | import copy
import functools
import datetime
import decimal
from functools import update_wrapper
from inspect import getfullargspec
from django import forms
from django.apps import apps
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import get_permission_codename
from dja... | [
"494574031@qq.com"
] | 494574031@qq.com |
9dbe810ec4792ac17ac77bab6beeb84e56022fdb | c11cad9193b561fddeab48c0f447b5491d9270b6 | /setup.py | cf664472e91d8e83a65c5b5adfd38a75345ecb9f | [
"MIT"
] | permissive | keisukefukuda/mpicpy | 647b27ae1add0aac565f831dfa17509bab72569a | 0f74ea279cca5b23a4c654d93d891c21d2a3ac9f | refs/heads/master | 2021-06-18T12:38:24.337066 | 2020-02-19T09:44:36 | 2020-02-19T09:44:36 | 205,775,957 | 1 | 1 | MIT | 2021-04-20T18:31:46 | 2019-09-02T04:20:52 | Python | UTF-8 | Python | false | false | 727 | py | import os.path
from setuptools import setup
import importlib.machinery as imm
import configparser
project_dir = os.path.dirname(__file__)
# Version
version_py = os.path.join(project_dir, 'mpicpy', 'version.py')
version = imm.SourceFileLoader('version', version_py).load_module()
# Dependencies
config = configparser.C... | [
"kfukuda@preferred.jp"
] | kfukuda@preferred.jp |
b55d9610d85728cf925157f52c582b3a31db21f4 | 66330407f5d20b6ca6643826cdabd128bbbab9a7 | /DiscoGAN/model/Discriminator.py | 2e0eee2a8ceb9f05d02f0dd0a112e9519ff008c1 | [] | no_license | bluer555/Paper-Implementations | a1766e905335befe30b3041b726af7c7bc8dd2c3 | 6fa05f26959207c54220c288577cc9ed9a4d3f28 | refs/heads/master | 2021-01-20T07:12:35.605630 | 2017-05-01T11:02:28 | 2017-05-01T11:02:28 | 89,974,013 | 0 | 1 | null | 2017-05-02T00:13:47 | 2017-05-02T00:13:47 | null | UTF-8 | Python | false | false | 1,428 | py | import torch.nn as nn
class Discriminator(nn.Module):
def __init__(self,input_nc,ndf):
super(Discriminator,self).__init__()
# 64 x 64
self.layer1 = nn.Sequential(nn.Conv2d(input_nc,ndf,kernel_size=4,stride=2,padding=1,bias=False),
nn.LeakyReLU(0.2,inplace=Tr... | [
"xuetingli@foxmail.com"
] | xuetingli@foxmail.com |
3872da51193af30d3efc08de4509cb2da1008df4 | 498474967e1480acf5cc0f25756e1d748c677195 | /mmdetection3d/mmdet3d/core/evaluation/kitti_utils/rotate_iou.py | 2f0c9c8e50667a99b84e6537c4b7ab8922a1d7a2 | [
"MIT",
"Apache-2.0"
] | permissive | hustvl/MapTR | adc37f78cbae9d8c909dd8648088a4930bf55377 | feb0664e64684d3207859279f047fa54a1a806f6 | refs/heads/main | 2023-08-25T17:44:47.672149 | 2023-08-14T13:31:17 | 2023-08-14T13:31:17 | 518,672,305 | 643 | 95 | MIT | 2023-09-14T03:30:23 | 2022-07-28T02:20:43 | Python | UTF-8 | Python | false | false | 13,315 | py | # Copyright (c) OpenMMLab. All rights reserved.
#####################
# Based on https://github.com/hongzhenwang/RRPN-revise
# Licensed under The MIT License
# Author: yanyan, scrin@foxmail.com
#####################
import math
import numba
import numpy as np
from numba import cuda
@numba.jit(nopython=True)
def div_u... | [
"cnliao62@gmail.com"
] | cnliao62@gmail.com |
565cdd967c3510d22b0fea3a70ca7f2e9f48c17f | e7b428201967498a349ed9b1d4ae2135bf2ac8ff | /DAY3/Q4.py | 8476522080b38dcb2db05cf3dae38ace1589d37c | [] | no_license | shiniapplegami/SW-800-AI | b9db57b53eac54569eba4da636867c12ad7f6904 | 98fb936904a223a55a39606fb53538a010a3206d | refs/heads/master | 2020-04-08T11:34:25.570760 | 2018-11-27T11:04:28 | 2018-11-27T11:04:28 | 159,310,820 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 737 | py |
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#Read the data
data=pd.read_csv("Planets.txt", delimiter="\s")
print(data)
print (data.head())
data=data.as_matrix()
X=data[:, 1:2]
y=data[:,-... | [
"noreply@github.com"
] | shiniapplegami.noreply@github.com |
c4147fb4c8883ab833196e9359765c4d5c177933 | 1c956b79663cc88ac022f3d7aa6fe4480c167075 | /mywaitfree/forms.py | 645cb7ef2327e83fe1a82a659e8c7ceecf33bb5b | [] | no_license | sj1456/mywaitfree | ecea24eae21222935513fe733f3f58a70cb00e58 | 6d5dea4473c1ca31af2abeb9b5679383d6f93d99 | refs/heads/master | 2020-03-25T09:52:29.008690 | 2018-08-10T18:06:21 | 2018-08-10T18:06:21 | 143,677,565 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from django import forms
class GuestForm(forms.Form):
guest_name = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'Your Name', 'class' : 'input1'}))
phone_number = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'Your Phone Number', 'class' : 'input1'}))
group_size = forms.CharFi... | [
"tsjs2011@gmail.com"
] | tsjs2011@gmail.com |
a4a99bb4927d904886ccec4c5650fc369cdbe8fe | 329d715af6bf7fb021bc48d21c0f49405635f8c7 | /pocACS/wsgi.py | e4146eaa3f294f93ef88ff6dfc4de01a250974ee | [] | no_license | Odin2/poc-ACS | 79b75549330940ec09a2ea98689e4633a92d3565 | 58497be1bf7a571c9475a2768732fa4dfd2f33c8 | refs/heads/master | 2021-01-24T09:56:24.092771 | 2018-06-11T19:24:20 | 2018-06-11T19:24:20 | 122,769,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for pocACS 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"alepiojo05@gmail.com"
] | alepiojo05@gmail.com |
de73271a124412f46be37471ac8f3093ebe85e83 | eeb593a5351c8a17b5ab35434bead398498d3b7e | /server/echo.py | 58675d43535c2cb401d50a4b7f9b88c26f4ee2c6 | [] | no_license | smit1998/slacker-backend | fe16b4e0fe3e8b67a46508d238d2353535078b01 | 1217864bcb7f396106947f87460a2efc3cf8ffac | refs/heads/master | 2023-02-09T14:47:04.556172 | 2019-11-17T08:54:28 | 2019-11-17T08:54:28 | 288,636,916 | 0 | 0 | null | 2021-01-06T09:04:54 | 2020-08-19T04:55:20 | JavaScript | UTF-8 | Python | false | false | 36 | py | def echo(value):
return value
| [
"email@example.com"
] | email@example.com |
8eb00965d7fe2515246764e9e28869e4defe30b5 | 35fe9e62ab96038705c3bd09147f17ca1225a84e | /a10_ansible/library/a10_gslb_zone_service_dns_srv_record.py | 6af19cd9ec408f7a280cb3b28bd71ada0d1abc4f | [] | no_license | bmeidell/a10-ansible | 6f55fb4bcc6ab683ebe1aabf5d0d1080bf848668 | 25fdde8d83946dadf1d5b9cebd28bc49b75be94d | refs/heads/master | 2020-03-19T08:40:57.863038 | 2018-03-27T18:25:40 | 2018-03-27T18:25:40 | 136,226,910 | 0 | 0 | null | 2018-06-05T19:45:36 | 2018-06-05T19:45:36 | null | UTF-8 | Python | false | false | 6,346 | py | #!/usr/bin/python
REQUIRED_NOT_SET = (False, "One of ({}) must be set.")
REQUIRED_MUTEX = (False, "Only one of ({}) can be set.")
REQUIRED_VALID = (True, "")
DOCUMENTATION = """
module: a10_dns-srv-record
description:
-
author: A10 Networks 2018
version_added: 1.8
options:
srv-name:
description... | [
"mdurrant@a10networks.com"
] | mdurrant@a10networks.com |
298c589f469654840e1fabc25a5a868de853909a | d2304891c5757e0cdb393d95b0c3d3495f6fbf76 | /fourier.py | 3ae0c47f18598a85df9bd0a14022cc42226f6cb0 | [] | no_license | phisyche/Python | 8b555e540f5aeb243434a6f3eceec3ee3835d288 | f8897f008723821fdc8a1d9a3bdf462d2c42e49c | refs/heads/master | 2023-03-15T04:49:51.586572 | 2021-03-26T13:45:08 | 2021-03-26T13:45:08 | 52,379,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | import scipy
import matplotlib . pyplot as plt
pi = scipy .pi
signal_length = 0.5 #[ seconds ]
sample_rate =500 # sampling rate [Hz]
dt = 1./ sample_rate # time between two samples [s]
df = 1/ signal_length # frequency between points in
#in frequency domain [Hz]
t= scipy . arange (0, signal_length ,dt) #the time vector... | [
"kwellingtonmwaura@gmail.com"
] | kwellingtonmwaura@gmail.com |
b1f5f0ec19237165d2f55f89a95272f2fa041954 | 9ec795d07b33dc6f16a2df74fa85295076ebde6a | /name.py | 6cce29b5472b8c941a2b1c584a4c4c83b5098d52 | [] | no_license | KeneNwogu/stage2-resume | c6a20de99ca74dde17388b04331b2be6f3550921 | 83fbb4a1c4b850f34d111b5e4939a449240bd436 | refs/heads/main | 2023-07-08T03:53:30.987428 | 2021-08-18T03:18:15 | 2021-08-18T03:18:15 | 397,435,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | print("Nwogu Kenechukwu Joseph") | [
"[nwogujoseph1111@gmail.com]"
] | [nwogujoseph1111@gmail.com] |
99582e2304da94dbc97ee8926451fdc9950f1c01 | d784439c8c44c79e63ea1da0654d2b30067734da | /mnist/convolutional.py | d7bd7c51b47c1d66a0d52ab95bc3249bb575d24d | [] | no_license | wkunzhi/TensorflowMNIST | f97e80b487a9d3b091987b13bad9f34d0deeeb3d | 41ea53aa661970b0b6b701e097733e211dd4d095 | refs/heads/master | 2020-08-16T03:24:35.444752 | 2019-10-16T03:30:05 | 2019-10-16T03:30:05 | 215,448,471 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | # -*- coding: utf-8 -*-
# __author__ = "zok" 362416272@qq.com
# Date: 2019-10-13 Python: 3.7
# 卷积训练
import os
from mnist import model
from mnist import input_data
import tensorflow as tf
data = input_data.read_data_sets('MNIST_data', one_hot=True)
with tf.variable_scope("convolutional"):
x = tf.placeholder(tf... | [
"362416272@qq.com"
] | 362416272@qq.com |
22da5ff4314cfc620cb8d225b70570619873fe70 | efb7180c05964aee07756dbd4f9982f81559d7e3 | /TradeBot/tradebotapp/migrations/0002_auto_20191005_1543.py | 49018395ae8bfb3525d48159fd3e3be4939ec2eb | [] | no_license | ShunnoSaiful/Trade-Bot | 920ba75225d921f54530fc9f0d10a8eb9eabdaaf | d07489dea5fcf1d1d51a918a3127f620682107f2 | refs/heads/master | 2022-11-24T08:22:00.946773 | 2019-10-29T05:20:08 | 2019-10-29T05:20:08 | 218,207,062 | 0 | 0 | null | 2022-11-22T04:18:04 | 2019-10-29T04:54:41 | JavaScript | UTF-8 | Python | false | false | 673 | py | # Generated by Django 2.1 on 2019-10-05 15:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tradebotapp', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='question',
... | [
"sunnosaiful@gmail.com"
] | sunnosaiful@gmail.com |
ac44486a541b279a4e1e2624e8bc655dbe318032 | 758782344f6441a7122820bebc276c20c2999908 | /Roteiro-1/URI/9-URI1435/matrizqua1.py | 4a6882c79c0104cae6275a80ec33d19ed00d3bc5 | [] | no_license | ommz21/dcc-wiki-maratona | 2df1b4923aaf974bc45683099c632f212b794ec2 | 8f4785663a7214a59564677a3df17426ca4417ee | refs/heads/master | 2022-06-19T22:21:36.443352 | 2020-05-13T19:44:38 | 2020-05-13T19:44:38 | 257,475,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | def cria_mat(ordem, valor):
matriz = []
for i in range(ordem):
linhas = []
for j in range(ordem):
linhas.append(valor)
matriz.append(linhas)
return matriz
def exibe_mat(matriz):
for i in range(len(matriz)):
for j in range(len(matriz)):
print("%3i"... | [
"ommz21@ufmg.br"
] | ommz21@ufmg.br |
d93650cecdc20d353ee77f2cc46d70feaceba915 | a2fe63284ba6b33e72fb1cf98e59f175221d4d52 | /PythonCar/venv/src/基础知识/常用内建模块/urllib模块.py | a26d85f1275d7d0948a82019c06a448ae9992744 | [
"Apache-2.0"
] | permissive | LKY769215561/PythonCar | d5610c94640cbf38f6fe6051211c49fb420db5b4 | 41d39b5ec14ede9c57320732ac9504be6e998aa2 | refs/heads/master | 2023-01-12T11:11:23.909697 | 2020-05-22T05:06:29 | 2020-05-22T05:06:29 | 257,816,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | # -*- coding: UTF-8 -*-
from urllib import request,parse
import urllib
'''
urllib提供了一系列用于操作URL的功能。
Get
urllib的request模块可以非常方便地抓取URL内容,也就是发送一个GET请求到指定的页面,然后返回HTTP的响应:
例如,对百度进行抓取,并返回响应:
'''
path = 'https://www.baidu.com'
def log(f):
print('Status:', f.status, f.reason)
for k, v in f.getheaders():
prin... | [
"qzj123456"
] | qzj123456 |
958953572d2248866588bc4c08632cc02a313daf | a3ccd0e2f81d5a95be7b92ef85ae43af1b719bb6 | /exercises/deep_count.py | b44754e62ad9371d23b84ee23f621eff3100557a | [] | no_license | victorvicpal/Udacity_python | a4334349c66a0f36c582e92c0dfae8fc3b079556 | 946c634db134f6703a19c1ca600d1e8f920daba4 | refs/heads/master | 2021-04-29T00:10:00.698054 | 2017-01-01T22:48:18 | 2017-01-01T22:48:18 | 77,716,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 1 14:21:27 2017
@author: victor
"""
# -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
# Deep Count
# The built-in len operator outputs the number of top-level elements in a List,
# but not the total number of elemen... | [
"victorvicpal@gmail.com"
] | victorvicpal@gmail.com |
a63a8acba6c2dc55bbf8d2df63dc123a48af4ea1 | d772d06e817e597e0670f732e98672eb6ce16b61 | /eric_blog/eric_system/admin.py | 3fbdfeb2f5b994529ec571122f33b64ade85be7f | [] | no_license | zjleifeng/sricblog | 7bd7c3f8e7fd9d984e256f62f20512ca787a57b3 | cc4aaa38743fa0e48301d3657baa51d55f30a2a9 | refs/heads/master | 2021-05-03T14:50:04.470940 | 2016-11-24T02:28:54 | 2016-11-24T02:28:54 | 69,648,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from django.contrib import admin
from eric_system.models import Notification, Link
# Register your models here.
class NotificationAdmin(admin.ModelAdmin):
search_fields = ('text',)
list_display = ('title', 'from_user', 'to_user', 'create_time')
list_filter = ('create_time',)
fields = ('title', 'is_re... | [
"helpdesk.sh@xmkt.cc"
] | helpdesk.sh@xmkt.cc |
f579c469ccef7d539cea3634d4cedfad921198a0 | 4e4400bf05d284cb97ae7527aaf7790469d5887e | /Pyside_PyQt_线程/PyQt线程示例代码/ping_thread.py | 0ab45ddc14fbf2f7649f495dd3b78e29477659a3 | [] | no_license | cyysu/Python-PySide-PyQt-Tutorial | 66d57975cec776f8ba32c4033873c31c8bcd11cc | 571159bf90238396b20a5c6be88a51ff5af57e68 | refs/heads/master | 2021-01-12T08:25:21.241427 | 2016-06-12T06:25:12 | 2016-06-12T06:25:12 | 76,571,944 | 3 | 0 | null | 2016-12-15T15:33:01 | 2016-12-15T15:33:01 | null | UTF-8 | Python | false | false | 2,769 | py | # coding: utf8
import sys
from PyQt4 import QtGui, QtCore
import time
import random
import subprocess
class MyThread(QtCore.QThread):
trigger = QtCore.pyqtSignal(str) # trigger传输的内容是字符串
def __init__(self, parent=None):
super(MyThread, self).__init__(parent)
def run(self):
time.sleep(ran... | [
"ml@MacBook-Pro.lan"
] | ml@MacBook-Pro.lan |
5de6389a40c5f6a48f4640a32173b7d6b8948184 | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/storage-blob-preview/azext_storage_blob_preview/vendored_sdks/azure_storage_blob/v2019_12_12/_blob_service_client.py | f68a680091129a0af9ab03d85046622ce1f173e5 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 32,292 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import fu... | [
"noreply@github.com"
] | VSChina.noreply@github.com |
f6236c019fc28dcda305d1fe03b05aa0fbf24a8a | 61490d2cb8f59bb220bde14a8fbdff8b3155bf82 | /sharpspark_ui/models.py | 0f0c170058d15ccc19a19007e5817f8d05720951 | [] | no_license | grlownzl/sharpspark | dd8e1bd0afdf002e7ced0a4befd67d6c8f03cd0c | 75b97c28f11cadf5bd8a96cd1defbaec0e537458 | refs/heads/master | 2016-09-05T12:42:33.561666 | 2013-03-31T21:09:11 | 2013-03-31T21:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,210 | py | from django.core.urlresolvers import reverse
from django.db import models
from phonenumber_field.modelfields import PhoneNumberField
# Create your models here.
class View(models.Model):
"""Describes a View"""
name = models.TextField(name="name", verbose_name="View Name", null=False, unique=True)
class Fillabl... | [
"grlownzl@gmail.com"
] | grlownzl@gmail.com |
d5f629f8a315d2c5453ef6c7a8e095112a128f66 | 17c79e2742d6cc51d722a3bfefd388da0e37b6f7 | /watcher.py | ac4d7785c0fe525182f9caa74a52a55b24f94187 | [] | no_license | EricSchles/digital-preservation | fb752d3b8cf0046e6ba1522ff9c66c854fde6e12 | 5e5bced52c05d824b658aa0827c869f69d0dee60 | refs/heads/master | 2021-01-21T18:53:57.345080 | 2011-04-09T20:42:47 | 2011-04-09T20:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | #!/usr/bin/python3
import os
from techwatch import *
from techwatch.db import sqlite
db_path = options.get( 'database' )
if os.path.exists( db_path ):
os.remove( db_path )
db = sqlite.backend( db_path )
recursion_depth = options.get( 'max_depth' )
path = options.get( 'seed' )
crawler = htmlcrawler.Crawler( path, db... | [
"mati@fsinf.at"
] | mati@fsinf.at |
a9fde96c4f15dd8536c0e55c5c2d5408610c1cbd | e01c38609987179f9ea3c5390f63d43dd3d7ca68 | /scripts/spot_duplicates.py | 812ce9f8df316a00480ee6302e8ac179b70dcc02 | [
"MIT"
] | permissive | bjh21/geograph-update-bot | a8146a4f3a6911f03d3987acc0d3531c92ab98fe | 876e580a086b02968108523c57a06c51a73faf11 | refs/heads/master | 2023-07-19T17:46:40.398094 | 2023-07-11T00:01:57 | 2023-07-11T00:01:57 | 100,986,483 | 1 | 1 | null | 2020-11-07T15:44:53 | 2017-08-21T19:42:57 | Python | UTF-8 | Python | false | false | 3,276 | py | from __future__ import print_function
from io import StringIO
from itertools import groupby
import pywikibot
import pywikibot.bot as bot
import pywikibot.data.api as api
import pywikibot.pagegenerators
import sys
import toolforge
def find_duplicates():
outfile = StringIO()
site = pywikibot.Site()
conn = t... | [
"bjh21@bjh21.me.uk"
] | bjh21@bjh21.me.uk |
0a41178fc20f8607e3279660130613dca66b6169 | 4a22da169b96b9d8d4cf30c5ea7e167cdbd1e802 | /cluster_uva/simulation35xu_rivanna/simulation35xu_rivanna_8.py | b78fb63ba51f2061a43dfc5f5f6aae48c9fbb2a9 | [] | no_license | LiYan1988/simulationsYuxin | 543fbeaac362f71513c71ceb1d1c300cabf04173 | 5997cecb5d772194900feddd07d7c5001c39b037 | refs/heads/master | 2021-01-19T13:50:15.968470 | 2017-03-17T21:52:33 | 2017-03-17T21:52:33 | 82,420,737 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 25 22:06:02 2017
@author: misWin
This is a template of python files for simulation 3 and 5 with Xu's algorithem on hebbe
"""
from milp2_xu import *
np.random.seed(0)
batch_id = 8
network_cost = pd.read_csv('nsf-24nodes.csv', header=None, index_col=None)
network_cost = ... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
8ab303280b95c467324a9b6446a86663c49c873f | 85fc4f8cc2a700151ef8c53672cb9222741f778f | /venv/Scripts/easy_install-3.7-script.py | 8f819dc4e8bc07732c44e562db5f27e9f0556e75 | [] | no_license | Dragon-Zpl/MyGoogleCrawl | f148c1d478d1f18738dc3555ea023e76fc98230f | 9471357447dd09c62c223c9307cbe7774f9b164d | refs/heads/master | 2020-04-26T22:38:46.022085 | 2019-04-16T06:51:49 | 2019-04-16T06:51:49 | 173,878,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | #!D:\Users\Administrator\PycharmProjects\MyGoogleCrawl\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r... | [
"peilong.zhuang@office.feng.com"
] | peilong.zhuang@office.feng.com |
bb6e42dd953dcf98f6e35de9350b0c935bb93329 | da9c3d225f4a2657eb74b42a2daad1892ee115de | /maps/venv/bin/easy_install | cd53ce0b68fba50d71dec2b0a8d894c43438dd25 | [] | no_license | yiyiadam/cs61a | 0215d0b61d28576587cd05df27bb64dbffab7290 | 56d2bdfa691b04975b50676bddbc5d2f3eba65e3 | refs/heads/master | 2020-03-17T20:43:44.833034 | 2018-05-28T03:30:09 | 2018-05-28T03:30:09 | 133,926,287 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | #!/Users/adam/WorkShop/cs61a/maps/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"yiyiadam@yahoo.com"
] | yiyiadam@yahoo.com | |
d40215feb3f78cdfb36485caade3c932819de1bd | 1a46159b27ca655f94bd4fd9df212fba55d14388 | /environ/blog/views.py | 6e69531f478f33e6136dd7686cb0bcc4caa4db53 | [
"MIT"
] | permissive | CassandraTalbot32/Python-Django-CSS-HTML-JavaScript-webiste | 8292f911efcc56447b3d51a048bdecd16a1ad44e | de81b971026991c6689a133e68582b04431ae265 | refs/heads/main | 2023-01-20T21:02:21.707833 | 2020-11-24T21:10:04 | 2020-11-24T21:10:04 | 315,612,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | from django.shortcuts import render, get_object_or_404
from django.urls import reverse
# Create your views here.
from django.views.generic import (
CreateView,
DetailView,
ListView,
UpdateView,
ListView,
DeleteView
)
from .forms import ArticleModelForm
from .models import Article
class ArticleCreateView(CreateV... | [
"noreply@github.com"
] | CassandraTalbot32.noreply@github.com |
5b78b7a1c7a56b289d5f13221543a16b181262c4 | df1d9a3ceb7990c9debbd204f48320ecde7af9f3 | /alacritty-nautilus.py | 1d066f6be3477a11f3e6ecd1f7c80d3d28ee77f1 | [
"Unlicense"
] | permissive | lequer/alacritty-nautilus | 8b4a44afa858d0e3503cdd761408ce1c5bb072be | 39bac813e9ef7d04667c9ad0fe6e4ea9b782e4d6 | refs/heads/master | 2023-04-21T16:33:26.693759 | 2021-05-09T07:45:43 | 2021-05-09T07:45:43 | 365,687,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | # Alacritty Nautilus Extension
#
# Place me in ~/.local/share/nautilus-python/extensions/,
# ensure you have python-nautilus package, restrart Nautilus, and enjoy :)
#
# This script was written by cra0zy and is released to the public domain
# Modified by lequer to use ALacritty instead of VScode
from gi import require... | [
"michel@mlequer.com"
] | michel@mlequer.com |
015eda1ebf511773811ed5986aa79e9bbaa7d5d0 | a6d4fab2be09670554c0a3d8df878e141cf0df0d | /tests/test_filter.py | ef64106ea99d238c5515e290aae20df2455d1580 | [] | no_license | OpenPathView/OPV_DBRest-client | 6f7105e89c5db7f61f44f8e6ffaa118d154e46f4 | d86c25bf1827d6c51a42de75a4a3d92879cdc52b | refs/heads/stable | 2021-01-19T08:42:37.891421 | 2018-12-02T17:21:48 | 2018-12-02T17:21:48 | 87,665,549 | 0 | 0 | null | 2018-11-30T16:46:56 | 2017-04-08T21:33:16 | Python | UTF-8 | Python | false | false | 345 | py | from opv_api_client.filter import Filter, treat_query
def test_filter():
f1 = Filter("test") == 1
f2 = Filter().name("test").val(1)
assert f1.get() == f2.get()
assert f1.get() == {'test': 1}
def test_treat_query():
q = [Filter("test") == -1,
Filter("T2") == 5]
assert treat_query(q) ... | [
"gouge.tristan@gmail.com"
] | gouge.tristan@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.