blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2323775c17ea778091b3887278f3181c41685b83 | 7a81fc8259b86984c8cff9a77479108f4d13ae50 | /piloting_core/script/bag_visual.py | 20dd8cdae9f5bfed0356c577322fae550ae0009f | [] | no_license | alfalcmar/piloting | 2dfd0ca5d07ce489b230bfe4dec87201b16c66e8 | 3791b23de569181803145cb3d89eb6335c77d543 | refs/heads/master | 2023-01-28T14:08:03.782757 | 2020-12-09T16:47:59 | 2020-12-09T16:47:59 | 293,564,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | #!/usr/bin/env python
import rospy
# from uav_abstraction_layer.srv import TakeOff, Land
from geometry_msgs.msg import Twist, TwistStamped, PoseStamped
from nav_msgs.msg import Odometry
rospy.init_node('bag_visualizer', anonymous=True)
def cam1_pose_callback(data):
data.header.frame_id = 'cam1_odom_frame'
ca... | [
"a.alcantara.marin@gmail.com"
] | a.alcantara.marin@gmail.com |
7af57a4dd70f7a9cde6ca5ae074f3d75c585b917 | 176481563e0978340c737f61a4f85203ebb65c0b | /ptsites/sites/hdhome.py | f44a99bb7c69afa0dd0174e5d8ff0e93ad0ddf06 | [
"MIT"
] | permissive | ronioncloud/flexget_qbittorrent_mod | 328bd6448e6908bfb8d953e83e826ee8e966eee6 | a163a87328eeadf5ae961db4aec89f3f3ce48ad8 | refs/heads/master | 2023-01-20T03:43:07.664080 | 2020-11-21T10:28:13 | 2020-11-21T10:28:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | from ..schema.site_base import SiteBase
from ..schema.nexusphp import NexusPHP
# auto_sign_in
URL = 'https://hdhome.org/attendance.php'
SUCCEED_REGEX = '这是您的第 .* 次签到,已连续签到 .* 天,本次签到获得 .* 个魔力值。|您今天已经签到过了,请勿重复刷新。'
# html_rss
ROOT_ELEMENT_SELECTOR = '#torrenttable > tbody > tr:not(:first-child)'
FIELDS = {
'title': ... | [
"12468675@qq.com"
] | 12468675@qq.com |
0bf3352aafe2acaa51d09f6ad7541379307b3a17 | c57fafec01722ec320286fe883cc7c649c9efcf6 | /script/data_iterator.py | dfcdb155d8729b65503fe16a9a9fbac63a31b1d7 | [] | no_license | alibaba/deep-multi-representational-item-network | 3d56fb6dcc28068f397e1803b89e648a80143958 | fd59546b0aa128d465ea1937b746c0655730af84 | refs/heads/master | 2023-08-01T20:48:32.255883 | 2021-09-15T11:09:08 | 2021-09-15T11:09:08 | 403,825,779 | 8 | 6 | null | null | null | null | UTF-8 | Python | false | false | 8,527 | py | import numpy
import json
import cPickle as pkl
import random
import numpy as np
import gzip
import shuffle
def unicode_to_utf8(d):
return dict((key.encode("UTF-8"), value) for (key,value) in d.items())
def load_dict(filename):
try:
with open(filename, 'rb') as f:
return unicode_to_utf8... | [
"jihai.zjh@alibaba-inc.com"
] | jihai.zjh@alibaba-inc.com |
420ac2e8d752bf0e1a418486fe732c605ad46a01 | 786d7ea33e385c3d4c1459b8e5c50fb6ce82fa18 | /leetCode/minSubStringWithAllChar.py | 9a9cd87a058b1d4484e7dff3f90e6de7add33873 | [] | no_license | songtoan0201/algorithm | 2e695006c7c56945d248fc33a46e63c9493a51af | 9b108777cde4924ebacca1499fd02ddf4a3a0673 | refs/heads/master | 2020-12-01T15:49:42.671640 | 2020-03-21T23:29:53 | 2020-03-21T23:29:53 | 230,688,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | def minSubstringWithAllChars(s, t):
result = []
for i in range(len(s)):
if s[i] in t:
coll = set()
for j in range(i, len(s)):
if s[j] in t:
coll.add(s[j])
if len(coll) == len(t):
result.append(s[i:j+1... | [
"38516119+songtoan0201@users.noreply.github.com"
] | 38516119+songtoan0201@users.noreply.github.com |
7802a5f03b7cb6a00e7ba3213412cfbf16acc38a | 17bfee1b0880276b730971cc25419be22d202f95 | /all_in_one/allinone.py | a96d5eac5042ffe98690be5ba32b3724b56a7b79 | [] | no_license | ilkayDevran/Traffic_Sign_Recognition | 1ad13f8e069d84fccc7f7526ec3f6f08dfa12495 | f16641611394e9e7aa6fad63871692529514fbd6 | refs/heads/master | 2020-03-20T00:57:19.692146 | 2018-08-01T19:16:12 | 2018-08-01T19:16:12 | 137,062,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,192 | py | # -*- coding: utf-8 -*-
'''
##########################################################
# Python 2.7 #
# __author__ = "İlkay Tevfik Devran" #
# __date__ = "29.07.2018" #
# __email__ = "devrani@mef.edu.tr" ... | [
"devrani@mef.edu.tr"
] | devrani@mef.edu.tr |
ae20062f09bc984c74fb6e1f44e7d679071a5802 | 5bae5c344068077c6b1a0fb5b21da3a68040710f | /1027_피보나치수.py | 690283be7b9f772054d4c373a54b899fc1be01ed | [] | no_license | AlgorithmOnline/suzy | 9328750679b8ec46450d4f1ddfa001927d6b072c | 78f936cafb3d91028bb38deb99d19da465e9b83f | refs/heads/master | 2023-01-10T09:20:18.004466 | 2020-11-11T10:56:32 | 2020-11-11T10:56:32 | 290,411,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | def solution(n):
memoi=[0 for i in range(n+1)]
memoi[1]=1
for i in range(2,n+1):
memoi[i]=(memoi[i-1]+memoi[i-2])%1234567
return memoi[n]
| [
"noreply@github.com"
] | noreply@github.com |
4b0934f25e5944462899f1f81ed693f2cde30a61 | b19e523dd358c240085ca98fca1048d3ee878501 | /e_commerce/Login_API/views.py | 96a42eae017f945ed51b5e3aa62fe0cc1daca911 | [] | no_license | pawel-zielinski/e-commerce | 760e5ef896a9b6ba841fd84b745e2c73bc337827 | 6e056d8bcca447666eb92361a8b92831c2a9d83d | refs/heads/master | 2023-04-30T10:51:22.372619 | 2021-05-19T17:38:54 | 2021-05-19T17:38:54 | 366,401,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | from django.shortcuts import render, HttpResponseRedirect
from django.urls import reverse
from django.http import HttpResponse
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.decorators import login_required
from django.contrib.auth import login, logout, authenticate
from Login_API.m... | [
"pawelzet00.pz@gmail.com"
] | pawelzet00.pz@gmail.com |
e3683719167355f156e4c8ca25cbd8be6390188c | c93612ab7a9af2f843b3ae44207cd23100849e51 | /libraries/partition_quality-master/test/quality_test.py | f705d68c1529aa0583c392dcdbedb9f3b48cccdc | [
"BSD-2-Clause"
] | permissive | andrematt/ars-musicians-project | 569f023ef7f10d99f7f07356d87064b234e85b43 | c403cb25bff039e55313c23aa87ad050740102c0 | refs/heads/master | 2020-03-18T09:14:45.611786 | 2018-06-15T18:35:56 | 2018-06-15T18:35:56 | 134,552,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | import unittest
import demon as d
from pquality.PartitionQuality import pquality_summary
import networkx as nx
class QualityTestCase(unittest.TestCase):
def test_quality_functions(self):
g = nx.karate_club_graph()
D = d.Demon(graph=g, epsilon=0.3)
coms = D.execute()
res = pquality... | [
"andrea.num56@gmail.com"
] | andrea.num56@gmail.com |
7b02be135bb7cd1c50578c242919e30865e8ccb5 | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210523152024.py | f07a1738d818cc8037a69010ee1541519e6e81c2 | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | from flask import Flask, render_template, redirect, url_for
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, ValidationError
app = Flask(__name__)
app.config['SECRET_KEY'] ... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
c986cc28c83d58fa15ab887bc56c3e7e4dfa2122 | 9bf6311798f1e415c97c7de35240d891c6bb1a93 | /HARM.py | 9c5b1912861737f82998db53e935a338f4c4e98d | [] | no_license | UnknownUnit/HARM | 7af46e7d63dc924e1e15f5bebc49bcac09ff75d8 | 2df1a312ee2019afc8d1ad83ae257662abc9afea | refs/heads/master | 2022-11-10T00:21:58.428671 | 2020-06-23T01:26:33 | 2020-06-23T01:26:33 | 274,278,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,041 | py | from aix360.algorithms.rbm import BooleanRuleCG
from aix360.algorithms.rbm import FeatureBinarizer
from ruleset import BayesianRuleSet
import pandas as pd
import numpy as np
class HARM_BRCG():
def __init__(self, train_data, train_labels, black_box, feature_names = None):
"""
Uses BRCG as the interpretable classi... | [
"jason.lowjs@gmail.com"
] | jason.lowjs@gmail.com |
23e5eed45b610812d58d2220e03dc3a851b8719c | 3d861f5878012f9bb0a652b88ca8e8cb322b24ec | /DBpediaOTD.py | 3135761dcf3fd86860eb6b99660552aca9c1dc91 | [] | no_license | maxifischer/DBpediaOTD | be4739f1468289aa120af9a75ff7a96549bca597 | 9f6937bbcbaa12c4802a7889cec4c53250e0b6f3 | refs/heads/master | 2021-01-10T07:26:08.139168 | 2015-12-15T22:41:22 | 2015-12-15T22:41:22 | 45,856,764 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | import webbrowser
import sys
import DBPedia_On_This_Day
import whole_year
import datetime
# format should be open <name of html file>
# or reload <year, month, day>
def main():
new = 2
try:
if "-open" in sys.argv:
openind = sys.argv.index("-open")
file = sys.argv[openind + 1]
... | [
"maxi.fischer@student.hpi.de"
] | maxi.fischer@student.hpi.de |
4980d71d839d70281956181f3c5046563454bb3b | 0c5823cd70b700f250d2cc54678f4259594bb42a | /djlevel5/settings.py | a48c136ab4e24282fc2ee70144b1507379e42d08 | [] | no_license | Vikram2212/djangolevel5 | ca9b34137fc62046e30f68403cf46b905f01f9eb | 202cffaaefc1fa134567b4b6051bc77a2e160288 | refs/heads/master | 2022-11-21T05:38:24.414944 | 2020-07-28T14:44:52 | 2020-07-28T14:44:52 | 283,241,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,700 | py | """
Django settings for djlevel5 project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"vikram.c.2212@gmail.com"
] | vikram.c.2212@gmail.com |
89c75a5b08973ce06293adf81ca6a7bad88bb117 | 26907a78e55f4436cfcf2b0a18935d79dcc50c2f | /2020/test_09.py | 61445ed200f90245770d9259e719e22a8ec6f216 | [] | no_license | singingknight/adventOfCode | 7f55d9b06c48fa75c7558d4ed2256e841858bf6f | 13d3ffb95d4a2e2c2269a95b1cb8a27b2ac3e3b3 | refs/heads/master | 2022-11-30T19:21:32.212258 | 2020-12-25T11:15:54 | 2020-12-25T11:15:54 | 225,067,214 | 0 | 1 | null | 2022-11-10T08:12:32 | 2019-11-30T20:39:36 | TypeScript | UTF-8 | Python | false | false | 290 | py | from day09 import checkXMAS, findRange
lines = [
'35',
'20',
'15',
'25',
'47',
'40',
'62',
'55',
'65',
'95',
'102',
'117',
'150',
'182',
'127',
'219',
'299',
'277',
'309',
'576'
]
def test_part1():
assert(checkXMAS(lines, 5) == 127)
def test_part2():
assert(findRange(lines, 5) == 62)
| [
"pja@siteimprove.com"
] | pja@siteimprove.com |
e67d827d78bf3ec395e89c8ead846c2e053301fc | a49cc6ae5acfe1d9c16a0fa488fec9f2eeca173e | /portfolio/jobs/admin.py | 86973ca118f3e51088de1fff8fd85c0e941d94be | [] | no_license | Aaliyan00/aaliyan-portfolio-web | 8010d03bc3eb151cede9df7d996d8ed95b12a591 | 4826ec3759f3e8dd5b349ecf9ed4075534e6f1d5 | refs/heads/master | 2023-06-13T02:21:13.751743 | 2021-06-26T18:31:52 | 2021-06-26T18:31:52 | 380,803,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.contrib import admin
from.models import Job
# Register your models here.
admin.site.register(Job)
| [
"aaliyankhancoolbuddy@gmail.com"
] | aaliyankhancoolbuddy@gmail.com |
a923205ba1d7c77169199e2c05f877f3807c6a9f | 9f95763c1eb350bac79dbb8eed2cac5b41928e93 | /1132.py | 2ed33b190d78b54aa7be4e176ca5189e7b178498 | [] | no_license | kakidiakoafonso/urionlinejudge | 536addd87a1c2b5e8a4e16bead2d47bacd3d58ef | ac29bf9c8c05b71b2f52abd1fe35d83a0cf11104 | refs/heads/main | 2023-03-12T08:19:44.223584 | 2021-02-27T17:51:28 | 2021-02-27T17:51:28 | 324,781,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | x,y = int(input()),int(input())
soma = 0
if(x>y):
x,y = y,x
for i in range(x,(y+1)):
if not(((i%13)==0)):
soma += i
print(soma) | [
"kakidiakoafonso@gmail.com"
] | kakidiakoafonso@gmail.com |
c4e9d374b2b64fe6151bcf76dc53a69506ff6603 | 08419ac699b24a37e69392120f60a04826551128 | /limpia.py | 4d428f4ad1308dc7b9e1e62e5ca962cd5c942127 | [] | no_license | EskerOn/RIParcial1 | f8cfc958fe6aebcf952c89c522a4de5dd33737a0 | 61e7ae07f038e7ba16b932e4a680770a49a100bb | refs/heads/main | 2023-03-22T14:47:54.128110 | 2021-03-18T15:45:34 | 2021-03-18T15:45:34 | 348,984,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,252 | py | #import fun
import os
import nltk
from nltk.stem import WordNetLemmatizer
from nltk.corpus import wordnet
def sinStop(array):
arr=[]
for i in range(len(array)):
if array[i] in stpwordsen:
continue
else:
arr.append(array[i])
return arr
def Convert(string):
li = l... | [
"noreply@github.com"
] | noreply@github.com |
fe87efcb60bb503982fd20c1b87a168fdc54aab2 | 5cab42018756ef46ddba425d648d1362b589dbff | /group_feed/api/serializers.py | c9f1d29bbb513cf9db4b32bbbbe0b2a1079bff45 | [] | no_license | adamgrossman/peer_feed | 9173d651355a435caa0395d37ab7ba0ab82a15f7 | e7c38e9d9ecdb5a0aead3e3aca8348277b256a38 | refs/heads/master | 2016-09-05T10:47:32.748179 | 2015-01-15T23:59:25 | 2015-01-15T23:59:25 | 26,848,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,888 | py | from rest_framework import serializers
from group_feed.models import Member, Group, Link, Comment, Tag, Vote
class MemberSerializer(serializers.ModelSerializer):
starred_links = serializers.SerializerMethodField('get_starred')
groups = serializers.SerializerMethodField('get_groups')
posted_links = seriali... | [
"Adam@Adams-MacBook-Pro.local"
] | Adam@Adams-MacBook-Pro.local |
19ea3d5a6b64029625bb3e90f7313205946a7c8b | 409be6f42209f355cf4412b42381f262d35bd65a | /introNeural/firstNeural.py | 6c53a307144a01397bc629b3f98e10dbf7819bd9 | [] | no_license | tbashiyy/zeroDeepLearning | e59a92b5895ab7077bb8fad2a300f363995ee9c9 | 4149d31c6058023a310f8953f84a8d7b4db859d6 | refs/heads/master | 2020-09-16T07:20:23.730498 | 2019-12-17T14:45:32 | 2019-12-17T14:45:32 | 223,695,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import sys
sys.path.append('/Users/yanagibashitomoya/Documents/private/dev/ZeroDeepLearning/modules')
import numpy as np
import matplotlib.pyplot as plt
import activationFunc
X = np.array([1.0,0.5])
W1 = np.array([[0.1,0.3,0.5],[0.2,0.4,0.6]])
B1 = np.array([0.1,0.2,0.3])
A1 = np.dot(X, W1) + B1
print(A1)
Z1 = activ... | [
"t.bashiyy@gmail.com"
] | t.bashiyy@gmail.com |
f7c7784499d50c998e032726f7ecdfd6e99ec1e6 | 4b396415a812a0114ef39038fda61dbf671a9253 | /mental-math.py | 66760e4edc7f7398a5c5b77d2d9aa9d6d480640c | [] | no_license | jianli/mental-math | e73d153b44d8fa0cc5eb548b21af702001f35f14 | ef03fd41dd35c946fc6b230f760d38ee17d44258 | refs/heads/master | 2021-01-19T11:37:27.167367 | 2013-01-12T22:38:32 | 2013-01-12T22:40:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,059 | py | """
Deliberately inefficient arithmetic using naive mental heuristics.
So far, only multiplication is implemented
"""
from __future__ import division
import itertools
multiplication_table = {}
for i, j in itertools.product(range(1, 13), range(1, 13)):
multiplication_table[i, j] = i * j
def is_power_of_ten(x):... | [
"jian@jianli.us"
] | jian@jianli.us |
4c646510599771a14b06e9cda4f6b5639a123e72 | ba18f5ad93e083b92267b28d626c317cf7e5085c | /FTPSync.py | 2e143a5c99570ff22bb4f771d9701a57c2454d9a | [
"MIT"
] | permissive | rfessler/SublimeText2-FTPSync | 0cebea13d483e2e2da8365588e508833893eaeb1 | 88d431ece204dc4eb29ea02430edd63f61a7f531 | refs/heads/master | 2021-01-18T11:00:00.112074 | 2012-11-09T18:15:34 | 2012-11-09T18:15:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,576 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2012 Jiri "NoxArt" Petruzelka
#
# 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 use,... | [
"petruzelka@nox-art.cz"
] | petruzelka@nox-art.cz |
e4bb7424780c2769bf6f9f3efcf9acf8a6e51758 | a032b35ca7be43204f769556000446392202a98b | /Assignment 14/hw14_evaluate.py | b0fe7f9b83c36ebdd87e2f831149d06b3af73951 | [] | no_license | aarondwilliams/Textual-Analysis | 7a763e2b5a7c3de15bad6f5f14cbad34d4bdb7f8 | b9043f23154f16b5acdd190e7bb9f75d6aa7f9cc | refs/heads/master | 2020-04-02T11:09:41.877622 | 2019-02-22T15:04:14 | 2019-02-22T15:04:14 | 154,373,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | import numpy as np
from hw13_solution import RNN
from hw14_solution import spec
ENCODINGS = {
'he': np.array([1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
'she': np.array([0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
'is': np.array([0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
'and': np.array([0, 0, 0, 1, 0, 0, 0,... | [
"noreply@github.com"
] | noreply@github.com |
2b16bf1e1c27218d74a0d3bec0ddccb922edb9da | 6ccdc8553f12f153cb1b28d195cb57c6552a42ea | /src/correlations_example.py | 06a5f243774a155cddecb80dc537a599a5d0ee3d | [] | no_license | cavallo5/MLlib_Apache_Spark | c0c2b3e015b73966e9176ff1e7a3e6454b2713f5 | 9c4f9c264dc42f0e2d25be8a4959b2b2c1ea4961 | refs/heads/master | 2023-04-08T03:10:01.175464 | 2021-04-15T09:14:50 | 2021-04-15T09:14:50 | 245,622,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
"vincenzocavallo.ing@gmail.com"
] | vincenzocavallo.ing@gmail.com |
b7c2d7e09b1b7e8e2542b52471398cd4f2f05dc5 | 67935be7517d3c0215025dad6680fb9436c53330 | /test_executor/settings.py | 1b695ec3f612f3d5e017956efc620fbc2356af10 | [] | no_license | 23rdPro/Test-Executor | 189ec3e8ace103a8cf90b5ea524ccbebe98317e4 | 6aedc7776461a0d1bce250763aee05bed4877f7f | refs/heads/master | 2023-04-30T05:22:34.798708 | 2021-05-19T16:22:40 | 2021-05-19T16:22:40 | 368,929,821 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,945 | py | import os
import sys
from datetime import timedelta
from pathlib import Path
import celery
import environ
from django.contrib.messages import constants as messages
MESSAGE_LEVEL = messages.DEBUG
MESSAGE_TAGS = {
messages.DEBUG: 'alert-info',
messages.INFO: 'alert-info',
messages.SUCCESS: 'alert-success',... | [
"mailolumide@gmail.com"
] | mailolumide@gmail.com |
920efb140479f761779c298aeeec6ec404e14aef | bc63d13ef695ed8ffc487481fd22ec2b9ccdd0ba | /codes/flood_detection/ndfi.py | 98e1303d0f0e1f4341b61aeff7db33a90736f282 | [] | no_license | caglayantuna/phd_codes | 66fbb0c82a9a34524711b8628744c12c9f4619b3 | 5f64190931219897ed2a0eda901f6a4c4dd3fc55 | refs/heads/main | 2023-03-03T21:45:03.269346 | 2021-02-18T10:26:00 | 2021-02-18T10:26:00 | 340,012,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,014 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 12 22:28:36 2019
@author: caglayantuna
"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.misc import imsave
from functions.project_functions import *
def data_prepare(Image):
imarray=geoImToArray(Image)
imarray=np.where(im... | [
"noreply@github.com"
] | noreply@github.com |
01ef591e939e1957ca428570b792b4f0d1913223 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/bgp/peeropenhist1d.py | a70f146b1976cbe24363ebda9c25b83c7b20cf50 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 33,768 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
0fb99bdf78ea1d0d34ecf8eca5d4380201fcefe7 | 6d0a35ddf9b8fb0e663dceafb95ce0d957214f41 | /Main.py | 5fc454cd29c646a22112ca01a849de2a104f2686 | [] | no_license | BigZ93/SPAM | fd2d4235e87f35d0f460f9a28483c8e7ee90a3d8 | 93c1ea1311179e120b4a57162f3e539bf6316707 | refs/heads/master | 2020-05-30T16:03:54.955134 | 2019-06-05T13:15:35 | 2019-06-05T13:15:35 | 189,837,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,390 | py | import numpy as np
import matplotlib as mpl
import pandas as pd
import random
import itertools
def spam(data, minSup, frequentItems):
F = frequentItems
for i in range(0, len(F)):#len(F)
s = F[i]
pat = []
pat.append(s)
e = []
for j in range(i+1, len(F)):
e.ap... | [
"michal.t3@op.pl"
] | michal.t3@op.pl |
449214f85d823cff7628ceccb4fdfc53719413a7 | a4d617365f582788d1bf7e880f9069849d9b1d07 | /manage.py | 1db2a8811d80aec53636adb563514ece511fe2c0 | [] | no_license | mesmerx/plotgrafgmauff | f041bea442f2ced0cc90b29621e54064ce58a39b | 5c8080a90ab75262e4ab75c6db1e8c7190a9ed5d | refs/heads/master | 2020-12-11T02:03:51.510347 | 2017-11-01T00:21:53 | 2017-11-01T00:21:53 | 58,832,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plotgrafgmauff.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"mesmer@fisica.if.uff.br"
] | mesmer@fisica.if.uff.br |
db8852e97a84ec3b82a475d373f8534393934a78 | 2f18bb2c2012c3b8cb091a4b7f02932e2fb7a5c6 | /examples/gnn_models/han.py | df79bc8a89c574549e8245ff750238014d6f5e7c | [
"MIT"
] | permissive | AlvinWen428/cogdl | 1760d34511537228b60505b1334f91c4b343652d | aec4ec19961e9fe0ddbd4fd9e1367c8808057296 | refs/heads/master | 2023-02-02T17:59:02.072061 | 2020-12-20T14:01:21 | 2020-12-20T14:01:21 | 317,084,781 | 0 | 0 | MIT | 2020-12-03T08:48:49 | 2020-11-30T01:58:13 | null | UTF-8 | Python | false | false | 1,789 | py | import torch
from cogdl.datasets import build_dataset
from cogdl.tasks import build_task
from cogdl.utils import build_args_from_dict, print_result, set_random_seed
DATASET_REGISTRY = {}
def build_default_args_for_heterogeneous_node_classification(dataset):
cpu = not torch.cuda.is_available()
args = {
... | [
"noreply@github.com"
] | noreply@github.com |
ea444094ecee42f03ba87da918a1f7d6052c9143 | 2baeda13901fe6a435639b9a69e2b9906694d481 | /tools/tcp_socket_server.py | 23a3a156cb22778f29f45a907d2add21dc646953 | [] | no_license | Newbwen/demo | 689aec909e941adc755ec9eb92c6b12843314917 | c00023ae1ed04f915c5bdb532431cdf43974a6d2 | refs/heads/master | 2023-06-14T07:52:47.959731 | 2021-07-12T06:57:31 | 2021-07-12T06:57:31 | 385,095,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: liubowen
@contact: 15178940382@163.com
@site: http://www.liubowen.icu/
@file: tcp_socket_server.py
@time: 2021/7/12 10:53
"""
import socket
import threading
def handle_sock(sock, addr):
while True:
try:
data = sock.recv(1024)
m... | [
"yuanguotao@jinqigroup.com"
] | yuanguotao@jinqigroup.com |
a5eaaa663c5c45d712b20c8e4ece25b254f4a3c5 | cb351f45fd126d1ba19d03188a7dde2be2cf660d | /hackathon/dashboard/urls.py | da1ecc1df6571607f2a2f5a7afe8f8b2284b9033 | [] | no_license | blueapple128/fun | e1e4b47e6ad91ee1e51f91e75f4313b3109c00a0 | ba762d9ef75fb7a12c4e0880e84f209b3b2c2d43 | refs/heads/master | 2022-05-21T06:57:00.133664 | 2022-05-01T10:00:00 | 2022-05-01T10:01:13 | 89,115,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.dashboard, name='dashboard'),
url(r'^(?P<id>[0-9]+)/$', views.info, name='info'),
url(r'^placeholder/$', views.placeholder, name='placeholder'),
]
| [
"ddr42@cornell.edu"
] | ddr42@cornell.edu |
a2bd0e9dc99c1faf53437fb4076d01fd4561fe8c | 62bbfb6c50bba16304202aea96d1de4990f95e04 | /dependencies/pulumi_aws/ssm/maintenance_window_target.py | 27e01ee014ac88dc17d6881ab9cdc5a010ea8e33 | [] | no_license | adriell/lambda-autoservico-storagegateway | b40b8717c8de076e61bbd422461c7d624a0d2273 | f6e3dea61b004b73943a5438c658d3f019f106f7 | refs/heads/main | 2023-03-16T14:41:16.821675 | 2021-03-11T03:30:33 | 2021-03-11T03:30:33 | 345,865,704 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,674 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilitie... | [
"adriel@infoway-pi.com.br"
] | adriel@infoway-pi.com.br |
fe90e7dd8c2bca31851387ad0fb012a04037c2c7 | b2f5a16788680038a0a7b812690e3797135cc9dc | /bin/epylint | 6ab9e1a63207557d3037c6033062a148d26243f9 | [] | no_license | younganakin/python-interview | 068b3f7eccff676aaf33f74f0fc2349f24faae23 | 9660db29ff2663e53a03ca039a2de48ec090e495 | refs/heads/master | 2020-03-27T10:26:49.640643 | 2018-08-28T11:27:15 | 2018-08-28T11:27:15 | 146,420,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/joe/python-interview/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"joenjuguna53@gmail.com"
] | joenjuguna53@gmail.com | |
c5db5e9a46da2677cec51806f99dd2bb3a96b688 | e3a246d6d0b86dff749b23ab6f647d77007b578f | /basic_approach.py | 1ee91b045c289cf84f2540ea6d0156d9f5a87177 | [] | no_license | Harshiitrpr/GRS | 5a325c785005cd1cf6c2129b02614a91939bf9cf | d018dbe16f2b194947083e9be61aa4e2509f7874 | refs/heads/master | 2023-06-14T04:04:57.044109 | 2021-07-13T18:26:18 | 2021-07-13T18:26:18 | 303,085,955 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import NoSuchElementException
from sel... | [
"2019csb1089@iitrpr.ac.in"
] | 2019csb1089@iitrpr.ac.in |
15483a800a815d17df17ab3227c43bfb93b5d732 | ba60d5f56a7b4060fde6abd051df05bbb47de0c5 | /Excel/findwav.py | efc4f412437687b3dcbc1e2c7412d550390a909b | [] | no_license | zhb45665/pythonwin32 | 90d30e376e6d1e97d7a921fe00ebfc0f26771548 | 9ae6d89b14c5f614331d13de1c09eec6823a3506 | refs/heads/master | 2020-06-17T06:31:39.592054 | 2016-11-29T02:08:59 | 2016-11-29T02:08:59 | 75,033,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | #!/bin/python
# -*- coding:utf-8 -*-
'''
Created on 2016年11月10日
@author: zhb
'''
import os
import os.path
import shutil
rootdir = "E:/平安录音/2013/record_pingan_13/"
path = "E:/平安录音/2013/2013/"
for parent,dirnames,filenames in os.walk(rootdir):
for dirname in dirnames:
print("parent is:%s" % pa... | [
"zhb@DESKTOP-6SS3PMQ"
] | zhb@DESKTOP-6SS3PMQ |
2b66dda31b7a65068cf254a6362e7a1a4a99bad5 | 8c3c4ae075c2afe5f0dcb7125f383ce4fcbaa640 | /apirest/folders/views.py | 0635a47350cf958566778bf8237ff09bcf648a34 | [] | no_license | luisgilsan/awsApirest | 302d29ea756a05285cc51d2eea9a6c2a52c2a27d | 5e6356f8e23b07ed2fe1c80645c30cbd490bc9ff | refs/heads/master | 2023-06-19T07:52:12.863540 | 2021-07-17T22:11:49 | 2021-07-17T22:11:49 | 386,933,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,245 | py | from rest_framework.response import Response
from rest_framework.views import APIView
from django.shortcuts import render
from rest_framework import viewsets
from rest_framework import status
from django.db.models import Sum,Count
from django.db.models import Q
from rest_framework_api_key.models import APIKey
from rest... | [
"luisgilsan_007@hotmail.com"
] | luisgilsan_007@hotmail.com |
6dc4cbb3b8c0dcba1c569752bf62f97e60a30220 | 7d133a22d97c6ea119f4e67baf425606fb76cd19 | /test_10_11/test2.py | 1ba1fd95ae01d894243c24efbbe282b90c942786 | [] | no_license | ChengCuotuo/learnpython | 502c3d24387bd24402187bb2c519c4ed7dbbcbf3 | c7f6194d70b2e85bbb8df3fb57b235d526192eb4 | refs/heads/master | 2020-05-19T12:33:04.748923 | 2019-06-20T14:45:26 | 2019-06-20T14:45:29 | 185,017,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!user/bin/python
#-*-coding:utf-8-*-
'''
编写人:王春雷
时间:2019.9.13
功能:面积
'''
import math
def circleArea(r):
if isinstance(r, (int, float)):
return r * r * math.pi
else :
print('数据类型错误')
area_circle = circleArea(1.5)
print('半径为1.5的圆的面积是: ', end='')
print(area_circle)
def triangleArea(a, b):
i... | [
"lei021191@outlook.com"
] | lei021191@outlook.com |
eca5eced63fe9c3245cced6a01c9a872dfd8a73d | 030829bfc1a652491164ca3ba3824a874a8ee109 | /mvg/tools/scatter.py | b6f90b9e61973c7db9b35bb1f4dc6d6d5c3fa66b | [] | no_license | natsutan/computervision | 0fed2397918e7f66550ef09b9ee5860732522124 | ed5b181190e4f80f20a537d70501dae58ca63636 | refs/heads/master | 2021-01-01T05:41:13.018706 | 2015-05-19T06:41:45 | 2015-05-19T06:41:45 | 5,079,219 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,394 | py | # -*- coding: utf-8 -*-
__author__ = 'Natsutani'
import sys
import os
from matplotlib.pyplot import *
class plot_data():
def __init__(self):
self.x = []
self.y = []
self.text = []
self.title = ''
self.output = ''
def read_file(self, fname):
fp =... | [
"YRW03704@nifty.com"
] | YRW03704@nifty.com |
a2f379ec2d52a70e592b712cabcbaec1a152e1c9 | 42c61cd2fed2dea035da543a54a6ff0e937686da | /Clinic/urls.py | e958714ad285f1d34735633f11d51de08c598342 | [] | no_license | kaibrakhman/clinic | 6539eb26728d4671ece4600835e36409fe15700b | 11266e8cd74b4dc92166593a01eaeb1f8ed7be1c | refs/heads/master | 2022-09-26T21:34:48.706681 | 2020-05-31T13:06:35 | 2020-05-31T13:06:35 | 268,282,500 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | """Clinic URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"kaibrakhman000@gmail.com"
] | kaibrakhman000@gmail.com |
60f7b577e2273cc8a391beff5747fcc9419b25f4 | 33c1e2381cb00f8a34bc14b71dd8adcd3b779875 | /status/forms.py | 030c3cd5077258a1cf8602d9c678e2adc90d401f | [] | no_license | BDGabe/Ampath-Summer-2020 | 429ef00ac74b30751d5c34fd3f003463411461aa | a70c9224d901556eb87de51bcc07db3a44e304b8 | refs/heads/master | 2022-11-10T00:48:57.405201 | 2020-06-22T15:15:53 | 2020-06-22T15:15:53 | 271,854,905 | 0 | 0 | null | 2020-06-12T17:30:59 | 2020-06-12T17:30:58 | null | UTF-8 | Python | false | false | 19,677 | py | import secrets
from django import forms
from django.core.exceptions import ValidationError
from validate_email import validate_email
from status.mail_sender import MailSender
from .models import EmailDomain
from .models import Region
from .models import Service
from .models import SubService
from .models import Subsc... | [
"fpaul787@gmail.com"
] | fpaul787@gmail.com |
ad762e5dc4a29a85f308b56d2ae0fa23a5bbeef4 | c182fe38217da6547b716756cfa03f76702c78eb | /JSON practice/JSON_Practice.py | 5de7f8da8fd8d1d48d7da3da981a9154b26ad345 | [] | no_license | IvannikovG/Python-cheatsheet | 1869f7053445db3424de906c18a42ac326de0f73 | 03a6aff65814143d06543c12f8354d6f51944ede | refs/heads/master | 2020-07-29T21:20:25.824092 | 2019-09-25T17:00:53 | 2019-09-25T17:00:53 | 209,965,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | # Javascript Object notation
# Nowadays has no real relation to JS
import json
people_string = '''
{
"people": [
{
"name": "John Smith",
"phone": "615-555-7164",
"emails": ["johnsmith@mail.ru", "john.smith@work-place.com"],
"has_license": false
},
{
"name": "Jane Doe",
"phone... | [
"ivannikovgeorge1337@gmail.com"
] | ivannikovgeorge1337@gmail.com |
5f9fff156d4daf696b96e514c1bbd240d1355ce0 | 03f2bff4a83ea80d3a6a7515ec4c742f7e7aabeb | /grokapi/__init__.py | 845b47f04aa25dfe98f53f4857049be3bcc1bac1 | [
"MIT"
] | permissive | Commonists/Grokapi | f1927af034b3388da9264fc1627283ba63cb88e4 | f9ff0a762b8d52719a6a5d1bb4dba7fc1c5ac88f | refs/heads/master | 2016-08-13T01:45:34.497771 | 2015-06-01T11:04:10 | 2015-06-01T11:04:10 | 36,179,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | """Client wrapper around stats.grok.se."""
__version__ = 0.1
| [
"JeanFred@github"
] | JeanFred@github |
c27d32cdd1b7b026779339fc68a7830871f34535 | 4dd811c2595a990cb21327afe7a2dfd54ba9b52f | /Open-CV_Basics/threshold_example.py | 3b3018af5e505a219059d82806e1a161262e2bc4 | [] | no_license | mitesh55/Deep-Learning | 40842af8b8f1ea3c041fa4de2e76d068f554c1a4 | 0a7c0305edb027acfaad38e7abe52808260cede9 | refs/heads/master | 2023-07-25T14:31:14.285489 | 2021-09-09T13:46:31 | 2021-09-09T13:46:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 24 09:09:57 2020
@author: pavankunchala
"""
import cv2
from matplotlib import pyplot as plt
def show_img_with_matplotlib(color_img, title, pos):
"""Shows an image using matplotlib capabilities"""
# Convert BGR image to RGB
img_RGB = ... | [
"pavankuchalapk@gmail.com"
] | pavankuchalapk@gmail.com |
8f90fe5ace2a54ce8f5732c48fb0bfa6f1957cb3 | a2b79cdd215118a743fdc336b29363da8e2abde9 | /database.py | 3c69121e6864a50e20c623ac922d714d04de0a02 | [] | no_license | mkhan45/1984 | c885442863156334f4535778ec326afcd05b3d5c | 7195690602ebf17c3cea99197f03894418a1ed2c | refs/heads/master | 2020-06-22T05:21:13.527403 | 2019-07-21T23:40:59 | 2019-07-21T23:40:59 | 197,643,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | from collections import defaultdict
import pickle
from pathlib import Path
def create_or_reset(databasepath):
'''
Resets or creates given descriptor database
Parameters:
---------------
databasepath: Path object
Returns:
---------------
None
'''
dict1 = dict()
... | [
"cjj9000@gmail.com"
] | cjj9000@gmail.com |
c199a8c9d14036ef6e195fc868e7c99f7939151e | 29ac2c1477b2972820dd024ee443b8626e3224cf | /gallery/migrations/0002_auto_20210608_0440.py | 87afdaaf43bc510f256b14412bc81c86310e8178 | [] | no_license | devArist/school_project3 | 5cdf1955e60ff727a64cf7cb50987da70149b0b8 | c153339cf55a87cb81b331ce7fbd43615a0435aa | refs/heads/main | 2023-05-09T19:48:32.092513 | 2021-06-08T10:07:25 | 2021-06-08T10:07:25 | 374,965,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # Generated by Django 3.2.3 on 2021-06-08 04:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gallery', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='photo',
name='formats',
fie... | [
"aridev97@gmail.com"
] | aridev97@gmail.com |
ece48aab3a307b0ed7ce5ca11fa32cded04d0644 | 49f07d136b4cc88e2fe2fe3dd6e19951e9c274f7 | /jsonSchemaToRsT/__init__.py | 059a1bfe9030b6bca5a4e8d39fc9f4fa923e1624 | [] | no_license | ChristianMeisenbichler/jsonSchema2RsT | 575a442c4b1b04d6cc7a5326bf27a076e647d5c3 | 65523d596e97f3d4a8bffc4f3741ff27640395fd | refs/heads/master | 2020-04-01T18:32:49.175218 | 2015-09-14T12:47:05 | 2015-09-14T12:47:05 | 21,426,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | from jsonSchemaToRsT.main import jsonschematorst
| [
"christian.meisenbichler@xal.com"
] | christian.meisenbichler@xal.com |
414dde3d27d3678cf999d8753cce512ba15376c6 | b5b2db958ca35385ba246b759e20e79e7b9b839c | /215-Kth-Largest-Element-in-an-Array/solution_divide_and_comquer.py | a1024d6966ae89254d4309543c6d4fef6dd7ffd5 | [] | no_license | quake0day/BugFree | f5d3713a4992ec102e7196c4dd8d24e7c7e0434f | d5b763a89086315078ab69df951898ad1fddde64 | refs/heads/master | 2021-01-21T04:26:08.828776 | 2016-08-04T20:19:03 | 2016-08-04T20:19:03 | 54,294,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | class Solution(object):
def findKthLargest(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: int
"""
n = len(nums)
pos = self.partition(nums, 0, n-1)
if pos > n - k:
return self.findKthLargest(nums[:pos], k - (n - pos))
... | [
"quake0day@users.noreply.github.com"
] | quake0day@users.noreply.github.com |
9a329c96fd6abe852b6f9363751b24ad1d7cb704 | 9af11dc7eef82e077f3dedc9086f68c5bd8d787f | /doubanallmovie/settings.py | 3baf02e43abd7873ad133d878d424b7d71ef8da4 | [] | no_license | myWillison/doubanallmovie | edb70ef897782e26affb45b7a066af400f50582b | dcf148d1d0aae71ebd5249da7bb1ed880d457245 | refs/heads/master | 2021-10-09T15:20:45.622296 | 2018-12-30T12:28:08 | 2018-12-30T12:28:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,626 | py | # -*- coding: utf-8 -*-
# Scrapy settings for doubanallmovie project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/lates... | [
"1027664894@qq.com"
] | 1027664894@qq.com |
94f546c812c2e5bd92a38ed699cd637f6766f32c | d2c1ff2dc35840ad31dd6410112e5c2ebb2c3659 | /banker/__openerp__.py | 03e3e4c1b6e2d69cc6a782a7f94ec123e6966d17 | [] | no_license | sud-jash/OdooTest | 28b065f0902ca99f06fb0be5cc3839ef30d621bb | 4ba57573026c9ae44705ef02efbd7bff9f01080c | refs/heads/master | 2021-01-22T23:20:38.550740 | 2015-07-03T02:44:58 | 2015-07-03T02:44:58 | 38,256,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | # -*- coding: utf-8 -*-
{
'name': "banker",
'summary': """
Short (1 phrase/line) summary of the module's purpose, used as
subtitle on modules listing or apps.openerp.com""",
'description': """
Long description of module's purpose
""",
'author': "Your Company",
'website... | [
"jash@ubuntu.ubuntu-domain"
] | jash@ubuntu.ubuntu-domain |
091eaa8d8b8e0031b351affb291d1cdc4d49ae3b | 767628ddbb99159c4cda58bc69853e6b9166c050 | /parking/genie/migrations/0008_event.py | 59a474b5268d879aa1ffd85f4afca007922ca242 | [] | no_license | kev-thomas/aggie-blue-parking | 34c76cae52a64b83f4a2ae9c9c700ebe1195b6da | 8cf6d5cc5215f6ebff5e664a6aa1b563bb7e14cc | refs/heads/master | 2023-04-16T14:26:28.425268 | 2021-04-22T03:52:50 | 2021-04-22T03:52:50 | 361,053,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | # Generated by Django 3.1.7 on 2021-03-24 19:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('genie', '0007_auto_20210316_0131'),
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
... | [
"andrewjouffray@hotmail.fr"
] | andrewjouffray@hotmail.fr |
546d8ed0e17b68ef964c7a21439a8eeaaba4263e | 2a429b3a60616c0b3af4c406f632ec5071fb6d3d | /计算机视觉/old_people_system/源代码/inserting.py | 668861c2d3fa0c98bcbc364e8aef9e6bb15f6480 | [] | no_license | yinheyinhe/small-term-weixiang | def9e39761eb2a270a2a2e34873fc9070e273b2b | 0fa0c97da1e19a6919e9cd533f9b6a4d3dfb6e72 | refs/heads/master | 2023-06-28T06:04:05.887514 | 2021-07-18T14:34:16 | 2021-07-18T14:34:16 | 383,062,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,274 | py | # -*- coding: utf-8 -*-
'''
将事件插入数据库主程序
用法:
'''
import pymysql
import datetime
import argparse
f = open('allowinsertdatabase.txt','r')
content = f.read()
f.close()
allow = content[11:12]
if allow == '1': # 如果允许插入
f = open('allowinsertdatabase.txt','w')
f.write('is_allowed=0')
f.close()
pri... | [
"18301067@bjtu.edu.cn"
] | 18301067@bjtu.edu.cn |
28def183758ec542d07c1355f6cc7aefdf8cf71e | 9fb9b55c80b9022b42740401b114c4700ce42f04 | /homeassistant/components/roomba/binary_sensor.py | d1aac7931de1915066b57635c7eed167cd8040ca | [
"Apache-2.0"
] | permissive | chrisme/home-assistant | 516e3ab457f556e1770bfade154c187ba0df64d7 | d0856d07275eb4a8faefd42e08572c11f82b2261 | refs/heads/dev | 2021-08-06T04:46:15.333975 | 2020-05-09T19:39:30 | 2020-05-09T19:39:30 | 169,498,031 | 0 | 0 | Apache-2.0 | 2020-05-09T19:39:31 | 2019-02-07T00:26:19 | Python | UTF-8 | Python | false | false | 1,484 | py | """Roomba binary sensor entities."""
import logging
from homeassistant.components.binary_sensor import BinarySensorEntity
from . import roomba_reported_state
from .const import BLID, DOMAIN, ROOMBA_SESSION
from .irobot_base import IRobotEntity
_LOGGER = logging.getLogger(__name__)
async def async_setup_entry(hass,... | [
"noreply@github.com"
] | noreply@github.com |
3095e0bf06445574a18da530b631a4c84c9e3af7 | 191fb757517911acf1ee40e259e23d1864c13d2b | /py/updateTempShapes.py | 9063ef0e9d4db67b76635b4e25d02c860fa5d0f8 | [] | no_license | shade3d/physics_assistant | 437c9f78677b9d8c7ca88b7e8ae432cdaba057db | 3b6ca78d1480f11834a588873a54928adf4bbfc9 | refs/heads/master | 2020-06-16T01:16:52.673279 | 2016-12-01T05:18:13 | 2016-12-01T05:18:13 | 75,254,709 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,619 | py | # -----------------------------------------------.
# 物理シーンの形状を一時保持/まとめて更新する関数.
# 要 : getCurrentPhysics.py
# -----------------------------------------------.
# --------------------------------------------------.
# 物理シーン内の形状情報を一時バッファに保持.
# --------------------------------------------------.
def getPhysicsShapesParam()... | [
"noreply@github.com"
] | noreply@github.com |
500729c399198a7f347c002ba8524217d5ad7c11 | 4324d19af69080f45ff60b733c940f7dc1aa6dae | /google-ads-python/google/ads/google_ads/v0/proto/services/ad_group_bid_modifier_service_pb2_grpc.py | 323a703193e94e53842992d5f9f98450e7ec0307 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | ljborton/Forked_Work | cc8a3813c146ea4547aca9caeb03e649bbdb9076 | 7aaf67af8d9f86f9dc0530a1ad23951bcb535c92 | refs/heads/master | 2023-07-19T22:26:48.085129 | 2019-11-27T02:53:51 | 2019-11-27T02:53:51 | 224,321,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,600 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.ads.google_ads.v0.proto.resources import ad_group_bid_modifier_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2
from google.ads.google_ads.v0.proto.services import ad_group_bid... | [
"noreply@github.com"
] | noreply@github.com |
6327cc15593e29d7b0f45312359af9350a81a2cc | 15d477b2bc7da4e1bddd6fa33f0768fcbd4c82c3 | /simple_3d_engine.py | 62feb8ad80ef2a33f85e02f37a7f238e444e751b | [] | no_license | gunny26/pygame | 364d4a221e2d11bd491190f97670b09123146ad7 | 1fd421195a2888c0588a49f5a043a1110eedcdbf | refs/heads/master | 2022-10-20T00:56:34.415095 | 2022-10-03T19:27:52 | 2022-10-03T19:27:52 | 7,414,604 | 5 | 11 | null | null | null | null | UTF-8 | Python | false | false | 6,778 | py | #!/usr/bin/python3
import sys
import math
import time
# non std
import pygame
class Vec2d:
def __init__(self, x, y):
self.x = x
self.y = y
class Vec3d:
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z
class Vec4d:
def __init__(self, x, y, z, w):
... | [
"arthur.messner@gmail.com"
] | arthur.messner@gmail.com |
1e8f0ed0b696f784570589cfed29e2857650a243 | a1b29dc347b22c772c30dce1244b7e3d1eb866e8 | /block.py | d576fc30ba6060c26eb42fb173707d34fd5dfd54 | [] | no_license | mariusz89016/tetris | b29598f1fa409a268a579518d74ed3be90e57ab8 | da8e13fe05e8f0b064d1bea2c2947bbed531ae28 | refs/heads/master | 2020-03-17T21:41:37.146747 | 2018-05-18T15:07:30 | 2018-05-18T15:07:30 | 133,969,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
class Block:
def __init__(self, elem):
self.elem = elem
def __str__(self):
result = ''
for y in range(len(self.elem)):
for x in range(len(self.elem[0])):
result += '█' if self.elem[y][x] else ' '
re... | [
"mariusz.wojakowski@allegro.pl"
] | mariusz.wojakowski@allegro.pl |
d1297225e16ebf5161aebae8590fb1060bd9310e | e6f16fbba8fba750099252c3490f00079cb19101 | /算法/053_最大子序求和.py | e493a34fa89f268394e4fe3b768062a9898cacd9 | [] | no_license | hookeyplayer/exercise.io | 0a36fbec9df6c24b60ff6f97de27d3d5ae7769d4 | 605c81cb44443efd974db9fa0a088ddcd5a96f0f | refs/heads/master | 2023-06-20T17:03:20.310816 | 2021-07-31T12:50:21 | 2021-07-31T12:50:21 | 277,175,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | from typing import List
class Solution:
# DP1
# 贪心
def maxSubArray(self, nums: List[int]) -> int:
thisSum = 0
maxSum = -2**31
for i in range(len(nums)):
if thisSum < 0:
thisSum = 0
thisSum += nums[i]
maxSum = max(maxSum, thisSum)
return maxSum
# DP2
def maxSubArray(... | [
"noreply@github.com"
] | noreply@github.com |
ea2dd8bf45e6bb9c2b6ff09afb422072ab1fe92b | 8566f9905a831b05dd79c0cb0d1cf99bd258a917 | /models/sml/sml_celeba_cactus.py | 0360822647d3a2a0a40c06b37deafe44bdd0e926 | [
"Apache-2.0"
] | permissive | emerld2011/MetaLearning-TF2.0 | 8e81db2a5489ffc2ccb4f21eb8202d1c50106844 | de852bd3b2ff46f8d390cebf561add3a166ee855 | refs/heads/main | 2023-08-14T18:21:23.539460 | 2021-09-17T14:42:22 | 2021-09-17T14:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | import tensorflow as tf
from models.sml.sml import SML
from networks.maml_umtra_networks import MiniImagenetModel
from databases import CelebADatabase, LFWDatabase
def run_celeba():
celeba_database = CelebADatabase()
base_model = tf.keras.applications.VGG19(weights='imagenet')
feature_model = tf.keras.mo... | [
"siavash.khodadadeh@gmail.com"
] | siavash.khodadadeh@gmail.com |
c2f7427f8a9376c82c9b11020e901859309f5314 | 50653bf407965fdf40b3fcf2ebab42ae02e4cfd0 | /coffee_app/migrations/0001_initial.py | 8259875c565424de4e3f98b101a96e54647699a9 | [] | no_license | carlosrivera22/CoffeeShopsPR | 09ec4e99effe9480449afd2de6fd952971bba8d6 | 54b73b7ca84e0ec0fdad4b31019a5f56b0854ba7 | refs/heads/main | 2023-02-14T04:52:02.692853 | 2021-01-09T23:00:13 | 2021-01-09T23:00:13 | 314,882,004 | 0 | 0 | null | 2020-11-25T03:42:25 | 2020-11-21T18:53:40 | Python | UTF-8 | Python | false | false | 175 | py | # Generated by Django 2.2 on 2020-12-16 02:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
]
| [
"carlos.rivera@econsgroup.com"
] | carlos.rivera@econsgroup.com |
90c3287c1ab2452a889f97530c327d11886bb7eb | 5740854fe7d878e745cedebca477a540f906f9e2 | /jdac/code/model/bilstm_cnn_attention.py | d0d25b121bd642b2b8ee688afdbb459e92c25101 | [] | no_license | C1122C/Judgement-Document-Analyze | 84c4cb5dcdf591de762a6301d656b6526bdb00c2 | 533be5e3d5a162ce9bd8759c93434a18a54078e0 | refs/heads/master | 2020-04-28T00:48:44.879097 | 2019-04-25T08:25:29 | 2019-04-25T08:25:29 | 174,829,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,888 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import tensorflow as tf
class ModelConfig(object):
"""RNN配置参数"""
def __init__(self):
self.EMBEDDING_DIM = 128 # 词向量维度
self.FACT_LEN = 30 # 事实长度
self.LAW_LEN = 30 # 法条长度
self.NUM_CLASS = 2 # 类别数
self.NUM_LAYERS = 2
s... | [
"763443070@qq.com"
] | 763443070@qq.com |
41382e5f11554c4881d9c9d346f4f49b7da73cb9 | 8dbc1feb6136d5f045d4784f9a045c13383edc95 | /Backjun/1.py | 7b23a3d42350e7152e327deeba6eeb9e925ca709 | [] | no_license | wonjunchoi-arc/Django | a23d364a96a517c3d7a2eaa0a0e5ef1383c43cd4 | baa666451b924f3797104e32f891e9423eb66a9f | refs/heads/master | 2023-05-14T11:19:05.685943 | 2021-06-08T10:18:06 | 2021-06-08T10:18:06 | 370,548,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | numbers = map(int, input().split())
print(sum(numbers))
| [
"qlszkd13@naver.com"
] | qlszkd13@naver.com |
7a08c8c0f10a0f895db76c5b49933e2ec90cfd3c | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /8WvpPQto44PqNLSqJ_16.py | 1beb2118e0b5593eebf9a90ec62cd377057db150 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py |
def pad(message):
if len(message)<140:
if not len(message)%2:
message += ' l'
else:
message += 'l'
while len(message)<140:
message += 'ol'
return message
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a68d760a069c84b3e5c6d1a92d06ab3f2bd4fd43 | 950ce2ac7aa569c7e82bd135492c0ff94ef97c74 | /test/myapp/myapp/spiders/item_xpath.py | 4f8a0120bf12e339747335c62122f88055842a82 | [] | no_license | ShichaoMa/webWalker | 74ea7f38b74272d951e8bccea730a40f7f0c72b4 | 8c085d6f385f85f193b0992b1148f165652e3a98 | refs/heads/master | 2021-01-12T16:50:36.331337 | 2017-12-08T11:26:46 | 2017-12-08T11:26:46 | 71,446,722 | 62 | 18 | null | 2017-12-08T11:26:47 | 2016-10-20T09:27:08 | Python | UTF-8 | Python | false | false | 236 | py | # -*- coding:utf-8 -*-
ITEM_XPATH = {
"bluefly": [
'//ul[@class="mz-productlist-list mz-l-tiles"]/li//a[@class="mz-productlisting-title"]/@href',
],
"douban": [
"//a[@class='product-photo']/@href",
]
}
| [
"308299269@qq.com"
] | 308299269@qq.com |
fbb0c73d69edc8e75064c5da0a675e4a400b0794 | 9a0acd22077c7d16a9329c6282d61a2791c3bde1 | /gfxhatLibrary.py | 449768a435c3b0f8158d9a9e7c0a055be1c3d63e | [] | no_license | panc0046/python_lab5 | 285fa9cf829c96548fa731884147463be8a63de7 | dcf4c1bd4835482a671155307f748ba78b99d134 | refs/heads/master | 2022-02-22T12:47:57.652422 | 2019-10-08T14:21:24 | 2019-10-08T14:21:24 | 213,570,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | from gfxhat import lcd
from gfxhat import backlight
import time
import random
# Show vertical line
def verticalLine(x):
y = 0;
lcd.clear()
lcd.show()
backlight.set_all(0,0,255)
backlight.show()
if x < 127:
for y in range(0,63):
lcd.set_pixel(x,y,1)
y = y+1
... | [
"noreply@github.com"
] | noreply@github.com |
a61936e0b3152ba6a39cdb301e33356c628ccc6c | a14ec6e367e6a471bfc74c066fb958ef585bc269 | /2022/22/b.py | 1b47f0a8bee5acc2c3a1acc74fd052c972b656f5 | [] | no_license | jimhendy/AoC | 90641814ed431f46a8500ff0f022c6c957567563 | a1727f88bc2e6f739d65902dce188377966b3fb4 | refs/heads/master | 2023-09-02T14:48:39.860352 | 2023-08-28T08:09:19 | 2023-08-28T08:09:19 | 225,152,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,593 | py | import re
from collections import defaultdict, deque
from collections.abc import Callable
from tools.point import Point2D
DIRECTIONS = deque(["right", "down", "left", "up"])
FACING_VALUE = {"right": 0, "left": 2, "up": 3, "down": 1}
OPPOSITES = {"down": "up", "up": "down", "left": "right", "right": "left"}
def run(... | [
"jimhendy88@gmail.com"
] | jimhendy88@gmail.com |
733ef059bae29cf7d25be22bc2afabfac6bc1540 | af82ca2fd932350cb5fc478161fb54233d7121a6 | /src/scorect_api.py | 178a597295d90da82d02d956507760dd2f6dff87 | [
"MIT"
] | permissive | rob-p/scoreCT | 062931c1fb69532336a74aaaa38ee768bf8fc493 | 463289f9a2ab4a07a8d2d8eda43042e13392846b | refs/heads/master | 2022-04-09T19:55:00.755323 | 2020-03-11T05:02:22 | 2020-03-11T05:02:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,163 | py | #!/usr/bin/env python3
# Lucas Seninge (lseninge)
# Group members: Lucas Seninge
# Last updated: 07-24-2019
# File: scorect_api.py
# Purpose: Automated scoring of cell types in scRNA-seq.
# Author: Lucas Seninge (lseninge@ucsc.edu)
# Credits for help to: Duncan McColl
"""
API automated cell type annotation in scRNA-s... | [
"lucas.seninge@gmail.com"
] | lucas.seninge@gmail.com |
285805fef3a2ff9e680c5ab423f7d70e47b906fb | 71962596a0693e03e19257f1beb3bdda223ed4ff | /profile_xf05id1/startup/81-saturn.py | f8188b0e760c0e83d75202caca233c3c59ee06b7 | [
"BSD-2-Clause"
] | permissive | tacaswell/ipython_srx | 53561979f27a108063f4851ea314073768098cbb | e3dbb45cfd87c166878e8420654cc7995f772eda | refs/heads/master | 2020-12-25T00:19:11.936763 | 2016-02-18T00:30:51 | 2016-02-18T00:30:51 | 51,659,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,831 | py | from ophyd.mca import (EpicsMCA, EpicsDXP)
from ophyd import (Component as Cpt, Device, EpicsSignal, EpicsSignalRO,
EpicsSignalWithRBV, DeviceStatus)
from ophyd.device import (BlueskyInterface, Staged)
class SaturnMCA(EpicsMCA):
# TODO: fix upstream
preset_real_time = Cpt(EpicsSignal, '.PRT... | [
"klauer@bnl.gov"
] | klauer@bnl.gov |
985fa1c907017b8a3ed95d6a50e2fdcf3693ad54 | 2f3b38764952b470622c44d08ac07b956a6c9f7b | /Imp_Py/3_ex_contains.py | 620c91a70560f66f0fb0081d3c54f3d9c7b16425 | [] | no_license | Aetos19/PDJ2 | 16fd00204d9e022d107df14d8e6539a988d204f5 | dbcebda362bc6da916442d1ca8c4bf11a1fa221a | refs/heads/master | 2020-08-24T01:30:31.136068 | 2018-04-27T03:43:51 | 2018-04-27T03:43:51 | 216,740,755 | 0 | 0 | null | 2019-10-22T06:37:26 | 2019-10-22T06:37:26 | null | UTF-8 | Python | false | false | 464 | py | class CaseInsensitive:
def __init__(self, **kwargs):
for key, value in kwargs.items():
self[key.lower()] = value
def __contains__(self, key):
return super(CaseInsensitive, self).__contains__(key.lower())
def __getitem__(self, key):
return super(CaseInsensitive, self).__getitem__(key.lower())
def __setit... | [
"sreekanthreddy.v@live.com"
] | sreekanthreddy.v@live.com |
f2fc137cb7f69ce5695244f728fb63925f944e8d | 019100d43c732fd3bbb9971c88953890a73e2a2b | /examples/advanced_operations/add_smart_display_ad.py | 3c29b41bf02ac0f8f6ccd93c8e18044d75f069c4 | [
"Apache-2.0"
] | permissive | HardTom/google-ads-python | 3e9ff61efb439824bce4b79e995d28f146647c39 | 8ed125aa155017a7193b13b3d36d937a245a350e | refs/heads/master | 2023-01-05T09:47:18.647826 | 2020-11-09T19:08:19 | 2020-11-09T19:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,615 | py | #!/usr/bin/env python
# Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"noreply@github.com"
] | noreply@github.com |
5cb6cf516e8a31c00c8cdcb3d2db8617a3e0b897 | ae5c3219076b2419fb02ead30587182f583d59cd | /api/migrations/0001_initial.py | 455f9b33f708bb99c879ac09fef43e85e6f79ea0 | [] | no_license | xolanisiqhelo/ProfilesApplication | 5f68ac5cac54bff13b588b7263e2fe7f1f90e2eb | 2e8368dae7e2dd5f80694d4c7969349fe59a4555 | refs/heads/master | 2020-09-10T06:47:07.341216 | 2019-12-04T15:18:44 | 2019-12-04T15:18:44 | 221,676,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,851 | py | # Generated by Django 2.2.5 on 2019-12-04 14:46
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"siqhelo25@gmail.com"
] | siqhelo25@gmail.com |
64bcdc42713f2b0854949f1e02ddaa9bcd8e5e07 | 32d45340cd88fe0c2450444e26906615368f4726 | /hartley_imec3.py | ab9c1e29d9fc8d4d6352367fa216682972d9e7cf | [] | no_license | anupamgarg/color_vision | d8a7a46642c110807d3b21a01303eac31cf87e2f | 7ecae0f0545677739783fcff7e6d273f32013b5f | refs/heads/master | 2020-04-09T22:57:12.331064 | 2018-03-09T03:27:36 | 2018-03-09T03:27:36 | 68,040,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | import glob
import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import phase3_sync
data_folder = 'H:/AE4/U004/004_005_hartley_achromatic/'
print('Loading sync channels and calculating timing info.')
nidq_path = glob.glob(data_folder + '*.nidq.bin')[0]
imlf_path = glob.glob(data_folder + '... | [
"anupamkgarg@gmail.com"
] | anupamkgarg@gmail.com |
cf8f0a25e99bd7db3374ba8b4a58a0ef68db31bf | f259c292fa0cda89141c3da2c91e69ece3da91ab | /main.py | de703f11fd08da155ef70c086a7052f23245fa70 | [] | no_license | 095anmola/MACRO-PROJECT | 0a500b3bcff407731cda7aa0c84a158d37cfadcf | 590ff81547e524ea369b0c9675012ac9b7b05062 | refs/heads/master | 2021-04-15T09:54:36.270694 | 2018-03-22T10:24:40 | 2018-03-22T10:24:40 | 126,316,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,747 | py | #opening all files
file1=open("main.txt","r")
file2=open("nametab.txt","w")
file3=open("deftab.txt","w")
file4=open("argtab.txt","w")
file5=open("output.txt","w")
#making nametab
f1=file1.read()
s1=f1.split("\n") #splitting into lines
l1=len(s1) #no. of lines
for i in range(0,l1)... | [
"noreply@github.com"
] | noreply@github.com |
77f2524053eab1b8d882912c642ecfb499f8dea3 | cfbe0d932cd4413792013c27ed0b680fdf7401f2 | /mapillary_tools/edit_config.py | 617da5c72dfcbeb04908b17d22fb78acba4776c6 | [
"LicenseRef-scancode-secret-labs-2011",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | testbalda/mapillary_tools | da127c464f61ea19217c6c8b0adff04fe69903ba | 07c00bb83815e512e1b85f5957b7d1ac9dfdeb0c | refs/heads/master | 2020-03-30T14:11:04.962225 | 2018-10-02T11:31:50 | 2018-10-02T11:31:50 | 151,304,944 | 0 | 0 | BSD-2-Clause | 2018-10-02T18:40:42 | 2018-10-02T18:40:41 | null | UTF-8 | Python | false | false | 2,735 | py | import mapillary_tools.config as config
import os
import sys
import uploader
'''
(re)authenticate
'''
GLOBAL_CONFIG_FILEPATH = os.path.join(
os.path.expanduser('~'), ".config", "mapillary", 'config')
def edit_config(config_file=None, user_name=None, user_email=None, user_password=None, force_overwrite=False):
... | [
"jerneja.mislej@gmail.com"
] | jerneja.mislej@gmail.com |
7c96bfb1e2444a27e10da9fea798535dd9b63102 | 9ab4570fa38c042953a86702d154d072581b328d | /bin/node_modules/jquery/node_modules/contextify/build/config.gypi | 6e97be7513cc478543d57bb7cdc6b850d73549fa | [
"MIT"
] | permissive | daricyang/iiip_crawler | 44756c7f26e3c897a4af56af6e6e08fbffbac669 | 76aa74c9cae09efa1877f6667964ae49d41197f9 | refs/heads/master | 2021-01-20T13:47:55.365859 | 2013-12-15T11:20:05 | 2013-12-15T11:20:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,004 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 46,
"host_arch": "x64",
"node_install_npm": ... | [
"pok@pok-Lenovo.(none)"
] | pok@pok-Lenovo.(none) |
471ae5a340c42de4d6b95110032dd0ffd6f4f1f5 | 97c2f7cfc034235b556b8ce718cf57b8f9855525 | /backend/acoounts/views.py | 32455c4a8b27779bae877565df28f60bbcde39f3 | [] | no_license | sandesh1352/Full-Stack-Blog-Website | bdf4248504b870a7f11a3569f7571b14a27a70fb | 1c7d5c60be52614e0494125321fe2f1957375cae | refs/heads/master | 2023-03-24T13:05:29.237214 | 2021-03-24T12:52:25 | 2021-03-24T12:52:25 | 351,078,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | from django.shortcuts import render
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework_simplejwt.tokens import ... | [
"kadamsandy34@gmail.com"
] | kadamsandy34@gmail.com |
9ea0d53abc6fe76ea844647c939081ba7bef497d | 986a8c5de450fc436897de9aaff4c5f737074ee3 | /笔试题/2019 PayPal实习生招聘编程卷/2_寻找关联用户.py | 9f80fb24348a2f07ea5df09bb989cd129384753d | [] | no_license | lovehhf/newcoder_py | 7a0ef03f0ea733ec925a10f06566040f6edafa67 | f8ae73deef1d9422ca7b0aa9f484dc96db58078c | refs/heads/master | 2020-04-27T18:20:19.082458 | 2019-05-24T15:30:13 | 2019-05-24T15:30:13 | 174,564,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,697 | py | # -*- coding:utf-8 -*-
__author__ = 'huanghf'
"""
PayPal上海团队一直致力于风险控制,风控需要收集各种信息,有时需要通过地理位置找出用户与用户之间存在的关联关系,
这一信息可能会用于找出用户潜在存在的风险问题。我们记两个用户的关联关系可以表示为:
(1). user1,user2与他们最常发生交易的地理位置分别为(x1, y1),(x2, y2),当这两个用户的欧氏距离不超过d时,我们就认为两个用户关联。
(2). **用户关联性具有传递性**,若用户1与用户2关联,用户2与用户3关联,那么用户1,2,3均关联。
给定N个用户及其地理位置坐标,将用户按照关联性进行划分,... | [
"853885165@qq.com"
] | 853885165@qq.com |
539a2860468dd43d60eefdb98b7b644ed39a7ea2 | 74ea4f2fc8e06a2964725c3a41d8910315da25c8 | /week03.py | 4563e89362fb5482ac8679a572776cc7f2c38612 | [] | no_license | lina0219/homework | 00622b322c8b1ae6fe27f5047935e26146aecc61 | ec3c6da6c3a0f4cd00ae94ca6d6d948bc5c03e85 | refs/heads/main | 2023-02-11T07:09:30.966498 | 2020-12-28T16:54:14 | 2020-12-28T16:54:14 | 322,292,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import requests
from bs4 import BeautifulSoup
from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.dbsparta
headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36'}
data = requests.get('https://www.ge... | [
"wodms0219@gmail.com"
] | wodms0219@gmail.com |
9a7081a6b9d4c4adfd56248282f0ce2637e08d91 | 53724276c33f715745786c163366aacc6a6d7876 | /News_Scraper/News_Scraper/settings.py | 2b178a31b1266319ca0f0c2d1c96170ff865202f | [] | no_license | thipham0502/ScrapyProject | e9bead6277a4da3eb90f4c9a089677e89d4df596 | c1f8047f0c56d83525b0de5446943a1532a5d9d8 | refs/heads/main | 2023-02-28T09:14:47.899382 | 2021-02-08T08:26:33 | 2021-02-08T08:26:33 | 337,003,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | # Scrapy settings for News_Scraper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middl... | [
"noreply@github.com"
] | noreply@github.com |
d0a580aaa5edce4979a869971401b95f3b920d70 | 1b862f34c125ce200244dd79e4fda4b5b605ce2e | /.history/ML_EO_20210607233236.py | 524991d44904097561ba54152a436c881885c12f | [] | no_license | edwino26/CoreImages | 26085a49cf1cb79442ae563a88354b2fdceace87 | 6bf6e68cac8ab36c87b1e6ea702bfe6882b0f40e | refs/heads/master | 2023-06-22T12:53:37.344895 | 2021-07-21T04:31:44 | 2021-07-21T04:31:44 | 309,553,247 | 0 | 4 | null | 2021-04-29T23:23:15 | 2020-11-03T02:45:07 | Lasso | UTF-8 | Python | false | false | 25,622 | py | # # lectura de los xlsx del procesamiento de imagenes
# y la informacion obtenida de los registros por pozo
# %%
import numpy as np
import pandas as pd
import os
import os.path
import matplotlib.pyplot as plt # GRAPHS
from mlxtend.plotting import scatterplotmatrix
import glob
import seaborn as sns
import missingno a... | [
"ortega.edwin.y@gmail.com"
] | ortega.edwin.y@gmail.com |
662710962b725c877129494280b55276bf0a9f4e | ff4efd66379122b652ed2de5ad83ef847c27bb70 | /main.py | ead993f259a954aa4b687e8c766e194a9470db43 | [] | no_license | Jasonc8901/numpy-challenges | b6c5c1115bf73423e6ccadcd1414df4ecac5578d | 3d81239453d9dd007c7786013b91ff6de752f15b | refs/heads/master | 2023-08-21T14:11:31.034626 | 2021-10-10T21:42:50 | 2021-10-10T21:42:50 | 415,639,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | import challenges
if __name__ == '__main__':
print_hi('PyCharm')
| [
"jasonc8901@gmail.com"
] | jasonc8901@gmail.com |
2bacf773e1d1d158b317e0dd63ccc3eca151bf8e | b5d3e3489cdc216972ee6946bf80a194aed1faea | /app/serializers.py | e8a5c30ff458d6f9ec78a134b30944fa6f08ef1d | [] | no_license | Blobixx/metron_test | c307cd6c01059e5f2c3d109b834a1e2289c5daf9 | be1fe1e02dea0cd1e358317ee58a52a232a6a4eb | refs/heads/master | 2022-04-18T08:33:45.730219 | 2020-04-10T15:02:12 | 2020-04-11T10:33:08 | 254,645,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | from rest_framework import serializers
from .models import Character, Hat
class HatSerializer(serializers.ModelSerializer):
class Meta:
model = Hat
fields = ('id', 'color')
class CharacterSerializer(serializers.ModelSerializer):
class Meta:
model = Character
fields = ('id', ... | [
"shane@MacBook-Air-de-juliette.local"
] | shane@MacBook-Air-de-juliette.local |
4c1751fb2d3a0399ea99a7f5da2e06bed708ae9e | 14ecb2115b4bae883afd796522d6d61056439fc1 | /constituency/charniak-test.py | 306ce8caf0480a499fbfbfba3d1abb75fec0a6b2 | [] | no_license | omidkashefi/discourseparsing | 31eaec41a1b7ae08695fcd37ba9b274f9a3e39ac | 624a2254fc9a41d5b7fdbfe31eb51e0b5d09c3b9 | refs/heads/master | 2021-01-12T15:41:08.442440 | 2016-12-13T23:10:03 | 2016-12-13T23:10:03 | 71,850,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | from bllipparser import RerankingParser
rrp = RerankingParser.from_unified_model_dir('/home/kashefi/.local/share/bllipparser/WSJ-PTB3')
sentence = "In the 3rd level I would place my little brother in. because my little brother is a very greedy little bot he always wants something."
pcfg = rrp.simple_parse(sentence.sp... | [
"omid.kashefi@gmail.com"
] | omid.kashefi@gmail.com |
652966ea2aacfb48e464403b0ca985373f09bc30 | dfa96a16d010b01de5f5dfd19303e36ddf98393d | /askme/settings.py | 5f11786a43d06a927766c06a57ad5903a5fd0c18 | [] | no_license | mialinx/tt-quack | 280a67d00885c286b214b1f3d25f6aadf676e9e8 | 985b2f3646166ed4257728d810aaa9c35ff34c78 | refs/heads/master | 2020-04-04T14:01:42.849899 | 2018-11-03T13:09:55 | 2018-11-03T13:09:55 | 155,984,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | """
Django settings for askme project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# B... | [
"mialinx@gmail.com"
] | mialinx@gmail.com |
9498db4276799b71082911df61014f50e9e00ed4 | c879972850bdef6f9c05ec57c964125e4d5d8dfa | /lino/management/commands/qtclient.py | d7596bcdee3da87a45dd2c84f87e0999c0367cd2 | [
"BSD-2-Clause"
] | permissive | forexblog/lino | 845c17f22c6f58fbf0247b084ceacb5e89fba2ef | 68cbd5dd985737b63091b232b9c788a3a9875eef | refs/heads/master | 2023-02-16T02:33:08.387853 | 2021-01-15T09:39:58 | 2021-01-15T09:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,738 | py | # -*- coding: UTF-8 -*-
# Copyright 2017-2021 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
from django.core.management.base import BaseCommand
from django.conf import settings
import sys
from PyQt5.QtWidgets import (QApplication, QWidget, QPushButton,
QMessageBox, QDeskto... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
4367cfd86241971d0e1c3c8a466669afdf0fe18b | 2d12dcd5cc9721b6092661cbdcf89e43485c8844 | /hello_world.py | 60a8ab8bac5d04a0d016be24e197fa2fe6aa6535 | [] | no_license | Akram-Khan-dev/GitLearningRepo | 5e0aa95a0cd7f3fea8453da760dbe0a7a5561e1e | b0ac11199d69148f40782d1c2f85d86180fff45b | refs/heads/master | 2022-11-13T02:22:25.238148 | 2020-07-07T14:26:01 | 2020-07-07T14:26:01 | 277,831,963 | 0 | 0 | null | 2020-07-07T14:14:12 | 2020-07-07T13:59:42 | Python | UTF-8 | Python | false | false | 80 | py | print("Hello, world")
print('in dev branch')
print('New change in dev branch') | [
"akramasuspubg@gmail.com"
] | akramasuspubg@gmail.com |
2a7d38a0189ed2b59688b3d0b2c983a2d0a56740 | a1e04688e622c16c32c2b2a856cb745a18278839 | /Main/utils.py | a3cdad71ef9cfefdf212e4c850e964278ed4f5e7 | [] | no_license | Tanmengxuan/ANID | d51c4e9eaa56e4f2b0aee1193077882bbd4d6d5d | e7d84747226fc5df117de8185e8bbb01ceca9429 | refs/heads/master | 2020-04-27T17:03:06.060290 | 2019-07-24T03:18:14 | 2019-07-24T03:18:14 | 174,503,194 | 17 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,738 | py | import matplotlib
matplotlib.use('Agg')
import tensorflow as tf
import pdb
import numpy as np
import pandas as pd
from sklearn.metrics import precision_recall_fscore_support, precision_score, recall_score, f1_score, accuracy_score, confusion_matrix
import matplotlib.pyplot as plt
import h5py
import glob
import re
from ... | [
"mengxuan_tan@mymail.sutd.edu.sg"
] | mengxuan_tan@mymail.sutd.edu.sg |
30ee5b82371e74006e13d114f8f1da5e37e2137d | 956cc6ff2b58a69292f7d1223461bc9c2b9ea6f1 | /monk/tf_keras_1/transforms/common.py | 9253e05c5cce0e7d2d18e4deaa3832cf3c094726 | [
"Apache-2.0"
] | permissive | Aanisha/monk_v1 | c24279b2b461df9b3de2984bae0e2583aba48143 | c9e89b2bc0c1dbb320aa6da5cba0aa1c1526ad72 | refs/heads/master | 2022-12-29T00:37:15.320129 | 2020-10-18T09:12:13 | 2020-10-18T09:12:13 | 286,278,278 | 0 | 0 | Apache-2.0 | 2020-08-09T16:51:02 | 2020-08-09T16:51:02 | null | UTF-8 | Python | false | false | 3,810 | py | from monk.tf_keras_1.transforms.imports import *
from monk.system.imports import *
from monk.tf_keras_1.transforms.transforms import transform_color_jitter
from monk.tf_keras_1.transforms.transforms import transform_random_affine
from monk.tf_keras_1.transforms.transforms import transform_random_horizontal_flip
from m... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
016d1dbc321739c44e65a03a81d5f6c37552b3ff | 2ade357d4121d4f0f895950a082d31552387a0b3 | /Lowercasetoupper_prog.py | 32df56d9684acb02274fe0f3a24e6bf51a65aec9 | [] | no_license | Gilbertsb/Plotting-Garphs-in-Python | c4798f6cd42c63fa3b4e37a3b971e5368adeda43 | dffce0288f4c8e074b906e0c5db3e26845b98bcc | refs/heads/master | 2022-12-27T00:04:55.382029 | 2020-10-07T19:05:35 | 2020-10-07T19:05:35 | 302,131,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | import string #Module for string
import random #Module for random numbers
import numpy as np #Module for advenced list
import matplotlib.pyplot as plt #Module to plot graph
from memory_profiler import profile #Module for memory plofile
import time #Module for time
global comb ... | [
"gilbert121998@gmail.com"
] | gilbert121998@gmail.com |
346803f16648c9bec0c184074d9bb7e1a024c5d1 | 88b11db4325496449da89c87399eccdaa648fb57 | /mobileBackend/bin/easy_install-3.5 | 9499d242272c67298208e85ed6840e8ed34959da | [] | no_license | Omondimaurine/course | f2391585d7f96eedec76eba35d4123a276d596b2 | ca90fe23903786e74a8c4c4bf044b6b6c7a92ca8 | refs/heads/master | 2020-03-22T15:16:29.204447 | 2018-07-09T11:15:19 | 2018-07-09T11:15:19 | 140,239,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | 5 | #!/home/aphya4/Documents/tests/educa/mobileBackend/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"momondi@xelphahealth.com"
] | momondi@xelphahealth.com |
765507bb815248ad51edc9b9ad0a43f342a277f4 | f71e204f4f3d9e494555bbb2590ee95e9d021cbd | /time_decoding_subject_phase.py | a952784fcda3791b05af50c696336eadcb68c1e8 | [
"BSD-3-Clause"
] | permissive | MadsJensen/CAA | f2f35e94f7cdefa4601b854311b4d3adbb2e12c0 | 2a86919f7353a23435079f326d78110cd7249608 | refs/heads/master | 2021-01-10T17:00:40.688794 | 2017-06-06T16:23:22 | 2017-06-06T16:23:22 | 55,672,104 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | import sys
import numpy as np
import mne
from mne.decoding import GeneralizationAcrossTime
from sklearn.externals import joblib
from sklearn.linear_model import LogisticRegression
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
from my_settings import (tf_folder, data_path, ... | [
"mads@cnru.dk"
] | mads@cnru.dk |
4a371f762e46550eb62fcb37c37d1318b8c1a3b8 | 2dfb84017d2e00a1a43248ad30621151291daed3 | /python-sample/sample.py | c75a3953232609cb5de72c9b809dbdf31c86bae2 | [] | no_license | derrickeckardt/image-processing-for-grading-example | 29f065d4d3e15b4953b8ec3d168b6cd6c15a9a1f | e2f647bd59676150e7f748a4ecbd1b1c2a53967a | refs/heads/master | 2020-11-24T01:44:33.622189 | 2019-03-01T00:53:48 | 2019-03-01T00:53:48 | 227,909,750 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | #!/usr/local//bin/python3
# This is just a sample program to show you how to do
# basic image operations using python and the Pillow library.
#
# By Eriya Terada, based on earlier code by Stefan Lee
#Import the Image and ImageFilter classes from PIL (Pillow)
from PIL import Image
from PIL import ImageFilter
import ran... | [
"djcran@indiana.edu"
] | djcran@indiana.edu |
45f7d6d4b996a3f2a68e812954cfa1d7d5296425 | 6c9f234542abf3e3779b9c590fd33930322261c9 | /workd.py | 1c76581262abba6af464ffc608be8aa8d6e37bd0 | [] | no_license | yeongbin08/20200114.txt | 8e4b6639cac90cded7d07cfb9352256d319226dd | ad54205fa0e5a01b90321415dacf40f967a6c8c9 | refs/heads/master | 2020-12-11T06:45:31.810156 | 2020-01-14T08:19:54 | 2020-01-14T08:19:54 | 233,791,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | my_list=["월요일","화요일","수요일","목요일","금요일","토요일","일요일"]
my_list_len=len(my_list)
prd=0
for i in range(0,my_list_len):
print(i)
if i<5:
prd+=1
print(prd)
else:
prd=prd
print(prd)
| [
"oceanap8@naver.com"
] | oceanap8@naver.com |
f2e693e0750ad115e84aa7a2a434e4d9a56566bb | 88a3f23ea1a83bbb35068123129a6e4144b3e098 | /Fordham6210/HWs/a3/utils.py | 07ed87739a1d21d86715ddc94f7154f2f1f31290 | [] | no_license | MarcoXM/NatureLanguageProcessing | 8d9ce5d71bf95fd208fb64a2c81de9ba5a0afe87 | e330d82638069a9c65b09e45b569b98c620a8c90 | refs/heads/master | 2022-04-10T22:27:07.314652 | 2020-03-23T02:41:02 | 2020-03-23T02:41:02 | 198,003,512 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 635 | py |
from bs4 import BeautifulSoup
from urllib.request import urlopen
import numpy as np
import warnings
import os
import re
import pandas as pd
def getCorpus(link,tag):
html = urlopen(link).read().decode('utf-8','ignore')
soup = BeautifulSoup(html, features='lxml')
all_href = soup.find_all(tag)
co... | [
"xwang423@fordham.edu"
] | xwang423@fordham.edu |
84e6607c8844f6a04b1d98959b10d09db2dde1c1 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/pc/rtfcaccbndlgrptofcaggrif.py | 0325546ef5eaa31952748a03f1378eacc3fd4e64 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,000 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
b0ed974e68b6ded97373826ff027914898dba1d7 | 99a280da5f7d838157a7a2b75956622ec9649611 | /multiply_dummy/state.py | 8abb75b15e6ca34989e39c0967de30a155401cfd | [] | no_license | multiply-org/multiply-core | 2e08dc12c49686ebc98688916e643bae9c9cab86 | 1a7b0b1adffbb279d299499b4cf674a6fc03c4a7 | refs/heads/master | 2021-01-25T09:04:23.327450 | 2020-01-21T15:05:10 | 2020-01-21T15:05:10 | 93,776,791 | 3 | 4 | null | 2019-02-06T12:12:43 | 2017-06-08T17:50:36 | Python | UTF-8 | Python | false | false | 286 | py | """
define state vector
"""
class State(object):
def __init__(self, **kwargs):
self.state = kwargs.get('state', None)
assert self.state is not None
class TargetState(State):
def __init__(self, **kwargs):
super(TargetState, self).__init__(**kwargs)
| [
"tonio.fincke@brockmann-consult.de"
] | tonio.fincke@brockmann-consult.de |
8c529c07af84d91fd9c4e3012908fb6f78b74f9e | e5d83ede8521027b05d9b91c43be8cab168610e6 | /0x01-python-if_else_loops_functions/0-positive_or_negative.py | 7db6d2d5aec2226e9657ea987dac24bd7104128f | [] | no_license | Danielo814/holbertonschool-higher_level_programming | 8918c3a6a9c136137761d47c5162b650708dd5cd | 832b692529198bbee44d2733464aedfe650bff7e | refs/heads/master | 2020-03-28T11:09:00.343055 | 2019-02-22T03:33:54 | 2019-02-22T03:33:54 | 148,181,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | #!/usr/bin/python3
import random
number = random.randint(-10, 10)
if number < 0:
print("{} is negative".format(number))
if number == 0:
print("{} is zero".format(number))
if number > 0:
print("{} is positive".format(number))
| [
"211@holbertonschool.com"
] | 211@holbertonschool.com |
a06d623077ee7cb04677c0593125417be14ea9c3 | d4933c55eb44a9a7282072981e1176095d5a82d1 | /takeNotes/application.py | 9ea8233de9ce327e34146d8fb402e772313df77e | [] | no_license | sugandha27/flask | 838cbce0a0ab3455ecc5bcc61cbf09110553cb83 | 80bfdd507470b035b73a0491942a7c0be36d350b | refs/heads/master | 2022-11-15T13:10:25.915111 | 2020-07-09T18:17:38 | 2020-07-09T18:17:38 | 278,294,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | from flask import Flask, render_template, request, session
from flask_session import Session
app = Flask(__name__)
app.config["SESSION_PERMANENT"] = False
app.config["SESSION_TYPE"] = "filesystem"
Session(app)
notes = []
#global var over web application ie shared ar across different users
@app.route("/", methods=["... | [
"sugandhabhandari2011@gmail.com"
] | sugandhabhandari2011@gmail.com |
d4535232c0c077721f13c48f8e7ae8e7b9bbcf35 | b8e08de691fdfb9514335d4de2505909de53dc5a | /alfred/modules/data/eval_coco.py | e03e0bca2ed51ed5a63d3a6c21d6cf63607ba296 | [
"MIT",
"Apache-2.0"
] | permissive | MiaoRain/alfred | 8abfb7916ffecd794fb629d5bef30612ca3bdfc5 | 431bb0fe7f001a8e75a277c31888f56ed650608e | refs/heads/master | 2023-08-15T05:04:51.270397 | 2021-09-10T06:13:53 | 2021-09-10T06:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | """
send 2 json files contains
instances_gt.json and instances_generated.json
this will calculate a mAP of coco
then output the final result
""" | [
"jinfagang19@163.com"
] | jinfagang19@163.com |
8ec00a2885ff2c0923e4c18cbe638639cc34834b | 3bdfd653ad5ff12a6ea24d6a5081496ba1f7259c | /codigo_python/condicionales.py | 4a0dd85d9b39c8f13b67c641492b02fe219f05d7 | [] | no_license | bquillas/Learning-Python | 5f92bfc99962cd922a0c86d98b190f9c04480f8e | 2b157a420c763afc36422ff9e9c647b69345f647 | refs/heads/master | 2022-12-10T12:43:18.822364 | 2020-09-19T00:52:23 | 2020-09-19T00:52:23 | 288,582,831 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | #Shift + alt + A (Para comentar en bloque)
""" edad = int(input("Escribe tu edad: "))
if edad > 18:
print("Ud. es mayor de edad")
else:
print("Eres menor de edad") """
numero = input("Escribe un numero: ")
numero = int(numero)
if numero > 5:
print('Es mayor a 5')
elif numero == 5:
print('Es igual a 5... | [
"bill.system96@gmail.com"
] | bill.system96@gmail.com |
f2e75a38c924da072f13c94ed5e1166effaa8a90 | 92473a48a0350069159ebb67f825b6e048fd97ed | /afrigis/tests/mocks.py | 68bdd721b2b6bde70a6050534047a423de954a93 | [
"MIT"
] | permissive | chris-cmsoft/python-afrigis | 867b2bfd81d1b6faa9a56703abb7427e6f98cd1a | 5760c45159116733127ed7d3768cfde495a6bc0c | refs/heads/master | 2020-03-14T23:02:12.686787 | 2018-05-24T12:35:23 | 2018-05-24T12:35:23 | 131,835,023 | 0 | 0 | MIT | 2018-05-24T12:35:24 | 2018-05-02T10:25:51 | Python | UTF-8 | Python | false | false | 2,944 | py | import json
afrigis_geocode_unauthenticated_mock = json.dumps({
'statusCode': 401,
'message': 'Invalid Authentication',
'source': 'SaaS'
}).encode('utf-8')
afrigis_geocode_success_mock = json.dumps({
'number_of_records': 1,
'qtime': 83,
'code': 200,
'message': 'OK',
'result': [
... | [
"chris@cmsoft.co.za"
] | chris@cmsoft.co.za |
d907a95313cb7e129d29eccd522159db7d1a1d66 | 25053fc44e98e193bff287bfcc9fae7a0eeacf9d | /scripts/data/DatatoJS.py | 3969f31045672eed0d32d8c63db3bef091279e2f | [
"MIT"
] | permissive | stevenhussung/citiesproject | bb3af3642e4c4ec2631c683ec8093517f6c24826 | 526e1bcac4f78433bc4d86bd011b9c94d45182df | refs/heads/master | 2021-01-10T19:03:00.990839 | 2014-04-11T13:59:21 | 2014-04-11T13:59:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | f = open("DataSet.txt")
lines = f.readlines()
#Format into data
data = [i.strip().split(",") for i in lines]
data = [data[0]] + [map(float,i) for i in data[1:]]
f = open("DataSet.js", "w")
f.write("var DataSet = ")
#Edit here!
f.write(str(data))
f.close()
| [
"steven.hussung@gmail.com"
] | steven.hussung@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.