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
d448574fb3725a8d6dc5fef6401a51fda2584702
70fa6468c768d4ec9b4b14fc94fa785da557f1b5
/lib/googlecloudsdk/command_lib/error_reporting/exceptions.py
0ff475910503910e5c0b0a043a2e41e2f0aa50de
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
kylewuolle/google-cloud-sdk
d43286ef646aec053ecd7eb58566ab2075e04e76
75f09ebe779e99fdc3fd13b48621fe12bfaa11aa
refs/heads/master
2020-04-20T22:10:41.774132
2019-01-26T09:29:26
2019-01-26T09:29:26
169,131,028
0
0
NOASSERTION
2019-02-04T19:04:40
2019-02-04T18:58:36
Python
UTF-8
Python
false
false
1,036
py
# -*- coding: utf-8 -*- # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
6edc7dfa66db212afd134b9fed089f336bae9ae6
c4d8565e829eb96afd4c09049a0c6816efb1e2c6
/learning_users/basic_app/migrations/0001_initial.py
f74ce561a339d7a0d376a5e481a350a813897291
[]
no_license
anuradha-1704/django-deployment
01a439d563bb76aa2cfc30d14df81ed59105b160
e654b9ed299a10e131ac47c9324ea31b9f770019
refs/heads/master
2022-11-11T15:57:08.602650
2020-07-05T12:55:51
2020-07-05T12:55:51
277,287,292
0
0
null
null
null
null
UTF-8
Python
false
false
844
py
# Generated by Django 3.0.7 on 2020-07-01 03:41 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "singhanu1704@gmail.com" ]
singhanu1704@gmail.com
4994b7c70bcda28df176710abb3fb3a476a2060c
c3dc14ab07cb474509591f42caa391632c6e4987
/test/test_SM/test_find_purchases_spetstorgi.py
37ef72e1faf72876d2a42e4cd6afb4b806437fc9
[ "Apache-2.0" ]
permissive
IrinaSlobodchikova/marker
75fa1064ac97ba3bb93c63f3b5cc448e3b9ac002
72f981134fb025a94348cd2bc829fa8430a01372
refs/heads/master
2021-08-19T18:34:08.349397
2018-11-20T11:31:55
2018-11-20T11:31:55
146,416,078
0
0
null
null
null
null
UTF-8
Python
false
false
21,989
py
#global l #l = ('0', 'За весь период', 'Сегодня', 'Вчера', 'Последние 7 дней', 'Текущий месяц', 'Прошлый месяц', 'Текущий квартал', # 'Прошлый квартал', 'Текущий год', 'Прошлый год', 'Выбрать период...') # rostelecom@rt.ru def test_sm_find_purchases_by_text_first_publish_today_spetstorgi(app): app.test...
[ "Irina.Slobodchikova@interfax.ru" ]
Irina.Slobodchikova@interfax.ru
a693f848a13454a6cfa0984f201bdd2971733ff4
a39d0d1f0e257d0fff5de58e3959906dafb45347
/PythonTricks/DataStructures/arays.py
4dd812657bd50c08d6dda6321c7d0a1f08ba79a0
[]
no_license
Twishar/Python
998d7b304070b621ca7cdec548156ca7750ef38e
1d1afa79df1aae7b48ac690d9b930708767b6d41
refs/heads/master
2021-09-23T14:18:36.195494
2018-09-24T12:33:36
2018-09-24T12:33:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
768
py
import array arr = ['one', 'two', 'three'] print(arr[0]) print(arr) # Lists are mutable: arr[1] = 'hello' print(arr) del arr[1] print(arr) # Lists can hold arbitrary data types: arr.append(23) print(arr) # Tuple - immutable containers arr = 'one', 'two', 'three' print(arr[0]) print(arr) # arr[1] = 'hello' # del...
[ "stognienkovv@gmail.com" ]
stognienkovv@gmail.com
a6e3d6887d21f18e3a81f1b8e3d68a524735ffef
f3143ca3dd2d5c69709294e2ed1953266de7392a
/JoinEpidemic/forms.py
691b9bf56befe1166c395d6b3932db0d33aa5dbf
[]
no_license
kewok/GiveMeFever
d34de6ff3552efe31e0c0820e8de7af4e70e8a78
81e40c6edbf32b4325f6ed450548d6dd41008663
refs/heads/master
2020-05-03T12:04:03.013594
2019-04-12T23:17:20
2019-04-12T23:17:20
178,607,950
0
0
null
null
null
null
UTF-8
Python
false
false
1,794
py
from django import forms from django.forms.models import modelformset_factory from django.utils.crypto import get_random_string from django.core.exceptions import ValidationError from django.utils import timezone from .models import HostSettings from SetupEpidemic.models import EpidemicSettings from GMF.models import...
[ "okam3550@stthomas.edu" ]
okam3550@stthomas.edu
0e4bfda947998d89214f5752fb47e5f7a38c69f4
e3c4bc40edd660ed3ea8905b38324bc327b76df3
/main.py
428eb34f6f6df331760fb44f5756f41fecea2709
[]
no_license
mearafGitHub/Agri-AI
b55fc38dc551b38641f39f46f6b004e3f4e7c48e
0c3f2deb9f2b4128876109eb6a0382c3f5f180be
refs/heads/master
2023-04-04T15:54:27.205703
2021-04-22T08:14:52
2021-04-22T08:14:52
360,442,135
0
0
null
null
null
null
UTF-8
Python
false
false
1,882
py
from kivymd.app import MDApp from kivymd.uix.screen import MDScreen from kivymd.uix.label import MDLabel from kivymd.uix.button import MDIconButton, MDFlatButton, MDRectangleFlatButton from kivy.lang import Builder from kivymd.uix.dialog import MDDialog from helpers import username_helper class Agro(MDApp): ...
[ "mearaftadewos@gmail.com" ]
mearaftadewos@gmail.com
ed76c472229c5f13c176c8c307011fc6e2e01e17
32ae799a5a2906fefcc2f20bc27e777d9562a2be
/src/base/migrations/0016_auto_20160322_2136.py
4ea52486b56048239d331bbbe2f3c2278992c43d
[]
no_license
cgkv-rehoboth/stek
d8c4103e13bbba30c7de4a4f4710cd0f3356e10f
53f6a66534117b277626f673d32c9627d0c913c0
refs/heads/master
2021-04-19T01:58:34.554537
2019-09-10T14:45:53
2019-09-10T14:45:53
39,624,926
3
1
null
2015-12-23T11:38:20
2015-07-24T10:00:12
Python
UTF-8
Python
false
false
401
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0015_auto_20160322_2135'), ] operations = [ migrations.AlterUniqueTogether( name='profile', ...
[ "a.j.rouvoet@gmail.com" ]
a.j.rouvoet@gmail.com
f706c41962f21c4b764b0b4ccea05a2eed8290b9
881ca022fb16096610b4c7cec84910fbd304f52b
/libs/scapy/contrib/__init__.py
d1ce31ce09076bfc086bfb4b8be14c6235ba16f5
[]
no_license
mdsakibur192/esp32_bluetooth_classic_sniffer
df54a898c9b4b3e2b5d85b1c00dd597d52844d9f
7e8be27455f1d271fb92c074cb5118cc43854561
refs/heads/master
2023-07-31T14:29:22.989311
2021-09-08T11:18:21
2021-09-08T11:18:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
# This file is part of Scapy # See http://www.secdev.org/projects/scapy for more information # Copyright (C) Philippe Biondi <phil@secdev.org> # This program is published under a GPLv2 license """ Package of contrib modules that have to be loaded explicitly. """
[ "mgarbelix@gmail.com" ]
mgarbelix@gmail.com
86e66ed67db6b305063094b5f221bd4ae4226c13
389bebe167a434a9d63e5644e6bdd6282fed6772
/sagi/release.py
36fcfc74b227b3021d99a3f7ce05426b70b83fdd
[ "MIT" ]
permissive
sagittarius-eye/edmc-sagi
d2a9d58d3c404006c8e0a09aca553c76d35fa918
05caa642f385ad5552ea8488e0a49609f6516186
refs/heads/master
2020-12-29T06:29:45.885265
2020-02-06T11:38:58
2020-02-06T11:38:58
238,492,230
2
0
null
null
null
null
UTF-8
Python
false
false
3,223
py
import sys if sys.version_info[0] == 3: import tkinter as tk from io import BytesIO else: import Tkinter as tk import StringIO import myNotebook as nb from config import config import requests import os import zipfile import shutil class Release: plugin_dir = None def __init__(self, version...
[ "mail@147lo.ch" ]
mail@147lo.ch
c7fcba6d2dd92205ca0170823326e75f126c0e10
beaa425942c1737a2518513bfeb0a3ee83ee2d57
/test_pattern_utils.py
889eeaa2c6b2afa78a9427c1eae73d156d875016
[]
no_license
LinniQ/IFN680-Artifitial-Intelligence
27e2b23dc4ad6e18bf0a4d54c861c360146bc69c
05c159ad936a825162d3fa7e8d530ac885517067
refs/heads/master
2021-01-19T14:17:43.707890
2017-10-29T17:23:47
2017-10-29T17:23:47
100,895,484
0
0
null
null
null
null
UTF-8
Python
false
false
938
py
import numpy as np import matplotlib.pyplot as plt import pattern_utils imf, imd , pat_list, pose_list = pattern_utils.make_test_image_2(True) # #p1 = pattern_utils.Square() #p2 = pattern_utils.Triangle(2) # #print(p1) #print(p2) # #imf = pattern_utils.pat_image( # [p1, p1, p2], # ...
[ "noreply@github.com" ]
noreply@github.com
2835c3635e81729d30e6751389b99288364912e4
e2a68c556fb0db14c9f2f11c5b274497a0fac406
/shop/models.py
6942a5a1f3e9e0e68339c41f05c68d7adf7a6f96
[]
no_license
carolynjanie/Bizmart
9829758c9abd0677ec619f0aef61664d2006f518
11714df5f265c59188f58206a510e30d306811b7
refs/heads/master
2020-04-02T04:31:04.228245
2018-06-01T10:26:38
2018-06-01T10:26:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,402
py
from django.db import models from django.core.urlresolvers import reverse # Create your models here. class Category(models.Model): name = models.CharField(max_length=200, db_index=True) slug = models.SlugField(max_length=200, db_index=True, unique=True) class Meta: ordering = ('name',) ver...
[ "kamwanasamwel@gmail.com" ]
kamwanasamwel@gmail.com
3b455dce7c42013f223342ae6818e6c70d46e621
2158ebb00133f419aabd3f44bbe00f33aa0ffad2
/complaint/migrations/0014_complaint_resolved_date.py
e134bdc0564de21f6c19e13870fd74ca04180502
[]
no_license
ishan-mangotra/grievance-redressal-system
566b8217a6462236297dab972f3df604882ff39a
65704928bb7c5c9e0c3e6c2bde73cfb5ac80234c
refs/heads/master
2020-06-01T01:11:46.845870
2019-07-09T13:42:30
2019-07-09T13:42:30
190,570,787
0
0
null
2019-06-06T11:35:40
2019-06-06T11:35:40
null
UTF-8
Python
false
false
449
py
# Generated by Django 2.2.3 on 2019-07-04 06:34 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('complaint', '0013_auto_20190703_2336'), ] operations = [ migrations.AddField( model_name='complaint...
[ "f20170903@pilani.bits-pilani.ac.in" ]
f20170903@pilani.bits-pilani.ac.in
b1b0dba70a51a58b591e362710af8ccfca950175
23d30667228a21c6a24dc4c457b27289ec5e0b7b
/makeVideo.py
02cf21c4c405a592307dede03e6b33d9086aa566
[]
no_license
Ai-Ganeration/ImageProcessingScripts
d44679f0b3148f4ab43a95c79678d639a7e86ef7
3d5d2670b1b3ac2cc75f8a2bf2b018deff434b4d
refs/heads/master
2023-06-20T19:14:45.769969
2021-07-19T18:49:44
2021-07-19T18:49:44
385,872,788
0
0
null
null
null
null
UTF-8
Python
false
false
910
py
import imageio import time import numpy as np from pathlib import Path from PIL import Image from tqdm import tqdm def make_project_progress_mp4(): current_folder = Path('.') current_folder_list = list(Path('').iterdir()) movieName = Path(current_folder, 'out_movie_{0}.mp4'.format(int(time.time()))) r...
[ "joegxu22@gmail.com" ]
joegxu22@gmail.com
873c042e8cd5f2b7ede759c9556fe59f9cdcf17c
f72766d81fd3e532b7d1f4d95d2e83e14cc8241c
/cws/mainapp/views.py
040229e6dfea5b79e451cf453e87e6a47e88c20e
[]
no_license
DeReP/course-work-4
88340c3015aed7b805bc19ee1f81db835ca7c422
f333e2b359825f056788080334dc01bd68c79892
refs/heads/main
2023-04-30T13:23:33.292996
2021-05-13T17:13:47
2021-05-13T17:13:47
362,076,225
0
0
null
null
null
null
UTF-8
Python
false
false
1,820
py
from django.shortcuts import render from django.http import HttpResponse from django.core.paginator import Paginator, PageNotAnInteger from django.views.generic import ListView from mainapp.serializers import ContentCardSerializer, CommentSerializer from rest_framework import viewsets from rest_framework.decorators imp...
[ "denisrepnin99@gmail.com" ]
denisrepnin99@gmail.com
9ca578dfa4481209f802f09fe1f2d284c66c4342
86fc644c327a8d6ea66fd045d94c7733c22df48c
/scripts/managed_cpe_services/customer/single_cpe_site/single_cpe_site_services/cpe_lan/end_points/end_points.py
c1ba06f6470036abac86a2fa5229dae0de42c9a8
[]
no_license
lucabrasi83/anutacpedeployment
bfe703657fbcf0375c92bcbe7560051817f1a526
96de3a4fd4adbbc0d443620f0c53f397823a1cad
refs/heads/master
2021-09-24T16:44:05.305313
2018-10-12T02:41:18
2018-10-12T02:41:18
95,190,459
0
0
null
null
null
null
UTF-8
Python
false
false
16,803
py
# # This computer program is the confidential information and proprietary trade # secret of Anuta Networks, Inc. Possessions and use of this program must # conform strictly to the license agreement between the user and # Anuta Networks, Inc., and receipt or possession does not convey any rights # to divulge, reproduce,...
[ "sebastien.pouplin@tatacommunications.com" ]
sebastien.pouplin@tatacommunications.com
85f5b79b23e25c1ac872cd2189355359ac846054
05b1068ce39f944c2c20a2654ed865c198504255
/klp/klprestApi/KLP_Map.py
c68195b207973010fb3cf22e10259c8e3f852e88
[]
no_license
vishnu81/KLP-MIS
5f80abe099b72ad06c1804c445abd4c31419094e
8a93fdb384e97feb3d0c0d448c6e426c2eb927ae
refs/heads/master
2021-01-16T23:20:57.951273
2012-12-03T05:17:47
2012-12-03T05:17:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,066
py
from django.conf.urls.defaults import * from django.http import HttpResponse from django.shortcuts import render_to_response from django_restapi.resource import Resource from django_restapi.model_resource import Collection, Entry from django_restapi.responder import * from django_restapi.receiver import * from klprestA...
[ "sree@sree-laptop.(none)" ]
sree@sree-laptop.(none)
e64859e345db2e670b6366ede5981f370ddbdad1
cf1663c4d4b75ee3adbe5d93d356d47481d336c3
/task_3_pol_detect.py
8c974ca1a0af37fe10ae6ad4b9af9a5005d42981
[]
no_license
harry-124/e-Yantra
34a0eb13d306cd7f77a6b5a9d9fb8aa401a82c70
8f8d5ab658a7fe3c870298733c9f65d5b1d58051
refs/heads/master
2020-04-17T12:39:23.435422
2019-01-19T20:08:35
2019-01-19T20:08:35
166,587,386
0
0
null
null
null
null
UTF-8
Python
false
false
2,300
py
#!/usr/bin/env python import numpy as np import cv2 from cv_bridge import CvBridge import rospy, cv2, cv_bridge from plutodrone.msg import * from pid_tune.msg import * from sensor_msgs.msg import Image from geometry_msgs.msg import Twist from geometry_msgs.msg import PoseArray from std_msgs.msg import Int32 from std_m...
[ "noreply@github.com" ]
noreply@github.com
2a660bc3ffcd18ac1e5e10f29152695ef819da0f
1d91b9467939a13e260cbd3fbcec4c9556752e63
/flask_dino_utils/filtering.py
1722bf8993b74340617833917589cc695fc876c1
[ "MIT" ]
permissive
dinocloud/flask-dino-utils
034139149fff7263ab83bc4ab7cb026468e36276
974517e1e3d97d8ab8450b9266023e229e1fa0f0
refs/heads/master
2021-06-07T20:24:59.267417
2018-07-29T23:21:41
2018-07-29T23:21:41
98,652,391
0
2
MIT
2020-12-16T23:12:37
2017-07-28T13:31:16
Python
UTF-8
Python
false
false
1,395
py
import ast from werkzeug.exceptions import BadRequest FILTER_SEPARATOR = '$' FILTER_VALUES_SEPARATOR = ';' def _filter_query(model_class, query, filter_string): if filter_string is None: return query # model_class = type(query) # returns the query's Model raw_filters = filter_string.split(FILTE...
[ "franco.salonia@dinocloudconsulting.com" ]
franco.salonia@dinocloudconsulting.com
13cff0d8ca01678b20325df2d874b25f17aff44d
72a8a95145956c1cf05cc9a613aa47250e982449
/satellite/envs/satellite_envs.py
1aebd36c8142a681d2b185bc64ef40bd7db49918
[ "MIT" ]
permissive
mkunesch/gym-satellite
4080e40ba657cbfc6586195063a9cdd033fc11ed
b117c1c28b7cb01caba93dbed1073dfcfa03fac8
refs/heads/master
2020-03-20T03:17:31.873195
2019-11-01T01:35:09
2019-11-01T01:35:09
137,141,441
3
2
null
null
null
null
UTF-8
Python
false
false
1,239
py
"""Satellite environments for OpenAI gym.""" from .satellite_basic import SatelliteBasic class SatellitePerturbation(SatelliteBasic): """Satellite environment with initial perturbation. The satellite is put into the correct orbit but its radius and angular velocity are perturbed. The agent has to return...
[ "m.kunesch@damtp.cam.ac.uk" ]
m.kunesch@damtp.cam.ac.uk
583b62f1e64e5314f317ba7ac3f3626952b2bcff
0e6262932746db9a8cae6147cdc1341e7b0d8b42
/discussions/threads/urls.py
dfd85b42ff10f3084421630e4d1dfa527be0eb8d
[]
no_license
svschou/discussion_test
8618b146367fb70c3dd6ed48afc24260fb83f55b
175f53ba097a0da3d0442b1e44b74d0cd670b5d2
refs/heads/master
2022-11-20T03:06:45.421899
2020-07-20T14:08:38
2020-07-20T14:08:38
263,418,631
0
0
null
null
null
null
UTF-8
Python
false
false
1,514
py
from django.urls import path, reverse_lazy from . import views app_name='threads' urlpatterns = [ path('', views.PostsView.as_view(), name='all_posts'), path('posts/new', views.PostCreate.as_view(), name='new_post'), path('reactions', views.ReactListView.as_view(), name='reactions'), path('reaction/<int:pk>...
[ "svschou@umich.edu" ]
svschou@umich.edu
4f446507441c2a4797c4d9e708098b595f81d3c5
aa2020f6646a8e165a80d0bd3e2da7620f8cfb80
/rescue_mod.py
273f9b6607b8a19bb53ba62fe4f84a9a802d042a
[]
no_license
PinkSheepDog/codefest
54a24e9772000ab815d0b1688071a6d022e75bbd
617c17c4fdea7f45d3df2fb405ffd79b6c5b4188
refs/heads/master
2020-09-08T14:01:29.916001
2019-11-12T10:19:53
2019-11-12T10:19:53
221,153,819
0
0
null
null
null
null
UTF-8
Python
false
false
684
py
import sys import geocoder from rescue_auto import * import sqlite3 class MyForm(QtGui.QDialog): def __init__(self,parent=None): QtGui.QWidget.__init__(self, parent) self.ui = Ui_Dialog() self.ui.setupUi(self) self.conn = sqlite3.connect('disaster') self.cursor...
[ "noreply@github.com" ]
noreply@github.com
04b561687f11c413d8a426d330e33b7c67103bef
91448aa6882fb66a4c4ec187885dc3b8876c0949
/.dotfiles/bin/filltemplate
36a68b933dad924859ffcf3fcc83b2c7b31541d7
[]
no_license
Kaylier/dotfiles
39d72f93b2d0b9704999fc22119658982da76ace
a195bb2e693efbe3514be3cf8e189a0e67123d3a
refs/heads/master
2020-04-06T05:09:15.392976
2020-04-05T13:53:40
2020-04-05T13:53:40
55,157,724
2
0
null
null
null
null
UTF-8
Python
false
false
3,366
#! /usr/bin/python3 import sys, os import argparse from string import Formatter import datetime class NonceTuple(tuple): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def __getitem__(self, key): return key class InputDict(dict): def __init__(self, *args, **kwargs):...
[ "kaylier@openmailbox.org" ]
kaylier@openmailbox.org
d0fb24f28c2ec27cd9e6e2a7952e61012fa0dc50
1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc
/venv/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_routetable.py
1dc6180ba8335b5645e02e1f39d13a54a3e496bc
[ "MIT" ]
permissive
otus-devops-2019-02/devopscourses_infra
1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c
e42e5deafce395af869084ede245fc6cff6d0b2c
refs/heads/master
2020-04-29T02:41:49.985889
2019-05-21T06:35:19
2019-05-21T06:35:19
175,780,457
0
1
MIT
2019-05-21T06:35:20
2019-03-15T08:35:54
HCL
UTF-8
Python
false
false
6,015
py
#!/usr/bin/python # # Copyright (c) 2018 Yuwei Zhou, <yuwzho@microsoft.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
[ "skydevapp@gmail.com" ]
skydevapp@gmail.com
4888153745ea34d4c15768a4a8e942d57823c159
71e324d2e7c9557a9cfec01997a44a66539ac2e6
/Chapter_08/object_3_seperate.py
bc01ecd017f07f5efe52cb0fb90a2fb4a449db82
[]
no_license
ulillilu/Python_Practice
2706a72b22243f4d76bf239f552bd7da2615c1ef
f2b238176f7e68b3fa0674ce4951aaa4206c15d3
refs/heads/master
2022-11-29T17:58:52.035022
2020-08-13T17:01:49
2020-08-13T17:01:49
287,334,050
0
0
null
null
null
null
UTF-8
Python
false
false
1,047
py
#객체를 처리하는 함수 def create_student(name, korean, math, english, science): return{ "name": name, "korean": korean, "math": math, "english": english, "science": science } def student_get_sum(student): return student["korean"] + student["math"] + student["englis...
[ "noreply@github.com" ]
noreply@github.com
f7947c52d4481d75b19b6f6490176ffac5f568a6
dd46c63ef4f9daffe67d8360142336d248302926
/myproject/myapp/admin.py
57dd61da5f81765c9c169d770bfbafb5a6d48f69
[]
no_license
indrakumar722002/webdevelopment
a62bddb23ad69a5c3d8e1eebdf8c50871fda1443
3978e98854a363eccd61b2d53c312c0f6e813483
refs/heads/master
2022-12-14T07:16:07.737833
2020-09-20T15:32:09
2020-09-20T15:32:09
297,103,409
0
0
null
null
null
null
UTF-8
Python
false
false
118
py
from django.contrib import admin from myapp.models import Bio # Register your models here. admin.site.register(Bio)
[ "noreply@github.com" ]
noreply@github.com
91b849e900044ed54bf41ef89839d496d7edea56
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_gunslinger.py
05089d95d9ae89b34ed5d0ce0aaa83ee93969be4
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
#calss header class _GUNSLINGER(): def __init__(self,): self.name = "GUNSLINGER" self.definitions = [u'especially in the past in North America, someone who is good at shooting guns and is employed for protection or to kill people'] self.parents = [] self.childen = [] self.properties = [] self.jsondata ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
748ba57cf89dcdd66b898d345938928ec78c11b0
523f8f5febbbfeb6d42183f2bbeebc36f98eadb5
/32_best.py
99e35e658b452b484a3f56877cf8d1ea52efde61
[]
no_license
saleed/LeetCode
655f82fdfcc3000400f49388e97fc0560f356af0
48b43999fb7e2ed82d922e1f64ac76f8fabe4baa
refs/heads/master
2022-06-15T21:54:56.223204
2022-05-09T14:05:50
2022-05-09T14:05:50
209,430,056
2
0
null
null
null
null
UTF-8
Python
false
false
594
py
class Solution(object): def longestValidParentheses(self, s): """ :type s: str :rtype: int """ if len(s) == 0: return 0 dp = [0] * len(s) for i in range(len(s)): if s[i] == "(": dp[i] = 0 else: ...
[ "noelsun@mowennaierdeMacBook-Pro.local" ]
noelsun@mowennaierdeMacBook-Pro.local
8c18a2515beac0972d4760bcf73d68aec9f59e15
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02702/s763305864.py
c1f2a064512072f127149a2d43913b8cc8dc8cd7
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
S = input() dp = [0]*(len(S)+1) cur = int(S[len(S)-1]) mod_10 = 1 count_num = [0]*2019 count_num[0] += 1 for i in range(len(S)): dp[len(S)-i-1] = cur count_num[cur] += 1 mod_10 = (mod_10*10)%2019 if i <= len(S)-2: cur = (cur+int(S[len(S)-i-2])*(mod_10))%2019 ans = 0 for i in range(2019): ans...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1b7970d9a98146f6d0795a3bc7f112ddc616dacb
53b8a006081341fd14962f46f6f9b361a4d57345
/wcslint.py
34779b28cba40223511858f8af24d7406ef4d1b6
[]
no_license
hsso/hssopy
9b6009897f1fd28ec7dd71e90b84b772550c1e1a
60e8d5853a3da638bbbc6e456b897cd32e45f990
refs/heads/master
2021-01-10T20:44:07.261142
2017-04-25T03:05:06
2017-04-25T03:05:06
24,440,354
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
#!/usr/bin/python import sys from astropy.io import fits as pyfits hdus = pyfits.open(sys.argv[1], mode='update') for i in hdus: if 'CUNIT1' in i.header and 'Degrees' in i.header['CUNIT1']: i.header['CUNIT1'] = 'deg' i.header['CUNIT2'] = 'deg' hdus.flush() hdus.close()
[ "miguel.deval@gmail.com" ]
miguel.deval@gmail.com
96422a0f96b7667a3c429321ee3fbeaf4af0d68f
129b503ef992c3c16f5865ff9c8b3597f1a13a00
/projects/robots/src/python/motor.py
5e84e7679ab83c6cd5eadbc44a3e4af9fef4e774
[]
no_license
vsee/uoe_programmingclub
23625243b1f1aed3628bfe9e0910c5eef430e207
755bc60f026bcf610c3f267ad4e42850c48c97b3
refs/heads/master
2021-01-09T21:54:19.851834
2020-09-30T20:25:11
2020-09-30T20:25:11
51,511,097
69
29
null
null
null
null
UTF-8
Python
false
false
113
py
m = ev3.LargeMotor('outA') m.connected m.run_timed(time_sp=3000, speed_sp=720) while True: print(m.position)
[ "volker@seekerscience.co.uk" ]
volker@seekerscience.co.uk
9b1564f94ff7eecd8998b52bffb2f36a656a9a37
5a23067ff12412b0bf9b06e42319c14b04aecbaa
/test/courses/courses/mathematics/server/use/getquestion.py
4d8a5890c0e18ccf4dc1e89763a0d4b2a655612f
[]
no_license
daadaada/lalamath
c26f746d161b7e194bb06bd3c97ae46fffb9bb2f
0748b701b5b6dcf0f62a8ee4c0e27b0c4e58cf32
refs/heads/master
2021-05-14T05:51:41.050487
2018-01-04T07:44:01
2018-01-04T07:44:01
116,228,128
0
1
null
null
null
null
UTF-8
Python
false
false
457
py
__author__ = 'Administrator' from django.core.serializers import serialize from mathematics.server.getresponse import get_response from mathematics.models import UserQuestion def getquestion(request,userid): e = UserQuestion.objects.filter(righte=1,userid=userid) if request.GET.has_key("right"): ...
[ "dyanab@cse.ust.hk" ]
dyanab@cse.ust.hk
389be9260718db46419da7ebcf49936e4c53fcd0
0c919fc7c66272e6b7ceb0f10bf20ef8d508c21d
/DukeMTMC/motion/m_mot_model.py
37ed9e536558f091e06d5222c7d1b385e3836158
[]
no_license
yinizhizhu/MOT_GN
b4eab12a3030dab8cf1f560425f030061e737441
f2781431cc6e57bdd1a0c3bf93f87292576a31b8
refs/heads/master
2020-03-27T21:18:26.849046
2019-12-19T09:01:30
2019-12-19T09:01:30
147,133,888
2
0
null
null
null
null
UTF-8
Python
false
false
3,550
py
import torch, math import torch.nn as nn from m_global_set import criterion_s, u_s, e_s v_num = 6 # Only take the appearance into consideration, and add velocity when basic model works u_num = 100 e_num = 1 if criterion_s else 2 uphi_n = 256 ephi_n = 256 # uphi_n = 512 # ephi_n = 1024 class uphi(nn.Module): d...
[ "lijiahe19941013@sina.cn" ]
lijiahe19941013@sina.cn
497198b59569852c0be9f471dd324acb2550d938
7ea1ce55cf2b88dc2d5d378e1bc78c16eb929b03
/articleapp/migrations/0003_article_like.py
bcdb7c00c090bac7a7971fb83dfed7a487f1c991
[]
no_license
Uh-hub/git_4_ban_2
89a667f7ed7e593d57d4205885d8a876e37ad1c0
52c0c52ac0cb5537a773295a3b2948389468af70
refs/heads/master
2023-07-20T06:35:29.915368
2021-08-31T01:44:06
2021-08-31T01:44:06
382,211,435
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
# Generated by Django 3.2.4 on 2021-08-24 02:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articleapp', '0002_article_project'), ] operations = [ migrations.AddField( model_name='article', name='like', ...
[ "tabacal3590@gamil.com" ]
tabacal3590@gamil.com
402d6b18c9b5d6ed5fd941f80c0c23988f760ca4
f7a75a12546eb4cd260a326379336d8929d5c076
/UAS.py
c74ccdef6083ae7fc27776f122f60ef857157a25
[]
no_license
Tiara-081/Tugas-Algoritma-dan-Pemrograman
a40849a875c7fcb6d38e3d165bdef3d1a5610c34
7233a2f3bd120f72bd8aed3c15077f626d8b8abb
refs/heads/main
2023-06-11T23:28:25.246816
2021-07-07T13:10:22
2021-07-07T13:10:22
376,686,575
0
0
null
null
null
null
UTF-8
Python
false
false
7,072
py
''''' AUTHOR : TIARA KELAS : 2C NIM 20083000081 ''''' #IMPORT TGL dan OS import datetime import os #SET CLEAR = CLEAR SCREEN clear = lambda: os.system('cls') #SET TANGGAL tanggal_sekarang = datetime.datetime.now() #PERULANGAN PROGRAM jwb = 'y' while jwb == 'y': #DAFTAR LIST List_kode...
[ "noreply@github.com" ]
noreply@github.com
afc8f2bf08df0703f759b13e99e9b4c3ff9e26a4
e2255da9f41a3ca592f5042c96ec8dc1f5ceba21
/google/appengine/ext/mapreduce/api/map_job/__init__.py
9347a8bdc947888f6886b093371cbbe34aac3d61
[ "Apache-2.0" ]
permissive
KronnyEC/cliques
2a2b1eb0063017f3dbe7de6a42a98d21a7cffb37
2fd66c4c4ea4552ab8ef6d738613f618a1a74fc7
refs/heads/master
2021-01-24T05:05:49.142434
2014-08-18T06:30:32
2014-08-18T06:42:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
853
py
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # 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 o...
[ "josh@pcsforeducation.com" ]
josh@pcsforeducation.com
97784f6501518caf971223020f11dce4904ee155
d3145bacfc1ad692ae7d7376d602c3556d10ee57
/venv/bin/pip3
d34d6c9e5551eb43147a9bd77c070f74ffe42882
[]
no_license
juvu/stock-screener-analysis
664f9563dbe20389229412821e19a732b7561d68
795ed334d8c82234514425d1ad326ca3e2b590c8
refs/heads/main
2023-06-04T10:19:10.438711
2021-06-18T07:32:52
2021-06-18T07:32:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
260
#!/Users/Geric/PycharmProjects/TradingBot/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "watto1990@gmail.com" ]
watto1990@gmail.com
65c30af84b2dea3c8c6d61d78a7c31f79ced9788
aabad89814c09d400a50c5f4de7643b110b814aa
/calcrho.py
5151a0f818bd84290aeff6bd5c06c87a24410e55
[]
no_license
scottie33/amorphous_polymer_lammps
a704c4ff4109a6eebed93968dfe92a3a676ece77
5c0da87049ad76ec19c77dbf2db0893f64f630c6
refs/heads/master
2020-06-09T03:45:45.357923
2013-08-23T10:16:10
2013-08-23T10:16:10
9,537,329
4
1
null
null
null
null
UTF-8
Python
false
false
2,590
py
#!/usr/bin/python import sys,os import math KBoltzmann=1.0 Temperature=1.0 tempMax=20.0 vlpi=math.acos(-1.0) if len(sys.argv) < 2: raise StandardError, "Syntax: calcrho.py datafile" datfile = sys.argv[1] #if len(sys.argv) == 3: shift=int(sys.argv[2]) #else: shift=0 filename = "rhodata.dat" print " now creating...
[ "scottie.odom@gmail.com" ]
scottie.odom@gmail.com
b2afce2fd28e747b244268716b1263f8da3a9d99
5f8232182c0b531ea1baac8eb6c7e52b8dfcbbed
/01_fyyur/migrations/versions/aa121df87c20_.py
3719f05717207cbc16884def77e7c2fa869607bd
[]
no_license
MattiooFR/full-stack-udacity-projects
4aa9ebad272dab3ab5825b88c810e5944f53f16b
5b358287b62df0a0e1f0a7f371b254581859b4a7
refs/heads/master
2023-01-13T23:02:46.707028
2020-05-24T16:41:55
2020-05-24T16:41:55
241,143,784
0
0
null
2023-01-07T18:30:03
2020-02-17T15:38:27
Python
UTF-8
Python
false
false
2,625
py
"""empty message Revision ID: aa121df87c20 Revises: Create Date: 2020-02-17 16:21:15.375782 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'aa121df87c20' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
[ "13595614+MattiooFR@users.noreply.github.com" ]
13595614+MattiooFR@users.noreply.github.com
1f18a7275e14938dc3e3f194844c9c4db53a6882
eade5b743b07f4c40d31d7a3022082d81e50c79d
/src/spark/gdelt_schema_v1.py
ae9976b978aac70d22e256d13fb976e8373c7cff
[]
no_license
alireza-alizadegan/GDELT-Pipeline
66db5606868e77379c784ec6d55522a647831c04
ff3f0317b4779465796b4cc7e8f53e736e284f27
refs/heads/master
2022-11-11T10:15:48.166987
2020-07-02T21:49:41
2020-07-02T21:49:41
266,621,130
0
0
null
null
null
null
UTF-8
Python
false
false
3,448
py
from pyspark.sql.types import StringType from pyspark.sql.types import DoubleType from pyspark.sql.types import IntegerType from pyspark.sql.types import StructType from pyspark.sql.types import StructField gdeltSchema = StructType([ StructField('GLOBALEVENTID', StringType(), True), StructField('SQLDATE', Stri...
[ "a.r.alizadegan@gmail.com" ]
a.r.alizadegan@gmail.com
e751259b8ca57b16e7b82fdbd10b3b2e42038375
32bd856b68396ae3bf1420d5c984db13317ad152
/tuning_screening_precipitation_A6.py
32765e6695cf678d6c3dc0a04c5db613342e63e6
[ "MIT" ]
permissive
acmlia/jobs
d01a26bdae8abaeb4715186a20eeba4b1d542324
ee13ac3363c8a4fab64e21c8787739f5de4ef385
refs/heads/master
2020-04-28T02:05:25.159325
2019-04-14T00:33:40
2019-04-14T00:33:40
174,884,618
0
0
null
null
null
null
UTF-8
Python
false
false
5,095
py
# ------------------------------------------------------------------------------ # Loading the libraries to be used: import numpy as np import pandas as pd import os import time from sklearn.preprocessing import Normalizer from sklearn.model_selection import train_test_split from sklearn.model_selection import GridSear...
[ "lia.meteorologia@gmail.com" ]
lia.meteorologia@gmail.com
c6a885c831f9823881d03cce916a8835aff59be6
22aec4769678cedb1b183eeb81dac05b819a4b09
/__init__.py
d5310ed71078bb84f2d80e85d46beeabb955302f
[]
no_license
hcwoly513/qicloud
8a48aaaf33da3c0f0b5b93fb65f47cf55ba69205
27f2ef1c21147249ed3791b6eb4da6e237bcfac8
refs/heads/master
2021-01-09T06:40:21.177656
2016-12-20T13:46:06
2016-12-20T13:46:06
28,596,306
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
# -*- coding: utf-8 #!/usr/bin/env python3.4 # Name: __init__.py # Author: Chen-Wei Hung # Created Time: 2015-03-23 # Updated Time: 2015-03-23 # Copyright: © PaulX 2015 from __future__ import absolute_import, division, print_function, with_statement __version__ = '0.1' version_info = (0, 1...
[ "hcwoly513@gmail.com" ]
hcwoly513@gmail.com
e13fe5af3a9acaff486417fedd87270c31830d4c
396f93d8e73c419ef82a94174815a2cecbb8334b
/.history/tester2_20200321232603.py
3011254a2f67dbc34040fee7f27f648bd06eec26
[]
no_license
mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch
8c73d9448b916009c9431526864a4441fdeb682a
90b2dca920c85cddd7c1b3335344ac7b10a9b061
refs/heads/master
2021-03-26T21:16:42.561068
2020-04-17T21:44:26
2020-04-17T21:44:26
247,750,502
0
0
null
null
null
null
UTF-8
Python
false
false
1,912
py
import os import subprocess import re from datetime import datetime import time from statistics import mean numberOfTests = 10 tabuIteration = '10' tabuDuration = '0' numberOfCities = '50' final_solution = [] list_coverage = [] print(f"\n\nTest for Tabu Search with this config: \n\tIterations : {tabuIteration} \n...
[ "farzam.mirmoeini@gmail.com" ]
farzam.mirmoeini@gmail.com
4cbaa23d61034ed2852451fd4fd03e02f0eb5ea0
b6922f90a21dcb270ad18586c22ec23107df4708
/ex2.py
91b5de9dbd2ef6d9b94f70914b4b24eaaed42206
[ "MIT" ]
permissive
nguyennam9696/Learn_Python_The_Hard_Way
ef5620f1feca49ddb7cf4435b5cb93f811755884
402ffad8d8dc80f0c1f541d8e3d69980268bb559
refs/heads/master
2016-09-06T04:11:02.387599
2015-09-06T01:21:20
2015-09-06T01:21:20
41,979,612
0
0
null
null
null
null
UTF-8
Python
false
false
44
py
print (100 - 25 * 3) % 4 print 3 + 2 < 5 - 7
[ "nguyennam9696@gmail.com" ]
nguyennam9696@gmail.com
bea5e88034f13856fa849fa5768d945f9fb8b1a6
a9f8c5384937360bd99ea0eef4d9db977eb0f2e0
/coto_scraper/coto_scraper/pipelines.py
f9bf854d3bed2f3dd336c58a64d948ab3af3b991
[]
no_license
NicolasRampoldi/CotoScraper
11456ea5f76ae33ed498d5c83797c059b66edf84
d24644ee4e579b99249b3e1e621d9a60f81892fa
refs/heads/main
2023-01-24T14:50:50.785092
2020-11-25T15:18:37
2020-11-25T15:18:37
302,969,745
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
# Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter class CotoScraperPipeline: def process_i...
[ "nrampoldi@itba.edu.ar" ]
nrampoldi@itba.edu.ar
ee3f603b2df9562d205d542defec02255a0c28e7
ed4a31ba39ba1b019fa2b08027c642bda30f0262
/torch/models/alexnet.py
a807d520b095e4e0937e5a507e723ae8dcc2a0b1
[]
no_license
woshildh/exercise
a48ad854efcc768f61fdf878edaf4791c343d892
eba6c236012852a109caaacf13111cb1ccae47fe
refs/heads/master
2021-12-14T23:13:44.571544
2021-12-02T09:35:32
2021-12-02T09:35:32
135,416,019
0
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
''' 自己仿照torchvision定义的 ''' import torch.nn as nn import torch class AlexNet(nn.Module): def __init__(self,num_class=1000): super(AlexNet,self).__init__() self.features=nn.Sequential( nn.Conv2d(3,64,kernel_size=11,stride=4,padding=2), nn.ReLU(inplace=True), nn.MaxPool2d(kernel_size=3,stride=2)...
[ "noreply@github.com" ]
noreply@github.com
3e3cabdf7ec56a1ccce1aa51010fe73549c53cca
90f9d8f098797744ac0f4824b467d68982f8e399
/runPuzzle.py
f7c872c02e04fff6779deaa7d7a92a0ed7ee6501
[]
no_license
lcwadle/AI-FreeFlow
fbe2c9fb13e18c64033cfb6f3eced78c60b506af
6983da7138b361f2bbf3af47c866ded42fbc5fa4
refs/heads/master
2021-09-02T16:25:13.877170
2018-01-03T16:08:36
2018-01-03T16:08:36
116,153,967
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
import FlowFree from timeit import default_timer as timer print("14x14 Puzzle - Smart Backtracking Algorithm") puzzle = FlowFree.Puzzle('inputs/14x14.txt') start = timer() puzzle.smarterBtAlgorithm() end = timer() print("Assignments: " + str(puzzle.numAssignments)) print("Run Time: " + str(end - start)) print()
[ "lcwadle@gmail.com" ]
lcwadle@gmail.com
9c2b86c391f8043da900ee63514b2319e1147118
2aae6f4be5dd8fe64c0a5eac23881526dbfd9858
/VQ-APC/phoneseg_algorithms.py
13b1cf96eb4855d25de25077ac064c9898cd9e8a
[]
no_license
janinerugayan/masterthesis
e4a4b36e43276cda2aeca48c769fc6f647f7c862
854a2da23f192d2a09875d34c077a6bdb6864756
refs/heads/master
2023-05-29T13:31:40.183984
2021-06-08T15:28:44
2021-06-08T15:28:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,373
py
""" Phone segmentation algorithms. Author: Herman Kamper Contact: kamperh@gmail.com Date: 2020 """ from scipy.spatial import distance from sklearn.cluster import AgglomerativeClustering import numpy as np import pandas as pd from IPython import embed #----------------------------------------------------------------...
[ "janinelr@stud.ntnu.no" ]
janinelr@stud.ntnu.no
83e4da6c16eff153e02512b8484816e47c4532fe
1ac08ce9cc9b64cda1ac28781535fe598f7fc20c
/sampleapp/sampleapp/wsgi.py
009226a7b2b062e9cd2849d02e46bee03a1fe38c
[]
no_license
znc-sistemas/django-menu
d288cfd96ad3724b99b80fa70a7040a114844a50
e6b29f9b98b4ffa048b12bd65094719b71bf045c
refs/heads/master
2021-01-01T17:11:04.836255
2012-09-07T12:28:31
2012-09-07T12:28:31
4,575,505
1
0
null
null
null
null
UTF-8
Python
false
false
1,140
py
""" WSGI config for sampleapp project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`...
[ "carlos.leite@znc.com.br" ]
carlos.leite@znc.com.br
aff44f56c6596b9e1bf4fa7b6224db433bb854fc
76f610d61b5b87ccb7566098993fac36dc93ca9a
/.q-build/engine.py
b2554cdb9d793feef20e3518a1d1c5b29a09eb41
[]
no_license
qwality/bash-commands
6f7c534b52921e921b34215d74e684a1ae6ec6e9
d3a50840333a7625ceed0923b3719289ec6be46e
refs/heads/master
2020-04-09T03:36:05.232799
2018-12-02T00:09:22
2018-12-02T00:09:22
159,988,855
0
0
null
null
null
null
UTF-8
Python
false
false
1,713
py
import sys import json import subprocess def load_json(path): with open(path, "r") as j: return json.load(j) def save_json(data, path): with open(path, "w") as j: json.dump(data, j) def option_by_flag(flag, options): for option in options: if option["flag"] == '-' + flag: return option return None ...
[ "low.qwality@gmail.com" ]
low.qwality@gmail.com
39b0b8871760025367729b444200318dfce84cb2
d2ad5ad3d9a9a08cff51f8df37b2494e3cde7d9f
/calculate_regional_rates.py
aa64757a16b4133a7dc400a964b6abd0903a248f
[]
no_license
mr-fuller/Title6Maps
923badb17600904123425901795a33e26e587bf0
d13c876efa7dc6baa6fdd0f5f2f013b923785c33
refs/heads/master
2021-11-22T14:00:28.759619
2021-10-25T14:32:54
2021-10-25T14:32:54
88,272,295
0
0
null
2018-10-26T17:57:27
2017-04-14T14:01:59
Python
UTF-8
Python
false
false
5,703
py
# calculate regional rates for each variable, using the more reliable county/subdivision level estimates import pandas as pd from census import Census from variables import api_key, fips,variable_list # input a list of counties, Lucas, Monroe, and Wood by default def calculate_regional_rates(counties, year_int):...
[ "mrfuller460@gmail.com" ]
mrfuller460@gmail.com
1bec140c5a8f93719adc3fdbfd165cc474a5df61
c81a612639794f2fd2040ec7a01bcc521682eebe
/udata_explorer/base.py
bef31ac7424ac11b65e71fc88656aa08f06f9237
[ "Apache-2.0" ]
permissive
opendatateam/udata-explorer
b255f71a9b6d50c269aa4d435c6449faea3d31d4
4ec1a0fced35e602be2fc86f8cfa8f46f4e5d865
refs/heads/master
2021-06-27T22:15:54.474060
2018-03-23T08:47:37
2018-03-23T08:47:37
95,101,862
3
1
Apache-2.0
2018-03-23T08:47:38
2017-06-22T10:02:45
Jupyter Notebook
UTF-8
Python
false
false
169
py
"""Base module""" class HydratableObject(object): """A mixin to hold some dict data in `data` attribute""" def __init__(self, data): self.data = data
[ "alexandre@bulte.net" ]
alexandre@bulte.net
efc48eddcb5b8c946872d49d05771599120bbb5a
f12024bf505b270177ad24e7acc9c9980f0ad1a8
/aidants_connect_web/admin/utils.py
040a428e7958e3b748e7b003ff609c6135c42e18
[ "MIT" ]
permissive
betagouv/Aidants_Connect
18be11e542d3071e516c32b357e9dbab927ecedb
228ff94f5f3696ed8384992d7a8c9a3adbe6eeda
refs/heads/main
2023-08-31T02:49:05.557288
2023-08-29T09:10:14
2023-08-29T09:10:14
180,139,859
22
15
MIT
2023-09-13T09:37:51
2019-04-08T12:02:11
Python
UTF-8
Python
false
false
446
py
class SpecificDeleteActionsMixin: def get_actions(self, request): actions = super().get_actions(request) try: del actions["delete_selected"] except KeyError: pass return actions def _specific_delete_action(self, request, queryset): for one_object ...
[ "j-mad@j-mad.com" ]
j-mad@j-mad.com
4b0a752bae8f9f5cae6ad41c915c9d0b6c94e09a
0be277f9e1dff68bf1a8f52bed1e088ca3fcfa70
/qa/rpc-tests/keypool.py
516576f40580f3758e0b0efe6f7d0f455ae5678c
[ "MIT" ]
permissive
Spurri/polis
740578b7aa69373808c2d787fbf3bf1c1e642298
5adec506f6808d4fe207ea6a9e5c837baa93404c
refs/heads/master
2020-03-17T22:50:22.806278
2018-05-19T01:47:52
2018-05-19T01:47:52
134,020,162
1
0
null
null
null
null
UTF-8
Python
false
false
2,591
py
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the wallet keypool, and interaction with wallet encryption/locking from test_framework.test_f...
[ "info@spurri.com" ]
info@spurri.com
835bbe88a87b24a71c2e755d310385e85058b07d
5edf3a4b21d1c1eebb7dbb2d6d49d8324e1e2090
/src/main.py
35143e1b7a8983842a406071ea127f22a9cb0261
[]
no_license
SamMaoYS/Region-Growing-Segmentation
b33337876ad1309c414785db8b93a000f9af87c1
b8ab945c347e7cf97cec8ea576d1340982d872d3
refs/heads/master
2022-11-10T16:59:31.478667
2020-06-29T04:50:19
2020-06-29T04:50:19
273,663,133
3
0
null
null
null
null
UTF-8
Python
false
false
498
py
import common from coslic import CoSLIC import cv2 def main(): images = common.image_load('../data/*.jpg') # for img in images: # slic = CoSLIC(img) # slic_viz = slic.slic() # edges = slic.canny_edge() # common.image_show(slic_viz, "slic") # common.image_show(edges, "ed...
[ "sammaoys@gmail.com" ]
sammaoys@gmail.com
382e98992d1cc6234908091b143c3a68d4033726
c63f06b68aa5436195fb635bbc4eb5cab0bff2c0
/scripts/utilities/hl-purge-links.py
3832182f88336dfef1a97b7ec3d0e56b96424f37
[]
no_license
MoDavid15/KA-CS-Project-Stats
dd7dc0e4d58e41e9910d49c618f35ba88381e1d0
1c71ffc3c647d332ad17b205766d7270d38debc4
refs/heads/master
2023-01-30T21:36:01.355662
2020-12-12T13:01:18
2020-12-12T13:01:18
309,403,161
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
import requests import subprocess as subp # # Get all filenames # hl_files = str(subp.check_output("ls ../../js-info/hl", shell=True))[2:-3].split("\\n") # Get all hl filenames for i in hl_files: print(requests.get("https://purge.jsdelivr.net/gh/ArrowheadCo/KA-CS-Project-Stats/js-info/hl/{}".format(i))) # Purge ne...
[ "malksmogendavid2004@gmail.com" ]
malksmogendavid2004@gmail.com
ea465f8d28df43e8e24972fb23374bf88a0927ac
384a2c8cc009bc476f247a9cff6cc52850add840
/search/tsearch01.py
74d522f1b3df87e41565099d6c1f355f3112fabd
[]
no_license
C4ball/stock_exchange_news
8ba838dda22523fd88f414eaa3603b2802f82c7e
c9aff6909bc6577f7b69e1a869488dd3a2d0e4a9
refs/heads/master
2023-03-08T16:31:00.564862
2019-07-26T13:32:02
2019-07-26T13:32:02
339,863,631
0
0
null
null
null
null
UTF-8
Python
false
false
7,569
py
import tweepy from tweepy import OAuthHandler import json import datetime as dt import time import os import sys ''' In order to use this script you should register a data-mining application with Twitter. Good instructions for doing so can be found here: http://marcobonzanini.com/2015/03/02/mining-twitter-data-with-...
[ "rodrigodds@outlook.com" ]
rodrigodds@outlook.com
a0f02c8b5eca0f403314b27740f2a1628262ca63
0b6274d219a70449848d9866402d6948843586df
/newscrawler/spiders/bbc.py
152f12ff2b84ccdc6312d9907958df15baf7af9e
[]
no_license
linucis/maudlin
e3ad7320760b22fac4534d9f21296a93529b61c4
d133d27dd0667cdef95e75ae44da96a9caec3e08
refs/heads/main
2023-07-03T23:54:16.477673
2021-08-11T18:33:56
2021-08-11T18:33:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,386
py
from newscrawler.models import Article import re import scrapy from bs4 import BeautifulSoup as BS from newscrawler.mixins import BoilerPlateParser from dateutil import parser class BbcSpider(scrapy.Spider, BoilerPlateParser): name = 'bbc' allowed_domains = ['bbc.com', 'bbc.co.uk'] start_urls = ['https://...
[ "m@stdwtr.io" ]
m@stdwtr.io
d0290619b507c2a3d5f2fe1c27f7c2e6b0051387
4cf0f3b9dbdc654eb788d52d5d8e5677886b5c9b
/app/main/views.py
0bed4d50a3988811fb42f5e1ec4781f113a6d72b
[]
no_license
xuyuji9000/chengs.site
f971350faa9bf3accf49603b668bbcbe055a543f
9f2d85a55e738a9eac04d234fdd529140e52e195
refs/heads/master
2021-07-08T10:29:33.035765
2017-05-08T09:31:17
2017-05-08T09:31:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,863
py
# coding: utf-8 from __future__ import absolute_import from flask import render_template, redirect, url_for, abort, flash, request,\ current_app, make_response from flask_login import login_required, current_user from . import main from .forms import EditProfileForm, EditProfileAdminForm, PostForm,\ CommentFor...
[ "infixz@outlook.com" ]
infixz@outlook.com
a989c0e0a82a75e67dd7fe6450086b5372305d12
6557ed1723b6f9ea8699ac8a5af1644f216f5c5a
/todo_app/models.py
5c63b59e15433e83fa5106760b95a27a0ce6976d
[]
no_license
AnthonyRedGrave/7TaskITransitions
eb1da7df1531f055053e4d3c23d94f68fd2f724e
143309fd5f682e543b8b28ee6f774c70412a9b15
refs/heads/master
2023-04-09T14:10:40.156187
2021-04-24T17:58:16
2021-04-24T17:58:16
359,129,750
0
0
null
null
null
null
UTF-8
Python
false
false
1,220
py
from django.db import models class ToDo(models.Model): COLOR_CHOICES = [ ('#008B8B', 'Голубой'), ('#FF1493', 'Розовый'), ('#ff9218', 'Желтый'), ('default', '#304B5F') ] name = models.CharField('Название заметки', max_length=150) text = models.TextField('Тек...
[ "noreply@github.com" ]
noreply@github.com
10d81e12691ea7edbbac63eee7f183d1e0842d8a
fc746b644a2f4d07508e84b0d162c0f2ef07076d
/build/orocos_kinematics_dynamics/catkin_generated/generate_cached_setup.py
174396b513f66f2b974b95d28716ad2d3160a197
[]
no_license
andreatitti97/thesis_ws
d372146246b8c9b74d25e1310e6e79f9e0270cc4
c59d380abe7be47ea2d7812e416dee7298c20db8
refs/heads/main
2023-03-16T12:26:17.676403
2021-03-15T13:22:59
2021-03-15T13:22:59
340,458,689
1
0
null
null
null
null
UTF-8
Python
false
false
1,352
py
# -*- coding: utf-8 -*- from __future__ import print_function import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys.path.insert(0, ...
[ "andrea.tiranti97@gmail.com" ]
andrea.tiranti97@gmail.com
60fb4c4eb6e60fca24c3bb874dd487c384022e84
e811662c890217c77b60aa2e1295dd0f5b2d4591
/src/problem_145.py
da0952c5573f00aae6e48903d71a6426d47dd221
[]
no_license
rewonderful/MLC
95357f892f8cf76453178875bac99316c7583f84
7012572eb192c29327ede821c271ca082316ff2b
refs/heads/master
2022-05-08T05:24:06.929245
2019-09-24T10:35:22
2019-09-24T10:35:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,256
py
#!/usr/bin/env python # _*_ coding:utf-8 _*_ from TreeNode import TreeNode def postorderTraversal(self, root): """ 记住得了= = 就访问当前root,然后左子树入栈,右子树入栈,最后逆序一下就好了,return output[::-1] 相当于是这么个思路: 目标:左右根 那么我就先求出来根右左,先根遍历是好访问的,根右左的话,因为是栈,所以先访问根,然后左孩子节点入栈, 再右孩子节点入栈,这样出栈的顺序就是跟右左了,其实可以联想一下,其实...
[ "457261336@qq.com" ]
457261336@qq.com
4a69e480891dda49ef8586ab48e9e957f44d391d
327981aeef801fec08305d70270deab6f08bc122
/19.网络编程/TCP编程/2.客户端与服务器端的数据交互/client.py
659f33d99bf8eb92f58accb100300281589e8207
[]
no_license
AWangHe/Python-basis
2872db82187b169226271c509778c0798b151f50
2e3e9eb6da268f765c7ba04f1aefc644d50c0a29
refs/heads/master
2020-03-20T12:15:44.491323
2018-06-15T08:24:19
2018-06-15T08:24:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
# -*- coding: utf-8 -*- import socket client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client.connect(('192.168.43.240', 8083)) count = 0 while True: count += 1 data = input("请输入给服务器发送的数据:") client.send(data.encode("utf-8")) info = client.recv(1024) print("服务器说:", info.decode("utf-8")) ...
[ "huanji2209747841@foxmail.com" ]
huanji2209747841@foxmail.com
8828318cfdbed598089645bb7b429e779d881384
dfded2f33b78a159410969b23953a0fbacc4fe3b
/Lab9/Cnf.py
03f7022059c1565ec1575814c44f3f3f7bd0d8f7
[]
no_license
Sowmya2000/AI
57b5e86833a03395036531b815a476a72960c70d
fb7aaada8e77a7fbea5211485bc96a06bf5797ae
refs/heads/main
2023-02-06T03:24:11.582071
2021-01-01T10:30:50
2021-01-01T10:30:50
304,558,178
0
0
null
null
null
null
UTF-8
Python
false
false
9,614
py
import re def remove_brackets(source, id): reg = '\(([^\(]*?)\)' m = re.search(reg, source) if m is None: return None, None new_source = re.sub(reg, str(id), source, count=1) return new_source, m.group(1) class logic_base: def __init__(self, input): self.my_stack = [] ...
[ "noreply@github.com" ]
noreply@github.com
95282fad8921847fbce1b8d8cf3e6b80655c0234
d2f71636c17dc558e066d150fe496343b9055799
/eventi/receipts/urls.py
adc4aac61ed9506ad430a00c7e224d076c9b8818
[ "MIT" ]
permissive
klebercode/lionsclub
9d8d11ad6083d25f6d8d92bfbae9a1bbfa6d2106
60db85d44214561d20f85673e8f6c047fab07ee9
refs/heads/master
2020-06-11T19:45:39.974945
2015-04-05T01:11:57
2015-04-05T01:11:57
33,409,707
1
0
null
null
null
null
UTF-8
Python
false
false
206
py
# coding: utf-8 from django.conf.urls import patterns, url urlpatterns = patterns( 'eventi.receipts.views', url(r'^$', 'receipt', name='receipt'), url(r'^(\d+)/$', 'detail', name='detail'), )
[ "kleberr@msn.com" ]
kleberr@msn.com
7806304f920b2e89d874510fbb36b9f4ee358bc7
c589ffd51fea8491034f87f6151a161c25c11d28
/mysite/blog/models.py
a2364200eb6d6840b91d546b0a80b06e22b124e5
[]
no_license
AndreLovera/my-first-blog
6dd3b03b2efb061b2b396e02b05720ceb5ede0bb
1f4494e7d109df679a725bf0348289233652599c
refs/heads/master
2020-03-10T23:13:15.298345
2018-05-09T23:18:00
2018-05-09T23:18:00
129,279,489
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
from django.db import models from django.utils import timezone class Post(models.Model): author = models.ForeignKey('auth.User', on_delete=models.CASCADE) title = models.CharField(max_length=200) text = models.TextField() created_date = models.DateTimeField( default = timezone.now) published_date = models.DateT...
[ "andre5228231@gmail.com" ]
andre5228231@gmail.com
55a70f3aabdb350752f445d007dbc27aae042a96
01bbd1c305e68173f7e2e0c72b84efd17bc7ace7
/Pandas/pandas_rank.py
75e2df4f6450ccb8da7088eecf94bd75047a0280
[]
no_license
bon3409/financial
beb8806522d2d9574e36c8085038e40a348a5de7
f2a94753fe5b5def3a030645854ecc2375dcd15a
refs/heads/master
2023-04-16T04:56:20.253427
2021-04-28T13:36:39
2021-04-28T13:36:39
193,250,831
0
0
null
null
null
null
UTF-8
Python
false
false
666
py
import random import pandas as pd import numpy as np from datetime import datetime import MySQLdb """ ---- DataFrame 排名 ---- 參考書本 P186 ---- rank(axis = 0, method='擇一方法') ---- method : avarage (平均值) / min (最小值) / max (最大值) / first (按照數據值相同的元素出現的順序賦予 rank 值) / dense (取最小值,相同元素者構成一組) """ db = MySQLdb.connect(host='loca...
[ "bonlee@stratevision.com" ]
bonlee@stratevision.com
b5a063b7dc0cdd8eef738922453b8ba81cc5c373
3490a86b85b16f38dfd7f3dbee0158ffc19acda0
/Task2/kmeans.py
16e34b1a003bd4c915139ef3469ea647314e6a34
[]
no_license
ernestkck/computer-vision-lab
8407f3296aff9b63b58f4a380b0360fb43ea2c6b
7e3a3705d1dbe3a3323b0e698b63eb783c5e1ead
refs/heads/main
2023-07-04T04:50:37.238217
2021-08-10T10:11:33
2021-08-10T10:11:33
394,269,328
0
0
null
null
null
null
UTF-8
Python
false
false
2,712
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt def generate_data(): """ Generates data points with 4 Gaussian distributions Output: X : 400 by 2 array of floats """ X = np.zeros((400, 2)) mean = np.array([0.5, 0.5]) cov = np.identity(2) cov *= 1/30 X[:100] =...
[ "ernestkck@hotmail.com" ]
ernestkck@hotmail.com
38db113d21d6f887f77911efb86eb3fcbe3d5e52
6518b33451176457004fef6a14ebbab1f360b858
/app/scripts/communication/RequestHandler.py
d6c7dbb3921fc408e359ea0db54fe9704fc4dd0b
[]
no_license
anasraza/therapy-bot
2ea17b263649f0bae604c82cf94dca1894ca2cb1
6cec4aa1500843271f42c66a5084684d125928cf
refs/heads/master
2022-03-31T18:34:22.206889
2020-02-07T04:26:58
2020-02-07T04:26:58
235,017,920
0
0
null
null
null
null
UTF-8
Python
false
false
5,416
py
import json import os.path from .NaoQiWrapper import NaoQiWrapper class RequestHandler: """ Class to handle the messages Web Socket receives and treats them as requests This class assumes every message received on web socket is valid JSON; either a "request" or a "command" (kind of like my own versio...
[ "mraz5491@uni.sydney.edu.au" ]
mraz5491@uni.sydney.edu.au
e6fad7f463eff5d99f3db1845dffcc5deb54c895
f971296ebf5f90fa0afb7d6bab3d3c53bc19a8d0
/tests.py
5a9cdf8b68f53c278ef2ad1cc39865d9c8f25d41
[]
no_license
Harkishen-Singh/ss
e1595e21e2ead28b11955fd15f717238633d3f06
3ff1549cbb172a6b13978a08296a1301a86fe1d6
refs/heads/master
2020-03-18T15:22:11.246444
2019-03-27T18:47:37
2019-03-27T18:47:37
134,903,367
0
0
null
null
null
null
UTF-8
Python
false
false
582
py
import datetime n ='rec__' +str(datetime.datetime.now()) print(n[:10]) a = n.replace('-','_') print(a) from pymongo import MongoClient url = 'mongodb+srv://harkishen:Bbsr131@cluster0-zmd3i.mongodb.net/test?retryWrites=true' #url = 'mongodb://127.0.0.1:27017' dbn = 'test' client = MongoClient(url) db = client[dbn] coll ...
[ "harkishensingh@hotmail.com" ]
harkishensingh@hotmail.com
6013e13c384517ac329813ede411feffc7cddabd
3d9f3974e00ff84a210c27e4427be5a4091793db
/IO/_04_BytesIO.py
3cab3838aab1ef46272458d6407b7e76958edbb6
[]
no_license
xuefengZhan/python
6dda42e62741c8b06e3344318a41a0482ba323ec
665687088ad4d226e51030a66db702d8f2833543
refs/heads/master
2023-05-29T22:23:30.421753
2021-06-15T10:00:57
2021-06-15T10:00:57
360,377,118
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
#todo 操作二进制流 from io import BytesIO f=BytesIO() f.write('中文'.encode('utf-8')) print(f.getvalue()) #todo 说明: str.encode() 是将字符串按照编码格式编码成二进制
[ "yatolove@163.com" ]
yatolove@163.com
e7f01170482cd4f4aa4d00ba3789da98d1b77dd2
7cd6c1fbe5e9bdda8cdcc0456623ceee579e6a52
/mysite/polls/admin.py
e27fbefdb3cbbbcf006866be2a91302ea65b2669
[]
no_license
Silentbob251/Projects
725e16d97964fe314ac49b02ff605b0ff309bfd4
5269639d16d60f5c2df3077170d45138f609b11c
refs/heads/master
2020-04-06T07:11:00.643032
2016-09-13T00:50:06
2016-09-13T00:50:06
65,775,965
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
from django.contrib import admin from .models import Choice, Question class ChoiceInline(admin.TabularInline): model = Choice extra = 3 class QuestionAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['question_text']}), ('Date information', {'fields': ['pub_date'], '...
[ "kboyle416@gmail.com" ]
kboyle416@gmail.com
05804af1aea4cd38676b0b1f786d1b77a3bb479b
448a94888aa9198a56ab343062a3df74a88801a0
/python/pstudy_63.py
4678e6958cb119120ce4b15d86783a12e5cdb15e
[]
no_license
atyu30/Boringlife
0dc06c0fc3da8838b424cf0022df415a18fd3e59
d3387defc36b5e140562215534df5eddbe5fc702
refs/heads/master
2016-08-12T03:00:26.948157
2015-12-24T15:36:16
2015-12-24T15:36:16
48,547,123
0
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
#!/usr/bin/env python # encoding: utf-8 ''' 【程序65】 题目:一个最优美的图案。    1.程序分析: 2.程序源代码: ''' import math class PTS: def __init__(self): self.x = 0 self.y = 0 points = [] def LineToDemo(): from Tkinter import * screenx = 400 screeny = 400 canvas = Canvas(width = screenx,height = screeny,...
[ "ipostfix@gmail.com" ]
ipostfix@gmail.com
9031501028ac5ee55580fd51d12397f449ba7a8e
27f965ae395d79a8ad57970b8e5d3c469a848057
/YiSeungJun_1228.py
7c554468caf48bd935bae8e41139dfe2f53d2b5a
[]
no_license
BruceYi119/python
e37f5805a71d5780b11d1be26cc33973f98ddb1d
ba991de00bd56c356b7242d1af2dbc6d46d73a9e
refs/heads/master
2023-03-20T19:43:34.130357
2021-03-19T04:50:09
2021-03-19T04:50:09
315,487,290
0
0
null
null
null
null
UTF-8
Python
false
false
1,069
py
import os import pandas as pd import matplotlib.pyplot as plt from matplotlib import font_manager, rc fontname = font_manager.FontProperties(fname='./font/malgun.ttf').get_name() rc('font',family=fontname) tmp = [] for year in range(1880,2011): filename = 'yob{}.txt'.format(year) data = pd.read_csv(os.path.j...
[ "pirates119@gmail.com" ]
pirates119@gmail.com
bd635375c320021a3d0767898c889244734fef02
eea03c7c560ba6103a0ce737575af0126798480e
/Algorithm/Code09-01.py
90b6dcf7c6c2550029bfca82bd223eb3a7c90408
[]
no_license
jeonsun3629/TIL
e69162c4cfa1c8994972df0d35d18e72944daba8
4a4c016374a29e6674644fb6a83c053240946790
refs/heads/master
2023-06-16T12:19:08.530122
2021-07-14T09:32:14
2021-07-14T09:32:14
328,339,024
0
0
null
null
null
null
UTF-8
Python
false
false
831
py
## 함수 선언 부분 ## class Graph() : def __init__(self, size): self.SIZE = size self.graph = [[0 for _ in range(size)] for _ in range(size)] ## 전역 변수 선언 부분 ## G1, G3 = None, None ## 메인 코드 부분 ## G1 = Graph(4) G1.graph[0][1] = 1; G1.graph[0][2] = 1; G1.graph[0][3] = 1 G1.graph[1][0] = 1; G1.graph[1][2] = ...
[ "jeonsun3629@gmail.com" ]
jeonsun3629@gmail.com
777ff814dd92fd8c87e5d20a934a54207ca894cf
d3b7a7a922eb9999f22c99c0cc3908d7289ca27e
/tests/multi_processing/multi_process_queue.py
907844ddda04cef496883f0bd2b010512fd7341b
[ "Apache-2.0" ]
permissive
g3l0o/plaso
b668203c2c7cf8799a1c12824ee1bdc8befd3980
ae29d853a6bcdd1530ce9320a3af7b3f122941ac
refs/heads/master
2020-12-25T20:31:08.928709
2016-07-22T20:00:33
2016-07-22T20:00:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests the multi-processing queue.""" import unittest from plaso.multi_processing import multi_process_queue from tests import test_lib as shared_test_lib from tests.engine import test_lib as engine_test_lib class MultiProcessingQueueTest(shared_test_lib.BaseTestCase): ...
[ "onager@deerpie.com" ]
onager@deerpie.com
8f6c93421feb90167cded3e1703a03a155bdfa14
08eb06a7e26e8fafe46c2cb5bbeca0e2d666bd97
/tools/eggnog_mapper/data_manager_eggnog_mapper_abspath/data_manager/data_manager_eggnog.py
3b99dd6cff6a4763cfe62dc3c15304f436c16a91
[ "MIT" ]
permissive
bernt-matthias/tools-galaxyp
9e558e0c4126f629ccba25160f14f2cc7a45ebc6
6128c982eda8bb6c7a9fd01bd9a5b8d7fc3f810d
refs/heads/master
2023-08-17T03:10:04.843458
2023-08-07T10:49:17
2023-08-07T10:49:17
104,768,403
0
0
MIT
2022-11-25T21:24:32
2017-09-25T15:31:52
JavaScript
UTF-8
Python
false
false
41
py
../../data_manager/data_manager_eggnog.py
[ "noreply@github.com" ]
noreply@github.com
d0dbca3889c92c86a1cfaea018473413421d4e50
f9c88337ce6f66db9556f2f7151fddcbd4209500
/vmsis/vcommerce/pedido/movcaixa/models.py
11f4b35746973ab3b2b4f7b4adb608a1c1df3260
[]
no_license
olosplus/vcommerce
1d055b73b52935caf49216c0ebba177638656c9a
c5311bbe537ba38c4261dc3b2044c1e9c3d04abb
refs/heads/master
2021-01-19T17:39:33.941987
2016-03-25T23:27:46
2016-03-25T23:27:46
33,091,481
1
0
null
null
null
null
UTF-8
Python
false
false
1,011
py
from django.db import models from pedido.frentecaixa.models import Pedido from pedido.cadastro_pedido.caixa.models import Caixa from vlib.control.models import ControleSincronizacao tipo_movimento = (('E', 'Entrada'), ('V', 'Venda'), ('S', 'Sangria'), ('R', 'Retirada')) forma_pagamento = (('DI', 'Dinheiro'), ('DE', 'D...
[ "ivan@vmsis.com.br" ]
ivan@vmsis.com.br
bd309d0b656942f65a5f6031b1475317b8f6cf1f
79661312d54643ce9dcfe3474058f514b01bfbe6
/ScikitLearn/ElasticNet_1f.py
9591fda25cf74ca65630946558d5e9573e4ea026
[]
no_license
davis-9fv/Project
5c4c8ac03f5bf9db28704e63de9b004f56a52f10
f2bd22b3ac440b91d1d1defc8da9e2ba2e67265e
refs/heads/master
2020-03-20T22:24:07.244521
2019-02-28T16:58:04
2019-02-28T16:58:04
137,796,517
0
0
null
null
null
null
UTF-8
Python
false
false
965
py
# http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.ElasticNet.html#sklearn.linear_model.ElasticNet from sklearn import linear_model from sklearn.linear_model import ElasticNet import numpy as np from pandas import read_csv from sklearn.metrics import mean_squared_error from sklearn.model_selection...
[ "francisco.vinueza@alterbios.com" ]
francisco.vinueza@alterbios.com
c13a4eb698ee3c948ba65c49e43a067729524222
757f7f0a230c41d5ad5de947682da7da95a727b5
/python/52.py
23bc3a51dede454d1dfe2f07df84dcff1e6a9c2c
[]
no_license
Guilherme-Moreira/gui-moreira-euler
1003512cd667c5ac1ee8c5f4a5a3cdfea4e47dd5
5c51fd99a29180ffce077aec1d4a9104512eecec
refs/heads/master
2020-04-27T19:35:19.316547
2019-03-18T00:28:53
2019-03-18T00:28:53
174,625,014
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
i = 1 while True: for j in range(2, 7): if sorted(str(i)) != sorted(str(i*j)): break else: print(i) # 142857 break i += 1
[ "guimoreiraheroes@gmail.com" ]
guimoreiraheroes@gmail.com
7edeb8c7beb7fbe1451d766618e132881c83ba72
fc3c97c2ec7a01bb9883bec6a47f9cbf59695382
/Python高级语法/多线程/多线程07.py
9ced7b4b6f382d390c0db3582fdd936ae2180f19
[]
no_license
guowenliang/StudyData
af2bcfb789fea09676cc3d59e96270f3b573fc7d
d57df412c9aa8b0db1c6fa161bdcf98faa366584
refs/heads/master
2020-08-30T06:33:59.516624
2020-02-06T13:52:42
2020-02-06T13:52:42
218,291,461
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
import time import threading def fun(): print("start fun") time.sleep(2) print("end fun") print("main thread") t1 = threading.Thread(target=fun,args=()) t1.setDaemon(True) t1.start() time.sleep(1) print("main thread end")
[ "736498007@qq.com" ]
736498007@qq.com
eb6ce26a0027fcde1d6a0b3ece6d970e17dd7473
1d4d698be462c414cb3838cd4c5bd10798964e7d
/bship.py
64054f623cc6b04a759b31dd45c1eed00fd0e953
[]
no_license
gitKrystan/LearnPython
97241b79a612c38539b21c9c5a02ac867a49f290
3d1960bc1c9f81620ce9abe281bf585a480d6366
refs/heads/master
2021-01-19T14:10:36.495565
2015-09-06T21:28:07
2015-09-06T21:28:07
42,017,247
0
0
null
null
null
null
UTF-8
Python
false
false
1,296
py
from random import randint #Create board board = [] for x in range(5): board.append(["O"] * 5) def print_board(board): for row in board: print " ".join(row) #Place ship def random_row(board): return randint(0, len(board) - 1) def random_col(board): return randint(0, len(board[0]) - 1) ship...
[ "kmenne@gmail.com" ]
kmenne@gmail.com
1d4091379e42c93e8139d3e1ed9db898a76a6efd
360784acec7608c0a12fed5f2b050ef629455cd4
/Monte Carlo Tree Search/kalah.py
0c048e4da38388b1edd9d61ca853d1f5b090c675
[]
no_license
jasky1640/AI-Related
cc952dadb46d190709accf3fd797ec241e8c8f35
b05163b4497b72f2e40d39208b9b5171dac8885e
refs/heads/master
2023-03-05T05:18:39.903942
2021-02-07T21:37:52
2021-02-07T21:37:52
207,665,357
0
0
null
null
null
null
UTF-8
Python
false
false
11,560
py
class Kalah: def __init__(self, p): ''' Creates a Kalah board with the given number of houses per side (plus two store pits) each containing the given. p -- a nonnegative integer ''' if p < 0: raise ValueError('Number of pits must be positive: %d' % p) ...
[ "jxy530@case.edu" ]
jxy530@case.edu
03df517b29a5e8f563dcbfa3fa5695bd4286ea5f
f0da1df09e7418ddb78a6592022611a8ddb7f221
/setup.py
27c773c80b08d4a6fd3269689ac958ee9d9080c7
[ "MIT" ]
permissive
geekblogs/word-embedding
27e425b693e72a55404a40f61414a7a995d3b410
9f8d10b4ea7bb9f4ad3bb04b02768735484aef2e
refs/heads/master
2022-02-18T04:34:42.561152
2019-09-10T16:09:42
2019-09-10T16:09:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,330
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages from os import path as os_path # Package meta-data. NAME = 'pyembed' DESCRIPTION = 'Embed your own words (with word2vec).' URL = 'https://github.com/acapitanelli/word-embedding' AUTHOR = 'Andrea Capitanelli' EMAIL = 'andrea@capi...
[ "andrea.capitanelli@gmail.com" ]
andrea.capitanelli@gmail.com
3e648d3d47eadcd0ad84a676215aaa3f1c6999f3
729af3c9689245625d1a398b2892c7cdb137914a
/chapter06/1. whai_is _var.py
2ebbabab8ebea469ddc9191d5139f6359cd1981d
[]
no_license
xiaoweigege/Python_senior
7e2b06a4b697256f9d4a856c558c36f59313e5e9
c13e6a6c33e765106934761f05f37a777cf9230f
refs/heads/master
2020-04-12T20:20:15.281651
2019-07-30T16:48:09
2019-07-30T16:48:09
162,733,366
0
1
null
null
null
null
UTF-8
Python
false
false
328
py
# Python 和 Java 中的变量本质不一样, Python的变量实质上是一个指针 int str # a 指向 1 这个内存地址 a = 1 print(id(a)) # a 指向 abc 的内存地址 a = 'abc' print(id(a)) # b 指向 [1, 2, 3] b = [1, 2, 3] # 将b 赋值给 c c 同时也指向 [1, 2, 3] c = b c.append(4) print(id(b)) print(id(c))
[ "240942649@qq.com" ]
240942649@qq.com
b183fd247237298655d932c09b777a7f4625b802
e6208febf7e34d4108422c6da54453373733a421
/sdks/python/client/argo_workflows/model/io_argoproj_events_v1alpha1_open_whisk_trigger.py
b73ce18a83ef1645a3a1956f8785cb123ff59e8a
[ "Apache-2.0" ]
permissive
wreed4/argo
05889e5bb7738d534660c58a7ec71c454e6ac9bb
41f94310b0f7fee1ccd533849bb3af7f1ad4f672
refs/heads/master
2023-01-22T05:32:12.254485
2022-01-27T21:24:45
2022-01-27T22:02:22
233,143,964
0
0
Apache-2.0
2023-01-17T19:04:43
2020-01-10T22:56:25
Go
UTF-8
Python
false
false
13,500
py
""" Argo Server API You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501 The version of the OpenAPI document: VERSION Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from ...
[ "noreply@github.com" ]
noreply@github.com
81fd62a1000b3b61b0e0489391834a9a11cd2220
0f350ce4ab8c3e7ce6155011d1e745f414be381f
/ServerlessAzureMgmt/ResourceCleanupHttpFunc/__init__.py
a48fb41b717eb22372350a1c89f830fc787d5843
[]
no_license
rekha-balan/ServerlessAzureMgmt
97a43c7ddd477a33587d18b2a8caecfb90930066
86ec00be1ac8301d68c30445af0f4b7e6cba271a
refs/heads/master
2020-04-07T14:43:03.478008
2018-09-27T04:55:30
2018-09-27T04:55:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,264
py
import logging import os import azure.functions as func import datetime from dateutil.parser import parse from azure.mgmt.compute import ComputeManagementClient from azure.mgmt.resource import ResourceManagementClient import azure.mgmt.resource.resources.models from azure.common.credentials import ServicePrincipalCre...
[ "zivr@microsoft.com" ]
zivr@microsoft.com
d7857e8040c986cb578fcb3f8736cbe77f1ee7cb
d8cbc94a4207337d709a64447acb9c8fe501c75a
/evaluation/code/utils/checkpoint.py
0ce4488ec35b22f34e1d615616e0b445ee73a941
[ "MIT" ]
permissive
sripathisridhar/acav100m
6f672384fa723a637d94accbbe11a9a962f5f87f
13b438b6ce46d09ba6f79aebb84ad31dfa3a8e6f
refs/heads/master
2023-09-06T01:05:21.188822
2021-11-18T08:08:08
2021-11-18T08:08:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,887
py
import os import shutil from collections import OrderedDict import torch import utils.logging as logging logger = logging.get_logger(__name__) def load_checkpoint(model, state_dict, data_parallel=False): """ Load the trained weights from the checkpoint. Args: model (model): model to load the we...
[ "sangho.lee@vision.snu.ac.kr" ]
sangho.lee@vision.snu.ac.kr
bd0f4186ec3803b6054587820d05344e869dbe1b
147acdd9dd20daafe14663cf1bc84eb26b548e47
/SpellingCorrection_TextBlob/AutoCorrect.py
6a16566cd7fc9c77e7761b10dff21835b49c8aa6
[]
no_license
vxhl/PythonSonicScripts
9a40e111c6a0cd3f08427c85f3f41ccbf7b80996
c02ede2178f75d4f2d89da0bdde9381be1622f06
refs/heads/main
2023-08-12T16:13:21.971401
2021-09-10T14:26:50
2021-09-10T14:26:50
379,649,071
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
from textblob import TextBlob words = ["Machne", "Learnin"] corrected_words = [] for i in words: corrected_words.append(TextBlob(i)) print("Wrong words :", words) print("Corrected Words are :") for i in corrected_words: print(i.correct(), end=" ")
[ "moharibishal@gmail.com" ]
moharibishal@gmail.com
8cb9fad16805ff1eef128d7408246c8350a45bdf
5b683c7f0cc23b1a2b8927755f5831148f4f7e1c
/Python_Study/DataStructureAndAlgorithm/剑指Offer/Solution21py
129b991defc62a3357595192e3b5ddc9ee1ac835
[]
no_license
Shmilyqjj/Shmily-py
970def5a53a77aa33b93404e18c57130f134772a
770fc26607ad3e05a4d7774a769bc742582c7b64
refs/heads/master
2023-09-02T04:43:39.192052
2023-08-31T03:28:39
2023-08-31T03:28:39
199,372,223
1
0
null
null
null
null
UTF-8
Python
false
false
306
#!/usr/bin/env python # encoding: utf-8 """ :Description:剑指Offer 21 :Author: 佳境Shmily :Create Time: 2020/4/29 11:59 :File: Solution21 :Site: shmily-qjj.top """ class Solution: def jumpFloor(self, number): # write code here pass if __name__ == '__main__': s = Solution()
[ "710552907@qq.com" ]
710552907@qq.com
9d9cc1011f39088c4a1ce9c103109bc6e958670d
7fa6619e1b9d8308e3ef0f439934c0df3e000d7f
/Greedy algorithms/sample_algorithm.py
d8816ad4b5a39e9287f6d40367d60587b4e34b6d
[]
no_license
Awinja-j/algorithms
29677c1ce45eb9b79def073617705f3e8ebb12ce
9c770ece952bb85bf4acffef0fc86f10e6979723
refs/heads/master
2022-12-26T12:19:12.949426
2020-09-03T23:45:56
2020-09-03T23:45:56
292,680,522
0
0
null
2020-10-08T22:20:04
2020-09-03T21:09:57
Python
UTF-8
Python
false
false
106
py
from flask import Blueprint, request, jsonify greedy = Blueprint('greedy', __name__,url_prefix='/greedy')
[ "ingari61@hotmail.com" ]
ingari61@hotmail.com
912e9f2d61160a62ba86afbe70596a88625ed8c9
5448b5561045d4359e8ba9502131ae0010b2a49f
/ruhacks_maps.py
97926c385bff09f8128e35c91df12eaabd4c6189
[]
no_license
Nabstar3/RUHacks2019
53f014e3a83cca4befdeda581e0b31863c61d4f6
da17feaf78238139137f0a29726f09d1acb74b9b
refs/heads/master
2023-01-07T18:54:07.071668
2019-12-28T00:24:14
2019-12-28T00:24:14
187,474,297
0
0
null
null
null
null
UTF-8
Python
false
false
2,210
py
import urllib.request, json #""" ## endpoint = 'https://maps.googleapis.com/maps/api/directions/json?' api_key = 'AIzaSyCQAs4T3bVLI2RRJQN3bwsj4ZkSiQHMQUs' ## origin = "Ryerson+University"#input('Where are you?: ').replace(' ','+') dest = "CN+Tower"#input('Where do you want to go?: ').replace(' ','+') mode = 'transit'#...
[ "nabeelrajabali@gmail.com" ]
nabeelrajabali@gmail.com
872970618a04f2ca7f58bc8040f04ba42271524b
d8fd7f56537d3c4ad4c99965a0a451c5442b704f
/endlesshandsome/wsgi.py
29a7d6b605fc1118dfa24a6ccc1d6d200ee9a31b
[]
no_license
EndlessHandsome/endless-handsome
8febdc5edbaed973922b7c31d903d19d4361dc32
59f1c3e52bd43c765177288ced755b081db0c746
refs/heads/master
2020-04-06T06:57:24.027547
2016-08-19T03:51:55
2016-08-19T03:51:55
65,613,177
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
""" WSGI config for endlesshandsome project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJA...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
38d04cc7afed1c10a20297dcc8cab9f85f307ec5
6d37c05de7d73e04f87c6ed796c77144cd8fa187
/Chapter5/Challenge6.py
736c77478dd0b59baddd2cfa380dc27017fe4e3b
[]
no_license
eizin6389/The-Self-Taught-Programmer
edc37ed6d95e8b24f590a6cbb9c75c0e5bd4e2e3
9c23612dfb11d5302cb26a359d02c88886cf986c
refs/heads/master
2022-12-08T06:47:37.541256
2020-08-30T07:16:01
2020-08-30T07:16:01
286,423,906
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
s= {"百",100,(0,1,2)} print(s) print(len(s)) s.add("二百") print(s) s.discard(100) print(s) s.pop() print(s) s.clear() print(s)
[ "hide@matsumotohideto-no-MacBook-Pro.local" ]
hide@matsumotohideto-no-MacBook-Pro.local
45cef53e4a83b12787a6643042c6262b0882b385
d272fc0381a435bd407455a7b9321592c40e88a0
/labb3ex/ex8.py
e2d939c8023db02a4d5e749a84d1bcf3ced7db40
[]
no_license
erikthomasson/Python
d121d04807cd585d7c45a4a8bc636d8937805de9
8aaa6a390a14609cf19e8eb1a30dc7fcff24bf24
refs/heads/master
2020-05-07T19:58:34.212774
2019-04-11T17:05:27
2019-04-11T17:05:27
180,839,111
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
tuplsort=() lista= [(1, 'Welcome'),(2,'to'),(4,'Python'),(3,'the'),(5, 'course')] index = 1 while index <= len(lista): for i in lista: if i[0] == index: tuplsort += (i[1],) index+=1 print(tuplsort)
[ "erik.thomasson98@hotmail.com" ]
erik.thomasson98@hotmail.com
c7b25385cb2dcffb1822eb57f0186e82139b4bdd
6ba48daa6de769d240027b86c8c931c32eb44100
/oauth/get_access_token.py
d45f69874091c6fe54c3d5aa9c1557c34548b31d
[ "MIT" ]
permissive
M31MOTH/SocialBot-1
d08ff32b5c4dcadb55b960512688a3d6fd0e4970
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
refs/heads/master
2020-07-21T13:38:03.272776
2018-06-08T04:51:18
2018-06-08T04:51:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,397
py
from requests_oauthlib import OAuth1Session import webbrowser REQUEST_TOKEN_URL = 'https://api.twitter.com/oauth/request_token' ACCESS_TOKEN_URL = 'https://api.twitter.com/oauth/access_token' AUTHORIZATION_URL = 'https://api.twitter.com/oauth/authorize' SIGNIN_URL = 'https://api.twitter.com/oauth/authenticate' def g...
[ "dev@lukfr.de" ]
dev@lukfr.de
cf0dc4dba36e3efd5cb5220020bd95956a8a321a
c6be8220e29951b5164252dabc54593ac8d3e516
/criticle/scheduling.py
ef393304d0eab3ed8b69fed82125d561097202cf
[]
no_license
rej696/2criticle2furious
e45e6a8c74711a01a593ed793933b691937b4009
6ea74c25da807630db4a824bbc1d090fef16fab4
refs/heads/main
2023-01-23T10:02:55.846361
2020-12-04T17:25:05
2020-12-04T17:25:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,393
py
import time import atexit import random import sqlite3 import os import click from flask import Flask, g from flask.cli import with_appcontext from apscheduler.schedulers.background import BackgroundScheduler from criticle.db import get_db BOT_NAME = 'scheduled_poster' BOT_PASSWORD = '12345' def run_post_bot(app):...
[ "55083730+rej696@users.noreply.github.com" ]
55083730+rej696@users.noreply.github.com
5cca192bc89969910723722bd07c7708f99d1b5c
b89b93666122e0404e204c178351fb9df201b55d
/model.py
8e78e216ecfea3ce314768602d8471a77f6952b9
[]
no_license
htZhang25/classification-master
670d5ddc1e518aa39ced603008f1d1074bb5de92
f3af5fc930ec0266a26004bf31e89d03671fd71b
refs/heads/master
2022-12-09T13:28:00.103008
2019-06-20T13:19:37
2019-06-20T13:19:37
192,743,119
1
0
null
2022-12-08T05:17:20
2019-06-19T13:57:57
Python
UTF-8
Python
false
false
1,292
py
import torch import torch.nn as nn import torch.nn.functional as F class Attention(nn.Module): def __init__(self, input_dim): super(Attention, self).__init__() self.weight = nn.Parameter(torch.Tensor(input_dim, input_dim).uniform_(-1., 1.), requires_grad = True) def forward(self, x): r...
[ "1192652971@qq.com" ]
1192652971@qq.com
038acbebb3f1917c1f4ef804b608c3d38056533b
d8c12aaebb28f593bf7bc47fd2b3188004e4e1a5
/ClusteringByFastSearch&FindOfDensityPeaks.py
53ee73f084563466d95a63755c7974277ef2c65d
[]
no_license
yz6028693/Clustering_Without_Pre-inputting_Categories
63928d6f3d0316a4f6a84b17be31c4733eb59fae
c2987a57bbc541f092b47bb4de513cee2298faf9
refs/heads/master
2022-03-02T20:15:43.163925
2019-10-09T03:22:13
2019-10-09T03:22:13
112,286,775
0
0
null
null
null
null
UTF-8
Python
false
false
5,632
py
import numpy as np import matplotlib.pyplot as plt from math import pi, sqrt from operator import itemgetter import time class ClusteringWithDensity(object): def pol2cart(self, rho, phi): x = rho * np.cos(phi) y = rho * np.sin(phi) return (x, -y) def RandomArchimedeanSpiralPoints(sel...
[ "noreply@github.com" ]
noreply@github.com
4a865beed91c9a8e8b4658315602570354bd4770
f4b011992dd468290d319d078cbae4c015d18338
/Array/counting_element_in_two_array.py
f63a8421ab898a5ab3b5dcbed4c726b0b2a93aef
[]
no_license
Neeraj-kaushik/Geeksforgeeks
deca074ca3b37dcb32c0136b96f67beb049f9592
c56de368db5a6613d59d9534de749a70b9530f4c
refs/heads/master
2023-08-06T05:00:43.469480
2021-10-07T13:37:33
2021-10-07T13:37:33
363,420,292
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
def counting_element(li, li1): li3 = [] for i in range(len(li)): count = 0 for j in range(len(li1)): if li[i] >= li1[j]: count = count+1 li3.append(count) print(li3) n = int(input()) m = int(input()) li = [int(x) for x in input().split()] li1 = [int(x) f...
[ "nkthecoder@gmail.com" ]
nkthecoder@gmail.com
703750ec09744d696cdb0e6436ecadef91de2b13
939a96160d1d6d00cddc0b429977d5c153accb6b
/python/tools/tiktok/watermark.py
d1a62827a8c1d82e282539779017bc721f6d0c3a
[]
no_license
xta0/CodeBase
755a8410fb925c49a01bab455e4fdb009631faf2
b5bf1af1d980c889a64616d6f154e97c5b8677cb
refs/heads/master
2023-03-03T04:21:27.923321
2023-01-21T02:09:53
2023-01-21T02:09:53
47,170,102
0
0
null
2023-03-02T07:36:39
2015-12-01T06:23:33
C
UTF-8
Python
false
false
1,593
py
from PIL import Image from PIL import ImageFont from PIL import ImageDraw import cv2 as cv import argparse parser = argparse.ArgumentParser(description='') parser.add_argument('--video', default="") parser.add_argument('--out', default="./") parser.add_argument('--pos', default=()) args = parser.parse_args() def cro...
[ "taox@fb.com" ]
taox@fb.com