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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a96118cd12e8d37f1bfa0717003e2f71d4d0b13d | cfb6923223bd5b2cad56ece404f74fbb6889837b | /TAPI_RI/funcs_TapiNotification/context_NotificationUuidAdditionalinfoImpl.py | b072bd089f71b4d606369b8051988de259d74058 | [
"Apache-2.0"
] | permissive | XingZhao-CATR/Snowmass-ONFOpenTransport | 27206bd84ff8d9ea2ec7b8ee25a9085b9c96af6d | c5807944bb1333a8ed83d6beea3e55922d006495 | refs/heads/develop | 2021-01-13T16:59:27.016238 | 2016-12-21T13:19:17 | 2016-12-21T13:19:17 | 77,099,371 | 1 | 0 | null | 2016-12-22T01:29:16 | 2016-12-22T01:29:16 | null | UTF-8 | Python | false | false | 432 | py | import os.path, sys
sys.path.append(os.path.join('/'.join(os.path.dirname(os.path.realpath(__file__)).split('/')[:-1])))
import backend.backend as be
class Context_NotificationUuidAdditionalinfoImpl:
@classmethod
def get(cls, uuid):
print 'handling get'
if uuid in be.Context._notification:
... | [
"ricard.vilalta@cttc.es"
] | ricard.vilalta@cttc.es |
faeb207030c3a1325ed5a10052f5c62623ddb01a | f1259ed94f0d9cfa2a788881be375057f662e738 | /Roll Your Own CDN/killCDNProcess.py | 34f6d2adf38e7f3b42471f93f6b2667ed4647057 | [] | no_license | sekurisukumar/MyProjects | eb464a180c41a1539152f2e61e68decba91dfb82 | e6e83c8ee192198ac29a8fd51e3d6ed2da0f8684 | refs/heads/master | 2020-04-12T21:43:31.503572 | 2018-12-30T03:34:22 | 2018-12-30T03:34:22 | 162,770,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | import os, sys
os.system("kill $(ps aux | grep python | grep " + sys.argv[1] + " | awk '{print $2}')")
| [
"noreply@github.com"
] | sekurisukumar.noreply@github.com |
e08b5b8bafd47b1a6d1586d007f5b01ac9bcc88b | d8b4224ddde18dea3c37ae1727d2df49f62ea68f | /tests/test_display.py | 3819f37675d1313672ae4a60fedda417536c010d | [
"MIT"
] | permissive | Happy-Ferret/peru | 1c878e00964409f255ab9347c1753d9e693c62bd | 2414a4a8839cddb2422332a25f205acc2866acd7 | refs/heads/master | 2020-03-28T13:47:31.278310 | 2018-07-19T05:08:19 | 2018-07-19T05:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,107 | py | import io
import re
import textwrap
from peru import display
import shared
class DisplayTest(shared.PeruTest):
def test_quiet_display(self):
output = io.StringIO()
disp = display.QuietDisplay(output)
with disp.get_handle('title') as handle:
handle.write('some stuff!')
... | [
"oconnor663@gmail.com"
] | oconnor663@gmail.com |
00afa24d945b1a7e8c8fd047dc078cef8bb2d30d | 413bc9d5c700d86001579e15d3bd97574157c6f4 | /test/test_ka.py | 61b162f6cdbedcd1c69d93f8a4b013a210efac82 | [
"MIT"
] | permissive | ryanstwrt/multi_agent_blackboard_system | 91a78c22074b3c54af0a90960ae2599b761af710 | b8f6ab71dfe0742a6f690de19b97d10504fc1768 | refs/heads/master | 2021-12-19T20:09:14.424704 | 2021-09-22T15:22:32 | 2021-09-22T15:22:32 | 237,267,327 | 2 | 2 | MIT | 2021-09-22T15:22:32 | 2020-01-30T17:32:21 | Python | UTF-8 | Python | false | false | 9,123 | py | import osbrain
from osbrain import run_nameserver
from osbrain import run_agent
import mabs.bb.blackboard as blackboard
import mabs.ka.base as ka
import time
import os
def test_ka_init_agent():
try:
ns = run_nameserver()
except OSError:
time.sleep(0.5)
ns = run_nameserver()
ka_b = r... | [
"stewryan@isu.edu"
] | stewryan@isu.edu |
64a4984a709589934cfbcef4675dc3cf39963de0 | c7d57352b1efcff23952399039a3a501b9b8f526 | /node_modules/hexo/node_modules/minimatch/.npmignore | 2ce873fc15e45be39ab6fe7229ef1417fc8cf9fd | [
"MIT"
] | permissive | hejiheji001/HexoBlog | 010304d880b05f0353acfef4b8e1b5909fa7eea3 | fe012b8ba95afb7b381da225240e340cb9bba046 | refs/heads/master | 2021-01-17T00:10:18.383959 | 2016-10-27T03:00:15 | 2016-10-27T03:00:15 | 31,499,152 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | npmignore | # nothing here
| [
"hejiheji001@gmail.com"
] | hejiheji001@gmail.com |
479c6df07ee2067bd8e31fa13092af72264de4a3 | f4a776732510052964f36111ea63036193ec3547 | /foo.py | 8e0f69d9ebced0d8856fd5f4f4b6f8ec0d66848a | [] | no_license | Omar-Al-Khathlan/Generate-TV-Scripts | 0713dc9716cc665015ae580704c6529140b9502d | d7a5ecf6a33f3f2ed719adc9aa41b57518148e7a | refs/heads/main | 2023-06-26T21:00:37.432337 | 2021-07-28T17:15:07 | 2021-07-28T17:15:07 | 390,412,143 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py | import numpy as np
import torch.nn as nn
class RNN(nn.Module):
def __init__(self, vocab_size, output_size, embedding_dim, hidden_dim, n_layers, dropout=0.5):
"""
Initialize the PyTorch RNN Module
:param vocab_size: The number of input dimensions of the neural network (the size of the v... | [
"omarkhathlan@gmail.com"
] | omarkhathlan@gmail.com |
8d898a9098f45f858bcd9243ea785d06f01a38c3 | 9e15d6c1ad6ebb44ba2c04115ff1019c63a19b27 | /Alumno/urls.py | 77e0393a78fce89366ed66da38fc3e887ef16dc8 | [] | no_license | angel-de-jesus/digtalOcea | b1d782848483155523b029008075bf51099f2f99 | 5a54e27b5c1cf3fb710eed3e311470ebbce00fd9 | refs/heads/master | 2022-12-14T20:19:19.622258 | 2019-06-20T04:26:49 | 2019-06-20T04:26:49 | 192,848,077 | 0 | 0 | null | 2022-12-08T05:16:37 | 2019-06-20T04:24:49 | Python | UTF-8 | Python | false | false | 443 | py | from django.urls import path, re_path
from django.conf.urls import include
from django.contrib.auth.models import User
# from rest_framework import routers, serializers, viewsets
# importa todas las vistas exclusivas de la aplicacion
from . import views
urlpatterns = [
re_path(r'^$', views.AlumnoList.as_view()),... | [
"173237@ids.upchiapas.edu.mx"
] | 173237@ids.upchiapas.edu.mx |
f7e9514b9b8b0877acc82021d8c2f1625d25d99d | 363d7f6d635315ae6788bf0227651f4056bb5111 | /mergesort.py | c7ba3eab3b3626c2debabbaefd5715201d0e1ccb | [] | no_license | projeto-de-algoritmos/D-C_Dupla2B | 3cf52a9dfa11afbf1b2e1248934c4a17f65fda8b | 729962f99bd72a034d2803c0634f3fcaccd15cc3 | refs/heads/master | 2023-01-10T04:26:52.053715 | 2020-11-14T02:42:41 | 2020-11-14T02:42:41 | 310,455,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py |
def main(vet):
#print("Splitting ",vet)
if len(vet)>1:
mid = len(vet)//2
lefthalf = vet[:mid]
righthalf = vet[mid:]
main(lefthalf)
main(righthalf)
i=0
j=0
k=0
while i < len(lefthalf) and j < len(righthalf):
if lefthalf[i... | [
"lucas.alexandre.df@gmail.com"
] | lucas.alexandre.df@gmail.com |
d1e6c1c880ab0a436ef4b85cee04c4da718deb43 | 6690f53809f4eb53bda2cb54a2b929173493dda7 | /Server/service/api/setting/api.py | 6bb581dccf400bff45ed9c0afc3abf55875cca05 | [] | no_license | K-Mertin/konew_docker | b93427f1b32ce17fae47d8b912eb21d029bcd7ab | 612a609cde18eb44f1dec3921517f733c2c4ad52 | refs/heads/master | 2021-05-11T09:38:43.561793 | 2018-11-29T04:54:58 | 2018-11-29T04:54:58 | 118,082,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | from flask import Blueprint, jsonify, g, request, current_app, make_response
from dataAccess.settingAccess import settingAccess
from werkzeug.security import generate_password_hash, check_password_hash
import datetime
import json, os
import jwt
import decorators
apiSetting = Blueprint('setting', __name__)
@apiSetting... | [
"mertin_k@hotmail.com"
] | mertin_k@hotmail.com |
0332704480190159d6341b75eedc805a2190f6af | 2b290d054202fc60175fb93b6c3138fc22b0abde | /seawatch_registration/views/signin.py | 377f57fc01ef669a36894fb10278f78693c540fd | [] | no_license | innoq/seawatch_planner | 5ec45edf0eadb27922bb19bf60069bba5750409a | 66f595497cc232747dcc2fe60c9106e84a49773b | refs/heads/master | 2020-08-27T07:57:36.453250 | 2020-01-30T15:11:38 | 2020-01-30T15:11:38 | 217,291,570 | 4 | 1 | null | 2020-01-31T13:48:32 | 2019-10-24T12:17:16 | Python | UTF-8 | Python | false | false | 265 | py | from django.shortcuts import redirect
def login_success(request):
""" The admin has no profile that could be displayed """
if not hasattr(request.user, 'profile'):
return redirect('index')
else:
return redirect('registration_process')
| [
"jan.michal@innoq.com"
] | jan.michal@innoq.com |
8b6c76c493f0719226a3515b1c155eee750b6ec7 | a900daab4e56be4f5a96813ebe5dbe6afbb27578 | /PyPoll.py | a8e34eeac255df9b86e637db91c6a120f7749348 | [] | no_license | sanketkumaronline/Election_Analysis | 0ba540c73f2a04d09ae54264aadb5ed8d80f8259 | fbe7730c1d27be6f2e8a3a5666bb3935737cc927 | refs/heads/main | 2023-02-22T02:42:27.915355 | 2021-01-18T03:49:53 | 2021-01-18T03:49:53 | 328,528,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | # Add our dependencies
import csv
import os
# Assign a variable to load a file from a path
file_to_load = os.path.join("Resources","election_results.csv")
# Assign a varible to save the file to a path
file_to_save = os.path.join("analysis","election_analysis.txt")
# Initialize a total vote counter
total_votes = 0
# Ca... | [
"smartsanket@gmail.com"
] | smartsanket@gmail.com |
6f7349ef4ffdce0ee6ded87fb455f7b3dd32b926 | 8ce28d9a4045fdd6d16f2d85337a5de6c57b981e | /replay_buffer.py | 655a920254eea6534caf1e69f5a30bf05d222ac9 | [] | no_license | RUFFY-369/SAC_implementation | 1785330d288e00d95fe3d939387ec8d1c12788b8 | 317959a2e325f1b0109c1b6d28421f23e8ee084f | refs/heads/master | 2023-01-18T23:06:17.171082 | 2020-11-14T08:10:29 | 2020-11-14T08:10:29 | 312,184,136 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | import numpy as np
class replay_buffer():
def __init__(self,max_size,inp_shape,n_actions):
self.size_mem= max_size
self.count_mem = 0
self.state_mem = np.zeros((self.size_mem,*inp_shape))
self.new_state_mem = np.zeros((self.size_mem,*inp_shape))
self.action_mem = np.zeros(... | [
"prakarshkaushik369@gmail.com"
] | prakarshkaushik369@gmail.com |
e67e7c02172bd0bf36604adab9d024d7f0acc0f5 | 76fbcb9e331866f3eefa7a4816984c9761a593e8 | /checkout/urls.py | 8bae2072dc7b8a0e73e81695619fd93f3075275f | [] | no_license | Code-Institute-Submissions/fostoria | e437718a1cf5c3dfe541ffda31cbb41d6e04107f | 0f41c24d3f1b13d9b96643d3eb5f60bdd99ea1df | refs/heads/master | 2022-12-26T03:55:20.826960 | 2020-09-29T10:07:10 | 2020-09-29T10:07:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | """ Checkout app urls to be imported to main project urls """
from django.urls import path
from . import views
urlpatterns = [
path('delivery/', views.checkout_delivery_view, name='delivery'),
path('payment/', views.checkout_payment_view, name='payment'),
]
| [
"mwcalow@gmail.com"
] | mwcalow@gmail.com |
1e817e7cb011415b934f504d62191e0c879cb687 | d96c1ae508ec5112f887203cf0f6bd5c4e13455e | /scrapy_artigos_folha/items.py | 12110670c71a8f7558c2f1149f6b8de6b3c2ab1d | [] | no_license | spectralgrid/scrapy-folhadesaopaulo | 15df070d1d3000085ee6605125be0ee3a1a1e04c | c035aeba1e5bc9308dda821ccd2d4e2cf601ddec | refs/heads/master | 2023-06-11T21:40:21.729879 | 2012-12-22T16:12:12 | 2012-12-22T16:12:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/topics/items.html
from scrapy.item import Item, Field
class Artigo(Item):
nome=Field()
url=Field()
conteudo=Field()
def __str__(self):
return "Artigo [nome=%s; conteudo=%s]" % (self["nome"], self... | [
"moises.trovo@aresfinance.com.br"
] | moises.trovo@aresfinance.com.br |
cea619411b3c72d2406c08badb507cfffed67fe0 | 37c41eb0982ee51b53c76b2daf0a441e3d601c8f | /07-17/mounttab.py | c8342f29ba01cdc79b6e17ae2780d6dab44d267a | [] | no_license | 5it6ub/m0rin09ma3-python-2013 | 50e58192d391e4e723fbdf4e2625c7ac23276b87 | 6b6e3d0cb7b02e166ed80a7276acad9da7843388 | refs/heads/master | 2021-01-23T12:06:16.292198 | 2013-08-22T01:44:56 | 2013-08-22T01:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import os
def mount_details():
"""
Prints the mount details
"""
if os.path.exists('/proc/mounts'):
fd = open('/proc/mounts')
for line in fd:
line = line.strip()
words = line.split()
print '%s on %s type %s' % (words[0], words[1], words[2]),
... | [
"boss.gori@gmail.com"
] | boss.gori@gmail.com |
6952a269811979a6c877748716baef5563302506 | 1f582d84ddcedae690aaeecfad0ae61ef1d06c04 | /todoo/migrations/0001_initial.py | a8db9d73130bdbf39365786b7b60c80e12f4a9d7 | [] | no_license | rgupta1997/Todo | 7071901f194094285f06d1124814f60d2798ed2c | 952736c2df9b6f02088d75870a5afa55ac214484 | refs/heads/master | 2020-08-11T17:58:57.859260 | 2019-10-12T08:15:29 | 2019-10-12T08:15:29 | 214,605,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | # Generated by Django 2.2.6 on 2019-10-12 04:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todoo',
fields=[
('id', models.AutoField(au... | [
"javeda3740@gmail.com"
] | javeda3740@gmail.com |
887ce43213adcc15de03a4446b22f460363cfdd7 | 2e6864be933249820a57fbfd5e1dc1b5b79ae6ea | /letter-count.py | e08f7baec1404676fcb01a9d8e6b9ad99f7da266 | [] | no_license | dscheiber/Python-Automate-The-Boring-Stuff | 7eadd205080415966ed60ec0ba8c8d5c95a10849 | 719c58b5cad23f210512d7c3bd8d1498197008dc | refs/heads/main | 2023-08-31T16:09:16.739239 | 2021-10-04T19:38:10 | 2021-10-04T19:38:10 | 409,700,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | #this is a letter counter described in section 7 of Automate the Boring Stuff
#made before watching the example
import datetime
beginTime = datetime.datetime.now() ##for time needed
message = "This is a message for all the letters within to be counted"
listMessage = list(message.lower().replace(" ", "")) #converts me... | [
"dscheiber@live.com"
] | dscheiber@live.com |
3a6025a1472baad52a204a8452245c222ea5c974 | e7d9b137dbca268323296addbd568813b60b7717 | /org/swallow_labs/model/CapsuleProcessor.py | a26aa17a680ed26dccd3dea8b97561fb0ef5054a | [] | no_license | SwallowLabsTeam/DeviceSmartScreen | 9aac42a7a1b9b60ea109a95aa3a60b7e2bd55ef0 | fbe2f802d422997280c0c409a6da7dafd8dccbb8 | refs/heads/master | 2021-01-22T03:05:12.380314 | 2017-02-22T09:47:06 | 2017-02-22T09:47:06 | 81,094,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,342 | py | from org.swallow_labs.model.Capsule import Capsule
from org.swallow_labs.tool.CapsuleSort import CapsuleSort
from org.swallow_labs.model.LdapParam import *
import os
import json
from calendar import monthrange
from org.swallow_labs.model.Client import *
from org.swallow_labs.model.CapsuleACK import *
from org.swallow_l... | [
"root@prototype.swallow.tn"
] | root@prototype.swallow.tn |
9134f39efb136d956a47a5087adaaab05f945e15 | 271d8edf6d490fc83cf8d35e096a6c2c40439328 | /controller/__init__.py | 5d563b34e8447708f64b954f36f5989ff50aba11 | [] | no_license | dev-siot/mju_server | d2702797a7b41b70fe52f68c4fbebb0921439eb9 | 6f65d962d4a857dc7b9daa52413a7d692206e9e5 | refs/heads/master | 2021-06-08T22:49:11.235424 | 2016-11-15T17:37:36 | 2016-11-15T17:37:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from flask import Flask
from config.mjudb import mjudb
app = Flask(__name__)
db = mjudb().setDB(app)
from controller import users, index, message, path
app.register_blueprint(users.users)
app.register_blueprint(index.index)
app.register_blueprint(message.message)
app.register_blueprint(path.path)
| [
"wwww432@lycos.co.kr"
] | wwww432@lycos.co.kr |
c6183f4770320865c91b4641382a01bc7a6362c1 | e35489e147c296b1911a99b7f923186b1a8523dc | /cluster.py | 4e93f93df3e5ab0287d59bbd0e633df6238bc927 | [] | no_license | arkaaloke/DDRF | efd4a3b8a26f84d76cda6ff502a966d87b8d4b8d | 524a287b2fc40695a31cdbfa4e18a7be45486f4d | refs/heads/master | 2020-06-04T04:13:51.249308 | 2015-02-25T00:48:29 | 2015-02-25T00:48:29 | 27,834,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | import os
import sys
from machine import *
class Cluster:
def __init__(self, machineConfig, machinesPerType, minCpu, minMem, jobSizeThreshold , smallJobThreshold, largeJobThreshold ):
self.numMachines = 0
self.machines = []
self.machinesByType = {}
self.cpuUsage = 0
self.memUsage = 0
self.totCpu = 0
se... | [
"arkaaloke@gmail.com"
] | arkaaloke@gmail.com |
f59f16016064cd4c3ddd59f881f9a6476ad24081 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/costmanagement/get_report.py | 7c8cc276d1de60d7807ffa3a2827ceec5adf3dcb | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,171 | 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
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
25d88fb96aae601928210507341eda653f5208da | 02468531b67787532600a27b5a1c1b2db5daf11b | /bullbearetfs/strategies/balatchi.py | cefe6abecab4866b2b029ae15b8f27fc5744202a | [] | no_license | henrimeli/invest2020 | d284af960b34a6ccc830524826fd1be9271168bf | eb699fd3c70ab0e1cffc56cb86855f6a22849aed | refs/heads/master | 2023-01-31T14:54:22.451146 | 2020-12-15T08:44:06 | 2020-12-15T08:44:06 | 312,067,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,825 | py | from bullbearetfs.strategy.strategybase import EggheadBaseStrategy
"""
TODO: Describe the Module here ...
List the classes of the module here
"""
logger = logging.getLogger(__name__)
class BamendjinStrategy(EggheadBaseStrategy):
def __init__(self,robot):
self.robot = robot
def __str__(self):
return ... | [
"bepanda@gmail.com"
] | bepanda@gmail.com |
fe975b8750b38a7a2c105c4e21d7f5071b0a8231 | 1a29ebacd24054a7144d2be25bf162b6abe25088 | /ttkbootstrap/__init__.py | 33ef836e9064b39b3683c60709e7e9f255dd2e45 | [] | no_license | Ganjaboy3942/OpenInWSL-Source | b703cc621ea5b31ceefa16f6a1e5fe4d8eca1b80 | 802315062c61ff712d1061704882d097ca60e73f | refs/heads/main | 2023-08-06T05:55:12.835874 | 2021-09-24T17:33:28 | 2021-09-24T17:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144,307 | py | """
Why does this project exist?
============================
The purpose of this project is create a set of beautifully designed and easy to apply styles for your tkinter
applications. Ttk can be very time-consuming to style if you are just a casual user. This project takes the pain
out of get... | [
"pefbartimee.com@outlook.com"
] | pefbartimee.com@outlook.com |
1456b95995218835c09ad93cd8cfad3b9b0635f1 | 71d25a539343d5397a73ae538eb8b10aaeb67443 | /etl/job_luigi.py | 8c8730bbe222aefac1971557834131ff0374283d | [] | no_license | yennanliu/SGTaxiMap | b6c849ffe9fb204fe36097eb4fa1da41931c6ce9 | eaf6574ea72c14d4af9e881b88c0684cd273bf62 | refs/heads/master | 2021-01-19T00:29:13.983586 | 2020-07-20T09:05:30 | 2020-07-20T09:05:30 | 64,672,741 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | import luigi
import datetime
import pandas as pd
import numpy as np
import sys
import os
from utility_scraping import *
from utility_IO import *
class demo_task(luigi.Task):
def my_first_task():
print ('==============')
print ('first task')
print ('==============')
def my_second_task()... | [
"f339339@gmail.com"
] | f339339@gmail.com |
2dbcb6562d5351b4f8129178272e0f2cadeaf680 | e42726c5ca5551deb8f6765b9148829567cbb361 | /python/Python/web scrapping/lat_long_4.py | 6065047b65a97540719425bd2dc27c51273a8824 | [] | no_license | prashant2109/django_login_tas_practice | f840917fa18eefc073ab183cc3ccc6a380132c66 | 70da58059263850732b1d3ec9501bea7ddef0d34 | refs/heads/master | 2022-12-02T03:59:28.275802 | 2020-08-24T10:00:51 | 2020-08-24T10:00:51 | 289,892,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | import requests
geo_url = 'http://maps.googleapis.com/maps/api/geocode/json'
address = {'address':"Pride Appartments, Banerghatta Main Road, Bengaluru, Karnataka, India", 'language':'en'}
resp = requests.get(geo_url, params=address)
print(resp.text) | [
"9109kumar@gmail.com"
] | 9109kumar@gmail.com |
19a842dd389f865da1c888c67e2d54b281c5ecb0 | efc9b70544c0bc108aaec0ed6a2aefdf208fd266 | /151_ReverseWords_in_a_String.py | 5cc38f2a6a3e481c1101aae8de9cf1df1e3400ef | [] | no_license | fxy1018/Leetcode | 75fad14701703d6a6a36dd52c338ca56c5fa9eff | 604efd2c53c369fb262f42f7f7f31997ea4d029b | refs/heads/master | 2022-12-22T23:42:17.412776 | 2022-12-15T21:27:37 | 2022-12-15T21:27:37 | 78,082,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | '''
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Update (2015-02-12):
For C programmers: Try to solve it in-place in O(1) space.
click to show clarification.
Clarification:
What constitutes a word?
A sequence of non-space characters con... | [
"noreply@github.com"
] | fxy1018.noreply@github.com |
004076a6ac2be3bfdad20f2b8c41e3eee199c4d9 | 768090e32003d74062cc47a0e67f47f682ceba13 | /nemo/collections/nlp/models/machine_translation/megatron_nmt_model.py | 4acffb63f4b07949fdf4b7a63aecec0844465280 | [
"Apache-2.0"
] | permissive | AlexGrinch/NeMo | 028e57e2243c474249986e1c5027d4e762775124 | ba6ebee02e554e6f7229edfe67a610eca4d226af | refs/heads/main | 2022-10-10T15:42:25.146469 | 2022-08-05T22:08:05 | 2022-08-05T22:08:05 | 209,156,248 | 0 | 1 | Apache-2.0 | 2019-09-17T21:04:30 | 2019-09-17T21:04:29 | null | UTF-8 | Python | false | false | 42,038 | py | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | AlexGrinch.noreply@github.com |
9237ecbd7a6409565bcc97447bef41a6b20eddd0 | 06a045819cf99c7059afde40dca12cf9d3eb5f81 | /scripts/run_autotyping.py | 4c0a3a9cf985fd928663666bb59a413e26aa69c5 | [
"BSD-3-Clause"
] | permissive | MarcoGorelli/pandas | b9882c6ac1e4bc753819b7bc7c8b567964efd275 | 86a4ee01c7899ef454d35b95cde11e9593921c9d | refs/heads/main | 2023-08-22T12:35:45.122152 | 2023-05-04T22:11:07 | 2023-05-04T22:11:07 | 164,618,359 | 4 | 1 | BSD-3-Clause | 2023-05-05T09:02:23 | 2019-01-08T09:55:54 | Python | UTF-8 | Python | false | false | 1,175 | py | """
Script to run ``autotyping``, to get around the fact that
pre-commit puts ``args`` before the list of files, whereas
``autotyping`` wants the files to come after, see
https://github.com/pandas-dev/pandas/issues/48808#issuecomment-1259711679.
"""
from __future__ import annotations
import argparse
import subprocess
... | [
"noreply@github.com"
] | MarcoGorelli.noreply@github.com |
e3896a244cefbc648f6a2ac32615cf561b81386d | c18060a168ce26fa8516534439f17376334c94bc | /products/compute/helpers/python/instance_update_methods.py | e890556f0f9c2697a42fdd77b31b839436c3f83e | [
"Apache-2.0"
] | permissive | thiagocaiubi/magic-modules | c2778d1cd3129dde74972293b103eaf411a73029 | 8cddcb7293eafdffcb7ebff16d078909ecd4771f | refs/heads/master | 2020-11-25T04:28:15.027397 | 2020-01-02T17:31:10 | 2020-01-02T17:31:10 | 228,502,654 | 1 | 0 | Apache-2.0 | 2019-12-17T00:51:10 | 2019-12-17T00:51:10 | null | UTF-8 | Python | false | false | 995 | py | def deletion_protection_update(module, request, response):
auth = GcpSession(module, 'compute')
auth.post(
''.join(["https://www.googleapis.com/compute/v1/", "projects/{project}/zones/{zone}/instances/{name}/setDeletionProtection?deletionProtection={deletionProtection}"]).format(**module.params),
... | [
"magic-modules@google.com"
] | magic-modules@google.com |
c254a55643b70b137a01cb7ea1d76d3086b8499a | c1e1f330a559b2a80906cdf331653a015fbd7a1d | /escapeAlexaHandler/.debug/escapeAlexaHandler/.~c9_invoke_nHU15O.py | 4ac62e9435e0bf7ffb2019464943ed858619fa05 | [] | no_license | milllslm/EscapeAlexa | c62353952a3819f87aef473c69102e7078c4677b | 5bd1ae10bc57249d4d3b33481d97878288030533 | refs/heads/master | 2020-04-03T17:04:44.151525 | 2018-12-12T00:10:16 | 2018-12-12T00:10:16 | 155,416,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,594 | py | """
This sample demonstrates a simple skill built with the Amazon Alexa Skills Kit.
The Intent Schema, Custom Slots, and Sample Utterances for this skill, as well
as testing instructions are located at http://amzn.to/1LzFrj6
For additional samples, visit the Alexa Skills Kit Getting Started guide at testing push messa... | [
"ec2-user@ip-172-31-54-73.ec2.internal"
] | ec2-user@ip-172-31-54-73.ec2.internal |
ea087e1600dbbc7ded8de1d9bc122c675c440911 | 03aebbf4fe13a3a0d79f738a0c2cd7741a788cdd | /Oreily/Ch3_structures/my_vowels.py | 049c658053f3ac5f51f28f7366ceb56376cb285b | [] | no_license | Maxim-Krivobokov/python-practice | c69d2fbe601ed7e8388a564bf20a7ceab283919d | 718698dfaeabd5ea000bce3a20bf18d1efe938c2 | refs/heads/master | 2021-05-24T10:27:29.022718 | 2020-07-22T14:34:15 | 2020-07-22T14:34:15 | 253,518,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | found = {}
vowels = ['i', 'o', 'u', 'a', 'e']
for i in vowels:
found[i] = 0
print('empty dict:')
print(found)
print(' ')
word = input('Enter a word. \n')
for letter in word:
if letter.lower() in vowels:
found[letter.lower()] += 1
print('result sorted dict:')
print(sorted(found))
# for key in sor... | [
"maxim.krivobokov@gmail.com"
] | maxim.krivobokov@gmail.com |
d56963f68c8d514d30e9424ead0eab971bc3b439 | f18125b848e37a64e35136a90cf4694e52eb9fcc | /tests/extras/test_more_dialogs.py | 924ed7541cfe2abe8d94b7e24126d49f759ad283 | [
"MIT"
] | permissive | carlbordum/teek | d19271dfe11e3e77052b1a3c215ddf6a9d50e440 | a931b468744c8236fd4ce6f1dc3a8c4829d59db3 | refs/heads/master | 2020-04-16T11:41:10.909230 | 2019-01-13T19:24:16 | 2019-01-13T19:24:16 | 165,547,247 | 0 | 0 | null | 2019-01-13T19:48:26 | 2019-01-13T19:48:26 | null | UTF-8 | Python | false | false | 5,017 | py | import pytest
import teek as tk
from teek._widgets.windows import WmMixin
from teek.extras import more_dialogs
def test_ask_string(handy_callback, monkeypatch):
def validator(string):
if string not in ('asd', 'wat'):
raise ValueError
return string.upper()
real_run = more_dialogs.... | [
"akuviljanen17@gmail.com"
] | akuviljanen17@gmail.com |
eb59da00a7f80cd0367859382aec55ab9ebca3c5 | 05483471298c3f277b57524a78c1a81867b7afd7 | /automate_online-materials/ch5-1.py | 10a7b756948d3eb4bca46dab8d6d20954132e242 | [] | no_license | lanchunyuan/Python | c09fc19dbc26fe9925110da6237d48e06baa77ab | 2cafc62255e27306a6085fb64e5b21d851e98d51 | refs/heads/master | 2020-04-18T09:51:28.521649 | 2019-02-06T14:19:02 | 2019-02-06T14:19:02 | 167,449,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | items = {'rope': 1, 'torch': 6, 'gold coin': 42, 'dagger': 1, 'arrow': 12}
def displayInventory(spam):
count =0
print('Inventory:')
for k,v in spam.items():
print(str(v) + ' ' + k)
count += v
print('Total number of items : ' + str(count))
# displayInventory(items)
def addToInventory(... | [
"lanchunyuan@gmail.com"
] | lanchunyuan@gmail.com |
446695841a64f138fd3ed1a650490f7fc862258b | 20f195790d8356c6775c3626177b2a654f48c0d5 | /personal/apps.py | ff30504f45e06262c89f2866c5b164d525325a0c | [] | no_license | saurabhkumar8112/portfolio-final | 0d21a30d6cf1391a41f3d5affeec8aa0eacb0208 | 8c6502ea223b5795fbf1e8c4c9c42ae4cbb41048 | refs/heads/master | 2021-01-18T15:01:10.502860 | 2017-03-08T16:16:31 | 2017-03-08T16:16:31 | 84,341,462 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from django.apps import AppConfig
from __future__ import unicode_literals
class PersonalConfig(AppConfig):
name = 'personal'
| [
"akshat.khare08@gmail.com"
] | akshat.khare08@gmail.com |
cabe44a27fb5d469ffcfde8fe31beb567d6f6d60 | b1f7e9ed23f017d1a32831e2f552fbefebed8edc | /code/mqtt_babelfish.py | 39560566d8b53591b359933fc536ccffdf2df2e0 | [
"Apache-2.0"
] | permissive | vanceb/mqtt_babelfish | 78c76bfc486290b4ddc26cb77b5e94478798a2fb | ab867a03833a1d96c9c112bbd4ea7b0b1fb23777 | refs/heads/master | 2020-04-01T18:21:15.413017 | 2019-07-07T09:09:07 | 2019-07-07T09:09:07 | 153,487,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | import os
import logging
import logging.config
import yaml
import paho.mqtt.client as mqtt
# Load logging config from logging.yaml
def setup_logging(default_path='./conf/logging.yaml',
default_level=logging.INFO,
env_key='LOG_CFG'):
path = default_path
value = os.getenv(en... | [
"vance@axxe.co.uk"
] | vance@axxe.co.uk |
32953994e601e12033d71862b9d11d5399291cdf | 2697d6f33e325a3596a8effa17fda3695f165e8b | /filter/inject-publication/inject-publication.py | 6a412eb35d7733e240b423896933a1cccc4b870d | [] | no_license | msprev/dot-panzer | 1ad9cfcbed071254c618baa8297cf181d5178f0f | 7d3f0406a3efa6e6af6b3050a3c43e65420ffcdd | refs/heads/master | 2021-01-18T21:19:36.016978 | 2019-02-12T13:22:10 | 2019-02-12T13:22:10 | 26,055,734 | 13 | 10 | null | 2015-10-03T14:17:49 | 2014-11-01T16:19:43 | Python | UTF-8 | Python | false | false | 342 | py | #!/usr/bin/env python3
from pandocinject import Injector
from pandocfilters import toJSONFilter
from importlib import import_module
if __name__ == "__main__":
s = import_module('selector')
f = import_module('formatter')
i = Injector('inject-publication', selector_module=s, formatter_module=f)
toJSONFi... | [
"sprevak.home@gmail.com"
] | sprevak.home@gmail.com |
ae8fd6ab1a7b3bb83dbb3289ca8c3ce0f933fcf5 | 1e9661a056bcf8b1e708753e869c3453cce6b148 | /Day01/min_max_avg.py | f43bdb78a9de059dc897f6e1b1fbdb6f4f82cd6f | [] | no_license | Code360In/IBM | e4e62c9da5533d16f92972cd8799fc3d3cd04b9c | a89da6618139a342fc652457e1435790db5eb664 | refs/heads/master | 2023-03-25T04:27:51.266481 | 2020-03-10T17:15:16 | 2020-03-10T17:15:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # Program to extract the minimum, maximum and
# Average of the user given numbers
# Input
L = []
ud = ''
while ud != 'q':
ud = input('## (q to quit) ? ')
if(ud.isdigit()):
L.append(int(ud))
print('-'*60)
print('VALID INPUTS:')
print(L)
print('-'*60)
# Process
minimum = min(L)
maxi... | [
"noreply@github.com"
] | Code360In.noreply@github.com |
1bffb53f70438d6c9c747113acfb2b880386af94 | 43196d7898c6e65d0ef236710614cfee60b2e181 | /knn_predict.py | 32677e827a0826de4e0cd4625699b2dc5ebcacc3 | [] | no_license | finallybiubiu/lending_club | e106dd5e00c31c0c73f003454322ca6f8a955672 | d0c88e72ff1fc7d570e7cad099dd68c3c3d6f412 | refs/heads/master | 2021-01-16T18:40:42.337607 | 2016-05-27T19:04:43 | 2016-05-27T19:04:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,939 | py | # -*- coding: utf-8 -*-
from sklearn.neighbors import KNeighborsClassifier
from sklearn.grid_search import GridSearchCV
import os
from svm_predict import load_data, do_fit, do_predict, plot_predict, \
gridscore_boxplot, scale_train_data, scale_test_data, cross_validate, run_opt
def get_app_title():
"get app ... | [
"bfetler.gmail.com"
] | bfetler.gmail.com |
a5c18402ecb41c999c4cc0e40d8bfa834ec470fb | 059d18837160bc30b93b7bb85a9f064fd2e94c8b | /request_token/context_processors.py | a796696e204e1824a76fd86edb58442a1c998cf8 | [
"MIT"
] | permissive | alex-hutton/django-request-token | 0a5b6257dd90f6ae10b454f40b5f3fed95e7d542 | 299c4cb22ce3012c7ef995a648e5b1ea6b8a84d7 | refs/heads/master | 2020-03-18T08:31:28.008597 | 2019-02-13T08:15:16 | 2019-02-13T08:15:16 | 134,514,914 | 0 | 1 | MIT | 2018-05-23T07:18:48 | 2018-05-23T04:50:25 | Python | UTF-8 | Python | false | false | 522 | py | from django.core.exceptions import ImproperlyConfigured
from django.utils.functional import SimpleLazyObject
def request_token(request):
"""Adds a request_token to template context (if found on the request)."""
def _get_val():
try:
return request.token.jwt()
except AttributeError:
... | [
"noreply@github.com"
] | alex-hutton.noreply@github.com |
694876f429d126d606d1183715f6a629347cdb86 | 4c8c715409b8c7e5ba33052767409294b650f979 | /PyPoll_Challenge.py | 15001a7e2691513e476669bcd2644c587ba53cdc | [] | no_license | dwwatson1/Election_Analysis | 28d5be771fbc401cd097db1ea756df445b7c223b | dc64bd1ad13970157f72b043ef2b0f52f5810a9d | refs/heads/main | 2023-03-22T21:53:19.761537 | 2021-03-15T00:21:01 | 2021-03-15T00:21:01 | 343,930,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,175 | py | # -*- coding: UTF-8 -*-
"""PyPoll Homework Challenge Solution."""
# Add our dependencies.
import csv
import os
# Add a variable to load a file from a path.
file_to_load = os.path.join("Resources", "election_results.csv")
# Add a variable to save the file to a path.
file_to_save = os.path.join("analysis", "election_an... | [
"noreply@github.com"
] | dwwatson1.noreply@github.com |
394ec0f4ab18682e8413da542e9e3e439acb3bd0 | 460db28a01aebffa39e8010e0943ca6e2afcc6a4 | /pos/migrations/0036_store_position.py | eaed8e02255584a6a79f3c3f5e11a3c2b68f2034 | [] | no_license | cosmo83/djangopos | c524a5619ea46171a581444ed4cc5fc925369677 | 00ef4eac288305a274392397f145f1bdcf41376d | refs/heads/master | 2022-04-11T01:30:01.535121 | 2020-03-26T07:21:25 | 2020-03-26T07:21:25 | 230,745,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # Generated by Django 2.0.13 on 2020-01-06 03:34
from django.db import migrations
import geoposition.fields
class Migration(migrations.Migration):
dependencies = [
('pos', '0035_remove_store_position'),
]
operations = [
migrations.AddField(
model_name='store',
na... | [
"arava@sat-infotech.com"
] | arava@sat-infotech.com |
f5a00325405c5930bc9a4fc4f3b9a28aeb518e99 | e3cd5c58275eafbacd0ef2ba2e1d5e631aaf4d3f | /heritagesites/views_orig.py | 84a0fa441bb5853f4b65341a259a08df8c27f963 | [
"MIT"
] | permissive | p1ho/heritagesites | 748ac9dacbdded9da3aba3daf2f1a263318174a1 | 0345e06c67717460d9cc412313297ba967823209 | refs/heads/master | 2020-04-06T08:48:25.728524 | 2019-01-04T19:29:54 | 2019-01-04T19:29:54 | 157,316,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the UNESCO Heritage Sites index.") | [
"hopokuan@umich.edu"
] | hopokuan@umich.edu |
d8e47f72b09737b50917034242ea21713c383732 | 32a1f89277e4a51535acc718394eba07a3890847 | /app.py | 4ca9adfd304fae68efa85e625bdd3c6d0a045ad3 | [] | no_license | smkhassan/safemasks | 60722b2f31715edd3a61da14b1188be1121ec84d | b8b4f039e3a150ac80c8a31ed6d612934cd6ed99 | refs/heads/master | 2021-08-09T23:44:08.360005 | 2020-04-06T18:11:55 | 2020-04-06T18:11:55 | 253,209,219 | 0 | 0 | null | 2021-06-02T01:22:24 | 2020-04-05T10:33:01 | Python | UTF-8 | Python | false | false | 463 | py | from safe_masks_crawler import alibaba_module
from safe_masks_transformer import azure_storage_table
##Global Variables
url_test_local = 'https://www.alibaba.com/product-detail/5Layers-Multifunctional-Face-Masks-KN95-Respirator_62532136916.html?spm=a2700.galleryofferlist.0.0.125c66d3DbeLJk&s=p'
# flag = True
# whil... | [
"futureco@email.cz"
] | futureco@email.cz |
091061c476f879f5c005aa427eec4a451ceba15c | f3872d1d47f5231eeec91d9fd36e1a15f72b400e | /moddle_project/moddle/migrations/0002_booking_booking_approved.py | e966321a283b0d86bb3df4eb60424c94d8621a2a | [] | no_license | ambidextrous/Moddle | 4009054802dca71d0501e2d48255bce7eb7d527c | 08d622e3dc661049fd33fa437f446534d3810496 | refs/heads/master | 2021-01-20T11:06:32.075079 | 2017-03-23T17:19:19 | 2017-03-23T17:19:19 | 82,162,225 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-21 11:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('moddle', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"david.skillman@hotmail.com"
] | david.skillman@hotmail.com |
bbcb9df302ea973f60a02fbc803b2b7020697ae0 | 0f15f96ae8f756253b0fa9067d7d360c53539237 | /app.py | 2f683a42df87c8bddaf4ecec7eecb99a567a2ea6 | [] | no_license | SarayuGautam/Flask-Crud-API | 0ff28f6217c26272b25b19141bfe276640f203fd | fd8e0d5073b5437b5d6c00b619b654507d080bf3 | refs/heads/main | 2023-03-22T17:04:16.758313 | 2021-03-17T04:22:13 | 2021-03-17T04:22:13 | 344,140,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from flask import Flask
import os
from bookSchema import db, ma
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = "mysql+mysqlconnector://root:@localhost/flask_crud"
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db.init_app(app)
ma.init_app(app)
from bookBlueprint import book_bp
app.register_b... | [
"sarayugautam1@gmail.com"
] | sarayugautam1@gmail.com |
132350bf4e4cfb4ed2397c166a68a7287d6874e7 | 29e66a1b18ac71c911e5e87cdcbce95a9a9205d0 | /engine/test_environment.py | 4376cb4c2424e88544dcfcffd870731ebbc0c2dc | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | kingsd041/os-tests | 61c2208e9bb8457e46ab95275fda7f0c6b9fb3f7 | 2ea57cb6f1da534633a4670ccb83d40300989886 | refs/heads/master | 2020-04-04T22:48:09.833896 | 2018-11-13T09:09:49 | 2018-11-13T09:14:06 | 156,336,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | # coding = utf-8
# Create date: 2018-10-29
# Author :Bowen Lee
def test_environment(ros_kvm_with_paramiko, cloud_config_url):
command = 'sudo system-docker inspect env | grep A=A'
feed_back = 'A=A'
client = ros_kvm_with_paramiko(cloud_config='{url}/test_environment.yml'.format(url=cloud_config_url))
s... | [
"zhangzhibo521@gmail.com"
] | zhangzhibo521@gmail.com |
ecd94f19c1acf8b480d3c67427f46040a6217519 | ab0c5c2da1a98276df745e922ea9483360fa476b | /ex038.py | d41942f28c9ce018310b4e0632ea72c48245592f | [] | no_license | edlorencetti/Python-3 | 7b18cf4ea434b864fb576bda83ab5fb13d5d703a | a66a197f4de2bfd8e197fbb5a4e6d2ed0a2dc05c | refs/heads/master | 2022-09-11T12:22:54.711256 | 2020-05-29T13:23:28 | 2020-05-29T13:23:28 | 264,819,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | num1 = int(input('Digite o primeiro numero: '))
num2 = int(input('Digite o segundo numero: '))
if num1 > num2:
print('O primeiro numero {} e maior'.format(num1))
elif num2 > num1:
print('O segundo numero {} e maior'.format(num2))
else:
print(' Os dois numeros sao iguais')
| [
"edlorencetti@yahoo.com.br"
] | edlorencetti@yahoo.com.br |
20822894d537594a5efb0fd8ee155fa74b7aa820 | 77825f1e70acc955b9cff8d2a7a0a603f4d80278 | /for.py | cea79c5092f76f0573799fe6ed30b8be3b9d41e0 | [] | no_license | liulinboyi/learnPython | 62b382999434527de81388d862e658d178019fdf | 0374ff59a01bd408443e334229050b433d7d83a5 | refs/heads/main | 2023-02-16T05:35:41.740729 | 2021-01-18T05:43:16 | 2021-01-18T05:43:16 | 330,564,972 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py |
for i in range(1, 5):
print(i)
else:
print('The for loop is over')
print("---------------------------------------------------------------------")
for i in [1, 2, 3, 4]:
print(i)
else:
print('The for loop is over')
print("---------------------------------------------------------------------")
a = {... | [
"814921718@qq.com"
] | 814921718@qq.com |
c36dc24cded3f102104e2694d5af8dff041ac30f | 6aec6db6530620bb9b552008333644c6993e0dcd | /creating node.py | 2d570de457d1a3a14f34dc3a72d8392384594099 | [] | no_license | TropicalPenguinn/SVLR_blogging | 1a087905ada076074872f029c760763aa1b31801 | 07d27068487ee462f5b604acbe9ee7e24b1ecba4 | refs/heads/main | 2023-06-10T12:20:45.044080 | 2021-06-30T06:20:30 | 2021-06-30T06:20:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,140 | py | import numpy as np
class plus_node:
def __init__(self):
self._x,self._y=None,None #입력 정보를 저장하는 변수를 정의한다.
self._z=None #출력 정보를 저장하는 변수를 정의한다.
def forward(self,x,y): #forward를 수행하는 내부 메소드를 정의한다.
self._x,self._y=x,y #입력 정보를 받아 저장한다.
self._z=self_x+self._y #출력값을 계산한다.
return self._z #출력한다.
... | [
"noreply@github.com"
] | TropicalPenguinn.noreply@github.com |
70bd379483ca0da27d1ac68ebe701e36425a5d89 | 5b0e149a719e28dad17164716d0fa518d4175e90 | /tests/test_formats_flac.py | 9293f228096d60ee6d47b9606f6c3657f4f5deb5 | [
"MIT"
] | permissive | quatmo/audio-metadata | 3f7eedaaac3570768e9af607418809664179aa59 | e231a682b778688102b7a13e8a49852a99b5b5b5 | refs/heads/master | 2020-06-24T23:02:33.867841 | 2019-07-22T10:24:39 | 2019-07-22T10:24:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,967 | py | from pathlib import Path
from audio_metadata.formats.flac import (
FLAC,
FLACApplication,
FLACMetadataBlock,
FLACPadding,
FLACSeekPoint,
FLACSeekTable
)
def test_FLAC():
for flac in (Path(__file__).parent / 'files' / 'audio').glob('*.flac'):
FLAC.load(flac.read_bytes())
def test_FLACApplication():
applic... | [
"mail@thebigmunch.me"
] | mail@thebigmunch.me |
0bcf618786fc3b42c93b023e3be42c7d4c7ff004 | 8d456522c7afab21d1b3fb69cf84a85544b773f6 | /Modulos/SGE/Examen2/Ej3.py | 14978f8d3e91281ef4b59a45baf4e8cdf0f0aa13 | [] | no_license | JPuentenueva/2DAM | 95c717528aa12d3b8d7d539f58972867b8337e56 | 419b6e5b92a8704b70e92cd4bdfb4e720f9b3dda | refs/heads/master | 2021-01-13T08:24:35.806324 | 2017-04-06T17:16:41 | 2017-04-06T17:16:41 | 71,870,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | # -*- coding: utf-8 -*-
"""
Implementar la clase Persona, pensando en usarla en un calendario para felicitaciones, que tendrá como atributos el nombre completo,
la fecha de nacimiento, la fecha de su onomástica (santo), su teléfono y email.
Tiene que hacer uso de la clase Fecha del ejercicio 1. Implementar el construc... | [
"jpuentenueva@gmail.com"
] | jpuentenueva@gmail.com |
e6b83e012a6dfce314d85ffe645eede2228f83d5 | 164ffe077dde59373ad9fadcfd727f279a1cfe93 | /jni_build/jni/include/tensorflow/python/training/slot_creator.py | e1e15270eb5474cc097e732adb8853eb9d52809d | [] | no_license | Basofe/Community_Based_Repository_Traffic_Signs | 524a4cfc77dc6ed3b279556e4201ba63ee8cf6bd | a20da440a21ed5160baae4d283c5880b8ba8e83c | refs/heads/master | 2021-01-22T21:17:37.392145 | 2017-09-28T21:35:58 | 2017-09-28T21:35:58 | 85,407,197 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,142 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"helder_m_p_novais@hotmail.com"
] | helder_m_p_novais@hotmail.com |
209e3207354e26301f10e26a56088939a3e0dbc8 | e191760ef4e054f6dd4537ce2a96950e8dbfc713 | /extractor/main.py | b5950f36a64bd0309af1300f16936006dfef3485 | [] | no_license | ricardojdferreira/carris-analysis | d120f3086e7543ea440b4fbf63ad3d1a3931087b | 595e451daaa2f0485f2fabac01f387a1e37dbadb | refs/heads/master | 2022-12-12T12:56:43.261799 | 2020-04-24T22:00:03 | 2020-04-24T22:00:03 | 235,426,317 | 0 | 0 | null | 2022-12-08T03:59:06 | 2020-01-21T19:38:43 | Python | UTF-8 | Python | false | false | 1,918 | py | import extractor
import dbutils
import datetime
import argparse
import sys
import time
def main(args):
print(">>> main: started extractor")
# time variables
today = datetime.date.today()
delta = datetime.timedelta(days=1)
today -= delta
days = args.days
# postgres variables
database =... | [
"ricardojdferreira@gmail.com"
] | ricardojdferreira@gmail.com |
d1f6454f346ba4fea69ba0a5ab429a367e276738 | e26bf05bc4177e15c5f8cb28690882189d332bdf | /transformers_keras/distiller.py | 2be98f2e2169f1c76841bb016a476c8885621114 | [
"Apache-2.0"
] | permissive | OuyKai/transformers-keras | 1e4ed574acafcb807f3073f45e6462025c0139e5 | 58b87d5feb5632e3830c2d3b27873df6ae6be4b3 | refs/heads/master | 2023-09-06T07:50:10.404744 | 2021-11-23T02:34:34 | 2021-11-23T02:34:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | import tensorflow as tf
class Distiller(tf.keras.Model):
"""Model distiller."""
def __init__(self, teacher: tf.keras.Model, student: tf.keras.Model, **kwargs):
super().__init__(inputs=student.inputs, outputs=student.outputs, **kwargs)
self.teacher = teacher
self.teacher.trainable = Fa... | [
"zhouyang.luo@gmail.com"
] | zhouyang.luo@gmail.com |
9be4a5b88dfceccaa93dbf8fd9329761ebaf0679 | 0aad9bb61aed96c948d495bbfe3bebc3f7436d4b | /Essentials/06dictionaries.py | 10e0d3faf903351b57bf58c160b2a45fe2a86c76 | [] | no_license | canbaran011/python101 | 308f80f5d80cf134a45efe0b869becd905334656 | f2a65a25781d2c6b9bbef0ca6df5a084ca6b9525 | refs/heads/master | 2023-05-13T09:02:49.670152 | 2021-05-23T09:59:19 | 2021-05-23T09:59:19 | 269,565,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | # A dictionary is a data type similar to arrays, but works with keys and values instead of indexes. Each value stored in a dictionary can be accessed using a key, which is any type of object (a string, a number, a list, etc.) instead of using its index to address it.
phonebook = {}
phonebook["John"] = 938477566
phonebo... | [
"canbaran011@gmail.com"
] | canbaran011@gmail.com |
4272d472825782aa92cf8eb16832a053ff7d4ad5 | 75bd6d6b23dd46fcac7b1dceb709c5a5c7de5f2d | /Projects/ecom/root/ecommerce/views.py | 75cfbb98b5525d194df99a0c1730c03c1fb3c264 | [] | no_license | NayanDharviya/Python-Django-Projects | 60108596c02015c54cea38949dfcbd1fa69d3fb5 | 0ce7bfb8118fd4d9ad1f0a589754cac9e67990ad | refs/heads/master | 2021-02-12T10:38:31.596644 | 2020-03-04T10:41:53 | 2020-03-04T10:41:53 | 244,586,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | from django.http import HttpResponse
from django.shortcuts import render,redirect
from carts.models import Cart
# def home_page(request):
# return HttpResponse('<h1>new project</h1>')
def contact(request):
# cont=contactpage()
con={'field':cont}
return render(request,'contact.html',context=con)
... | [
"48516302+NayanDharviya@users.noreply.github.com"
] | 48516302+NayanDharviya@users.noreply.github.com |
8ce2eff4b18c57e710eb720c9633ffa7031c51ff | 0887c5a119b5a882e46fea174516005060a6d321 | /checkString.py | 8a1e866bedfe17db457d8789fe45d097ce868134 | [] | no_license | Divya5504/PYTHON | 76f717ae554a74aeef532039f08371165d21cc8e | de7e4c2550c3ae851cff00da249dfaabe2568216 | refs/heads/main | 2022-12-29T04:25:22.279129 | 2020-10-14T08:59:06 | 2020-10-14T08:59:06 | 303,949,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | # working of string in python
name1 = "divya tulasi" # 1st way
name2 = 'divya vaibhav' # 2nd way
print(name1)
print(name2)
# print('i can't do work') it does not work
print('i can\'t do work')
print("i can't do work")
# next line \n
print("hi there \n python is awesome")
# concatenation of string
print(name1 + " " ... | [
"noreply@github.com"
] | Divya5504.noreply@github.com |
64a0c195637a1f33f77767c41fcddd9b701dd2a6 | 863bc3dbf009492c974928a944bb144903e08cb5 | /edgeverve_hiring.py | 3e54ad1e7ebf6361abd14f7a1eece184c5791309 | [] | no_license | amitrajitbose/product-category-prediction | 299a6c4bf8a5fa0103c4d107b99391161266ce9b | 62775fa7c9ea5e5d5a0203546e517a32a507675c | refs/heads/master | 2020-08-04T00:52:50.992588 | 2019-09-30T19:54:11 | 2019-09-30T19:54:11 | 211,943,638 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,406 | py | # -*- coding: utf-8 -*-
"""Edgeverve_Hiring.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1kIckpFU6QJZnCG2WwWewHG3lBURh0QvL
# The Great Indian Data Scientist Hiring Challenge
### Author: Amitrajit Bose
- [Mail Me](amitrajitbose9@gmail.com)
- [... | [
"amitrajitbose9@gmail.com"
] | amitrajitbose9@gmail.com |
f99449a4842509a41a82503744fc9643c0884b4d | de2125f4147550619de4bf125655cab5d379856d | /Gold Loan 2.py | 9bb56715cdf37ddd8577c6c6260d5e078930ec4e | [] | no_license | joeljo2104/BankSystemTkinter | 408278f4e645a09f0a5982d2254b28db8211a188 | 94a62c6497f3e12c689f64bd7a88ab927eee6524 | refs/heads/master | 2020-08-06T22:35:41.404487 | 2019-10-06T14:42:05 | 2019-10-06T14:42:05 | 213,184,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,377 | py | from tkinter import *
import tkinter as tk
import tkinter.messagebox
import pickle , os , string , random , tkinter.ttk , tkinter.font
from PIL import ImageTk, Image
class GoldLoanWin(Frame):
def __init__(self,master = None):
Frame.__init__(self,master)
self.master = master
self.Main_GoldL... | [
"joeljo2104@gmail.com"
] | joeljo2104@gmail.com |
527b60311a9838f33cde4a3d1478e61712f6591e | e4daea0a2bb2c101a2dad4e046be719a6bcbcfdf | /button_press_event_test.py | e840853b2255bb4855c42c65e36f2b954946c704 | [] | no_license | qazsweet/NewToTown | c6446f56a51ed219253ec37cc065153909590402 | c6e12f2b4fee00c51b3155f9a20e0b55d3581518 | refs/heads/master | 2021-05-01T08:45:44.502430 | 2018-02-11T22:30:47 | 2018-02-11T22:30:47 | 121,173,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | from matplotlib import pyplot as plt
class LineBuilder:
def __init__(self, lineli):
self.line = lineli
self.xs = list(line.get_xdata())
self.ys = list(line.get_ydata())
self.cid = lineli.figure.canvas.mpl_connect('button_press_event', self)
print(type(lineli))
def __cal... | [
"ErinSweet201412@outlook.com"
] | ErinSweet201412@outlook.com |
e9d9502dbb5e718619e517cfd05b10bf53244569 | 87f5af92c1acf16f625c9e40b171f790f0e146f9 | /SDNetwork/Library/TestNet/Topology/TestNetEnvironment.py | 686010cda129e2743cfb562510a4b52ce8e4abfc | [] | no_license | lgqiao/SDN-Routing | 0e8f0ab395a78caacc3e41c98aff2a87454966c4 | c9f85a870cdb4d114da510945d5041c9880cb470 | refs/heads/master | 2023-03-16T09:53:20.582665 | 2020-09-08T00:59:46 | 2020-09-08T00:59:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,216 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# TestNetEnvironment.py
# Test Network Environment, OpenFlow Table Management
#
# Created by mpuchkov on 2019-11-18.
# Copyright © 2019 Maxim Puchkov. All rights reserved.
#
from mininet.clean import cleanup
from mininet.util import irange
from TestNet.Logger import lo... | [
"mpuchkov@sfu.ca"
] | mpuchkov@sfu.ca |
d319f3a12b80ada2ee75461c525f86ee4f4dfe2a | d5e9d49067ce172c50e686ba508a86868b97a011 | /pallida-basic-exam-trial/oddfilter/odd_filter.py | 187abd51a1b4182a1a4765095f77ec817e75026c | [] | no_license | green-fox-academy/criollo01 | c6ccad49ae6616ba793829e7fdcbcc8ee6760b8f | 097685498f6d6c87e888a601ebe0a46318b73028 | refs/heads/master | 2021-09-04T03:50:35.681432 | 2018-01-15T14:12:06 | 2018-01-15T14:12:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # Create a function that takes a list as a parameter,
# and returns a new list with every odd number from the orignal list
# example: [1, 2, 3, 4, 5] should produce [1, 3, 5]
# print(odd_filter([1, 2, 3, 4, 5])) # should print [1, 3, 5]
numbers_list = [1, 2, 3, 4, 5]
# def odd_filter(numbers_list):
# for i in n... | [
"lucanagy@protonmail.com"
] | lucanagy@protonmail.com |
6058bd4b5730edffec44d17fb24b363ec9c82ab4 | 813476c86eae58aaeb6d075ae0028d363c0fa485 | /algo/siamese_transformers/models/xlm_roberta_model.py | 47569c559046474a015704b710add4f75fa79088 | [
"Apache-2.0"
] | permissive | sheffieldnlp/TransQuest | 31efc671dfac5ee2c85dca1940908e1d5ceea035 | 3a7c283c91a5c9090a902a5c68025a84799437ff | refs/heads/master | 2023-02-18T05:26:37.261436 | 2020-04-13T17:18:28 | 2020-04-13T17:18:28 | 264,239,043 | 2 | 0 | Apache-2.0 | 2020-05-15T16:07:36 | 2020-05-15T16:07:35 | null | UTF-8 | Python | false | false | 3,934 | py | from torch import Tensor
from torch import nn
from transformers import XLMRobertaModel, XLMRobertaTokenizer
import json
from typing import Union, Tuple, List, Dict
import os
import numpy as np
import logging
class XLMRoBERTa(nn.Module):
"""RoBERTa model to generate token embeddings.
Each token is mapped to an... | [
"rhtdranasinghe@gmail.com"
] | rhtdranasinghe@gmail.com |
55b9123b552e947e962067f4dc01eeb2c970dcba | a45aa024fbaf9911beb000a3fc23ae52f1ce90c6 | /data.py | 7074e65766cd128ba04f16e66e4dae49b259d22f | [] | no_license | nazirimu/Quiz-App-GUI | 9f70cc3b44c7fab4ad794541af07528ac23114d5 | 91240024bc12ce724fed01d5b8f0c3965f14c5ac | refs/heads/main | 2023-02-12T21:02:51.250394 | 2021-01-02T10:07:28 | 2021-01-02T10:07:28 | 326,154,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,716 | py | # NEW CODE USING APIS
import requests
# Parameters required to use the quizler api
parameters = {
"amount" : 10,
"type" : "boolean"
}
# Using the quizler api to get questions
response = requests.get("http://opentdb.com/api.php", params=parameters)
# Raising an error if non 200 response is received
response.ra... | [
"noreply@github.com"
] | nazirimu.noreply@github.com |
f259320b1165d6ab55556de9d3ae1e0c9d195731 | e42e9118f25d6558443a784f73205c46952c70e4 | /analysis/machinelearning/generate_data_ping_failcheck.py | ec46106237942218c57d6682423888534cf5f495 | [] | no_license | msp8955/myspeedtest_old | 14f2c1fca81337bccec886fc97c6eca7707e24c2 | c58cf0ed0099c7d8db7ee46ead23ea491f75de23 | refs/heads/master | 2021-01-20T23:21:16.717346 | 2014-09-05T16:33:49 | 2014-09-05T16:33:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | import sys
sys.path.append('../')
import database
import pprint
from queryconstructor import QueryConstructor
from orangeconstructor import OrangeConstructor,Column
from plotconstructor import LinePlot,Mapping
def constructQuery(qc):
qc.addSelect("device","networkcountry")
#qc.addSelect("battery","level")
#... | [
"msp8955@gmail.com"
] | msp8955@gmail.com |
fc9048d96a1243624f06db31602b8ad59885d277 | d60c3facf200720dbab47c71e3bad6a9caf7107b | /mac/views.py | c4c909240026033346722b6d95a538ff318690c9 | [] | no_license | chintan322/E-commerce | 33967719ea85721d7f346f4ef720ffa455fd3a56 | 7841a61abd46b66021aae9194f86273598bd9406 | refs/heads/master | 2022-11-13T20:26:54.040477 | 2020-07-12T06:28:18 | 2020-07-12T06:28:18 | 279,005,768 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return render(request, 'index.html') | [
"chintansutariya322@gmail.com"
] | chintansutariya322@gmail.com |
880bd88c3f23be66c0c71002617387b37327882a | a3ef4ed3bb4612c481279b72ac0ee857afbe2c95 | /taskapp/views.py | 135f066b6409453b30311264032b099b2ecdc567 | [] | no_license | akashSharma135/testdjango | b4c84b76b0ab545a2356f5be7ab9118ce45e99f7 | 84690bf11ae3e549f45c41a58c2d0463c1e44538 | refs/heads/main | 2023-07-28T01:09:03.430114 | 2021-09-13T05:08:59 | 2021-09-13T05:08:59 | 405,278,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from django.db.models import fields
from rest_framework import serializers
from rest_framework.permissions import IsAdminUser
from rest_framework.response import Response
from .models import Task
from todoapp.models import ManagerAssigned
from .serializers import TaskSerializer
from rest_framework.views import APIView
... | [
"imakashsharma135@gmail.com"
] | imakashsharma135@gmail.com |
31ca56f3595b3ea31bc6b5f4ddb87ac754c6311f | 2daf5ade6c4d2c574e09565800b7d9a0855d5fdc | /ch02/or_gate.py | fc5a1c489547099a285ccff3adca4d2def02930d | [] | no_license | akakeishin/DLScratch | 528984fb849e98aa17a246ca0d7e1343ccb47b09 | 61e8c7baf253ea5b6815c281ef6ab854b234f9a1 | refs/heads/master | 2021-01-23T21:55:46.190752 | 2017-02-25T07:23:20 | 2017-02-25T07:23:20 | 83,114,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | import numpy as np
def OR(x1, x2):
x = np.array([x1, x2])
w = np.array([0.5, 0.5])
b = -0.2
tmp = np.sum(w*x) + b
if tmp <= 0:
return 0
else:
return 1
if __name__ == '__main__':
for xs in [(0, 0), (0, 1), (1, 0), (1, 1)]:
y = OR(xs[0], xs[1])
print(str(xs) ... | [
"mizururi_22@gmail.com"
] | mizururi_22@gmail.com |
e0f0ed6adaf8b9e3fb93e0c2a0b954de97b0e62a | 09e726fbc46d6dc81ee2220382e9762f75a1477c | /Cracking the code Interview/Data Structures/Stacks_Balanced_Brackets.py | 2912826783fa048cca4c88c465d135b78c5834b1 | [] | no_license | gerardoalfredo2/Data-Structures-and-algoritms | 716fcdb7be11ef243fdfa2e43c9799706a5e7d3f | da2c01288a0f37934c190acd0eb7d26432771683 | refs/heads/master | 2021-08-29T15:37:33.338336 | 2017-11-17T22:17:56 | 2017-11-17T22:17:56 | 109,436,039 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 556 | py |
def is_matched(expression):
stack=[]
symbols={'(':')','{':'}','[':']'}
if len(expression)%2!=0:
return False
for x in expression:
if symbols.get(x):
stack.append(symbols[x])
else:
if len(stack)==0 or x!=stack[len(stack)-1]:
return False
... | [
"gerardoalfredo2@gmail.com"
] | gerardoalfredo2@gmail.com |
5858b400443b9f6a542276bf855aad233aa9f7c7 | b7ff8a424f1a3c1407229d0e844998c9e4249b2c | /test.py | 6bb02a28801f0f45db2f1c3213b1bed44ff8703f | [] | no_license | NishanthRaveendran/Xylophone | 5c0a69c40008a87280ac8d96c3e72728c2df186e | cffabd9c4fec761f06f3c30a2b5421b8249ebd9e | refs/heads/master | 2020-04-19T07:53:55.182445 | 2019-02-09T22:27:35 | 2019-02-09T22:27:35 | 168,060,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 26 17:36:26 2019
@author: Kanav Petkar
"""
import cv2
import numpy as np
import tkinter as tk
cross = cv2.imread("cross.png",-1)
y1, y2 = 0, cross.shape[0]
x1, x2 = 0, cross.shape[1]
alpha_fg = cross[:,:,3] / 255.0
alpha_bg = 1.0 - alpha_fg
def recordHSV(color):
... | [
"k.petkar21@gmail.com"
] | k.petkar21@gmail.com |
922b0f19fa947c5a28fa12bc5d1b0fb8d6503680 | 3a93737f7ac1f1e702e79558d9c37c77fe5f6b68 | /dnm_cohorts/rate_limiter.py | 8e64a5a024a8e93929f55ab45aaec8fb97eb6787 | [
"MIT"
] | permissive | jeremymcrae/dnm_cohorts | 2d780ff7dd0866419ef10285a443f41226a71e0c | 4955354d0bdabcc7bc5f1a2821059c48f4c0a40d | refs/heads/main | 2023-09-01T20:25:22.058124 | 2023-08-18T18:16:54 | 2023-08-18T18:16:54 | 133,709,109 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py |
import time
import logging
import trio
import asks
asks.init('trio')
from dnm_cohorts.rate_limiter_retries import ensembl_retry as retry
class RateLimiter:
''' class to asynchronously perform http get requests
This respects the rate limits imposed by the server. Error handling and
retrying are handled ... | [
"jmcrae@illumina.com"
] | jmcrae@illumina.com |
906be09e47fffd0aa6dc37632ea527df58840819 | ec676a77e6a8818893047640c554ab039cca132c | /bin/python-config | 19ed784a3e1c3269cbd82be188b7906a886fd97c | [
"CC-BY-3.0",
"MIT"
] | permissive | vipulkanade/EventbriteDjango | f51ac0d0128829fc5aec8bc12654fd3f249ddfae | 075036563db1fe41fa7c5a541eda3999be328be0 | refs/heads/master | 2021-01-09T21:53:25.795866 | 2016-01-25T08:18:23 | 2016-01-25T08:18:23 | 50,326,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | #!/Users/vipulkanade/Dropbox/eventbrite_django/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if s... | [
"vipultechjoy@gmail.com"
] | vipultechjoy@gmail.com | |
d10e687dcd7debedbfa04316cbd36f7cd821ab72 | 27622b7ecad4fd03a665913a8eff121c607a76fb | /WinDsercon0-1W.py | a67fce8e9944f9fcc116a19db4a40572c21c977b | [] | no_license | fii50/Keylogger | 6fabc04b634a598bcb47efd7fde9b75afb01cddc | 83bf511405c4afdc2daede7913a59a8a36e77c17 | refs/heads/master | 2020-07-27T09:09:46.396513 | 2020-01-17T17:21:40 | 2020-01-17T17:21:40 | 209,041,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,764 | py |
# coding: utf-8
# In[ ]:
#This is a keylogger which will record the keypresses as well as take periodically screenshot.
from pynput.keyboard import Key, Listener
from win32gui import GetWindowText, GetForegroundWindow
from multiprocessing import Process
#from PIL import ImageGrab
from mss import mss
import os
#fro... | [
"noreply@github.com"
] | fii50.noreply@github.com |
d376193758361a393d61a99729b656b2ee40d1d6 | b69f672249b7c5bcc8a6ea7dd8bcfeccae4cc9b0 | /my_utils/__init__.py | 54a870034049cab390f3cabcb096ca821ab26bdd | [] | no_license | Lovegood-1/moblienet_inferece_time | 70c1608245333952dade97244918d6d0241248c9 | 36c5e70f694fb7b6105d982aa292da9209cb242d | refs/heads/main | 2023-01-12T23:21:17.106881 | 2020-11-14T02:10:31 | 2020-11-14T02:10:31 | 312,725,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | from my_utils import * | [
"noreply@github.com"
] | Lovegood-1.noreply@github.com |
1a83a4f3ca759f679653ea76d187b780767f0797 | 8c4eb87c5ae1b8b7d81259a1d2c4f72d2daa911f | /examples/scripts/pose_service_server.py | c89253ae59acc19766d18510a245635c24565fef | [] | no_license | goofyjan/thesis_devel | 3c1aa1d9d97beed5fd1f55acdebabf2d9dc4cdae | 3bde762347e7b98ed09c2f1e3e79c9fd5837183e | refs/heads/master | 2021-06-21T21:16:02.551790 | 2017-08-09T19:21:58 | 2017-08-09T19:21:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Pose
from examples.srv import PoseAdd, PoseAddResponse
def callback(req):
c = Pose()
c.position.z = req.a.position.z + req.b.position.z
return PoseAddResponse(c)
rospy.init_node('pose_service_server')
service = rospy.Service('pose_add', Pos... | [
"jan.throener@rub.de"
] | jan.throener@rub.de |
a61175f27f8b6d65562594b9430b5c25be54eba1 | d864712e94ed9d90b06396b998523a1da56bf249 | /company/y_survey/xml_parser.py | 087381ceaf6ff1504bf87977fda00b88c85845b6 | [] | no_license | nordenecke/eclipse-workspace | e7b25a247647331e20208eec14bf780998fa0a03 | e10886aa570ac2ee948e67faf89c0643a286e1dc | refs/heads/master | 2020-07-23T14:15:26.143569 | 2019-09-17T15:14:01 | 2019-09-17T15:14:01 | 207,587,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,324 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 20 15:54:44 2018
@author: eqhuliu
"""
import os
import io
import xml.etree.cElementTree as ET
class xml_parser(object):
def __init__(self, xml_file):
self.xml_file = xml_file
def ET_parser_iter(self):
vs_cnt = 0
str_s = ''
... | [
"norden.liu@gmail.com"
] | norden.liu@gmail.com |
c57e1a5bcebb0313b53c8874402755edb9de4c2b | 89b5192a2b9032005740147e9708cc684d0c04bb | /international_2019/Control-Team/SimulatorDatabase/Platform.py | e6d05ca3310fc1cf7ed6af718ebec9ed1d9d05f6 | [] | no_license | dlwngjs00100/HEVEN_pathplanning | 9e62092dce3397181c64e6561344f5c3a9627d77 | 37cb228f7cc9205846be506987603dff65728215 | refs/heads/master | 2022-11-15T20:03:37.401324 | 2020-07-12T08:25:31 | 2020-07-12T08:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,902 | py | import time
import sys
import os
import socket
import select
sys.path.append(os.path.dirname(__file__))
from Flag import Flag
import serial
class Platform:
def __init__(self, port, baud, flag: Flag):
self.__recv_data = SerialPacket()
self.__send_data = SerialPacket()
self.flag = flag
... | [
"cookkyh99@skku.edu"
] | cookkyh99@skku.edu |
553e90a90ae00213f99207f86e785e12e7bc5d01 | 1f82b95d45c6eed81a4361c7ed4cdc04789249d3 | /xtest/Repository/Filerepo.py | 3c057a3f7649edae049e7af3820ee508ed4e7c82 | [] | no_license | andidh/Python | dc06728ba4b9e54a6e9ff52afbbe75d43b855b36 | 8b629d160be541a6955d3799ac91358cecf5986a | refs/heads/master | 2020-12-24T20:10:49.132192 | 2016-04-13T15:34:36 | 2016-04-13T15:34:36 | 56,164,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | '''
Created on Feb 3, 2016
@author: AndiD
'''
from Repository.Repo import BikeRepo
from Domain.Entities import Bike
from _operator import attrgetter
class File(BikeRepo):
def __init__(self, file):
BikeRepo.__init__(self)
self.__file = file
self.__loadFromFile()
def __Stor... | [
"andi.deh30@icloud.com"
] | andi.deh30@icloud.com |
6b3b0cf935c5c16aa19a7265106b2aa13f473d3a | f352f9915c0b9d6f7ea010169f5dafd3a9fb8638 | /lib/nltk/test/all.py | dd0d431e1c2fa356f31076768107b5da1e877bdd | [] | no_license | nltk/nltk.github.com | fa235e76788e6e8e7349e7195e61799c1402e61d | cf0d2aa508a1de9147ccf30bd070660651d55adb | refs/heads/master | 2023-07-31T13:34:20.864897 | 2023-01-02T15:33:19 | 2023-01-02T15:33:19 | 2,686,706 | 34 | 41 | null | 2022-10-06T17:06:49 | 2011-11-01T09:59:49 | HTML | UTF-8 | Python | false | false | 819 | py | """Test suite that runs all NLTK tests.
This module, `nltk.test.all`, is named as the NLTK ``test_suite`` in the
project's ``setup-eggs.py`` file. Here, we create a test suite that
runs all of our doctests, and return it for processing by the setuptools
test harness.
"""
import doctest
import os.path
impor... | [
"stevenbird1@gmail.com"
] | stevenbird1@gmail.com |
bc3a33e5be8e30f1128b3fc83e43032fea16a7ac | abe211d11c1d96cea2026020afbdee954af41a44 | /Baxter_ARCHR/controller_old/controllerArmLeft.py | 9a8e622de131f91d170c49560b9ade559aa46fb2 | [] | no_license | LofaroLabs/Simulation | 7867e1f907df42f0550ea662093fa4c2958a3011 | 500ada879151f72fdb49a07dffe7cbbed8ca02ca | refs/heads/master | 2021-01-10T20:01:19.945690 | 2014-11-05T05:17:57 | 2014-11-05T05:17:57 | 18,780,200 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,574 | py | #!/usr/bin/env python
# Copyright (c) 2013-2014, Rethink Robotics
# 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 notice,
# ... | [
"mannanjavid@gmail.com"
] | mannanjavid@gmail.com |
6c802f18b2741d38462121db044a2ab94b325658 | 32cc5fe0dd9376f9f7211f6defe3100cfdc10b3c | /Offer-sward-Linkedlist-Folder/Offer-Sward-merge-two-Linked-list.py | 6004233377e2522bbd11ce567e7d1915ea477de0 | [] | no_license | RegCookies/Offer-Sward | 601bb16d107027599de1376db76435875d6525e7 | 82cff33aee421a2e4288e8d21ea3a54a8834a8ec | refs/heads/master | 2020-03-31T00:35:20.246454 | 2018-12-10T13:59:29 | 2018-12-10T13:59:29 | 151,746,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | class LNode:
def __init__(self,val):
self.val = val
self.next = None
def constructL(i):
head =LNode(None)
head.next = None
cur = head
tmp = None
while i<11:
tmp = LNode(i)
tmp.next = None
cur.next = tmp
cur = tmp
i += 2
return head
... | [
"noreply@github.com"
] | RegCookies.noreply@github.com |
add941b5d5b782b4f9732ed2c4a4937ba81962dc | 1c4faa925867660456bfc1b7ae1b259b2f90583c | /sdk/test_faces.py | 602ba4afe8283de6b2e5ffcb39247054e6a88bf9 | [
"MIT"
] | permissive | amirunpri2018/i-Cloud | 8b14770465974d6cea1cd174cc5a6382ab355a4e | e858cea4c289a2440423a75e51f77ed638797673 | refs/heads/master | 2020-05-17T04:55:08.759031 | 2019-04-22T10:22:08 | 2019-04-22T10:22:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | import requests
if __name__ == '__main__':
url = 'http://47.101.196.204:8080/api/v1/faces/verify'
files = {'file1': open('sample_verify_1.jpg', 'rb'), 'file2': open('sample_verify_2.jpg', 'rb')}
r = requests.post(url, files=files)
print(r.status_code)
print(r.text)
| [
"liuyang12@focusmedia.cn"
] | liuyang12@focusmedia.cn |
3071687eb241c76fb55036550a099691ea5b45aa | a8660bb580222df5f65a472b7df37896c17ca39a | /mnist_tutorial.py | f8c1b280efeab9ac8eebe739d87bf82ed26a4a06 | [] | no_license | shaunirwin/machine_learning_code | 922147dfadc1059b2f6af2ff72d09c2452414acb | d9a56792b03404c8bf0a8511e44bcdad936a5e08 | refs/heads/master | 2021-01-20T20:08:16.533690 | 2016-10-24T18:07:23 | 2016-10-24T18:07:23 | 63,533,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,298 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
# input data
mnist = input_data.read_data_sets('datasets/MNIST_data/', one_hot=True)
x = tf.placeholder(tf.float32, [None, 784], name='x')
if False:
# simple logistic regression model
with tf.name_scope('model') as scope:
... | [
"shaun.irwin@gmail.com"
] | shaun.irwin@gmail.com |
d8d6b468ee957ceda7809c5c439cfe9f6d35f629 | db973d8610b2d6cbbc0e92f777148ba1de7663df | /main.py | f95f3799f072a03ec39dfda2a8249213f12f9185 | [] | no_license | G-Gautam/Angles | a15dfeeda61331b9facd9800c897bfd78850355e | f12c0901bb0664cff89e07743b3c048d304ce9de | refs/heads/master | 2020-04-18T03:25:47.338336 | 2019-01-25T16:48:54 | 2019-01-25T16:48:54 | 167,198,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | # import the necessary packages
from ShapeDetector import ShapeDetector
import argparse
import imutils
import cv2
import pytesseract
from PIL import Image
import matplotlib
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True,
... | [
"35315739+ggupta24@users.noreply.github.com"
] | 35315739+ggupta24@users.noreply.github.com |
0f8c4a834c14dddf15c88d1eda9ddbb962cb7a88 | e7651284babcd03a7468b08ec7043613edfd73e4 | /pysha2/__init__.py | df5a8f59ee66009461cfaec222e08e254994fe75 | [
"MIT"
] | permissive | elm200/pysha2 | 8b6b499fb5b2640d2e2f7903de97608b25116171 | e71b3b711f4b2133535f72294308da2b1992e2df | refs/heads/master | 2021-04-15T10:07:34.675764 | 2018-03-24T14:58:50 | 2018-03-24T20:21:33 | 126,606,043 | 0 | 0 | MIT | 2018-03-24T14:15:27 | 2018-03-24T14:15:27 | null | UTF-8 | Python | false | false | 60 | py | __author__ = 'Thomas Dixon, Eiji Sakai'
__license__ = 'MIT'
| [
"eijisakai@gmail.com"
] | eijisakai@gmail.com |
c38746410108d38becc08f37c4ab4d757fd10b80 | fa44be658b41eb51a5eeadd62aa8cd879c40c2f5 | /tourist_spots/settings.py | 5580d6aae4b1c1f0438c98de033fa1bb00a90c45 | [] | no_license | Yuri-Ribeiro/tourist-spots | ad539c667fe4ad7e0b2434ac5b3c88e7cdf8402d | 0ea3c422123cbb7689aa0ab071818a978250855f | refs/heads/main | 2023-01-14T09:18:04.769624 | 2020-11-23T00:01:21 | 2020-11-23T00:01:21 | 301,055,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,759 | py | """
Django settings for tourist_spots project.
Generated by 'django-admin startproject' using Django 3.1.1.
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/
"""
import ... | [
"barrosribeiroyuri@gmail.com"
] | barrosribeiroyuri@gmail.com |
d4c8ed51a61196f1a9c32b68c31c5086711692fc | 17f527d6936397270183a35d7097e0a99de16cb5 | /algorighms_&_datastructure/アルゴリズム/heap_sort.py | e1601e13886ba416019e25dc33935b4fe21b1059 | [] | no_license | ryosuke071111/algorithms | e942f043d08c7c7e2c926ed332ee2b8c44bdf0c5 | 867764450cc0f2a709fa2f743d9a0d95001e9296 | refs/heads/master | 2020-05-14T17:14:39.314064 | 2019-04-17T12:58:12 | 2019-04-17T12:58:12 | 181,888,623 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,176 | py | def heapsort(list):
list_size = len(list) -1
for i in range((list_size//2), -1, -1): #(二分木なので親ノードのインデックスは(n - 1) / 2 となる、木の最後、遡る)#後半以降の配列の中身を操作する
sift_down(list, i , list_size) #iの初期値は6
for i in range(list_size, 0, -1): #ヒープソート実行。値を昇順にする(最下部から上に遡るイメージで。) #最大値を一番後ろに移動させる
if list[0]>lis... | [
"ryosuke0711993@gmail.com"
] | ryosuke0711993@gmail.com |
ecdc29159fa81613aee45c84ac30eaa26f66e216 | 0a74126a2ebffed4e55acd0e89c0298ca7194f13 | /Saller/migrations/0003_loginuser_user_type.py | f50024d0be43e8976e12ad814cc491e0d42f1fc4 | [] | no_license | zy19980208/Qshop- | a6585b38f445b4b69e408db93752cb0e2149957e | 114267b0e256aa177ad3894998f823af195461d3 | refs/heads/master | 2020-09-15T20:04:16.618890 | 2019-11-23T07:08:15 | 2019-11-23T07:08:15 | 223,546,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # Generated by Django 2.2.1 on 2019-09-24 02:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Saller', '0002_loginuser'),
]
operations = [
migrations.AddField(
model_name='loginuser',
name='user_type',
... | [
"920029562@qq.com"
] | 920029562@qq.com |
e207656b9b91266ed5dd351474ed175011aad135 | 100ce586154da9ce95400846457a71f97f094e61 | /utils/generate_example_images_voc_xml.py | a653678d4a5c49e0c7cb8dd287a9e81148a3147b | [
"Apache-2.0"
] | permissive | dedoogong/asrada | c15c1a8110d221d0b3d574cf0d0b74f8ae4f182d | 55fbc6acae562d534ee0dcbc6b2931d77abe5203 | refs/heads/master | 2020-12-25T18:42:33.264415 | 2019-10-14T00:17:38 | 2019-10-14T00:17:38 | 93,975,225 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,289 | py | from __future__ import print_function, division
import xml.etree.ElementTree as ET
import pickle
import imgaug as ia
from imgaug import augmenters as iaa
from imgaug import parameters as iap
import numpy as np
from scipy import ndimage, misc
from skimage import data
import matplotlib.pyplot as plt
from matplotlib imp... | [
"noreply@github.com"
] | dedoogong.noreply@github.com |
a284f513e4c216393f6fd80fdc81dd7bd9c541be | 0c8f6f8bb8b75cb1880828071ad174b3e62f3f97 | /NIRtoNDVI_JPGInputOnly.py | 269925e2c41e8a3c5e09c97c710ccb1263906f98 | [] | no_license | alextrd/PythonNDVI | c6e82218457f8e9aab862829672d988133a7426a | 5d21f125eb822174908ac8a98757cbfa7a33e941 | refs/heads/master | 2022-12-03T21:04:51.383262 | 2020-07-26T18:30:42 | 2020-07-26T18:30:42 | 282,694,224 | 0 | 0 | null | 2020-07-26T16:58:14 | 2020-07-26T16:58:13 | null | UTF-8 | Python | false | false | 2,824 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 25 02:34:05 2020
@author: cosmi
"""
"""
Experimental Vegetation Index Mapping program using DJI Mavic 2 Pro
JPEG 16-bit combo images taken using InfraBlue Filter
%(c)-J. Campbell MuonRay Enterprises 2019
This Python script was created using the Spyder Edit... | [
"noreply@github.com"
] | alextrd.noreply@github.com |
ed163afdd9aac4707ebc6884f8c8263b49ce36bd | 3ef99240a541f699d71d676db514a4f3001b0c4b | /UVa Online Judge/v8/865.py | a215c4ca00c895c53fdfc6e1976ba8730f18e6dc | [
"MIT"
] | permissive | mjenrungrot/competitive_programming | 36bfdc0e573ea2f8656b66403c15e46044b9818a | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | refs/heads/master | 2022-03-26T04:44:50.396871 | 2022-02-10T11:44:13 | 2022-02-10T11:44:13 | 46,323,679 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | # =============================================================================
# Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/
# FileName: 865.py
# Description: UVa Online Judge - 865
# =============================================================================
def convert(ch... | [
"15001582+mjenrungrot@users.noreply.github.com"
] | 15001582+mjenrungrot@users.noreply.github.com |
bae582f0322ee40f5a9ac4b5b216faf8ea43ff0e | 50936864f3feedcc46ef3980864c8ecb0bb4daa8 | /class_examples/function_samples.py | 57d129c7ed20401df628b9f735b23fb7cac8e8fc | [] | no_license | shahrohan05/LearningPython | 79c75024ad740535478ad80c3c78a0b89f8a5ce8 | 4cae85ba18ca8a7ca4d7ac1d4ef611ab0d85d47f | refs/heads/master | 2022-10-18T13:36:04.548458 | 2020-06-11T11:49:29 | 2020-06-11T11:49:29 | 264,109,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | # Samples demonstrating the benefits of functions being high level objects in Python
# 1. Passing functions as argument to other functions, routine to apply any function to a list
def apply(list_obj, func):
applied_list = []
for i in list_obj:
applied_list.append(func(i))
return applied_list
lis... | [
"shahrohan07@live.com"
] | shahrohan07@live.com |
18d7f6dfed300e6fef769bf8a48d3d20b451d576 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/lenet/golden_stick/quantization/simqat/algorithm.py | b1efd2efa845ae8603b313f637c65759fb72f2c5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 1,146 | py | # Copyright 2022 Huawei Technologies Co., Ltd
#
# 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 to... | [
"hangangqiang2@huawei.com"
] | hangangqiang2@huawei.com |
ef3a89ddc1ff61857e690162f4553f344f54d749 | 53d11efbbb791658b67bf71db1bc9e5af8f7ca3d | /GNNAdvisor/s7-4_1_neighbor_partitioning.py | 51e94a804dae3af4fd35af7880006da94b8dca61 | [] | no_license | PeterSwiss/OSDI21_AE | ec95741f01bf0fac75f2929d9394a86cf4ce5185 | 6ea6a211248faba7637025e2269423b42ee923ac | refs/heads/master | 2023-07-16T01:05:59.414819 | 2021-09-03T04:16:24 | 2021-09-03T04:16:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/env python3
import os
os.environ["PYTHONWARNINGS"] = "ignore"
partsize_li = [2, 4, 8, 16, 32, 64, 128, 256, 512]
dataset = [
( 'amazon0505' , 96 , 22),
( 'artist' , 100 , 12),
( 'com-amazon' , 96 , 22),
( 'soc-BlogCatalog' ... | [
"505008605@qq.com"
] | 505008605@qq.com |
069006820c2e51d0783244a96fe45e4c7202d1b9 | f06fbdc8b7afc85456dd07d3e3a4f4d99fbf2c8e | /Django_example_Dronov/broomtrade/guestbook/forms.py | 9c9ddfc72527006138af4f765dca6a3944452838 | [] | no_license | MaxOvcharov/Django_projects | fc8ce25ebc0e5be2ae8b763b3b5a62f0efb30e64 | 365223ea4086a50a6112df3e1e5d18eb727ba175 | refs/heads/master | 2020-12-24T10:15:42.826235 | 2017-03-01T14:21:18 | 2017-03-01T14:21:18 | 73,089,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | from django import forms
from guestbook.models import Guestbook
class GuestbookForm(forms.ModelForm):
class Meta:
model = Guestbook
user = forms.CharField(max_length = 20, label = "Пользователь")
content = forms.CharField(widget = forms.Textarea, label = "Содержание")
honeypot = forms.CharField(r... | [
"ovcharovmax@yandex.ru"
] | ovcharovmax@yandex.ru |
8e1329d24601f42ec66eb1db1e8161b386c6e321 | f1398b19fa7e24b8b07dd518091210c7a5b32bb2 | /1. Variables and Data Types/challenge.py | f400e7999d75342cca32ace5c6fbfd557a1c7776 | [
"MIT"
] | permissive | Descent098/PYTH-101 | d7266b5e0d4c594e445db68e8072da90c4d41341 | 767ba750e5cae0d213b9abfd709ff8f6e4d4a1ac | refs/heads/master | 2020-07-18T12:40:47.954569 | 2020-01-03T06:45:08 | 2020-01-03T06:45:08 | 206,247,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | """
=========== Challenge 1 =============
Under the hood in python strings are actually
collections that use indices.
Knowing this figure out how to print the fourth
letter of the string below.
"""
name = "John Doe"
print(name) # Print the 4th letter of the name
"""
=========== Challenge ... | [
"kieranw098@gmail.com"
] | kieranw098@gmail.com |
ba3c0dafba70e8a7c6efaa18bef48f5464064aa3 | 0958d1dfc012f9724a2a558b5face7afe53afed8 | /bin/cryptography/hazmat/bindings/openssl/_conditional.py | 9dca1c24c87ac380f646dd6068fec66002ae4fdf | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | davisshannon/TA_microsoft_o365_email_add_on_for_splunk | 9eba1f4586012d91e18fb0948c4f90f3c1eeaa21 | c900a2c1854554d4d4f791f2b95b7e743ada24dc | refs/heads/main | 2023-03-21T18:48:37.732238 | 2021-03-20T07:27:24 | 2021-03-20T07:27:24 | 316,347,260 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,868 | py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
def cryptography_has_cms():
return [
"BIO_new_CMS",
... | [
"williamshannondavis@gmail.com"
] | williamshannondavis@gmail.com |
9f43a7044b4baea5d899623b665c8df328a9f0dc | bddbbb6d368726b4b7592482d003e3fecdc13e79 | /Chapter 04/Try It/Try02/animals.py | cd88f71f226436d6e93bca283919da028a654c9a | [] | no_license | djtorel/python-crash-course | 982067e3ebfd47285707f95980f99a0f77c685f3 | 31368a304b6ab36caf7362b2a7998296c36ef929 | refs/heads/master | 2021-07-10T08:52:02.219605 | 2017-10-14T17:56:47 | 2017-10-14T17:56:47 | 103,666,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # Think of at least three different animals that have a common characteristic.
# Store the names of these animals in a list, and then use a for loop to print
# out the name of each animal.
# • Modify your program to print a statement about each animal, such as A dog
# would make a great pet.
# • Add a line at ... | [
"dtorruellas@gmail.com"
] | dtorruellas@gmail.com |
eb4fe2ac69550f5f51ff8f862b57c584934402b8 | 49f61714a6f78d984fd2194d6064d84e891bc5b7 | /2019-1/231/users/4219/codes/1651_2704.py | 1be731980dbcf2a455056963390a312b35747809 | [] | no_license | psbarros/Variaveis3 | b5c4e1517e7d94a846ee03791d25d5821a1c651c | 3dcf6f810709ce03c78335acf9533e008a2ae125 | refs/heads/master | 2023-06-13T07:05:00.878430 | 2021-07-06T17:51:37 | 2021-07-06T17:51:37 | 383,549,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | nota = float(input("digite:"))
frase = input("digite: ")
x = nota + (nota*(10/100))
if (frase.upper() == "S") :
print(float(x))
else :
print(nota) | [
"psb@icomp.ufam.edu.br"
] | psb@icomp.ufam.edu.br |
1a0a1fd5e37633fcac71112aa9bb3ddeb694213a | b6b2ca395bbe0999f316b95597a77a1d727d98db | /monitor_center/mail_session.py | c05a6a22e812811aefa12347168addb0591c00a9 | [] | no_license | mad3310/falcon-agent | bbefa21fb2ab4be6f9861540a457cb5b20c38138 | deb4dade35dae2f4d77cd20319db49ab629b4f3c | refs/heads/master | 2021-06-28T20:52:46.205547 | 2016-10-18T07:03:35 | 2016-10-18T07:03:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | #coding=utf-8
import logging
import smtplib
import time
from datetime import datetime, timedelta
class _SMTPSession(object):
def __init__(self):
self.session = None
def connect(self, host, port, user='',
password='', duration=30,
tls=False):
self.host = host
... | [
"liujinliu@le.com"
] | liujinliu@le.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.