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
becd6b60081e776ae5a505d8fda91b85fce26a25
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/servicefabric/v20190301preview/service.py
a1dd32a3ef5290bb5498425ed70ed2ee1b75dad7
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
29,220
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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, overload from ... import _utilities fro...
[ "noreply@github.com" ]
morrell.noreply@github.com
a6f1df8c8c3dd73bd2c937dd3e0186367e7ecc93
19980ea46bb169873f01aaa1e89fc0d8ba488030
/samples/sampleopenflow/demos/demo11.py
b7138557fd71f15abbc7ceeaa7af146675c781a3
[ "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gaberger/pybvc
b0e4c7fd280d87330fe15e18eecca94f089bf1a4
bf546c4595a1a6282fca084865c5a0e69194030f
refs/heads/master
2023-01-13T21:19:01.625744
2015-12-01T16:01:00
2015-12-01T16:01:00
42,198,126
0
0
BSD-3-Clause
2022-12-26T20:18:11
2015-09-09T18:53:12
Python
UTF-8
Python
false
false
8,091
py
#!/usr/bin/python # Copyright (c) 2015, BROCADE COMMUNICATIONS SYSTEMS, INC # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright n...
[ "jeb@elbrys.com" ]
jeb@elbrys.com
713242c77de82f4a140ad0d44ae53b149b48bb82
e6e9b0544c84b3cb1f638f5bd5df1e4bd54145c0
/app.py
293613ac0260a4c63df46914be23fbc1e7adc632
[]
no_license
huechuwhc/huehij2eicmocj
2f98a5c419f6bf3ee57c3b8eda1491618973d1f1
b335b7b0a64b32e5d1d85d65d44386677bde93c5
refs/heads/main
2023-01-01T18:31:13.089963
2020-10-20T04:10:28
2020-10-20T04:10:28
305,581,809
0
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
print("Title of program: Encouragement bot") print() while True: description = input("how u feel?") list_of_words = description.split() feelings_list = [] encouragement_list = [] counter = 0 for each_word in list_of_words: if each_word == "sad": feelings_list.append("sad") encourag...
[ "noreply@github.com" ]
huechuwhc.noreply@github.com
9b1a69c6cbbfe6bc1782772b13b0804ea72105ec
385e547fa9d6473f2462d0f13ca2a716d3faab96
/python/ninjaDelverBear_funcions.py
ce2c34261ababe58458f8751e2f901c59e4d13ba
[]
no_license
holalluis/apunts
8b78228b4d4db1eb8579946c0a125f13d3e11150
b66382253041f0cfb2c263b995554c7b9cb1d57e
refs/heads/master
2023-07-26T00:19:14.827669
2023-07-13T13:13:45
2023-07-13T13:13:45
169,467,539
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
import math import random def shuf(baralla): #algoritme de yates per barrejar un array for i in range(len(baralla)-1,0,-1): j = int(math.floor(random.random()*(i+1))) temp = baralla[i] baralla[i] = baralla[j] baralla[j] = temp return baralla def queden(baralla): #digues quantes cartes queden en total pri...
[ "holalluis@gmail.com" ]
holalluis@gmail.com
1b8d32d4bbb24d8091951ee9ed23715c039cb4ae
f48b406244631f84f64e8b61a8892c19010ac554
/cd4ml/pipeline_params.py
27c69293c0650845cf322d8d87019437fd815d70
[ "MIT" ]
permissive
heyestom/CD4ML-Scenarios
c271119fe0dc6a87ece160cae51b4890dcd83a26
5fb2edb7098f9c0bf5010199a87dbad39673f431
refs/heads/master
2022-11-21T15:29:33.421848
2020-07-16T13:27:56
2020-07-16T13:27:56
276,595,703
1
0
MIT
2020-07-02T08:48:11
2020-07-02T08:48:10
null
UTF-8
Python
false
false
728
py
# parameters for running the pipeline from cd4ml.ml_model_params import model_parameters # TODO: add some security protocols around the key? pipeline_params = {'model_name': 'random_forest', 'days_back': 57, 'acceptance_metric': 'r2_score', 'acceptance_threshol...
[ "dajohnst@thoughtworks.com" ]
dajohnst@thoughtworks.com
1abecdb8b37e726aa8037f242e3f895ddc87949c
4ebef3166e73d45623b3dbe5dca893a75f4645ce
/lesson07/les07task01.py
77fd7e20325981eff84584bcd8d3d38b4777cb4d
[]
no_license
vakhnin/geekbrains-algorithms
7e24d9d055ed1e72f975a6ba143e31f02ec11abf
1916ed1f0ddf89a37c15c2dca551dd73e10f16e9
refs/heads/main
2023-06-29T01:04:42.752759
2021-08-01T09:54:34
2021-08-01T09:54:34
375,615,589
0
0
null
2021-08-01T09:54:34
2021-06-10T07:51:16
Python
UTF-8
Python
false
false
2,203
py
# lesson 07 task 01 # # Отсортируйте по убыванию методом пузырька одномерный целочисленный массив, заданный случайными числами на промежутке # [-100; 100). Выведите на экран исходный и отсортированный массивы. # Примечания: # алгоритм сортировки должен быть в виде функции, которая принимает на вход массив данных, # п...
[ "sergey.vakhnin@gmail.com" ]
sergey.vakhnin@gmail.com
cff2395789e5892845c1437ce574bc8ae6727100
32648177f3e2f9ce2d9345d80252c3c63522c852
/python/track2.py
66465a84d1519da026ade5a2ec340d67d7b43078
[]
no_license
nickzhums/track2ux
555e7e02db7d967100cdffcc03273bda56a934ae
6f0bd69e6f2e80aaeb6d4d43b515d139f86746e5
refs/heads/master
2022-11-07T17:34:29.501270
2022-11-03T04:44:20
2022-11-03T04:44:20
258,109,207
0
0
null
null
null
null
UTF-8
Python
false
false
6,434
py
import os import azure.mgmt.compute # use track2 import azure.mgmt.network # use track1, network track2 does not ready. import azure.mgmt.resource # use track2 import uuid from azure.identity import ClientSecretCredential from azure.identity import DefaultAzureCredential # from azure.common.credentials import Servic...
[ "Littlejedi" ]
Littlejedi
6a9c53e38081c3e99e7b55be75b34f21b54c83db
0d252cd89a1c88dcd62c66527ad55b6083171fdc
/repositories/race_result_repository.py
cd12a418dcb446d56728a32e5f4306eecb35bec9
[]
no_license
OhmniD/CodeClan_Week05_Full_Stack_Solo_Project
99f1e0af5b7ff16d57670ae42fb40726b858e53c
fdb32d2de0ee186696c20ad50e705ba5df0eda63
refs/heads/main
2023-06-17T15:52:51.235742
2021-07-14T16:42:20
2021-07-14T16:42:20
373,792,819
0
0
null
null
null
null
UTF-8
Python
false
false
3,394
py
from db.run_sql import run_sql from models.race_result import RaceResult import repositories.driver_repository as driver_repository import repositories.round_repository as round_repository import repositories.team_repository as team_repository def save(race_result): sql = "INSERT INTO race_results (position, dri...
[ "dave@ohmnid.com" ]
dave@ohmnid.com
d99bb0f05279917d04b3ce2724ab923fe6c0c6db
4f29a9a90744d446aac8f7a81dba7c5c191c7253
/how/how/utils/__init__.py
1a1d9981c4cb6f3910cd19b6b5d9a443b07930a6
[]
no_license
yodakaz/ASMK_yoda
00f1025c2cd2e8670b03e5ba2a724b3504f6a5e2
165b75672321546a8090490879d7b20306793381
refs/heads/main
2023-06-22T07:01:30.088906
2021-07-20T05:07:39
2021-07-20T05:07:39
385,087,715
0
0
null
null
null
null
UTF-8
Python
false
false
54
py
""" Standalone utilities, mainly helper functions """
[ "noreply@github.com" ]
yodakaz.noreply@github.com
9ac659ed774916b83e4235fa8eecb1f0508c3ea5
bad62c2b0dfad33197db55b44efeec0bab405634
/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_08_01/aio/_storage_management_client.py
70166161a2d224894dce9e90a48fb8f889e68c78
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
test-repo-billy/azure-sdk-for-python
20c5a2486456e02456de17515704cb064ff19833
cece86a8548cb5f575e5419864d631673be0a244
refs/heads/master
2022-10-25T02:28:39.022559
2022-10-18T06:05:46
2022-10-18T06:05:46
182,325,031
0
0
MIT
2019-07-25T22:28:52
2019-04-19T20:59:15
Python
UTF-8
Python
false
false
10,437
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
test-repo-billy.noreply@github.com
7e0c9c66789b5d70e91d999e13647ddd4b2098ae
e6132244015942c5ec75c8eff4f90cd0e9302470
/src/wshop/apps/customer/notifications/services.py
46bab44bef79471157b1207adfc9a79e677340e1
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
vituocgia/wshop-core
d3173f603861685b523f6b66af502b9e94b7b0c2
5f6d1ec9e9158f13aab136c5bd901c41e69a1dba
refs/heads/master
2020-03-18T08:25:14.669538
2018-05-23T05:55:56
2018-05-23T05:55:56
134,508,443
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
from wshop.core.loading import get_model Notification = get_model('customer', 'Notification') def notify_user(user, subject, **kwargs): """ Send a simple notification to a user """ Notification.objects.create(recipient=user, subject=subject, **kwargs) def notify_users(users, subject, **kwargs): ...
[ "dotiendiep@gmail.com" ]
dotiendiep@gmail.com
f74082804a8763e11216fbb269463a97ccf36bc7
f904cf1371790b39902cc9a5f24b1903f5828dc7
/feature5_3_1.py
3433bf38c56574aef488e727cb2ec87d29acf811
[]
no_license
Birdie9/Sarcasm-Detection-
af8c4b2791a1e15015fb24649e8c47b809d9d74d
dca5f3f01ca3eddc046440197f37e0c2a707c105
refs/heads/master
2020-04-17T13:44:11.523637
2016-09-08T03:55:58
2016-09-08T03:55:58
67,667,097
3
0
null
null
null
null
UTF-8
Python
false
false
2,332
py
import time import datetime from time import mktime from datetime import datetime def getnegscore(tweet, sentidict): ret=0.0 for word in tweet: if word in sentidict: if sentidict[word]<0: ret+=sentidict[word] return -ret def getposscore(tweet,sentidict): ret=0.0 for word in tweet: if word in sentidict: ...
[ "jayati.009@gmail.com" ]
jayati.009@gmail.com
7884029160be242dc95fcc490d6dc0e07a0442ff
4e2198902a9e07896d4af8817430b2d44a706b25
/Python Scripts/25.py
9644a36c79c664519d03663ed85ad52cbfeb8243
[]
no_license
emilkloeden/Project-Euler-Solutions
e5993472edec1b38fc9b0e8cf83916b0a034af57
b44fb51d52e9e046c825281a28beacb51331426a
refs/heads/master
2022-10-01T07:05:08.905374
2022-09-12T10:27:31
2022-09-12T10:27:31
25,626,295
0
0
null
null
null
null
UTF-8
Python
false
false
735
py
# A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. If all of the permutations are listed numerically or alphabetically, we call it lexicographic order. The lexicographic permutations of 0, 1 and 2 are: # 012 021 102 120 201 210 # Wh...
[ "emilkloeden@gmail.com" ]
emilkloeden@gmail.com
c57ed8fabfe988b0c62f053976b78740d8376825
889dab04d6f9e5af0aded790a632c93e06ca4233
/python_dla_kazdego/komputer_nastrojow.py
6760fdbeedd37e49d481eb99c830fe7df2cbd7e3
[]
no_license
Kinia201201/programowanie_obiektowe
a00c8d291ec59a03b922a1611645f4c1efda87eb
865616404a41fd15d34a2bc82a6804aaf72df967
refs/heads/master
2020-08-26T20:05:10.425863
2020-01-14T23:31:30
2020-01-14T23:31:30
217,131,386
0
0
null
null
null
null
UTF-8
Python
false
false
1,218
py
# -*- coding: utf-8 -*- """ Created on Mon Oct 21 23:39:49 2019 @author: Kinga """ # Komputer nastrojóW # Demonstruje klauzulę elif import random print("Wyczuwam Twoją energię. Twoje prawdziwe emocje znajduja odbicie na moim ekranie.") print("Jesteś...") mood = random.randint(1,3) if mood == 1: # szczęśliwy ...
[ "kingawielgus.kw@gmail.com" ]
kingawielgus.kw@gmail.com
0ae138ca2c573f41b61fb6fee4e9ecb781b2fc89
dc62838e9bd214d16dd0b165a219cc658f7b07c3
/cloud/bin/rst2xetex.py
081aeaad419428b5578a864e63407d74a1fde9a5
[]
no_license
zzzzssss/FitKeeper
976a17b3d6d44c65331d83789848fbabc87d3f85
9b16df589151540f94c3f14a98744647a5dcf2de
refs/heads/master
2022-06-25T15:13:31.229381
2017-06-02T16:08:58
2017-06-02T16:08:58
87,112,882
0
0
null
2017-04-03T19:31:52
2017-04-03T19:31:52
null
UTF-8
Python
false
false
925
py
#!/home/yanan/Desktop/COMS6998CloudComputing/FitKeeper/cloud/bin/python2 # $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $ # Author: Guenter Milde # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code. """ try: import loca...
[ "shuyang@ZhaoShuyangsMBP.home" ]
shuyang@ZhaoShuyangsMBP.home
025e92b046f4c40d049ff8c62b670e257da64222
698e105281d34806561ef8c466a12a5dc6c67132
/web/frontend/submissions.py
fbe7f583a1d9d0c2de5c629d0221ebc445b29933
[]
no_license
Podshot/3DPrinterSystem
75c8dcafc5f926415efd28a6b1ce24458d1e217c
bbf225ad76e29f783f13d543fcd72b94d4640db2
refs/heads/master
2021-01-01T05:10:32.567917
2016-12-24T17:27:52
2016-12-24T17:27:52
59,046,789
2
0
null
null
null
null
UTF-8
Python
false
false
3,345
py
import tornado.web from profile import BaseProfileHandler from utils import SQLWrapper, directories, DropboxWrapper # @UnresolvedImport import os from datetime import datetime import uuid from gzip import GzipFile class NewSubmissionHandler(BaseProfileHandler): @tornado.web.authenticated def get(self): ...
[ "ben.gothard3@gmail.com" ]
ben.gothard3@gmail.com
698eef67e3fa9abc62d773f0930fe68d851e7987
84b99a8efdf30d7e80a1a7dc2e25970de30b3a3f
/mockGrill.py
97f07f81bde9858105834e36584b476041c2fc56
[]
no_license
netgio/mockGrill
3d6a3253fc14d7af48671c7453f940d3fc81dedc
f8006ed037810923b4a5fd310bf8db968c8b04b1
refs/heads/master
2021-01-19T10:34:49.362756
2015-02-21T18:20:30
2015-02-21T18:20:30
31,134,773
0
0
null
null
null
null
UTF-8
Python
false
false
1,382
py
#!/usr/bin/python import sys import subprocess import os import json import time prev = 0 current = 0 path = "./media" picPath = "./api/static/shot.jpg" print "Running...path: " + path while (1): ## reload the status from disk print "Check grill status..." f = open("status.json") status = json.load(f) print "St...
[ "gary@netgio.com" ]
gary@netgio.com
5b2787c83a0a8eb0caae96635e595e2bc7f9dbed
bc441bb06b8948288f110af63feda4e798f30225
/database_delivery_sdk/api/sqlpkgs/update_pb2.py
0f09d354715753abc6b91286cff95f9f6a2d58bf
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
true
14,764
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: update.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf impo...
[ "service@easyops.cn" ]
service@easyops.cn
92c94e59ce4623a858dc7e53049807390bbac34f
35093a037837e5155464782ab0300d64cf1ce31a
/Automata.py
659c3e1e2e738c60ae8d0780bffd739fb501d189
[]
no_license
ChenSaijilahu/Simulation-traffic
eeb0a38169a60ffcc50e859be554a165a3a31c97
a97a8f63d1382ffb59874cb209bdf29ea9625c57
refs/heads/master
2023-03-15T00:04:51.159032
2021-01-05T11:30:04
2021-01-05T11:30:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,655
py
import random import numpy as np import matplotlib.pyplot as plt class Cellular_Automata(object): # Initialize the constructor # Read from the keyboard the input values: the number of cells for the road, car density and the number of iterations # The road will be modified just below, in the const...
[ "noreply@github.com" ]
ChenSaijilahu.noreply@github.com
9d72434ff4c42cd9934c292efbbb2cdcf75e5a58
f719ec76a8417fc05a2d46ada2501052e2bf9469
/exp_runners/traffic/cent_traffic_runner.py
2179e0136d393da470ab919a3989f6ab9e970282
[]
no_license
yang-xy20/DICG
cc31064a3e4a3dd01414161e42b228c2c09bfea7
c64ba9dbbe0f2b745cd04ce516aa1fed4c2cffc7
refs/heads/master
2023-07-04T18:25:18.461196
2021-08-19T21:34:06
2021-08-19T21:34:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,351
py
import sys import os current_file_path = os.path.dirname(os.path.abspath(__file__)) sys.path.append(current_file_path + '/../../') import socket import collections import numpy as np import argparse import joblib import time import matplotlib.pyplot as plt from types import SimpleNamespace import torch from torch.nn ...
[ "lisheng@stanford.edu" ]
lisheng@stanford.edu
c36e62063a94a409390144111aa8b1febb637d79
1c594498900dd6f25e0a598b4c89b3e33cec5840
/iqps/search/views.py
c6c5dfb564a3088854e3a4badd988789e7fb6d3b
[ "MIT" ]
permissive
thealphadollar/iqps
cef42ed8c86e4134e724a5f4967e96a83d672fcd
187f6b134d82e2dce951b356cb0c7151994ca3ab
refs/heads/master
2023-07-14T04:41:13.190595
2020-06-25T14:51:17
2020-06-25T14:51:17
277,360,692
0
0
MIT
2020-07-05T18:29:17
2020-07-05T18:29:16
null
UTF-8
Python
false
false
3,320
py
from django.shortcuts import render from django.db import connection from django.http import JsonResponse from iqps.settings import DATABASES #from .processors import SearchCursor #Use this with sqlite #db_name = DATABASES['default']['NAME'] def sqlite_search(subject, year=0, department="", paper_type=""): year_...
[ "smishra99.iitkgp@gmail.com" ]
smishra99.iitkgp@gmail.com
522c84f8db34b50d58ffb6b486b23961e9cc2994
5556424ae28e1965ccf0bb60b8203d76e812c3e3
/app/settings_prod.py
3db6997577ab1a3ec887588bf20072da76a50cb7
[]
no_license
astromitts/borkle
e0c36ebb0c6575d123680342efcf20383d592102
ff5f67a1fb81bc0dbf4afb5e8fda3cbe86ec9b63
refs/heads/main
2023-01-01T02:48:54.321538
2020-10-25T13:43:45
2020-10-25T13:43:45
307,006,472
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
import os from app.settings import * # noqa DEBUG = True STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
[ "bomorin-id@MacBook-Pro.local" ]
bomorin-id@MacBook-Pro.local
5d74c49cfb918d4a55a35493f41a60b12a5f1a0f
667c2d8d8a37a3a7719d5aa44586f59f8ce8fd51
/bakery/__init__.py
952a95fe79f173ed2e4c6d969e5f5477dc00636a
[ "MIT" ]
permissive
iredelmeier/doughknots
fe2880dff5b32a81e572b088cbe97b1501b2f38a
487431b189eed8e33d369403100ff3b68d7a4151
refs/heads/master
2022-12-23T22:00:33.953861
2019-07-17T22:48:59
2019-07-17T22:48:59
197,473,677
3
0
MIT
2022-12-08T05:54:28
2019-07-17T22:49:51
Python
UTF-8
Python
false
false
195
py
from .bakery import Bakery, NoopBakery from .httpclient import HttpClient from .kind import Kind from .service import Service __all__ = ["Bakery", "HttpClient", "Kind", "NoopBakery", "Service"]
[ "iredelmeier@gmail.com" ]
iredelmeier@gmail.com
e077f429daff201e907044fe1dafc3a66af86952
26fc334777ce27d241c67d97adc1761e9d23bdba
/tests/django_tests/tests/middleware_exceptions/tests.py
0c39f09f9156cf2b9787fa67ac627a5c7dd4a653
[ "BSD-3-Clause" ]
permissive
alihoseiny/djongo
1434c9e78c77025d7e0b3330c3a40e9ea0029877
e2edf099e398573faa90e5b28a32c3d7f1c5f1e9
refs/heads/master
2020-03-27T23:27:02.530397
2018-08-30T14:44:37
2018-08-30T14:44:37
147,317,771
2
1
BSD-3-Clause
2018-09-04T09:00:53
2018-09-04T09:00:53
null
UTF-8
Python
false
false
6,887
py
from django.conf import settings from django.core.exceptions import MiddlewareNotUsed from django.test import RequestFactory, SimpleTestCase, override_settings from django.test.utils import patch_logger from . import middleware as mw @override_settings(ROOT_URLCONF='middleware_exceptions.urls') class MiddlewareTests...
[ "nesdis@gmail.com" ]
nesdis@gmail.com
ec45f92fa7feccad2e8ebffe1dfe13c66eefb4c8
b4f80293a9230925429bccf9ca80df404f830466
/char-rnns/microgradchar.py
90cbf45553a52b3692d0fbe815caa415f50e10ab
[]
no_license
jcanode/nlp_fun
cac737c43559aaa7bca55984b849adfbea4e1314
f81a75fe6f325eeaf531d3c6cfa64ef12ada4fc2
refs/heads/master
2023-01-11T15:34:04.888871
2020-11-11T04:56:52
2020-11-11T04:56:52
303,938,286
0
0
null
null
null
null
UTF-8
Python
false
false
463
py
from micrograd.engine import Value a = Value(-4.0) b = Value(2.0) c = a + b d = a * b + b**3 c += c + 1 c += 1 + c + (-a) d += d * 2 + (b + a).relu() d += 3 * d + (b - a).relu() e = c - d f = e**2 g = f / 2.0 g += 10.0 / f print(f'{g.data:.4f}') # prints 24.7041, the outcome of this forward pass g.backward() print(f'{...
[ "45806280+jcanode@users.noreply.github.com" ]
45806280+jcanode@users.noreply.github.com
0917883314d3c71d9c5f509602e435b21d824cce
6d70cd7f3e15375ae4c8fa8619a5a29f98b629ee
/Redes3/Parcial2/RRDTools/TrendLineal/TrendGraph.py
21a7f4e0c3a45f73c7e27fccc3dba559cfb722fb
[]
no_license
AlinaMarianaPerezSoberanes/Archivos
5155aa47243d0010395046f1cb37f20af2e99dd8
7628ae1e6644215b3c8148f590923502714fc10e
refs/heads/master
2020-04-20T08:35:55.008022
2019-02-02T16:59:38
2019-02-02T16:59:38
168,744,044
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
import sys import rrdtool import time while 1: ret = rrdtool.graph( "trend.png", "--start",'1539382500', "--end","1539384500", "--vertical-label=Carga CPU", "--title=Uso de CPU", "--color", "ARROW#009900", ...
[ "psoberanes_mariana@hotmail.com" ]
psoberanes_mariana@hotmail.com
fbe152c2c7005c6aebce424912f910e0be53e37a
65ce70d806e379f75683244722b2975e6f511bbb
/another program/Map() in Python.py
32bbde9e8dc5fdc8bc20989ea35087a257880b03
[]
no_license
Mahedi2150/python
dfc2ad6c01d16cf5a6da85864d5fb9c478e645ef
37fbd2b1fe0b606cc91a5bc8a47a0fc9f2ab0eec
refs/heads/master
2022-12-30T17:20:23.705238
2020-10-20T20:04:55
2020-10-20T20:04:55
293,569,171
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
"""def mulFiveTimes(number): return number*5 result = [] num = [3,5,7,9,1,5] for i in num: result.append(mulFiveTimes(i)) print(result)""" def mulFiveTimes(number): return number*5 num = [3,5,7,9,1,5] print(list(map(mulFiveTimes,num)))
[ "noreply@github.com" ]
Mahedi2150.noreply@github.com
c02da091fdeacb53d6ce13fd9ec1162d84589d2e
058a0b8ca26624c74edf260e19ead70548f66e25
/UserInterface/Admin_Mode_1.py
39e252dc85979c0e3bc38a874e3642c1b9389258
[]
no_license
chenhuik029/TimeLog_py
35a9eb291e81c5b4f28de84f0ae2f0a677ebddd8
a47d174dd189cb8221b7bd8545b4e91a0d0ba4ab
refs/heads/master
2023-06-08T02:40:20.856109
2021-07-04T13:54:55
2021-07-04T13:54:55
330,116,703
0
0
null
null
null
null
UTF-8
Python
false
false
20,101
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '04_Admin_Mode_01.ui' # # Created by: PyQt5 UI code generator 5.15.1 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtC...
[ "chenhui_k029@hotmail.com" ]
chenhui_k029@hotmail.com
9e99850e135e9250610331794779c4d4a0c8881e
449c29b00f44e441f285638eea46fe957a042424
/MainApp/mixins.py
d01891068c8582665e8aca033474b0576eb0d1dc
[]
no_license
InnocenceNerevarine/Diploma
d4260cf55041583a6e199f75884bd46e3e5ffd3c
7a2ea9976ec7e0730c7731a4a0613cd7c58013af
refs/heads/master
2023-04-26T13:00:53.634118
2021-05-20T06:52:07
2021-05-20T06:52:07
368,245,756
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
from django.views.generic import View from .models import Cart, Customer class CartMixin(View): def dispatch(self, request, *args, **kwargs): if not request.session.session_key: request.session.save() self.session = request.session if request.user.is_authenticated: ...
[ "ilya.sidorov.2014@gmail.com" ]
ilya.sidorov.2014@gmail.com
e20a5ee9ecd63a4818ab1e7040a2fe0646911b83
6af28264b86db139af2a885a7355be6184e2af7d
/backend/schedule_randomiser.py
de684df001503a678c69bc0c97b7ed87185e89ca
[]
no_license
LieutenantPorky/ember
8792bc5ce2c48a0c8380b9ccfa08a337ca85308e
39385d36be49eaad9ffac6c57ff55361d9100e03
refs/heads/master
2020-12-14T12:47:21.242585
2020-01-19T14:49:52
2020-01-19T14:49:52
234,749,374
0
0
null
null
null
null
UTF-8
Python
false
false
1,962
py
from peewee import * from playhouse.sqlite_ext import * import json import numpy as np from datetime import date, datetime, time, timedelta week = [date(day=20 + i,month=1,year=2020) for i in range(0,5)] #[print(i.isoformat()) for i in week] randClasses = [ ["9:00", "10:00", "Intro to Minecraft"], ["11:00", "13:00"...
[ "jacopo@siniscalco.eu" ]
jacopo@siniscalco.eu
0093acd5c0ab3527f6e25307f4a2f09b05a3eb73
27f1be7865eb58d17e5478299b5685fc625a055c
/src/dataset/dataset_mnistm.py
99eaa5390d2b6840b00a2fc0b30135514eaefe79
[ "MIT" ]
permissive
mkirchmeyer/adaptation-imputation
e53099f654bf75526e11ed93e9b78e4a26ed0bef
7ef683f2da08699b3f877467fdb0e00d3b02bccc
refs/heads/main
2023-08-28T05:31:30.924573
2021-10-13T15:03:59
2021-10-13T15:09:42
351,026,014
2
1
null
null
null
null
UTF-8
Python
false
false
7,718
py
""" Dataset setting and data loader for MNIST-M. Modified from https://github.com/pytorch/vision/blob/master/torchvision/datasets/mnist.py CREDIT: https://github.com/corenel """ from __future__ import print_function import errno import os import torch import torch.utils.data as data from PIL import Image from src.da...
[ "m.kirchmeyer@criteo.com" ]
m.kirchmeyer@criteo.com
fef8db32f61c0a08006394e2202189ef6d30a1d7
bba12c5af82ea9d1f0321231bd4d33e835212128
/redisPubsub.py
565f0398530d4426cbc67a325ae307265ba30a0b
[]
no_license
stock-ed/material-study
c151598b2b22f34ee8fb906ac86689b264094769
04b5607881b44faa9d4568b412ed5249a6f170b1
refs/heads/main
2023-08-23T22:24:16.810727
2021-10-18T07:22:08
2021-10-18T07:22:08
404,207,971
0
0
null
null
null
null
UTF-8
Python
false
false
1,777
py
import threading import redis import json from redisTSBars import RealTimeBars from redisUtil import KeyName, RedisAccess class RedisSubscriber(threading.Thread): def __init__(self, channels, r=None, callback=None): threading.Thread.__init__(self) self.redis = RedisAccess.connection(r) sel...
[ "kyoungd@hotmail.com" ]
kyoungd@hotmail.com
3edc6166c5ab9e995f874c861d02d67b0d48ae21
3d671fcdd27ae90698c29d0e066c662dcd4e5ee9
/myproject/myroot/mysite/settings.py
e0fa391dbcf7d7712f450517d82f4800b9950be3
[]
no_license
GeethuEipe/Django
63212ac6e4bcaefa8cc5c05ea8641e72ddd04518
799c1157b0d7fdab07b02ca491a722ce60219ac0
refs/heads/main
2023-03-26T18:32:24.119589
2021-03-27T12:29:41
2021-03-27T12:29:41
352,067,335
0
0
null
null
null
null
UTF-8
Python
false
false
3,157
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.1.7. 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 pathlib ...
[ "geethueipe97@gmail.com" ]
geethueipe97@gmail.com
cdd2eecd01704a67982d8dda03dcfaa9b67cffff
3f9c9a80240b5d059dd48d30859c498c417b3db5
/visit_column.py
2f6b2dc3c0dfcd234f404aa02ca94803df8a2f28
[]
no_license
haiqiang2017/csdn_pageviewers-
45f858815e712b4240826eb59b6f9d892d520031
fd5c32a051a49a811b89323fe83f36b628686a33
refs/heads/master
2020-05-15T21:50:24.153753
2019-05-02T15:40:43
2019-05-02T15:40:43
182,510,406
2
0
null
null
null
null
UTF-8
Python
false
false
3,235
py
#coding:utf-8 import random import urllib3 import time from cookie_pool import get_cookie from UserAgent_pool import get_UserAgent import requests """提取数据访问链接""" # 禁用urllib3的警告 urllib3.disable_warnings() class visitSpider(object): def __init__(self): self.ua = get_UserAgent().get_random_useragent() ...
[ "Venus_haiqiang@163.com" ]
Venus_haiqiang@163.com
383e4c356d475a877c9169bab7cfba4b57eb90d8
b9e0e10e9014f80ede6ea7c29174697367cf9acb
/src/evaluation_utils.py
6ad5766e619bc2ac050261f9ead7b8438681df4f
[ "MIT" ]
permissive
talshapira/SASA
2e9b7353147b5cba8e48b65ebb12b9bd13346a53
70db6ba36d7602e46fbb95b6a3cac822c8af2ab9
refs/heads/main
2023-08-17T08:52:33.398005
2021-10-04T15:36:44
2021-10-04T15:36:44
407,496,107
4
0
null
null
null
null
UTF-8
Python
false
false
6,195
py
from sklearn.metrics import confusion_matrix import itertools import matplotlib.pyplot as plt import numpy as np from sklearn.metrics import accuracy_score, recall_score, roc_auc_score, roc_curve, auc, precision_score def get_tpr_specific_fpr(fpr, tpr, s_fpr=0.01): for i, fp in enumerate(fpr): if fp > s_fp...
[ "noreply@github.com" ]
talshapira.noreply@github.com
1265e8a3612b796c07f5ab24327fecb0bbb2d1b8
b9a607c121c8e36c3c1dec47003ec2fbfc660ff1
/sendmail/views.py
6a5b9c7c278a35a31939020d3becfa191cb0c296
[]
no_license
AustralianSynchrotron/send-mail-server
fe8bc8a6e5c076d9980b8b6df25f50a10f875927
ea3c3eff1e229bfeb35a008b6a4c116a86113af0
refs/heads/master
2021-01-19T11:45:06.921363
2017-07-15T14:00:24
2017-07-15T14:00:24
82,261,123
0
0
null
null
null
null
UTF-8
Python
false
false
1,969
py
from sendmail import app,mail from flask_mail import Message from flask import request import logging logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) st = logging.StreamHandler() st.setLevel(logging.DEBUG) formatter = logging.Formatter("%(asctime)s [%(name)s] %(levelname)s :: %(message)s") st.set...
[ "cameron.rodda@synchrotron.org.au" ]
cameron.rodda@synchrotron.org.au
183aba71c348509e64b9916b1b2e0d84103f3be3
322726c2e15389d0381692676156a5e87c8ad0f9
/site/bin/painter.py
342e538912085fb724da01907eca35899f87f5b4
[]
no_license
Trostnick/PSDB
e2cddd3f5c4518098e38935d441e0112b178aa14
fd4c4a209d60c1c029916b0328ac9d7372daed83
refs/heads/master
2020-05-27T13:01:55.726212
2018-03-20T14:32:12
2018-03-20T14:32:12
124,147,394
0
0
null
null
null
null
UTF-8
Python
false
false
2,119
py
#!/home/meeg/site/bin/python2 # # The Python Imaging Library # $Id$ # # this demo script illustrates pasting into an already displayed # photoimage. note that the current version of Tk updates the whole # image every time we paste, so to get decent performance, we split # the image into a set of tiles. # try: fro...
[ "trostnick97@mail.ru" ]
trostnick97@mail.ru
fc1a6a670a2055dd23d840641834d8d1a011428d
18462298cd5636399735339266ece565e7fbd494
/daily_weather/setup.py
e684da34c60bb9bee45f2fddfa44d55802629abc
[]
no_license
AnkitP7/flask-demo
4f8897d7563392a398dc10207af900d4afe45115
1ce10542669a044cece68c5cf4fb1caaa99003aa
refs/heads/master
2020-03-29T12:19:44.807918
2018-09-22T16:28:29
2018-09-22T16:28:29
149,893,875
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
from setuptools import setup setup( name='daily_weather', packages=['daily_weather'], include_package_data=True, install_requires=[ 'flask', 'pylint' ], )
[ "ankit.patel39@gmail.com" ]
ankit.patel39@gmail.com
350796e30288007d708560cb8c78151b69807870
2b2d000525205763a8379621f2413c1c5dae1aa0
/resize2.py
869d8b06bdaa1fd07f0269feb4a328531c0c9670
[]
no_license
DAYARAM99/opencv-
0c6defbe034c3a237c4093f362dfe65b884e6e3b
af37fd6823cf956fe9b1d13b6727833888e1a443
refs/heads/master
2020-08-11T04:31:12.622793
2019-10-11T17:23:54
2019-10-11T17:23:54
214,491,923
0
0
null
2019-10-11T17:16:59
2019-10-11T17:16:59
null
UTF-8
Python
false
false
373
py
# -*- coding: utf-8 -*- """ Created on Fri Oct 4 05:44:06 2019 @author: Rajat arya """ import cv2 img=cv2.imread("index.png") resize_img = cv2.resize(img, (int(img.shape[1]/2), int(img.shape[0]/2))) resized_image = cv2.resize(img, (650,500)) resized_image = cv2.resize(img, (650,500)) cv2.imshow("image",r...
[ "noreply@github.com" ]
DAYARAM99.noreply@github.com
e7277b90bf91d0a0aa2e1eb71e0f8754381554a3
12a8b0779182959fe2e48b3df12b093c970da4d8
/listings/models.py
eacf6c83d0b2667e7b237b3573abd1e5ffa3de36
[]
no_license
kdogan11/rf_project
8169e8dd74eeabc1e3d1934239ed35df58e1542b
ec245e19b80ced07a1fbe8468479d18e46d34ac0
refs/heads/master
2020-04-10T14:24:47.281703
2018-12-09T21:28:10
2018-12-09T21:28:10
161,076,644
0
0
null
null
null
null
UTF-8
Python
false
false
1,474
py
from django.db import models from datetime import datetime from realtors.models import Realtor class Listing(models.Model): realtor = models.ForeignKey(Realtor, on_delete=models.DO_NOTHING) title = models.CharField(max_length = 200) address = models.CharField(max_length = 200) city = models.CharField(...
[ "kdogan11@gmail.com" ]
kdogan11@gmail.com
b1487c88e0ba1b6b72123718eba565f36d6903b3
8b0dcbc828284e273e1f2065b8d4870521681455
/app.py
0a9d7432681831d781202487642fbe84c4b276b5
[]
no_license
BCStudentSoftwareDevTeam/Scrolling-Font-Changer
d46a06b9b750e2bee364f5d9c14fd36553980f4c
b9717eac8e207b6c2d6e3b6eb07a94bd7a0d5f96
refs/heads/master
2020-08-01T23:22:59.518056
2019-09-30T18:37:53
2019-09-30T18:37:53
211,156,250
0
0
null
2019-09-26T18:29:04
2019-09-26T18:29:03
null
UTF-8
Python
false
false
2,889
py
from flask import Flask, render_template, request, redirect, url_for import threading, time app = Flask(__name__) app.jinja_env.trim_blocks = True app.jinja_env.lstrip_blocks = True @app.route('/young') def young(): return render_template("main.html", age = "young") @app.route('/old') def old(): return render_tem...
[ "heggens@berea.edu" ]
heggens@berea.edu
025eb96b12404c357e6dfb6cd2f21162f9492c7b
bf014a59c19683bf6c6e0c2ec5b89a18c4305b3c
/backends/__init__.py
6ab5708fda5ed59498f8977037d2d3a11eef6adf
[ "MIT" ]
permissive
l3robot/pytorch-a3c
5974e2c894aff121223fdb80c77eea7bbc36313e
0bc46ac67346d77c5bd01cff8fd98ea617efc708
refs/heads/master
2020-03-18T10:40:55.832062
2018-05-23T21:30:06
2018-05-23T21:30:06
133,974,170
0
0
null
2018-05-18T15:43:46
2018-05-18T15:43:45
null
UTF-8
Python
false
false
75
py
from .atari import create_atari_env from .unity3d import create_unity3d_env
[ "louis-emile.robitaille@elementai.com" ]
louis-emile.robitaille@elementai.com
59f303f4bca380ea680fe9475017fa186b011f1a
210f3eb02d26831bf4dda1d92973a678d12ca5ce
/session9/p2.1.py
29053fdcbb1a6b86a20cacc427c08b7dada3a80a
[]
no_license
anh135/C4T-BO1
2b3480aa3b30a38eb03bc07ece79708fcce86ea1
8c665bf690ab742ea650c1af8f91e7d558bf7343
refs/heads/master
2020-06-20T15:51:32.722418
2019-07-16T09:59:51
2019-07-16T09:59:51
197,168,282
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
items = ['red', 'blue', 'green', 'orange'] i = int(input("position")) print("color:", items[i] )
[ "nquanganh135@gmail.com" ]
nquanganh135@gmail.com
1fff2c19c3e1dc938c736276b810be8d34a5d060
7cfbeaa4fe1cdf8e90e4c42fe575a3b76cbf64ab
/setup.py
193d68ce2b3f00e87fe2c3aacbab22886d5bf1a4
[ "MIT" ]
permissive
keans/timecache
dac029b51e63fdbb6afa03ee33b8b08806a34993
9355e8b155e8071860942303ad364d719742eb78
refs/heads/master
2020-03-27T19:29:37.022521
2018-09-02T17:25:25
2018-09-02T17:25:25
146,992,718
1
0
null
null
null
null
UTF-8
Python
false
false
1,124
py
from setuptools import setup, find_packages import codecs import os # get current directory here = os.path.abspath(os.path.dirname(__file__)) def get_long_description(): """ get long description from README.rst file """ with codecs.open(os.path.join(here, "README.rst"), "r", "utf-8") as f: re...
[ "keans@gmx.de" ]
keans@gmx.de
f73ad632a0b644f358bb65369b1122bfe0e5dda5
3143d971afa307c824c76cb3b6fba27b47b53ff8
/showTest/grade_crawle/src/example.py
869587302567e21d03fd1ee54a9abc628ccaef67
[]
no_license
InnerAc/GradeQuery
62838fef31af17e012198bfdc754c83abaca5869
53769a50e27b9e4aed146c30a8d30e05466c6c04
refs/heads/master
2020-05-29T17:55:52.086130
2016-02-27T03:06:42
2016-02-27T03:06:42
42,023,260
2
0
null
null
null
null
UTF-8
Python
false
false
821
py
from segmentation import NormalSegmenter from feature_extraction import SimpleFeatureExtractor from analyzer import KNNAnalyzer import random import urllib def getImage(url, file_path): u = urllib.urlopen(url) data = u.read() f = open(file_path, 'wb') f.write(data) f.close() segmenter = Normal...
[ "anjicun@live.com" ]
anjicun@live.com
01685b4a849a3156658fa0dbdaad10650ff9d148
b14802e3892a661fa62d9d0772f72becc0abd612
/evaluation/get_top_socored.py
0bd0d8919ad1d0eed44022b6a57cbb69617117bb
[]
no_license
gombru/HateSpeech
e4c4b7993354ce2cb49334b814f929364fdcb446
7891c7e2835f17ed2a9985abd285e19788685c66
refs/heads/master
2022-02-23T08:57:34.909778
2022-02-10T12:54:41
2022-02-10T12:54:41
138,057,409
6
2
null
null
null
null
UTF-8
Python
false
false
1,326
py
import numpy as np import operator import shutil import os model_name = 'MMHS_classification_CNNinit_SCM_ALL_epoch_10_ValAcc_62' out_folder_name = 'top_MMHS_classification_CNNinit_SCM_ALL_epoch_10_ValAcc_62' out_file = open('../../../datasets/HateSPic/MMHS/top_scored/' + out_folder_name + '.txt','w') if not os.path.e...
[ "raulgombru@gmail.com" ]
raulgombru@gmail.com
75a01a39bc004c6914c4510e6c3287cc71942b9a
478fe983582eee010b9de9a446383c02e2c3b449
/utils/merge_fastq.py
3908ca836dcf3e7df05759cfcc039c4fe0fb7116
[]
no_license
jrw24/SRI37240
79e9d4f1090e3b19fa493cc28e559dfedc917041
ddb86a12f60abaf593df627b6ed6512097ceb33a
refs/heads/master
2021-07-23T14:13:02.466810
2020-02-13T19:37:13
2020-02-13T19:37:13
240,345,550
0
1
null
null
null
null
UTF-8
Python
false
false
1,108
py
### Script for merging fastq files from seperate experiments import sys import os import subprocess import argparse parser = argparse.ArgumentParser() parser.add_argument('--inputDir', help= 'directory with fastq files') parser.add_argument('--outputDir', help = 'directory to send output') args = parser.parse_args()...
[ "greenlab@greenlabs-pro.win.ad.jhu.edu" ]
greenlab@greenlabs-pro.win.ad.jhu.edu
86673876860a16e73baeba13cf15a5f5f9a6b8f6
ca9bf5b1d53ff7d755c53e45486238cf4c2fec43
/src/accounts/forms.py
3fce5be865495125379ea09990f5b3f0c5dbfb1e
[]
no_license
pagnn/Geolocator
6aa2e75aab8395f0f22048dd844b7d69b2ac3ee7
b45d9500667e3552acc8c851e7f8f383d3d86c9f
refs/heads/master
2021-09-01T09:13:55.726030
2017-12-26T06:13:11
2017-12-26T06:13:11
110,927,555
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
from django import forms from django.contrib.auth.forms import AuthenticationForm class LoginForm(AuthenticationForm): def confirm_login_allowed(self,user): if not user.is_active: raise forms.ValidationError('This account is inactive',code='inactive')
[ "sylviawei19950920@gmail.com" ]
sylviawei19950920@gmail.com
429d42c8fd21f8aeed2ca8697dc6fab586d5a1dd
1fec393454ffe7f65fce3617c14a2fcedf1da663
/Searching/Searching I/matrix_median.py
9cab3f6da7a1a3e9e867bcedf81f9997880f980b
[]
no_license
VarmaSANJAY/InterviewBit-Solution-Python
fbeb1d855a5244a89b40fbd2522640dc596c79b6
ea26394cc1b9d22a9ab474467621d2b61ef15a31
refs/heads/master
2022-11-27T22:46:34.966395
2020-08-09T14:10:58
2020-08-09T14:10:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
from bisect import * class Solution: def binary_search(self,A, min_el, max_el, cnt_before_mid): s = min_el e = max_el while s < e: mid = (s+e) // 2 count = 0 for row in A: count += bisect_right(row, mid) if count > cnt_before_mi...
[ "srajsonu02@gmail.com" ]
srajsonu02@gmail.com
27f391a18eeeb3d62288d25e1dbfff1a600a7beb
bcebaeb318059cbf8b7d2bb0e991253440be3518
/importingEXCEL.py
2a856236e021f8cc6988304a8248026866c52057
[]
no_license
JadfJamal98/FEC_final_version
add4dc70658f4f427295ec54bdf021f1c4027fce
1ac3b9c00038ea21610c372efeedb85a5a2a49b7
refs/heads/main
2023-08-05T16:13:45.711104
2021-10-11T21:22:28
2021-10-11T21:22:28
370,786,734
0
0
null
null
null
null
UTF-8
Python
false
false
6,375
py
from openpyxl import load_workbook def searchcatsub(sr,D): """ This function return a list of subcategory's name for a category or the categor's name for the topic input: sr: Excel Search Engine for a specific Sheet D: the Name of the column from which we want to extract the names Output: list...
[ "71495618+JadfJamal98@users.noreply.github.com" ]
71495618+JadfJamal98@users.noreply.github.com
4b324a9f9ea99b231e13b55494bd0092b1cf52ec
c3ca0bcea4d1b4013a0891f014928922fc81fe7a
/examples/multi_step_training.py
605e0ac42e4b43a5d9c9b7ba9d1573554d4f6c74
[ "MIT" ]
permissive
takuseno/d3rlpy
47894b17fc21fab570eca39fe8e6925a7b5d7d6f
4ba297fc6cd62201f7cd4edb7759138182e4ce04
refs/heads/master
2023-08-23T12:27:45.305758
2023-08-14T12:07:03
2023-08-14T12:07:03
266,369,147
1,048
222
MIT
2023-09-02T08:12:48
2020-05-23T15:51:51
Python
UTF-8
Python
false
false
1,483
py
import argparse import gym import d3rlpy GAMMA = 0.99 def main() -> None: parser = argparse.ArgumentParser() parser.add_argument("--env", type=str, default="Pendulum-v1") parser.add_argument("--seed", type=int, default=1) parser.add_argument("--n-steps", type=int, default=1) parser.add_argument...
[ "takuma.seno@gmail.com" ]
takuma.seno@gmail.com
d30aefdbac47c69b1651c631e5c0d110bdced301
abdc30ddc3e2aa874afe85f3b3cf914c55ef98a4
/RecipeForDisaster/views.py
681a2096fc19587138817e22f8a920a6b05f2c06
[]
no_license
dann4520/RecipeSite
65fd1b8afbb9ef0414dd4431cc918d3eeaf34b94
851b49fac08d74aabe5dde88d4c56d375edf705d
refs/heads/master
2020-04-19T12:37:50.444276
2019-01-29T18:22:21
2019-01-29T18:22:21
168,088,066
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
from django.shortcuts import render from django.utils import timezone from .models import Recipe # Create your views here. def recipe_list(request): recipes = Recipe.objects.filter(created_date__lte=timezone.now()).order_by('created_date') return render(request, 'RecipeForDisaster/recipe_list.html', {'recipes'...
[ "stabdan@gmail.com" ]
stabdan@gmail.com
0fe975cae36d9d31d2e48d6d1cdbcfdd27ce3810
25687385836b292ee8d92f855782f2b98cc6b500
/operator_app/consumers.py
e9f2f2bff1b32712d7dd117bf59c2cf75f270559
[]
no_license
Konbini-shubham/Konbini
3b9e2f11ef198aaad3347265f3c317766d2a51f6
85d3c2cc75e3bc6294adf57bd77b2589bb58cf81
refs/heads/master
2020-05-30T08:41:07.990166
2016-06-01T04:56:40
2016-06-01T04:56:40
59,843,148
0
0
null
null
null
null
UTF-8
Python
false
false
792
py
from channels.sessions import channel_session from channels import Group from urllib.parse import urlparse, parse_qs import pprint pp = pprint.PrettyPrinter(indent=4) @channel_session def ws_connect(message): query_parameters = parse_qs(message.content['query_string']) machine_id = query_parameters['id'][0] Group(...
[ "shubhamjigoyal@gmail.com" ]
shubhamjigoyal@gmail.com
90e17c94f2e06a546e4b52d1a8e0b9da901b50ce
991666b692f8017c2d753b0267eb9189413f54eb
/bin/Debug/models/sum.py
32fb9016bc4f31059e4160cc0aae8e9682a9deed
[ "Apache-2.0" ]
permissive
DaniilVdovin/InformaticalPasCompilCore
8a0b4e532e439b2497ec35028d9bade6c37b1b98
6d3f6fd3bef63a355c4fd39aabccf3a768daaa7c
refs/heads/main
2023-04-20T12:47:09.101144
2021-05-02T09:00:35
2021-05-02T09:00:35
363,605,177
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
import sys if(sys.argv[1]=="-r"): print("r:0:100:2") else: print(sum(map(int,sys.argv[1:])))
[ "stels1040533@gmail.com" ]
stels1040533@gmail.com
2a407ad94d7f94a71b7a2950a9fb841ae5678614
ca5b57ee732081cf03de08e8f640ba2197b1a11e
/Binary Search/Tree/Longest Tree Sum Path From Root to Leaf.py
cc5a508e70e1b35eaaeddd53b9909ef5fddcf6df
[]
no_license
Ajinkya-Sonawane/Problem-Solving-in-Python
cf0507fca0968f6eef02492656f16b256cc0d07c
96529af9343d4a831c0f8f4f92df87a49e155854
refs/heads/main
2023-06-06T12:46:57.990001
2021-06-12T19:38:02
2021-06-12T19:38:02
369,957,412
0
0
null
null
null
null
UTF-8
Python
false
false
746
py
# https://binarysearch.com/problems/Longest-Tree-Sum-Path-From-Root-to-Leaf # class Tree: # def __init__(self, val, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def solve(self, root): return self.traverse(root)[0] def trav...
[ "sonawaneajinks@gmail.com" ]
sonawaneajinks@gmail.com
788b1114cf8da3899edd4800a1fbc676bf8142ee
1577e1cf4e89584a125cffb855ca50a9654c6d55
/pyobjc/pyobjc/pyobjc-framework-Quartz-2.5.1/Examples/Programming with Quartz/BasicDrawing/MyAppController.py
7108ddb749d657bf205c4db6e76aba0164427919
[ "MIT" ]
permissive
apple-open-source/macos
a4188b5c2ef113d90281d03cd1b14e5ee52ebffb
2d2b15f13487673de33297e49f00ef94af743a9a
refs/heads/master
2023-08-01T11:03:26.870408
2023-03-27T00:00:00
2023-03-27T00:00:00
180,595,052
124
24
null
2022-12-27T14:54:09
2019-04-10T14:06:23
null
UTF-8
Python
false
false
4,062
py
from Cocoa import * import objc import PDFHandling import BitmapContext import Utilities # Initial defaults _dpi = 144 _useQT = False def getURLToExport(suffix): savePanel = NSSavePanel.savePanel() initialFileName = "BasicDrawing.%s"%(suffix,) if savePanel.runModalForDirectory_file_(None, initialFileNa...
[ "opensource@apple.com" ]
opensource@apple.com
576cdc82df4f4c2c6b43fd86bf0387f7bd3e2b14
54ff26f132923cf5cf6c19e56156e8b99b65c6aa
/jobsapp/migrations/0009_auto_20201108_0009.py
1db9f61d18ca784a57804d5c939fdde783fc738a
[ "MIT" ]
permissive
sokogfb/Job-Portal
e19d2a80b82b24dfc2e305346db9fbddfe06d81d
15c9065853920ddfe6e43a37062cc7fd32fb7f8e
refs/heads/main
2023-01-21T06:50:48.925252
2020-11-09T19:25:29
2020-11-09T19:25:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
# Generated by Django 3.0.7 on 2020-11-07 18:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('jobsapp', '0008_auto_20200810_1925'), ] operations = [ migrations.AlterField( model_name='job', name='category', ...
[ "54090909+rajpateln1995@users.noreply.github.com" ]
54090909+rajpateln1995@users.noreply.github.com
c3bbb5738b81da3295cb82f51894e74b8553f71b
7765c093fbfaebc3328f8500db2e462977ac42a5
/sqlite/sample.py
f4dc2f38f85c48f038a9b6f853da204c4bf0df63
[]
no_license
iamkamleshrangi/datascience
e118e41591850f24438aa344100a07737490fd29
7add9501c3ac75323e94df5351e2baf6cadb73ae
refs/heads/master
2022-02-02T20:19:20.986813
2018-07-23T13:26:37
2018-07-23T13:26:37
128,158,552
0
0
null
2022-01-21T04:26:26
2018-04-05T04:22:15
Python
UTF-8
Python
false
false
358
py
# Create engine: engine engine = create_engine('sqlite:///Chinook.sqlite') # Open engine in context manager with engine.connect() as con: rs = con.execute('select * from Employee order by BirthDate asc') df = pd.DataFrame(rs.fetchall()) # Set the DataFrame's column names df.columns = rs.keys() # Prin...
[ "iamkamleshrangi@gmail.com" ]
iamkamleshrangi@gmail.com
46b2a84ea85072fd8b8c7365f2bcc70d57327e12
8509927b6281647a5400f92a2199cb82860f2997
/code/grid_search/run_grid_search.py
b60615d1712fba4315ad782c693ded31690fffc0
[]
no_license
egeodaci/comp551-2020-p2_classification_of_textual_data
02dbd55dd61a098081aed27202ce5d653ca46dee
13b6e169b5b965b7185de49294c33c35c7da9b65
refs/heads/master
2022-11-21T08:15:45.700213
2020-07-09T17:38:22
2020-07-09T17:38:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,838
py
import json import logging import os from time import time from sklearn import metrics from sklearn.ensemble import AdaBoostClassifier from sklearn.ensemble import GradientBoostingClassifier from sklearn.ensemble import RandomForestClassifier from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.lin...
[ "ramon.fgrd@gmail.com" ]
ramon.fgrd@gmail.com
412e272a77c61d7b9f5a0c1f4eeb2a6cdd56efbc
09f175c759b0c798c1f5605b1720f9571fb5d4aa
/app/main.py
451951e6016c9e0931d8a05daedf417eb3c471de
[]
no_license
dparker2/internet-trends
5fe13172fd9bdb5b7d557435e4f699245b47d7df
1e778c4d52140d1d0f92523ef2608eb623f75bc9
refs/heads/master
2022-02-25T00:34:40.988473
2019-10-14T06:47:01
2019-10-14T06:47:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
import falcon from app.resources.html import HTMLResource print("PRINTED") app = falcon.API() HTML_resource = HTMLResource() app.add_route("/", HTML_resource, suffix="index")
[ "crazdave@gmail.com" ]
crazdave@gmail.com
1701c7e4aa7e3cded6d76cdf36ae3df50910147a
7cbcfc334d0c99b7c2a4740de26bebce42907362
/1.6. Input print:Hour and minutes.py
a0647d328fb61a693e8d1e043a43ec06b77e6910
[]
no_license
YukPathy/100-days-of-code
55603bb80a22fcfdbc1751e1bc7ee5884faa0ddc
959ed06064c5955fb15d9ceed68c449881c59062
refs/heads/master
2020-07-01T14:04:34.627510
2019-08-06T15:29:10
2019-08-06T15:29:10
201,191,395
0
0
null
2019-08-08T06:20:11
2019-08-08T06:20:11
null
UTF-8
Python
false
false
107
py
# Read an integer: a = int(input()) #Print a value: h=a//3600; m = (a//60) # print(a) print(str(h),str(m))
[ "noreply@github.com" ]
YukPathy.noreply@github.com
28afd10dd4bf86cc9fc12239cac8891a7b46c5df
a9243f735f6bb113b18aa939898a97725c358a6d
/0.12/_downloads/plot_time_frequency_mixed_norm_inverse.py
65ac593e852afd7ae0cd4471a6c573000a16b131
[]
permissive
massich/mne-tools.github.io
9eaf5edccb4c35831400b03278bb8c2321774ef2
95650593ba0eca4ff8257ebcbdf05731038d8d4e
refs/heads/master
2020-04-07T08:55:46.850530
2019-09-24T12:26:02
2019-09-24T12:26:02
158,233,630
0
0
BSD-3-Clause
2018-11-19T14:06:16
2018-11-19T14:06:16
null
UTF-8
Python
false
false
4,959
py
""" ============================================= Compute MxNE with time-frequency sparse prior ============================================= The TF-MxNE solver is a distributed inverse method (like dSPM or sLORETA) that promotes focal (sparse) sources (such as dipole fitting techniques). The benefit of this approach ...
[ "larson.eric.d@gmail.com" ]
larson.eric.d@gmail.com
8d9e1c544ea7627b9c50bc0bde5e458f4f1713df
4293afea6240e2216eb5ed79579de1bc999b25ff
/TextViewer/icon.py
985e10764f34b730212cdbb9f4360ee18a5b471d
[]
no_license
zoemurmure/TextViewer
3df1737ed3b836ff89e1d5b018dd722e097ea4fc
f9ee29cfc8d15d440a74d2a6211db37d87738ba7
refs/heads/master
2022-11-23T14:11:38.247111
2020-07-31T08:01:46
2020-07-31T08:01:46
272,883,299
1
0
null
null
null
null
UTF-8
Python
false
false
22,619
py
img=b'AAABAAEAQEAAAAEAIAAoQgAAFgAAACgAAABAAAAAgAAAAAEAIAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPb29iL29vaP9vb20/X19fX29vX/9vb1//b29f/29vX/9vb1//b29f/29vX/9vb1//b29f/29vX/9vb1//b29f/29vX/9vb1//b29f/29vX/9vb1//b29f/29vX/9vb1//b29f/29vX/9vb1//b29f/29vX/9vb1//b29f/29vX/9vb1//b29f/29vX/9vb1//b29f/29vX/9vb1//b29f/29vX/9v...
[ "zoemurmure@gmail.com" ]
zoemurmure@gmail.com
11e111e1dce4624067f7d5607b2f5bc263d234b6
152b31f0da5899569c1e30cec9c901ff9ef0a231
/pythonHelloWord.py
2233b8c7bdddf33dd1af56c9defa2c7bc478b431
[]
no_license
lindaTest01/withIgnorefile
acf80a5d91c054847220455d4888012544595980
cd2c75065ad6cc9417db9be300ec0fd83ee524cf
refs/heads/master
2022-11-11T07:18:20.756362
2020-07-06T08:51:07
2020-07-06T08:51:07
276,827,968
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
# -*- coding: UTF-8 -*- # Filename : helloworld.py # author by : www.runoob.com # 该实例输出 Hello World! print('Hello World!')
[ "noreply@github.com" ]
lindaTest01.noreply@github.com
231208107ccc0ef9cd28b169c0c9c14596a48d32
f93f0936ce11e0e4f7fbda66c6921a3fdc481e10
/scrapy_aishanghai/aishanghai/aishanghai/middlewares.py
8ad154919e9f8ccbfd798039d80d90046a13a393
[]
no_license
leiyanhui/leiyh_projects
11c827ea4b68040ba73022ade6b47da08bd7161a
8e33be618f5078d08dec92475bf70ba1fb94ff67
refs/heads/master
2020-03-23T22:19:53.547259
2018-09-11T12:32:39
2018-09-11T12:32:39
142,169,163
0
0
null
null
null
null
UTF-8
Python
false
false
3,605
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class AishanghaiSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scra...
[ "18817380161@163.com" ]
18817380161@163.com
7c4cb0d388dfd9e306500f3f0b0cc9ceb415e596
e15575c838c4f656e751a0d544f6cf1e49580305
/User_Accounts/migrations/0001_initial.py
326403f3fb22f7c06dd73251b6fda46741b4ffed
[]
no_license
manojakumarpanda/Blog_post_and-comment
bd764676b9f17ab95eb163bbe17c7dc4f1550a66
84540228d33d8e6337a12eb834ffbc2ccbdd5fc2
refs/heads/master
2022-07-03T21:33:10.230573
2020-05-14T17:39:20
2020-05-14T17:39:20
263,977,200
0
0
null
null
null
null
UTF-8
Python
false
false
5,041
py
# Generated by Django 2.1.7 on 2020-05-07 15:27 import django.contrib.auth.models from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_...
[ "kumarpandamanoja@gmail.com" ]
kumarpandamanoja@gmail.com
551d0de7166a4b76fbeb42575292be18fcab560f
ba6923aa77c6abeb4428f071528c5a36a7000732
/ChangeTheWorld/AndAgainAndAgainAndAgainAndAgainAndAgainAndAgain.py
4b68c7de0db1b0c9188d8f77a3399c7851033194
[]
no_license
page2me/IT-Xtoberfest2021
8522c81a0159dd1de377a8825c0b2f27b84d0be1
7b39b819d4815a4840b62a4782b3672472cf9a0a
refs/heads/main
2023-08-27T13:50:21.420977
2021-10-30T18:50:06
2021-10-30T18:50:06
420,277,403
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
"""Func""" def func(text): """AndAgainAndAgainAndAgainAndAgainAndAgainAndAgain""" answer = [] for i in text: counter = 0 counter += i.count("a") + i.count("e") + i.count("i") + i.count("o") + i.count("u") if counter >= 2: answer.append(i) answer.sort() if len(ans...
[ "earth_killerdark@hotmail.com" ]
earth_killerdark@hotmail.com
c5e7d15d5d15185d551a3d9dcfd54449f26ac850
986a9c6a9463e029e33dfa564aeaabde1dc573c8
/traffic_sign.py
af907a13df2fc8d470aefae12f80a555275d95a0
[]
no_license
rushikeshkorde/Traffic-Signs-Classification
15c1eda0261771cc8d5932305773bf9a1f6f1172
226deb010b5973c3b4d82fa09c69510a75542241
refs/heads/master
2022-08-16T01:54:48.752862
2020-05-31T14:13:22
2020-05-31T14:13:22
267,787,807
2
0
null
null
null
null
UTF-8
Python
false
false
3,218
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import cv2 import tensorflow as tf from PIL import Image import os from sklearn.model_selection import train_test_split from keras.utils import to_categorical from keras.models import Sequential, load_model from keras.layers import Conv2...
[ "noreply@github.com" ]
rushikeshkorde.noreply@github.com
bde1909ef256bb98db99f9655bb6c8af594fcd1c
f3dc7c8ab38e3affaacbc05179aa30d14589adf1
/SOLA.py
e51c3c4172777cf5b63909b718772f4a7582392f
[]
no_license
jishnub/moccasin
fa2c6ffd7f42f99aacb9f4519a58017f37715fab
3495cc82c70d8a62f2fda551b2d269b17f4efeef
refs/heads/master
2020-03-18T07:34:39.901461
2019-01-21T11:02:12
2019-01-21T11:02:12
134,461,587
0
0
null
null
null
null
UTF-8
Python
false
false
6,599
py
from astropy.io import fits import numpy as np; import array import matplotlib.pyplot as plt from matplotlib import cm import scipy import math from numpy.linalg import inv import numpy.matlib def dfac(n): a = np.zeros_like(n) for j in range(0,n.size): a[j] = np.prod(np.arange(n[j],1,-2)) return a d...
[ "hanasoge@gmail.com" ]
hanasoge@gmail.com
d17b534e12aa0ac404011b7b2baf87061f771646
893e09a68b636a214a75745453fb73ce6c618472
/lab9_b.py
40c65fe61ff69a6f3d9df4d95b6f349c17210272
[]
no_license
pavangabani/DAA_Lab
241b33d4a13156c2adaa79e82e36140a7f6c3a99
c3cb265e412ce77106507a8491c24fd38612939f
refs/heads/main
2023-08-15T01:22:38.135604
2021-09-14T16:36:06
2021-09-14T16:36:06
406,445,915
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
def lcs(X , Y): m = len(X) n = len(Y) L = [[None]*(n+1) for i in range(m+1)] for i in range(m+1): for j in range(n+1): if i == 0 or j == 0 : L[i][j] = 0 elif X[i-1] == Y[j-1]: L[i][j] = L[i-1][j-1]+1 else: L[i][j] = max(L[i-1][j] , L[i][j-1]) return L[m][n] x="pavan" y="gabani" a=...
[ "pavan.gabani@gmail.com" ]
pavan.gabani@gmail.com
af38ecfee37543b5b56fdeb4ae4fe169f1676baa
ea4b8ad32345a94ec1c566c30efb4dfc9fd46b8e
/GeoGossip/webapps/geogossip/tests.py
7b788d76bdb245e32e179aac540d6504c253de3b
[]
no_license
yyi1/GeoGossip
76e09b585c0a765485547560def4b2f9aa407777
99fa1d06c4f26ad1f0ab8b1c007ab2d54d3cc56f
refs/heads/master
2020-04-06T04:21:46.476790
2017-02-25T04:45:26
2017-02-25T04:45:26
82,977,730
0
0
null
null
null
null
UTF-8
Python
false
false
5,040
py
from django.test import TestCase from django.test import Client from django.contrib.auth import authenticate from models import User # Create your tests here. class EndToEndTest(TestCase): def setUp(self): super(EndToEndTest, self).setUp() self.client = Client() self.user = User.objects.cr...
[ "yyi1@andrew.cmu.edu" ]
yyi1@andrew.cmu.edu
49bbf912ea16d6bf259a39904154cc010346a28a
687306842e8082ed1c31441bbacf697352fe1d22
/design.py
b7a6d0ecdb4066f6d35c6bb75f544e667966a54e
[]
no_license
Garyguo2011/Firewall
a77940d6fa0957fb2c2811cfcc5fa3c3b8982209
0906e947853c14b0a04fcccfd350202405b1c8f5
refs/heads/master
2020-05-21T11:37:02.562484
2014-12-03T15:45:44
2014-12-03T15:45:44
26,337,718
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
class DNSArchive(Archive): def __init__(self, ....): self.app = "dns" self.domainName class TCPArchive (Archive): def __init__(self, packet) class Archive(object): def __init__(self, ....): self.direction self.protocol self.externalIP self.countryCode self.packet self.matchRules # Control Plane...
[ "xguo@berkeley.edu" ]
xguo@berkeley.edu
9b9bf9b3e9aaeb11ed05526758f3d5fb48fab438
09b41a5db055eccee47aba8b305c25515d303793
/title_test.py
f84ee707d3e011be6b95904389fbf36cf84834ed
[ "Apache-2.0" ]
permissive
ishansd94/travisci-test
1c83638f8576a931d7776394ee9926b8c7cf07bc
2edd64e655f8536bddd9655992d1397a10835ed7
refs/heads/master
2020-03-30T09:09:52.755411
2018-10-01T11:36:52
2018-10-01T11:36:52
151,063,228
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
import unittest from title import convert class TestConvert(unittest.TestCase): def test_convert(self): str = convert("hello world") self.assertEqual(str, "Hello World") if __name__ == '__main__': unittest.main()
[ "ishan.dassanayake@pearson.com" ]
ishan.dassanayake@pearson.com
dfee4727ac0ae042e9312e84a9fcd32b98b17fc0
81c0dcb009cd30e12e6948b90a0a2ff71fa88d98
/word/index.py
9474bdb8bd374a2cdc94a2b0ad6775e1490590af
[]
no_license
function2-llx/IR-system
c4bc3b5a84f693c2c62b03979adea39601cb09c9
8b40e8c9637e1d5d3665df48670a9095f4027665
refs/heads/master
2023-02-09T03:25:45.723609
2021-01-01T16:14:36
2021-01-01T16:14:36
311,276,530
0
0
null
null
null
null
UTF-8
Python
false
false
845
py
import json from tqdm import tqdm from elasticsearch import Elasticsearch from elasticsearch.helpers import bulk client = Elasticsearch() inner_sep = '\t' token_sep = ' ' if __name__ == '__main__': corpus = json.load(open('sample.json')) chunk_size = 1000 for i in tqdm(range(0, len(corpus), chunk_size))...
[ "function2@qq.com" ]
function2@qq.com
ae5a6526f090a8363d28b2f1de374b3d972022b0
5b256252d35410f7c3239b13d8aed801dc3ad0e8
/More Exercises/city.py
90fd5eda5f36e8d55273d3847aae6fc6ab996092
[]
no_license
Nmazil-Dev/PythonCrashCoursePractice
d52d3f4585fbce18011720cc3cef83f095add526
7bf55dc8298e70ee4b5b5345e1171c188ea8bbda
refs/heads/master
2020-04-27T09:56:22.937795
2019-03-06T23:15:05
2019-03-06T23:15:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
def city_name(city, country, population=''): if population == '': name = city.title() + ', ' + country.title() + population elif population != '': name = city.title() + ', ' + country.title() + ' - population ' + str(population) print (name) city_name('brookfield', 'usa')
[ "nmazil68@gmail.com" ]
nmazil68@gmail.com
df6c20b6c5095c0d72d68b742ed9c6b48614b69e
73de83162fd26ea60b0d07a3bb0a9ced63499d43
/scripts/show_result.py
f1fd3005a1e8db8cd77c90185924775cb3cb8c28
[ "GPL-3.0-or-later", "MIT" ]
permissive
Geonhee-LEE/PythonLinearNonlinearControl
fa6c3dec2a7234ddb182388ac2e21074162e2155
2a2467098108641483778c09ceb7906cb49f6cee
refs/heads/master
2023-07-10T03:48:45.566076
2021-08-21T12:55:30
2021-08-21T12:55:30
276,524,383
0
0
MIT
2020-07-02T02:00:18
2020-07-02T02:00:17
null
UTF-8
Python
false
false
1,636
py
import os import argparse import pickle import numpy as np import matplotlib.pyplot as plt from PythonLinearNonlinearControl.plotters.plot_func import load_plot_data, \ plot_multi_result def run(args): controllers = ["iLQR", "DDP", "CEM", "MPPI"] history_xs = None history_us = None history_gs ...
[ "quick1st97@gmail.com" ]
quick1st97@gmail.com
f8597c8ce3dfbc755d8bf76575047963a0ec8beb
6c74c8babd2f94cbed185af75940774a2750f3e5
/src/georinex/base.py
ccfff852795a64c572afd92589a410550c92cf2e
[ "MIT" ]
permissive
geospace-code/georinex
c28c8a17196bb1fa8093c818ce43bcb74ec52171
c689a5a6bc2ffb68bc055f150f1da1b6bab12812
refs/heads/main
2023-04-13T15:01:50.903458
2022-12-27T19:25:58
2022-12-27T19:26:15
34,296,204
106
40
MIT
2023-04-10T02:54:45
2015-04-21T01:19:29
Python
UTF-8
Python
false
false
7,148
py
from __future__ import annotations import typing as T from pathlib import Path import xarray from datetime import datetime, timedelta import logging from .rio import rinexinfo from .obs2 import rinexobs2 from .obs3 import rinexobs3 from .nav2 import rinexnav2 from .nav3 import rinexnav3 from .sp3 import load_sp3 from ...
[ "scivision@users.noreply.github.com" ]
scivision@users.noreply.github.com
92bce89e8eb6178bc209f07bc8b16f2f963e3867
20b47d5a51508cbcb8cd57f950e1d0c6f679b71c
/education.py
0a28a7aef18e8dec4b013e26cccebcc1862c4daf
[]
no_license
amycbaker/Thinkful_Assignments
91722e60d08022387009548e0849d69b6fa04327
46d14e50c25f01bfe857f4620771253a559f2f6f
refs/heads/master
2021-01-19T23:42:30.374995
2017-06-13T04:05:00
2017-06-13T04:05:00
89,014,116
0
0
null
2017-05-17T16:30:58
2017-04-21T18:48:20
Python
UTF-8
Python
false
false
2,696
py
from bs4 import BeautifulSoup import requests import pandas as pd import csv import sqlite3 as lite import statsmodels.formula.api as smf import math # store url for school years url = "http://web.archive.org/web/20110514112442/http://unstats.un.org/unsd/demographic/products/socind/education.htm" # get the...
[ "amybaker@gmail.com" ]
amybaker@gmail.com
201f42a6dc8b4593fc50814c1c71e25270c0c730
0318d24670acc083b67d27027961ba2e060857b4
/naiveBayes_logisticRegression/utility.py
455d08018463e44195b6d09999257d67ea39ffe2
[]
no_license
HC15/Machine-Learning-Email-Classification
7d4e4ef9c76d41884c29c72179f6df8f204529a7
fe4945bc01ac9055aec143478d6bedaa8f71eda6
refs/heads/master
2020-03-08T04:00:52.183730
2018-05-07T15:30:57
2018-05-07T15:30:57
127,908,833
0
0
null
null
null
null
UTF-8
Python
false
false
3,819
py
from re import sub from os import scandir from nltk.stem import SnowballStemmer from Classifier import Classifier def normalize_text(text): return sub("[^a-z]+", ' ', text.lower()) def read_data(directory_name): data = {} with scandir(directory_name) as data_directory: for class_entry in data_d...
[ "harvc015@gmail.com" ]
harvc015@gmail.com
04bb08d4b13fe38a056228962344ffdfb9bf975a
92e09d003c43662f8452f8445fdc793b60406670
/Python/python 爬虫/Maoyantop100/spider.py
634c40a7994be216c33dcb259f6c60942d2ac138
[]
no_license
WangJian1314/python_spider
63f9bd98c8f6618aeb3b6f51e6a49563cb3e6066
6d0394b560a556df8dca1388dfa6182475ef885b
refs/heads/master
2020-06-02T22:50:36.577067
2019-04-20T09:02:51
2019-04-20T09:02:51
191,334,030
1
0
null
2019-06-11T09:03:54
2019-06-11T09:03:53
null
UTF-8
Python
false
false
1,578
py
import json from multiprocessing import Pool import requests import re from requests.exceptions import RequestException def get_one_page(url): try: headers = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.3...
[ "303061411@qq.com" ]
303061411@qq.com
fd6b8c1a24799e9d64be437cb85b6a6c16c1e23c
9fe79da67efcd12cae6c61ea360960a87e8fe805
/web/urls.py
b7afe9636b634ea342a3349487fb98dd5bac0c64
[]
no_license
ZuiYee/EducationSystem
00abaa482c393c1b50dac598d4b3ddfdd6268cd7
07bf141ea4c213d966105273d3feb9ad997f556f
refs/heads/master
2020-04-09T23:42:44.673994
2019-01-13T06:14:17
2019-01-13T06:14:17
160,663,085
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
from django.conf.urls import url from . import views app_name = 'web' urlpatterns = [ url(r'^studentProfile/', views.studentProfile, name='studentProfile'), url(r'^teacherProfile/', views.teacherProfile, name='teacherProfile'), url(r'^studentparseresult/', views.studentparseresult, name='studentparseresul...
[ "39691460+ZuiYee@users.noreply.github.com" ]
39691460+ZuiYee@users.noreply.github.com
b548eedfdd00fe7c08f5ba00618fbe44e0cba7df
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/pipeline/service_group/number_office/time/fact.py
e3cbfccb649de7dbf84162e340a4f0fe1510ddd6
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Python
false
false
3,575
py
package textTranslator; import java.io.*; import java.net.*; import java.util.*; import com.google.gson.*; import com.squareup.okhttp.*; public class Translate { String subscriptionKey = 'b58103fec253e2c21b0fdc1a24e16352'; String url = "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0...
[ "soric.matko@gmail.com" ]
soric.matko@gmail.com
40ce5ec818cd4be194c39a8e93b7069f16945d43
1ec2e018d63d15486110aea7923ffbbf62ecbd5b
/SVM_classification__.py
a6893ea17659bb15ef9207d6898ec74c58171c78
[]
no_license
DDeman/svm
88f51cefed530821e5a13df259602bf3c67f0128
743c6edcbd12a34ffc45dd43ef97c36792d308ac
refs/heads/master
2021-05-24T17:04:42.727047
2020-04-07T02:39:47
2020-04-07T02:39:47
253,668,816
0
0
null
null
null
null
UTF-8
Python
false
false
6,489
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __title__ = '' __author__ = '任晓光' __mtime__ = '2020/4/3' # code is far away from bugs with the god animal protecting I love animals. They taste delicious. ┏┓ ┏┓ ┏┛┻━━━┛┻┓ ┃ ☃ ┃ ┃ ┳┛ ┗┳ ┃ ...
[ "rxg15506009565" ]
rxg15506009565
ea9db589734e38f7ee6202aef62fb859d876b357
05f7f004ccd926c1611dc03473e0778d8c332e14
/lcmf_projects/bond_click.py
c44ffa7db70e91bd17ff2cafe6c8693d6261a9f2
[]
no_license
tongch8819/lcmf_projects
06cd875e5b001a871cc11cdc8cf45a32f7faa105
a7243aee94da9bbf9651e1365351c5b4ef364b80
refs/heads/master
2022-04-04T22:15:26.726761
2020-02-24T03:51:23
2020-02-24T03:51:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,807
py
import numpy as np import click from scipy import optimize @click.command() @click.option('--coefficients', default=(1,0,2), help='tuple for representation of polynomial') def ployvalTest(coefficients: tuple =(1,0,2) ) -> str: print('Input: ', coefficients) res = np.polyval(coefficients, 1) if res...
[ "tong.cheng.8819@outlook.com" ]
tong.cheng.8819@outlook.com
48763a0aeba89cb486860a35c4917e5e2660d135
7393b48ff1a403d163812ae77321981586707733
/email_dl_sep.py
b2a8ef3c378ad7ee7dfe35898484f5b8c67a5ccc
[]
no_license
playerdefault/littlethings
7121754cc5174c407adeb3d49e5e2f5d7796276c
5b0fb17f51a7e9179f5523492c44a7eed2f0e47e
refs/heads/master
2021-07-05T08:05:28.183727
2020-08-27T06:41:43
2020-08-27T06:41:43
168,153,514
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
# This program separates a list of semi-colon separated emails from a text file # and prints out the number of emails path = input(str("Enter the relative path of the file with the DL List: ")) DLListInputFile = open(path, 'r') DLInput = DLListInputFile.read() numberOfEmails = 0 for char in DLInput: if(char==";"): ...
[ "swaraj.mohapatra@outlook.in" ]
swaraj.mohapatra@outlook.in
2f4b33789431edee4986b09ab5ab538d8efb35ac
10914bad0901b0e9d0233418f850050b23fe4da2
/models/pretrained_mobilenet.py
34aa6ef8eeb074987ccbbc850e52d60e7e50dc2f
[]
no_license
wQuole/image_classifier
3ced4f48bdef555eaf07858a56c56930ca3f39b3
7ebd1794381902ddb316161d4778cb84a3cc0b13
refs/heads/master
2022-09-09T08:22:41.818211
2020-05-31T17:50:43
2020-05-31T17:50:43
267,560,900
0
0
null
null
null
null
UTF-8
Python
false
false
1,289
py
from tensorflow.keras.applications import MobileNetV2 from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import RMSprop from tensorflow.keras.losses import BinaryCrossentropy from tensorflow.keras.layers import Conv2D, MaxPooling2D, Dropout, Flatten, Dense, Activation, GlobalAveragePooling2...
[ "wgkvaale@gmail.com" ]
wgkvaale@gmail.com
4e58c678d8ebf19f2a3b0ab83528aa49d5f251d1
4d0472bcb230cf060e31e0d5320f3de2f5e9e55e
/train_generator.py
fd3098f5830fbb894befa01558bb81b18581e701
[]
no_license
sharadmv/CharacterGAN
7b9d37d8515978655084ea815b714596e3d5adc7
4a0253102f23313a5ee72a09f938c64a220fe6b8
refs/heads/master
2021-01-15T21:14:26.016372
2016-03-01T02:06:08
2016-03-01T02:06:08
52,777,523
0
0
null
2016-02-29T08:57:04
2016-02-29T08:57:03
null
UTF-8
Python
false
false
5,040
py
import numpy as np import cPickle as pickle import theano import sys import csv import logging import random from dataset import * from deepx.nn import * from deepx.rnn import * from deepx.loss import * from deepx.optimize import * from argparse import ArgumentParser theano.config.on_unused_input = 'ignore' logging.ba...
[ "liam.fedus@gmail.com" ]
liam.fedus@gmail.com
457107eadcf898c5b73e8308dd0dda559a8e82c0
1eefc1fc19dd4b0ded6eaad75d232450d00e0eba
/bench/pya.py
e72d2be49042f8110990e00bb7955677fd30d4af
[ "MIT" ]
permissive
pskopnik/apq
2dbfa3e56c6e5c836b9d38a9e4b6bdf2f83eb44a
827e722ec604d2f7c050f43748136613c3cd3d70
refs/heads/master
2021-07-07T08:32:40.204240
2020-02-12T13:33:41
2020-02-12T13:33:41
237,626,912
4
1
MIT
2021-04-20T19:28:42
2020-02-01T14:31:05
Python
UTF-8
Python
false
false
2,319
py
from . import bench, BenchTimer, main_bench_registered from .utils import StringSource from .py.keyedpq_a import PyKeyedPQA from random import random as random_01 @bench() def bench_add(b: BenchTimer) -> None: s = StringSource() s_offset = StringSource() pq: PyKeyedPQA[str, None] = PyKeyedPQA() for _...
[ "paul@skopnik.me" ]
paul@skopnik.me
ffe965efd83b48d88452e41df5c8274713eac169
ca565548206583a58fe8d646bfd9a6f1ba51c673
/problem2.py
fa5313404ef249962fe28fa2f3edd13684ba5711
[]
no_license
GLAU-TND/python-programming-assignment2-kirtimansinghcs19
fbd772f38fa3546e579ffc2bdf99cc2b34e9937b
5dc16c8b24186a2e00c749e14eecaac426f51e90
refs/heads/master
2021-01-13T22:51:02.990390
2020-02-23T16:32:51
2020-02-23T16:32:51
242,519,926
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
from itertools import permutations def largest(l): lst=[] for i in permutations(l, len(l)): lst.append(''.join(map(str,i))) return max(lst) ls=[] n=int(input('Enter the no element')) for i in range(0,n): ls.append(int(input())) print(largest(ls))
[ "noreply@github.com" ]
GLAU-TND.noreply@github.com
142f68111255fe08b0cfa29a4378494361ef2c57
8ee5dcbdbd407eb5f294d430813b16eca22f571c
/data/HW5/hw5_253.py
628a39851ed1f06194065eadcb2c20d9da276de9
[]
no_license
MAPLE-Robot-Subgoaling/IPT
5e60e2ee4d0a5688bc8711ceed953e76cd2ad5d9
f512ea3324bfdceff8df63b4c7134b5fcbb0514e
refs/heads/master
2021-01-11T12:31:00.939051
2018-08-13T23:24:19
2018-08-13T23:24:19
79,373,489
1
1
null
null
null
null
UTF-8
Python
false
false
383
py
def main(): width = int(input("please enter the width of the box ")) height = int(input("please enter the height of thebox ")) sym = input("please enter a symbol for the outline ") fill = input("please enter a fill symbol ") for h in range(height): for w in range(width): print(sym if h in(0,height-1) or w i...
[ "mneary1@umbc.edu" ]
mneary1@umbc.edu
f2a89ce80fd4ce27424ff0a7e83f15dcf071cf2b
4994d9e1e3bbf4fc3d2ce7b5f3a41b3d0ff1e165
/lib/handle/StaticHandler.py
053961a57bf511f3f79a3ace3ee78ea3d3c07234
[ "MIT" ]
permissive
francoricci/sapspid
228ab362c123cf3d28c9eab215f5daafe4aa293b
db335f2335824ba4f7aa7a01cd15c235bc815a47
refs/heads/master
2021-07-13T02:19:12.923503
2021-03-03T15:59:43
2021-03-03T15:59:43
97,124,842
2
0
null
null
null
null
UTF-8
Python
false
false
212
py
import response class StaticFileHandler(response.StaticFileHandler): def write_error(self, status_code, **kwargs): super(StaticFileHandler, self).write_error(status_code, errorcode = '3', **kwargs)
[ "pippo@pippo.com" ]
pippo@pippo.com
e8d0823a474e0ac46065eca508bc73d8188113d9
29c4f16b2bd95203fc58f1b43ada634116aabb8d
/Customer.py
fa14e037618593e8a9bba2823b3fae772e9ee149
[]
no_license
AlexandreGheraibia/banquePython
2c715c7013c8cd89f87ce80fcadb63ce47830b76
df2f1b79f8dd5219f65bd5cf0b9a249a12e11caa
refs/heads/master
2020-03-22T01:06:23.046419
2018-06-30T22:27:29
2018-06-30T22:27:29
139,283,290
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
class Customer: def setId(this,id): return id def getId(this): return this.id def setName(this,name): return name def getName(this): return this.name def __init__(this): return def __init__(this,id,name): this.id=id this.name=name
[ "gheraibia@hotmail.com" ]
gheraibia@hotmail.com
87eea3930704d7e2f8216d0c4e219c57beb148a0
f6973cc740981bf4ce80b5d1dc8e12f90d38ef42
/XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/sOkxR-HicgX79sgQZAyBR1W09XbOY-yF9DMdXi8nVww=/rwobject.cpython-36m-x86_64-linux-gnu.pyi
fdf731a3699e1443db437aea28576483fb0d807e
[]
no_license
fdr896/Trumper-Jumper
88783cf97979a0e9f8d2a3f64c606a67d4dd1719
77f813b7267451f3156cf6bddad76081c29a25f0
refs/heads/master
2020-06-02T08:41:50.978639
2019-06-10T05:36:24
2019-06-10T05:36:24
191,102,422
0
0
null
null
null
null
UTF-8
Python
false
false
707
pyi
pygame 1.9.4 Hello from the pygame community. https://www.pygame.org/contribute.html import builtins as _mod_builtins _PYGAME_C_API = _mod_builtins.PyCapsule() __doc__ = 'SDL_RWops support' __file__ = '/home/fed/.local/lib/python3.6/site-packages/pygame/rwobject.cpython-36m-x86_64-linux-gnu.so' __name__ = 'pygame.rwob...
[ "fiosetrova@gmail.com" ]
fiosetrova@gmail.com
27a16c27e996906294903e01303e65e7a1d5d0ff
b0769f847d8f2c945f2552891ea7b48e2fad3a0f
/tweetTrend/bin/wheel
f7b6559dcc982dc09a8bff038e4c0507de0ea03c
[]
no_license
jiayangli2/twittmap
b808090acd66a6533e7e17a818512d9a01912632
772b9a868c0a9a0fe52c87bae77d43bc71fd9003
refs/heads/master
2021-03-22T01:27:09.600457
2017-04-09T20:38:37
2017-04-09T20:38:37
84,241,520
0
0
null
null
null
null
UTF-8
Python
false
false
252
#!/home/emmittxu/Desktop/TweetTrend/tweetTrend/bin/python2 # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "gx2127@columbia.edu" ]
gx2127@columbia.edu
379b155116a31b53d67b638b0922f8cf82ef99a4
6aef2fdd5b98038fc6ecc7551dd76dccf370c4ae
/without_variance/GPOMDP_SVRG_WV_ada_bv_wbas.py
25116e70f8b7cc295ad1394c40f7e36f3d85bfe8
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Bobeye/rllab
29b1cf3f29b748f93af4ac103d1a0eaa40290e7f
53c0afb73f93c4a78ff21507914d7f7735c21ea9
refs/heads/master
2020-05-02T07:18:17.323566
2019-03-26T02:34:02
2019-03-26T02:34:02
177,814,299
0
0
NOASSERTION
2019-03-26T15:14:46
2019-03-26T15:14:45
null
UTF-8
Python
false
false
18,229
py
from rllab.envs.box2d.cartpole_env import CartpoleEnv from rllab.policies.gaussian_mlp_policy import GaussianMLPPolicy from rllab.envs.normalized_env import normalize import numpy as np import theano import theano.tensor as TT from rllab.sampler import parallel_sampler from lasagne.updates import sgd import mat...
[ "damiano.binaghi@gmail.com" ]
damiano.binaghi@gmail.com
b48d0fdf80d00e5128a64d51260df0314579ca35
4160b450b052830e17457a0412e29414f67caea5
/order/migrations/0010_auto_20210822_0755.py
295b200f20b97da9b7772cdca4c5ea7279ce3aaa
[]
no_license
mnogoruk/fastcustoms
6ad7b058607ddf4d2b56a09e23e66fcfb43be1a7
4c3bf7f9f1d4af2851f957a084b6adc2b7b7f681
refs/heads/master
2023-08-23T15:54:08.415613
2021-10-31T12:21:29
2021-10-31T12:21:29
372,066,847
0
0
null
null
null
null
UTF-8
Python
false
false
962
py
# Generated by Django 3.2.3 on 2021-08-22 07:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0009_auto_20210821_2220'), ] operations = [ migrations.AlterField( model_name='orderagent', name='comment',...
[ "danii.litvinenko@x5.ru" ]
danii.litvinenko@x5.ru
49e35d732d050a8de37689f7459907f5c429e2fa
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/request/AlipayCloudDevopsDictQueryRequest.py
980977a75413bdc34d657ea1e8ece1c6b0ddb700
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
3,955
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCloudDevopsDictQueryModel import AlipayCloudDevopsDictQueryModel class AlipayCloudDevopsDictQueryRequest(object): def __i...
[ "jishupei.jsp@alibaba-inc.com" ]
jishupei.jsp@alibaba-inc.com
e0c09849f0aec5951bf94adaa9bc3656ac75f05f
abc72a2f2072ab7a5a338e41d81c354324943b09
/MC 102 (Exemplos de aula)/eliminar_repeticao.py
55c15d25c81d25f12a60900b67da3c9af6354681
[]
no_license
gigennari/mc102
a3d39fd9a942c97ef477a9b59d7955f4269b202a
fce680d5188a8dfb0bc1832d6f430cbcaf68ef55
refs/heads/master
2023-04-05T01:40:58.839889
2020-07-27T20:33:56
2020-07-27T20:33:56
354,130,720
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
def eliminar_repeticao(lista1, lista2): lista_sem_rep = [] freq_sem_rep = [] for i in range(len(lista1)): if lista1[i] not in lista_sem_rep: lista_sem_rep.append(lista1[i]) freq_sem_rep.append(lista2[i]) return lista_sem_rep, freq_sem_rep def main(): lista1 = [3, 3,...
[ "g198010@dac.unicamp.br" ]
g198010@dac.unicamp.br
ee391734bbe1d920f7349971047cc74c0c565f36
e9ef3cd143478660d098668a10e67544a42b5878
/Lib/corpuscrawler/crawl_mpx.py
71bb3a7ee49333cc9c4fc1cee863a89f398c5aa2
[ "Apache-2.0" ]
permissive
google/corpuscrawler
a5c790c19b26e6397b768ce26cf12bbcb641eb90
10adaecf4ed5a7d0557c8e692c186023746eb001
refs/heads/master
2023-08-26T04:15:59.036883
2022-04-20T08:18:11
2022-04-20T08:18:11
102,909,145
119
40
NOASSERTION
2022-04-20T08:18:12
2017-09-08T22:21:03
Python
UTF-8
Python
false
false
799
py
# coding: utf-8 # Copyright 2017 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
[ "sascha@brawer.ch" ]
sascha@brawer.ch
f7ee63e6b92678782ec9da34b96b0addaf69997c
b9571590d8cc83a99293d777f57e5ebeea5bcc92
/spiders/DoctorSpider.py
1cc8539b8017fa62c7ea2ce5c7a731be27f7fec8
[]
no_license
LiuQL2/Crawler_xywy_doctor_communication
585a0a3230f397640e5fc54506cd6585bfd04f57
3374f08ea34ae8ea7e96501188a4fec247c72b5d
refs/heads/master
2020-06-30T13:28:01.048195
2017-08-04T07:29:19
2017-08-04T07:29:19
74,369,626
0
0
null
null
null
null
UTF-8
Python
false
false
1,508
py
#! /usr/bin/env python # -*- coding: utf-8 -*- """ 用来获取病例和心得帖子内容的类,传入一个帖子的URL,调用不同的方法得到不同的数据。 """ # Author: Liu Qianlong <LiuQL2@163.com> # Date: 2016.12.08 import datetime import json import sys import urllib2 from BaseSpider import BaseSpider reload(sys) sys.setdefaultencoding('utf-8') class D...
[ "LiuQL2@sina.com" ]
LiuQL2@sina.com