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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ee761b11e07110d68eb3c4614e71524ba94d1bc2 | 763d1e20041e418f02e215a929ed258f8ea18fc2 | /tag_manipulator.py | f10e1a8a5f5e47be1dbd55b0598b94ad8287bdd0 | [] | no_license | susnatadg/string-splitter | c1f88c9fa07a4172c066b211bfdc8a6a125d82a2 | aac851e994c51295a776a22214e9b6ba35e550b8 | refs/heads/main | 2023-06-30T22:16:57.261787 | 2021-07-28T15:37:38 | 2021-07-28T15:37:38 | 390,378,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | class TagManipulator():
#def parse_string(self, tags):
#result = []
#if len(tags) < 1 :
#return result
#preturn result
def parse_string(self, tags):
result = []
if len(tags) < 1 or tags == ",":
return result
result = tags... | [
"susnatadg@gmail.com"
] | susnatadg@gmail.com |
e5f2dc700e06c9c83226158065ea027d552e8f9a | 556db265723b0cc30ad2917442ed6dad92fd9044 | /tensorflow/python/autograph/impl/api.py | 1115318c610daf1cd97b2a404ad426a4608bbc6a | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | graphcore/tensorflow | c1669b489be0e045b3ec856b311b3139858de196 | 085b20a4b6287eff8c0b792425d52422ab8cbab3 | refs/heads/r2.6/sdk-release-3.2 | 2023-07-06T06:23:53.857743 | 2023-03-14T13:04:04 | 2023-03-14T13:48:43 | 162,717,602 | 84 | 17 | Apache-2.0 | 2023-03-25T01:13:37 | 2018-12-21T13:30:38 | C++ | UTF-8 | Python | false | false | 33,056 | py | # Copyright 2016 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
3c753feaa2a0c2fe2e024f82d299396190773d49 | 0a169a731771a3a0b1f5048ba41b9b59f7dd7578 | /school_absenteeism/settings/dev.py | e737935b2dbe37bfa05b9246232bffc60d393246 | [] | no_license | tobiasmcnulty/school_absenteeism | 0e6764499d0f8a0dec5f92ba72cae2bfb042bd72 | c245516bdf13b0927fb3f990eedd26dd09ed842a | refs/heads/master | 2020-04-06T06:43:38.668439 | 2014-10-23T01:46:48 | 2014-10-23T01:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import sys
from school_absenteeism.settings.base import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
INSTALLED_APPS += (
'debug_toolbar',
)
INTERNAL_IPS = ('127.0.0.1', )
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
SOUTH_TESTS_MIGRATE = True
CELERY_ALWAYS_EAGER = True
CELERY_EAGER_PROPAGATES_EX... | [
"tobias@caktusgroup.com"
] | tobias@caktusgroup.com |
a43b0db1168c6dc698144ebefb9b6966f766ef2c | b6bc17b7adb31ad4c80ad3aac03932a7a0ea1e69 | /mysite/mysite/settings.py | 7260dd368d3117307e485a35df0212103030d388 | [] | no_license | Kamol774/max-way-api | 63e9449692aa584b9aa1302fc3840a8f3d0aca1e | 958c82686d8a3c67c47174d734d01c1faaa690b7 | refs/heads/main | 2023-07-11T18:08:34.717756 | 2021-08-10T05:32:12 | 2021-08-10T05:32:12 | 393,254,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,523 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib ... | [
"chust1222@gmail.com"
] | chust1222@gmail.com |
2fec48570b2867b392932c3ecb2be8381659e2a5 | 6575009f163f4047044abf997bc6389dab7b9ede | /polls/urls.py | 560a36ea7d2a8d0428fcf0fcb85bbe79e0d4ac6b | [] | no_license | coryrgriffith/mysite | 53b829d17b0bf4a077391bf0847803578e2fb88e | 9e8b111806c0bdf7babf521ad6886ca54f7ca7b9 | refs/heads/master | 2020-03-29T17:50:28.196451 | 2018-09-25T15:47:45 | 2018-09-25T15:47:45 | 150,182,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
# # ex: /polls/
# path('', views.index, name='index'),
# # ex: /polls/5/
# # the 'name' value as called by the {% url %} template tag
# path('<int:question_id>/', views.detail, name='detail'),
# # ex: /polls/5/... | [
"corygriffith9@gmail.com"
] | corygriffith9@gmail.com |
d6a4767c0f1348bdeab1bec80e1b13ffb03190be | 36013ccb9a72f85e5eaf2f0d06b749b2701642dc | /conf.py | 2233bdfd3c3f8600f368f710a7d9ed01cf796010 | [] | no_license | contentmarketingautomation/contentmarketing | e6c4799156f6c0b23bc4f7d392cc6dc31e7ed0c4 | bdebd644df1fdae915714173c27e9bff62d6adc9 | refs/heads/master | 2021-06-25T08:58:38.066543 | 2019-11-08T05:59:16 | 2019-11-08T05:59:16 | 220,393,420 | 0 | 0 | null | 2021-03-29T20:57:55 | 2019-11-08T05:29:34 | JavaScript | UTF-8 | Python | false | false | 1,895 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"noreply@github.com"
] | noreply@github.com |
d70010594f7be4ba13074be16bb2722051de8375 | ac6d3076babeab12f3601ccb9d9deff196c88022 | /extendUser/UserAbstractBaseUser/accounts/urls.py | 719c541e0a36fa35f53fa3973319794ca35ed9a2 | [] | no_license | Moinkhan8439/Django-unleashed | 95d9cdfd862e14fca9e87c817d185332bafa8164 | 729c57f82e2f852a6a9d1d394f844dc3d238c283 | refs/heads/main | 2023-03-27T10:38:38.862984 | 2021-03-26T05:21:45 | 2021-03-26T05:21:45 | 348,972,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from django.urls import path
from .views import login,TeacherView,NormalUserView,all_mb
urlpatterns = [
path('login/',login),
path('teacher-register/',TeacherView.as_view(),name='teacher_register'),
path('normal-user-register/',NormalUserView.as_view(),name='normal_user_register'),
path('all-mb/',all_... | [
"moinkhan8439@gmail.com"
] | moinkhan8439@gmail.com |
b356dcb3f63d9429c49159d66a995e1973602e26 | 53e90091d10a2454e14a02ecc689e355ac2a7cc1 | /book/pylisting/code_stemmer_indexing.py | dfdae82f171252f3d61a071abec893db065ea0a1 | [] | no_license | dougalg/nltk.github.com | aac74cf03d17475adc177ac08691359cb1f4adb6 | 9a04ac5264f5ef08d87d6b920580c9160042f1a0 | refs/heads/master | 2020-12-07T17:15:15.894232 | 2014-04-21T14:11:17 | 2014-04-21T14:11:17 | 18,965,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # Natural Language Toolkit: code_stemmer_indexing
class IndexedText(object):
def __init__(self, stemmer, text):
self._text = text
self._stemmer = stemmer
self._index = nltk.Index((self._stem(word), i)
for (i, word) in enumerate(text))
def concordance(s... | [
"stevenbird1@gmail.com"
] | stevenbird1@gmail.com |
bf2bdb42b6618a874bea7a69332aef8708faac3e | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /xNxZx7DDr6BumJLaB_18.py | 8aa7e4f2ef2b69ac807c4f99c801cd1f3a29e0e7 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | """
**Mubashir** wants to remove numbers from a given string!
Help him by fixing the code in the code tab to pass this challenge. Look at
the examples below to get an idea of what the function should do.
### Examples
remove_numbers("mubashir1") ➞ "mubashir"
remove_numbers("12ma23tt") ➞ "matt"
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f5c9598ebd085c11f4096697b96cba4cf40b534d | e0da2f7a7e02fb29b9aa32d5480abf17dbcc0496 | /users/urls.py | 7e52bd74195f60869ef74368abe1465a56230bbc | [] | no_license | decemberfelic/Python--web- | d8194f880245c062e54827e5db7b0c00693b9ae9 | b1256beb7766c8ab94866f915b82e9279106fbb3 | refs/heads/master | 2020-07-16T09:29:30.957102 | 2018-05-07T04:13:56 | 2018-05-07T04:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # coding=utf-8
"""为应用程序users定义URL模式"""
from django.urls import re_path
from django.contrib.auth.views import login
from . import views
# 添加命名空间
app_name = 'users'
urlpatterns = [
# 登录页面
re_path(r'^login/$', login, {'template_name': 'users/login.html'}, name='login'),
# 注销
re_path(r'^logout/$', views.logout_view, ... | [
"248761724@qq.com"
] | 248761724@qq.com |
22b9c617a333f0820997c188219ab0230f75f0bb | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/tests/util/test_doc.py | c9b12b5c490713603c6c109debfbd33547c8c5b0 | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 1,582 | py | from textwrap import dedent
from pandas.util._decorators import doc
@doc(method="cumsum", operation="sum")
def cumsum(whatever):
"""
This is the {method} method.
It computes the cumulative {operation}.
"""
@doc(
cumsum,
dedent(
"""
Examples
------... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
6cb93e1e33fb782466744dfa64f0c55471b58a20 | 58cdfb3f1bcf2a705a740a3be6c5cd9c2e92d18d | /doyoulikeit/urls.py | 0bb0dea1183faae0b698dbddcec8f00550c62fe3 | [] | no_license | avengerpenguin/doyoulikeit | 892cd717523c724044ff9fbd6e04529ac64ffbbe | ed80e0143aea5957aba111c7b9dbf8fbafa9ba1f | refs/heads/master | 2022-11-06T04:47:49.171433 | 2021-09-23T07:00:43 | 2021-09-23T07:00:43 | 12,987,078 | 0 | 0 | null | 2022-10-13T16:54:04 | 2013-09-21T00:49:31 | Roff | UTF-8 | Python | false | false | 871 | py | from django.conf.urls import patterns, include, url
from . import views
from .models import Thing
from django.views.generic import TemplateView
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url... | [
"ross.fenning@gmail.com"
] | ross.fenning@gmail.com |
6b55305f610ee1cf1567404aad09ad74528708e0 | c7c4ac450c0150fa443ea879aab7e867c61ada73 | /contrib/linearize/linearize-data.py | 54421746f37bb40fc1b4ed0536e82b1de35a782e | [
"MIT"
] | permissive | randboy/BAYEMCOIN | 1a408701bcaf152f0f26ba988861c58b4956bbbc | d0f19e1e38a5bebeb9a7a230e1f0054134720250 | refs/heads/master | 2022-12-03T14:59:07.156104 | 2020-08-24T02:07:53 | 2020-08-24T02:07:53 | 289,723,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,132 | py | #!/usr/bin/env python3
#
# linearize-data.py: Construct a linear, no-fork version of the chain.
#
# Copyright (c) 2013-2016 The Bitcoin Core developers
# Copyright (c) 2017 The Ravencoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licens... | [
"root@vps-5c20fa9d.vps.ovh.net.novalocal"
] | root@vps-5c20fa9d.vps.ovh.net.novalocal |
1c8cf1ab215fe7a868659e59201fc3d827746d7c | d80a5f4a31e1a1cd1afb0ab3f71abf34cc771dfa | /mysite/myapi/migrations/0008_alter_empresa_codigo_postal.py | e5368011721ddcd5a770b6cb4c764ad7a10ef427 | [] | no_license | AlexLMCode/django-rest-uv | 25e7f8d3c4bebb8eb1797183090a4e1d6b46bc0a | d42006fc1ec07b6ee334079aea5aa15dc0e66014 | refs/heads/master | 2023-05-15T02:28:51.811856 | 2021-06-04T02:28:01 | 2021-06-04T02:28:01 | 369,564,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 3.2.3 on 2021-06-04 02:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapi', '0007_alter_empresa_numero'),
]
operations = [
migrations.AlterField(
model_name='empresa',
name='codigo_pos... | [
"alexlujanm@outlook.com"
] | alexlujanm@outlook.com |
1496f4e20eb8bd4117fbf6f91248ff6bc0e67fb0 | 9d3b264a75264a28bafa0d22889c0bf6c429bbf4 | /fluent_contents/tests/utils.py | 2d9bed0d2676c3d7b2df627df2b062d241e50491 | [
"Apache-2.0"
] | permissive | hexenxp14/django-fluent-contents | a799b3864c826edf9ed67f4132589f73a4cf7807 | 613a4cd51ac201b86adfd5434e08f9a56eebfa2d | refs/heads/master | 2020-12-30T19:22:42.340848 | 2014-10-30T12:41:13 | 2014-10-30T12:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,536 | py | from __future__ import print_function
from future.builtins import str
from functools import wraps
from django.conf import settings, UserSettingsHolder
from django.contrib.auth.models import User
from django.core.management import call_command
from django.contrib.sites.models import Site
from django.db.models import loa... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
f5dfb1fc8a8342c0edeb604529755957ee99fac2 | 594910d9e781d6d3c5b66da7eff130207d9c6187 | /raritycalc.py | cba2a01e47797f0bd094c775caa610b7453d3da5 | [] | no_license | gopidraxler/rarity-calc | 00bbd604b84e6ea3700e69a4b9a02c381c96df39 | b2bc0786c61e3962130afc9b832678aef61e11ef | refs/heads/main | 2023-08-01T17:09:04.696389 | 2021-09-22T16:07:42 | 2021-09-22T16:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,621 | py | import json
from os import stat
import xlsxwriter
from category import Category
from collection import Collection
from item import Item
collection = Collection()
# Loop over the json file and add items to collection and count them
input_file = "./goodboi.json"
#input_file = "../mondrians/MondrianNFT.io_Master_Metadat... | [
"johnwmurphy@gmail.com"
] | johnwmurphy@gmail.com |
2bbe287656c0e9eb6579f80e9e43e6a9663f4f51 | 4bf5f83a8e5cd4c3ee700569e4a6f07a87dd209c | /students/13th/hyungukkim/project_westagram/user/models.py | 2bf6fc0ee085860322a503e233755d2382c454b0 | [] | no_license | gledong12/westagram-backend | 6e066f4c741aa19df13224ba530b0d9f43a405f7 | 1842f065c599885ad5dcb9ec5fb267eaf3295872 | refs/heads/master | 2023-03-11T20:32:47.055525 | 2021-03-04T01:04:31 | 2021-03-04T01:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from django.db import models
class Account(models.Model):
name = models.CharField(max_length=45)
email = models.CharField(max_length=45)
phone = models.CharField(max_length=45)
password = models.CharField(max_length=200)
followers = models.IntegerField(default=0)
followees = models.IntegerField(def... | [
"lsheon93@gmail.com"
] | lsheon93@gmail.com |
4db4bbf4fc17b0f9835799068d0820a951eef5ea | b5ccf17a41575da2ccb5daf706873d4b91b9286e | /mysite/settings.py | 0086daaa4a9342cc50bad5e2756c4117e3b0a11b | [] | no_license | juca31416/my-first-blog | 2a4ac941060df261836cbeafa7ec89ed79bb5627 | 53e6912d7ed4ef6be2c158d8032fae23dc7add4e | refs/heads/master | 2020-03-18T15:24:33.298635 | 2018-05-30T04:57:17 | 2018-05-30T04:57:17 | 128,801,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,240 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.13.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"jgonzalez20@uabc.edu.mx"
] | jgonzalez20@uabc.edu.mx |
b0f162dd29c8dc3274793b9042d1df36ea30bd75 | 22be8de482b0d7b7a2c3a1fb3ac76337dd7e47e8 | /hello.py | da80edd6f6d6b292af6defe5304a6deaa3dd3704 | [] | no_license | ritzalam/flasky-book | 47c43d4dbdcb70b35a1541f93a7875c6b05d9c20 | ffdf527acb732e429a9204635b676b3e458e3017 | refs/heads/master | 2021-01-19T19:36:06.067365 | 2017-04-18T21:54:02 | 2017-04-18T21:54:02 | 88,427,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,754 | py | from flask import Flask, render_template, session, redirect, url_for, flash
from flask_script import Manager
from flask_bootstrap import Bootstrap
from flask_moment import Moment
from datetime import datetime
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators imp... | [
"ritzalam@gmail.com"
] | ritzalam@gmail.com |
3d738c3296b46eaaa83557034f9ac91fb147b366 | 18ffeb717d162c0abec7776f103e15666d3691eb | /eyantra/MAIN/new_trial1.py | f3ce57d42cbc44d87157e47e1451e755dca4e952 | [] | no_license | abhishekbalam/eyantra-2017 | 9c6e7c17ecbb3658180fceb23720fb224e394e05 | 4be54cd98446c291b69609eae53a4a11148ec7a6 | refs/heads/master | 2020-04-11T06:41:15.786637 | 2018-12-13T05:29:59 | 2018-12-13T05:29:59 | 161,588,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | import cv2
import numpy as np
import rectification1
import astar_test
import matching
import make_grid
import making_new_grids
low_black = 0
high_black = 115
cap = cv2.VideoCapture(1)
ret_no_use,img_no_use = cap.read()
ret_no_use1,img_no_use1 = cap.read()
ret_no_use2,img_no_use2 = cap.read()
ret_no_use3,img_no_use... | [
"abhishekbalam@gmail.com"
] | abhishekbalam@gmail.com |
3723478fd8c85596aacf7d7eb25dbfbbcdbcc7d7 | bb6bcc19922db5da3a9411e2dff07a0e10f6a760 | /Carriers/exec.py | 0b47eef168be3fa1e70eff50fad8677f61880687 | [] | no_license | sayali7242/Masters-Project | bc38f7fcadf7c14d595a02bf64ef8b24b83df62e | c344821feebff8b1073a5c6884c37607ef2f0b00 | refs/heads/master | 2023-03-04T20:03:08.939360 | 2021-02-09T23:23:07 | 2021-02-09T23:23:07 | 327,779,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import sys
import os
for file in os.listdir('../Spectral/Spectral_DS/ado1/'):
os.system('python3.8 carriers.py ' + '../Spectral/Spectral_DS/ado1/' + file + ' > ado_spectral_DS_OR/'+file)
| [
"sayali.patil@wustl.edu"
] | sayali.patil@wustl.edu |
921600d7d35a3b4d7f4c49b9fe64f82571c9513b | 1e520e5b81a20d6e09f3d08d48b88a0f3d7bb721 | /tests/test_attachment_service.py | 497ab2981f303ffb69ce94ab2e35040d95a13f99 | [] | no_license | slabko/notes | e8bb9394be93c99171612e4a0265de7a0c9efb6e | 9988eadac187886d8b02be6878e044287762cb06 | refs/heads/master | 2021-02-12T10:25:55.368190 | 2020-03-03T15:18:45 | 2020-03-03T15:18:45 | 244,585,995 | 1 | 1 | null | 2020-03-03T09:55:38 | 2020-03-03T08:51:11 | Python | UTF-8 | Python | false | false | 2,343 | py | import io
import os
import uuid
import notes.services.attachment_service
from unittest import mock
from notes.data.attachment import Attachment
register_attachment_target = 'notes.services.RegistryService.register_attachment'
get_file_id_target = 'notes.services.RegistryService.get_attachment_file_id'
get_files_target... | [
"Andrew Slabko"
] | Andrew Slabko |
ecd57c174d63bc4d1da3f7658dec011e4ef9e605 | c9e2cef77d186c728be3d65f22a7f2e9a433fc63 | /hw6_solution/ADT/stack.py | 5cb286ee6f57545eef904b4c7f97bb24373782f2 | [] | no_license | kabileva/Data-Structures-HWs | 9ec69518e59fd263ca2549746b668ac9d2eca3d0 | 3e064a7bcd04522d4f32462331b1604ce623b6a5 | refs/heads/master | 2020-04-18T03:11:44.609227 | 2019-01-23T13:42:17 | 2019-01-23T13:42:17 | 167,189,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | class Stack:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
def push(self, item):
self.items.append(item)
def pop(self):
return self.items.pop()
def top(self):
return self.items[len(self.items)-1]
def si... | [
"kate@MacBook-Pro.local"
] | kate@MacBook-Pro.local |
e20bf53d99926f415b413d3620b5470a84cc2a4e | 814f6b3dd0ad5f1089557ecbc70850a399f3abdd | /blogapp/migrations/0001_initial.py | c050b0d9e677affa0fd1977a9a1cd175fef32c2d | [] | no_license | gch02909/blogproject | e47e4cce03383d51ac66d6ad8aefb35e6389f7fd | d22c1eea817167ba671ed6273b92f38ea090bd38 | refs/heads/master | 2022-12-09T08:49:53.929157 | 2019-07-28T18:38:29 | 2019-07-28T18:38:29 | 190,013,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # Generated by Django 2.1.8 on 2019-07-08 14:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
('id', models.AutoField(aut... | [
"gch02909@naver.com"
] | gch02909@naver.com |
6772b7ed4fd66a7d9876b8663bbf74168b4d8b04 | 33b80305b944e37e262cbc7ec0e715b6fb0921b4 | /lib/roll_call_loader.py | 8bd6ea90423988379fa05279ae4c0befeb8755d9 | [] | no_license | philipfweiss/DivisivenessAnalyzer | 4a3e8f04e03ac3f705a80603dadc45d76867a1eb | ba7a62ad960178e3e607a6be13db241a5536e255 | refs/heads/master | 2020-04-04T08:44:31.644550 | 2018-12-09T18:53:53 | 2018-12-09T18:53:53 | 155,792,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,563 | py | import json
import collections
from Models import *
import pickle
call_uid_map = {}
issue_call_map = collections.defaultdict(list)
with open("HSall_rollcalls.json") as f: calls_json = f.read()
class VoteFileReader(object):
def __init__(self):
self.it = iter(open("HSall_votes.csv"))
self.next() # skip header lin... | [
"zhangbrianh@gmail.com"
] | zhangbrianh@gmail.com |
edd545822cb8c179156299690c439454d049022b | d7e4e5f0242ebc3e4e4b01fc87c43ad80b3ffc4d | /questions/__init__.py | 4c2c0c88d1c53650c3f00b446da640534f1b564c | [] | no_license | deto-5420/CuriousME | 14dab5721082742b1559118e5903c03670b74d47 | 1eb70860125cb377ad774b8fc61b77336395e562 | refs/heads/main | 2023-05-15T18:51:54.771137 | 2021-06-18T05:47:57 | 2021-06-18T05:47:57 | 339,981,072 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | default_app_config = 'questions.apps.QuestionsConfig' | [
"vipulgoel542000@gmail.com"
] | vipulgoel542000@gmail.com |
2cd1a3aee02fc7aea93ed6ed2048b5d58f70e9ed | 7e7433be9b25322a4cda3ad4bda0cb03551e4bc9 | /Aula10/bd/app.py | d5b0ee80c89359fa6d616dcb4a1b13fc6baf55a4 | [] | no_license | supredes/7377-PythonFundamentals | 4584f67861aaa2f26466d7c1859883b648f6db67 | 6825c3d1e5bdbe106ddb4b32aaa8090529ed7a27 | refs/heads/master | 2022-08-01T06:12:05.552777 | 2020-05-23T02:13:40 | 2020-05-23T02:13:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | ### sqlite
### DriverConexão ; interpretador do python conversar com o SGBD
import sqlite3
try:
conexao = sqlite3.connect('data/pessoa.db')
except Exception as err:
print('Erro ao conectar com o banco de dados')
else:
cursor = conexao.cursor()
nome = "Joana"
sobrenome = "Zanelato"
cpf ... | [
"guilherme.zanelato@4linux.com.br"
] | guilherme.zanelato@4linux.com.br |
fb5099c12dd0ab7461fcb6f6d0fe6ee0aec764c9 | ceea7cf70f61fb122bc4ac8769c1736eda90e3f6 | /page/page/cases/test_cuxiaoss.py | 0aadcf7b33853d4b7c6b6543d271709ef1f60644 | [] | no_license | tang-tao-shu/appzidonghua | 560d40ce40c53ef32c1d86becd67d5f98aa18057 | d2853c5850d8fd41d3db0d7e96946e7261a2e84c | refs/heads/master | 2023-02-01T04:28:01.766928 | 2020-12-21T14:59:14 | 2020-12-21T14:59:14 | 323,359,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | # -*- coding: utf-8 -*-
# @Time : 2020/12/14 16:21
# @Author : 唐涛
# @Email : 2410725336@qq.com
# @File : test_cuxiaoss.py
# @Project : page
from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
import unittest
class MyTest_A(unittest.TestCase):
def test_a(self):
... | [
"2410725336@qq.com"
] | 2410725336@qq.com |
770ce74eb1c3dd72e6970c7176ef55c8c1f1fbb3 | 5d8fce6db0ae0d090a8c6c55d7e04f3314126d9c | /tasks/multi_task/even_numbers.py | d838c66a1ef47f106f6062d4d73438657aa7b78c | [
"MIT-0"
] | permissive | johnolven/airflow-fargate | 3a42ad13458bb98cf31f0868cfcbd5c49017645c | 5721ea4f82e1a8276cffa3e728600c37cd78bde1 | refs/heads/main | 2023-05-23T17:41:16.388786 | 2021-07-10T18:18:52 | 2021-07-10T18:18:52 | 384,763,399 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from argparse import ArgumentParser
parser = ArgumentParser(description='Airflow Fargate Example')
parser.add_argument('number', help='number', type=int)
if __name__ == '__main__':
args = parser.parse_args()
number = args.number
print("Printing Even numbers in given range")
f = open("/shared-volu... | [
"jj.olvera.n@gmail.com"
] | jj.olvera.n@gmail.com |
c8d57ebf94491909e8f58e8708cfe7992471aa9b | f020af2e82114ba09544f432a3fa7e8e4dd102fa | /局部变量实验.py | 0187626ebfb90f3dadaef2beed7ea5b39c793c2a | [] | no_license | whoisme123/python-note | 63b6a0cc1601058a45ac7974ba900184d0d9d5b1 | e388baf7481f2e36a77a9e7de7d9535f87bd9653 | refs/heads/master | 2020-04-12T10:09:49.140412 | 2019-01-18T04:03:34 | 2019-01-18T04:03:34 | 162,421,030 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | '''
def spam():
egg = 23
ban()
print(egg)
def ban():
ham = 11
egg = 33
spam()
'''
'''
def spam():
egg = 'spam local '
print(egg)
def bacon():
egg = 'bacon local'
print(egg)
spam()
print(egg)
egg = 'zzz'
bacon()
print(egg)
'''
'''
def spam():
global eggs
eggs = 's... | [
"40683917+whoisme123@users.noreply.github.com"
] | 40683917+whoisme123@users.noreply.github.com |
7ec6b02a66a9b704b11ad3366a61d798ffc5ce9e | b5b8355e5b2f39156a77629c63c3e7871bf89fc1 | /tp5-Excepciones/4.py | 71cf5e944fcc69e5bca0f8750982a72ec81ac220 | [] | no_license | IanRivas/python-ejercicios | 60e0eff38c4c70c479c407cbe7553af2880cc031 | b38d960aa4b51c8a0ac4224e4c5fdc98b2506c50 | refs/heads/main | 2023-07-19T05:06:58.005398 | 2021-09-11T01:09:01 | 2021-09-11T01:09:01 | 398,145,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | '''
4. Todo programa Python es susceptible de ser interrumpido mediante la pulsación de las teclas Ctrl-C, lo que genera una excepción del tipo KeyboardInterrupt.
Reali-zar un programa para imprimir los números enteros entre 1 y 100000, y que solici-te confirmación al usuario antes de detenerse cuando se presione Ctrl-... | [
"rivas.ian.javier@gmail.com"
] | rivas.ian.javier@gmail.com |
5484f68590a722a846d3a4fc6e9de7bdcce843dc | 442fd2d9374979a965d7a832e456b4ae0fb1df6a | /Random/class8.py | 5403f9a34cda232dc0e3330e3b667e9cd849e42b | [] | no_license | KaustubhKishore/Python | e311451d0fdecb7a379ec19c0a292bc154c3de13 | 470df675151d19f68c11341d8577d86f6eef9325 | refs/heads/master | 2018-12-22T14:33:03.099976 | 2018-09-30T21:01:19 | 2018-09-30T21:01:19 | 105,849,681 | 0 | 1 | null | 2018-09-30T21:01:20 | 2017-10-05T04:35:11 | Python | UTF-8 | Python | false | false | 786 | py | #
# def printAsterisks(numb):
# if (numb>75):
# numb=75
# for i in range(numb):
# print '*',
#
# print '\n',numb,' asterisks (*) printed Successfully '
# x=input('Enter number of Asterisks to print: ')
# printAsterisks(x)
# home work
# Write a program to sort elements of a list ... | [
"noreply@github.com"
] | noreply@github.com |
a03856c6a302dd3f8566eefb552536db30894c35 | ace24fc831a3d0526ba7705a43d6de188b7274e0 | /Day 16/Day 16.py | c3d9968738997bb761ada29c53e76c257192cdb7 | [] | no_license | mdk44/AdventOfCode2018 | 08487a182bee6e148905cec6cc9998f757f8c534 | 69defe53838a4bafcf95346435421f874559ca35 | refs/heads/master | 2020-04-10T20:38:33.039199 | 2019-01-18T16:19:19 | 2019-01-18T16:19:19 | 161,274,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,537 | py | # Day 16
import re
input_file = 'Day 16\\Day 16 Input.txt'
input_file2 = 'Day 16\\Day 16 Input 2.txt'
text_file = open(input_file)
lines = text_file.read().split('\n')
text_file2 = open(input_file2)
lines2 = text_file2.read().split('\n')
def addr(before, instr):
new_after = list(before)
new_af... | [
"45779130+mdk44@users.noreply.github.com"
] | 45779130+mdk44@users.noreply.github.com |
b1bf853d8d3b7fd71de686100a600d46555171c6 | a755a17bdc2eb7c4b0532f0ac7abb1ddb10691f6 | /program to make a simple calculator.py | 20eca9356dd2314871198fe4f21e2be2064a59b0 | [] | no_license | khushboojain123/python-code | b5a1cc4c2dcecc17a8d179193746f91232e5c774 | 4e299befc79bdac29efcbad4d41afb15cf1e116a | refs/heads/master | 2021-07-09T06:21:56.035658 | 2017-10-04T18:27:34 | 2017-10-04T18:27:34 | 103,903,699 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | #program to make a simple calculator
#define function
def add(a,b):
"""this function add two number"""
return a+b
def sub(a,b):
"""this function substract two number"""
return a-b
def mul(a,b):
"""this function multiplies two numbers"""
return a*b
def div(a,b):
"""this function... | [
"noreply@github.com"
] | noreply@github.com |
f3eeb169926ab47aac07979a705960310a64415a | cc685f2e504dfe9d61c975c88a773185b15025e5 | /Method/mongodb.py | 17c1f5f47390cb997a80fa704ae8b3cabbe570ff | [] | no_license | Chris-Ju/InformationCollection | b93d67269c330b7ab6573d3be4d6ee005bcf0357 | d886ad06f3d21384e70d2217c9e5fca3a1ad3765 | refs/heads/master | 2020-05-31T06:43:13.966218 | 2020-04-02T02:33:56 | 2020-04-02T02:33:56 | 190,148,732 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | # -*- coding: utf-8 -*-
# Author: RTL
# Date: 2019.06.04
import pymongo
class db(object):
def __init__(self, host, port, database):
self.client = pymongo.MongoClient(host, port)
self.database = self.client[database]
def insert(self, collection, val):
try:
self.database[collection... | [
"chris-ju@qq.com"
] | chris-ju@qq.com |
70a824dc602babcc7b47b46b29f4ea48a88da041 | d414a642a2c5589f15229cdc42e811ea30aef105 | /superHyper/visualizer/forms.py | dee93b24209176397f074ff816885ad118531a54 | [] | no_license | AaronJaramillo/SoundCloudVisualizer | ec2b9414de8cfc41c8b4aa2eab0d85a7e53faf0f | 58afb68d65fbd81b0e0904009f8b97bd96ade233 | refs/heads/master | 2021-01-18T11:09:13.465681 | 2016-04-23T20:10:50 | 2016-04-23T20:10:50 | 56,624,103 | 0 | 0 | null | 2016-04-19T19:06:43 | 2016-04-19T19:06:43 | null | UTF-8 | Python | false | false | 188 | py | from django import forms
# from .models import
from .models import URL
class urlForm(forms.ModelForm):
class Meta:
model = URL
fields = [
"link",
] | [
"aajaramillo95@gmail.com"
] | aajaramillo95@gmail.com |
7f6038af767e1779c691a01c5838ef93949692f0 | 2beecbbcc8d3b21d6c536885dc10570bf20044bb | /week_four/media_clone/media_app/models.py | 9d3dc421e33c69a41301b3d6ba06b11aa7a32289 | [] | no_license | MTaylorfullStack/python_april | 05724dff121370f72b14beaf9737bcd39292111b | e15a496dc5ea3e0cb5f966000bfb7ad30c6bce28 | refs/heads/master | 2022-07-22T15:55:21.335557 | 2020-05-21T01:02:11 | 2020-05-21T01:02:11 | 255,476,577 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from django.db import models
class User(models.Model):
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Message_Post(models.Model):
message = models... | [
"mtaylor@codingdojo.com"
] | mtaylor@codingdojo.com |
51442bfb2590d8d6a4f090bf410636ac6cb31fbc | ce2be90916ee0f774bb9dd07a025bd9077d45db7 | /CollectiveIntelligence/chapter3/generatefeedvector.py | d92c066d82ccc71bf7bbeac70607a43fcff9be5e | [
"MIT"
] | permissive | YuHongJun/python-training | 57b47adbb6220b4085c7f4ede647a2c084ded29b | 6ffafe6c781f29315cf1bb08ea3cec6020f078cd | refs/heads/master | 2021-01-20T14:59:09.776454 | 2018-09-12T01:13:07 | 2018-09-12T01:13:07 | 90,700,179 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | import feedparser
import re
# Returns title and dictionary of word counts for an RSS feed
def getwordcounts(url):
# Parse the feed
d=feedparser.parse(url)
wc={}
# Loop over all the entries
for e in d.entries:
if 'summary' in e: summary=e.summary
else: summary=e.description
# Extract a list of w... | [
"demiyuhongjun@gmail.com"
] | demiyuhongjun@gmail.com |
2e53a0baa2b20989e47292d8c6f12fc7b20ae868 | 0e19acf5a47cd440426e951da828755b635f3083 | /Mahalanobis.py | fca81f8ea4c62f54d1449c2a5a239d7bb5a17029 | [] | no_license | tvanslyke/ImageProcessing | 01c38397deab9f010331e878f6089f139a7dcf38 | 1596c9a453950c982436833b155d43fd478884f1 | refs/heads/master | 2021-05-16T01:52:40.014505 | 2017-04-04T23:18:58 | 2017-04-04T23:18:58 | 76,093,490 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,463 | py | """
RUNNING THIS SCRIPT DIRECTLY WILL BARAGE YOU WITH 9 IMAGES/WINDOWS. YOU HAVE BEEN WARNED.
For MCC UAV club.
Contains functionality for finding mahalanobis distance of all pixels in an image
to the mean RGB-values of all the pixels.
Works very, VERY well as long as targets are a dif... | [
"vanslyke.t@husky.neu.edu"
] | vanslyke.t@husky.neu.edu |
41ccda1598fcf8a778f5a00ca6fbd75a12d6d760 | ebf22e11135f5a720a13c1aefe29ab5683bfb964 | /ordersapp/urls.py | 291f3c0c9fd18b43ef49b536e5bef8fba6c15d6a | [] | no_license | JustNekr/geekshop | 8a5eb8d8c5805ff2648c4966c8513abf6f214186 | ce453fd2cb539370b413095f9b38a0b4293f8ce5 | refs/heads/master | 2023-06-26T15:27:33.780392 | 2021-07-31T17:29:55 | 2021-07-31T17:29:55 | 385,965,136 | 0 | 0 | null | 2021-07-16T11:44:13 | 2021-07-14T14:15:21 | Python | UTF-8 | Python | false | false | 622 | py | import ordersapp.views as ordersapp
from django.urls import path
app_name = "ordersapp"
urlpatterns = [
path('', ordersapp.OrderList.as_view(), name='list'),
path('forming/complete/<int:pk>/', ordersapp.forming_complete, name='forming_complete'),
path('create/', ordersapp.OrderCreate.as_view(), name='crea... | [
"justnekr@gmail.com"
] | justnekr@gmail.com |
81d7c0b15b03f6fd57c59e9e2efe51c989c26b7f | dc3c88f1fe5c80147e4c52ee6ec3136307ec9702 | /copyPluginName/readMe_model.py | e68cca9deb5a4c208e6e7256e693996c1687b6a5 | [] | no_license | ypapax/all_sublime_plugins | 062f9b9992a093a02e6b905c1329c681c8532034 | 8b10e471233bd6c2e77907cf5569b0ddccfc88f9 | refs/heads/master | 2021-01-15T21:10:08.029750 | 2015-08-16T06:32:51 | 2015-08-16T06:32:51 | 40,391,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import re
import sys
sys.path.insert(0, '/Users/maks/Library/Application Support/Sublime Text 3/Packages/moveNearReplace')
import filer2
def read(self):
view = self.window.active_view()
filename = view.file_name()
data = filer2.read(filename)
return data
def windowPluginName(self):
data = read(self... | [
"maxYefr@gmail.com"
] | maxYefr@gmail.com |
0b2789398258eb907f1f60e5347bac23fc645586 | c523be0df07eab25eb41020dba3d48953945775d | /8.py | 1fae8567444b20151fbcd1cad90a57bd92dee607 | [] | no_license | deshwalmahesh/Project-Euler-Problems | 3c6dc835e4f7c830c829de9301ce96ad4b829107 | 8ae3cbfc26eb65efdb3e6216a62156d2ec8c0ead | refs/heads/master | 2020-06-04T19:11:44.485868 | 2019-06-16T06:41:06 | 2019-06-16T06:41:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | given='''73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231617318564030987111217223831136222989342338030813533627661428280644448664523874930358907296... | [
"noreply@github.com"
] | noreply@github.com |
2e20246429a61e4b84fbda012d9364cfc1d44647 | f9b38fefa4a764127ec0d84f6fd154e4e924222d | /algo_site/register/migrations/0001_initial.py | e01c875a6b9ca57ce94887561ea737dcf9fa04b7 | [] | no_license | FBPP/algo_site | ca31ce351b82a825010e67c69c0f120dcc9f0d98 | c4f9416998071127bf46681ee759962a944f20d8 | refs/heads/master | 2022-04-24T15:04:29.906385 | 2020-04-29T03:13:32 | 2020-04-29T03:13:32 | 255,195,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # Generated by Django 3.0.5 on 2020-04-05 07:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"pengcipaci@163.com"
] | pengcipaci@163.com |
8f41d0d2c7efcffac1e2ada36423635e266d6627 | bebc57f0581ffed5cb115937020e505bf1c2ca34 | /albumFotos/urls.py | 21d24773bd47e75f8c791818749064cdd02a9d7e | [] | no_license | Dark-Light-20/albumFotos | 47a981de35f7d1e42a3a3c4c095d7076372ad651 | bdc6d8e190d5a4d7007a3798fe725fb1927f2486 | refs/heads/master | 2020-05-21T19:01:26.218806 | 2019-06-01T02:51:00 | 2019-06-01T02:51:00 | 186,145,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | """albumFotos URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"sebastian.diaz@udenar.edu.co"
] | sebastian.diaz@udenar.edu.co |
945ac1cddede685edb803bc452c41434260615e4 | 0fb4b3b0a2e5eba0e97c796735d25ba49bb2c91e | /icassp/2021/run.py | 844fb3ea1cbc1c2f75c8891bb997cc02ff3185e6 | [
"MIT",
"Apache-2.0"
] | permissive | JeffpanUK/JeffpanUK.github.io | 166df3cfc5bd823540b5e869f85f38cd6ec671d1 | 9677b0b62287c7badb85db4ab7e81cd6ce203475 | refs/heads/master | 2021-06-02T19:22:09.662439 | 2020-10-20T10:09:34 | 2020-10-20T10:09:34 | 113,543,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#***********************************************
# Filename: run.py
# Author: Jeff Pan
# Email: panjunjie.jeff@bytedance.com
# Description: --
# Create: 2020-10-16 11:11:28
# Last Modified: 2020-10-16
#********************************************... | [
"panjunjie.jeff@bytedance.com"
] | panjunjie.jeff@bytedance.com |
b1d647931f2e74460c69ad3aa6fe69fd95aecb78 | bcf6ce160df0f6ea21dcc26d1812005f1e9750d6 | /Pràctiques/Uno/Practica_3/Clases/LinkedQueue.py | 1221a29166dcf772e75bf66f3ad4569b9fc623a7 | [] | no_license | pausanchezv/Estructura-de-dades-UB | 447d2797fada5f93e0a4f7c872478f6624af1e2a | 0a1e787309f7b267a528cc5ad8b6cbbb62dbc633 | refs/heads/master | 2021-05-14T15:01:12.978370 | 2018-01-02T06:35:09 | 2018-01-02T06:35:09 | 115,982,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | from LinkedList import *
class LinkedQueue(LinkedList):
''' Define a TDA Queque '''
def __init__(self):
LinkedList.__init__(self)
def enqueue(self, item):
self.insertLast(item)
def dequeue(self):
return self.removeFirst()
... | [
"noreply@github.com"
] | noreply@github.com |
4346489444cdc929ef4cbf646a290ff6bb17a126 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/tests/unittest_py/op/test_generate_proposals_op.py | e2f0d972640dd4077b6189d8870238550a6c648a | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | Python | false | false | 5,294 | py | # Copyright (c) 2021 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | noreply@github.com |
0214585b15539a071662c5a1083cd7f653a18a52 | ce3f034a486567bbc1e8c66cd06b4a5de1b4bf55 | /Retotecnico.py | e04f757efca19b2aaaafeb9a863f533eca7d4373 | [] | no_license | JeisonAndresR/SofkaRetotecnico | e90e44a2e025e86c313d95ed85f71d2fc1bc01f4 | ce1b6b0b6a8666683609e02ce95a9f8b2a123446 | refs/heads/main | 2023-06-19T02:48:32.306663 | 2021-07-19T02:11:40 | 2021-07-19T02:11:40 | 387,312,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,179 | py | import random
archivo=open("juegocarreras.txt", "w")
def datos():
print("Participantes juego de carreras ")
archivo=open("juegocarreras.txt", "r")
with open("juegocarreras.txt") as archivo:
for contenido in archivo:
print(contenido.rstrip())
archivo.close()
def agregar():... | [
"noreply@github.com"
] | noreply@github.com |
27f70ae2e37abda782a214ea22c6f744d786f2ed | 46585141d4c936fd1645222ea2dd69fbb2117f21 | /ppf-ex04/tax.py | d2d7193e0e57fa25d596631ab5b42b1b112c2ab9 | [] | no_license | cwavesoftware/python-ppf | 0da54627325d6f2c18787a991e6dd8d75ce5385d | cd4f76fa16c4894442abc72911934a1b99080ba8 | refs/heads/master | 2023-02-11T20:31:08.495622 | 2020-12-23T06:46:30 | 2020-12-23T06:46:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | tax = 0.2
#Your code here | [
"cosmin91ro@gmail.com"
] | cosmin91ro@gmail.com |
ee2b18f27b7a533e6b770f02e9be0a1931eb334b | 09eddacff62b12e89aa09c5c4ac67db8490b1eb3 | /mysite/settings.py | 3bdc615732ea76465707bd7df2c07349300f2f60 | [] | no_license | dy333/my-first-blog | 5c4a1ad28aa81bab3b3b24756c1086f92061ed07 | 55c4956d9f2c8afe61cfd1715506782a6b8e1b71 | refs/heads/master | 2021-05-26T11:19:05.016162 | 2020-04-08T14:04:48 | 2020-04-08T14:04:48 | 254,110,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.12.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"ise@example.com"
] | ise@example.com |
d1532846113fd793a655ada1dcd90a5391246a4d | 75a7dfe891e4f156b9c31b38cc667313e4577200 | /test/locators/header_buttons.py | f6527d90d736de495a1610b0f02dbf539019f35a | [] | no_license | prefabsprout/selenium_course | 46acac257480f17e402281680f43ddd6aa843ad5 | 6d17873064d6463f4342e4bd32ab771bc5578fab | refs/heads/master | 2023-06-14T18:49:04.796974 | 2021-07-12T15:42:30 | 2021-07-12T15:42:30 | 372,412,302 | 0 | 0 | null | 2021-06-23T21:43:50 | 2021-05-31T06:59:14 | Python | UTF-8 | Python | false | false | 622 | py | from selenium.webdriver.common.by import By
class HeaderButtons:
PROFILE_MENU_BUTTON = (By.CLASS_NAME, "uui-profile-menu")
LOGIN_BUTTON = (By.ID, "login-button")
HOME_BUTTON = (By.CSS_SELECTOR, ".uui-header .nav > li:nth-child(1) > a")
CONTACT_FORM_BUTTON = (By.CSS_SELECTOR, ".uui-header .nav > li:nth... | [
"stephenpetrosian@gmail.com"
] | stephenpetrosian@gmail.com |
7902e49a5df27303eec60da89c20f7aefa4c720d | 7db3916d8ac8a66a954d230e43bb74b37f81357c | /15day/06-用进程池创建进程.py | 8f6ee1c366d1b43c8dca4fa6d5a3c44a7a884afe | [] | no_license | 2001128/2_1805 | 2fc96bc6f8e2afcd9d4743891ecd87b754c28cc8 | b3d4bfab2703a7c6aa1c280669376efeab28cad1 | refs/heads/master | 2020-03-22T20:53:14.903808 | 2018-07-30T06:04:49 | 2018-07-30T06:04:49 | 140,639,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | from multiprocessing import Pool
import time
def work(msg):
for i in range(10):
time.sleep(1)
print("嘿嘿嘿%s"%msg)
p = Pool(3)#最大装3个进程
for i in range(6):
p.apply_async(work,(i,))#非阻塞
#p.apply(work,(i,))#阻塞
print("添加一个")
p.close()
p.join()
| [
"335775879@qq.com"
] | 335775879@qq.com |
d228df3da5e339b297372e7b4563d9d66128fd3b | ca4930618e848815509ce0acd2a1563898c26e27 | /task/__init__.py | 53c6b1374ad7f0a462ea4d8792f07f2b240df490 | [
"MIT"
] | permissive | cadu1996/Control-Lab | 67c413939957d75f64a583b9e7b3100361b4d42c | 4f45b6920525d8f423a606489e9c21cbcd60f4ea | refs/heads/master | 2020-04-25T07:02:24.049406 | 2019-06-13T00:11:38 | 2019-06-13T00:11:38 | 172,549,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | __all__ = ['AutoRun', 'Run']
| [
"carlos.eduardo.gba@gmail.com"
] | carlos.eduardo.gba@gmail.com |
94b5fb26affc4f181a5eebd4b261cbda1d9a8dd7 | 31885cdae8f1f6ee9047ab51e1f673d366ced4ff | /daemon.py | 5e90cca7ef5a069cea4e08899b5c54008b82b7d5 | [] | no_license | Mark-Hetherington/lan-data-logger | f14f8ecc3f541d0bdb41889794625d3b5e13e181 | f9bbaff2470b116a0a0060084c1d2014982f559c | refs/heads/master | 2021-01-10T16:21:56.239988 | 2016-04-14T04:44:56 | 2016-04-14T04:44:56 | 53,775,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,496 | py | #!/usr/bin/env python
import logging
import logging.handlers
import argparse
import os
import json
import cgi
#from os import curdir, sep
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import datetime
import config
# Define and parse command line arguments
parser = argparse.ArgumentParser(description="... | [
"mark@hethos.org"
] | mark@hethos.org |
4c5f939acd7ce243666553d243a0661345dd58fe | 6bc991e3db089dca9ac7a5716f2114017029c6a3 | /sppas/sppas/bin/alignment.py | 824e0e6612b3ee11ddd3be818873a6978d6ffcb5 | [
"GFDL-1.1-or-later",
"GPL-3.0-only",
"GPL-3.0-or-later",
"MIT"
] | permissive | mirfan899/MTTS | 8b32924754cf399147293d7e314b7fcb134f3f77 | 3167b65f576abcc27a8767d24c274a04712bd948 | refs/heads/master | 2020-06-11T20:59:03.788965 | 2019-10-09T12:34:02 | 2019-10-09T12:34:02 | 194,083,206 | 0 | 0 | MIT | 2019-06-27T11:30:30 | 2019-06-27T11:30:30 | null | UTF-8 | Python | false | false | 8,297 | py | #!/usr/bin/env python
"""
..
---------------------------------------------------------------------
___ __ __ __ ___
/ | \ | \ | \ / the automatic
\__ |__/ |__/ |___| \__ annotation and
\ | | | | \ ... | [
"virtuoso.irfan@gmail.com"
] | virtuoso.irfan@gmail.com |
1f4aad2c2d69a160a09c7115eb7a5c3b47a4a2d1 | ae9d1ceae7659d329ff912f97ab02ee65a67b054 | /model/ssd/ssd.py | c0aa409711fe4d5759e3deb165073046ffc090c0 | [] | no_license | noji0101/object-detection-app | d7522c905fd2ff98d6eb668c3d4178472b5047d2 | 3a1e95299709c4df47b8091a2e89b4789c8305dd | refs/heads/main | 2023-07-15T19:55:10.841776 | 2021-08-18T01:23:23 | 2021-08-18T01:23:23 | 397,140,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,090 | py | # パッケージのimport
import torch
import torch.nn as nn
import torch.nn.init as init
import torch.nn.functional as F
from itertools import product as product
from math import sqrt as sqrt
from model.detect import Detect
class SSD(nn.Module):
def __init__(self, phase, cfg):
super(SSD, self).__init__()
... | [
"noz.noz.34552@icloud.com"
] | noz.noz.34552@icloud.com |
150e1ecce6d314d4b5d5be0b64e9675ad9f868b2 | f339571243ee212c870a904014aabc8c78cce81a | /src/db/config.py | c48dee187220e78ccb8bfe04bda62d62c23a7574 | [] | no_license | Miavega/flask-framework | cc6b54c5a31be04de71f63af1a26c840e36d6f16 | f67d8b84f4ece0795b4b8a2361930d82d9af0d93 | refs/heads/master | 2020-06-02T06:08:51.779128 | 2019-06-10T03:09:56 | 2019-06-10T03:09:56 | 191,064,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from app import app
"""Importar ORM que desee utilizar, o bien cree uno en este archivo."""
from flask_sqlalchemy import SQLAlchemy
app.config["SQLALCHEMY_DATABASE_URI"] = "postgresql://postgres:miguelangel@localhost/PruebaFlask"
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db = SQLAlchemy(app)
app.secret_... | [
"miguel_9504@hotmail.com"
] | miguel_9504@hotmail.com |
d711b04956217dda83f8d47d7a2a5a5ee2d06a86 | 14e36010b98895e08bd9edfcbc60dce30cbfb82b | /oneflow/compatible_single_client_python/framework/local_blob.py | 8983fd0ce3ae9d403eddf84b197066a33689b23e | [
"Apache-2.0"
] | permissive | duzhanyuan/oneflow | a9719befbfe112a7e2dd0361ccbd6d71012958fb | c6b47a3e4c9b5f97f5bc9f60bc1401313adc32c5 | refs/heads/master | 2023-06-21T20:31:55.828179 | 2021-07-20T16:10:02 | 2021-07-20T16:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | noreply@github.com |
4053c19ac61c5add582b8569b696440666c260c7 | 57c2701c87093fae37611bace1941532a58e580a | /todo/settings.py | 9d23931e76a731aa9970b49e610d4943671e809e | [] | no_license | tim-calilao/todo | 697794e33cf05767fb4376e339a6ce5e913f1cd0 | f034b85492fa471f0e9c31ef66256a79000b8fac | refs/heads/master | 2021-01-11T02:23:03.562568 | 2016-10-15T06:37:38 | 2016-10-15T06:37:38 | 70,970,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,609 | py | """
Django settings for todo project.
Generated by 'django-admin startproject' using Django 1.10.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
#... | [
"calilao20@gmail.com"
] | calilao20@gmail.com |
7435b8ab7387e076be5f233ae5da1a9dc9a8929b | fb09c35c53c0f927a77c2fab297b2ce33db3dd5f | /txt_utils.py | 91f6776f384898b5a054409511e3a901a430608d | [] | no_license | TVSTFE/file_utils | 7ee18f6a40a9c99496067ebbbe5d98c198791cfa | cd74d9e6b3cc8e9d27e8cee835eec7906efa39f7 | refs/heads/master | 2020-09-23T16:07:03.099830 | 2019-12-03T05:29:16 | 2019-12-03T05:29:16 | 225,537,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,027 | py | '''
some utils about xml files and image files
author:Chenlin Zhou
time:2019/12/3
'''
import cv2
import shutil
import os
import xml.etree.ElementTree as ET
import numpy as np
class Txt_Utils(object):
def _init_(self):
#txt for reading or writting
self.imput_path = '/home/zcl/独立代码/train.txt'
... | [
"noreply@github.com"
] | noreply@github.com |
60f4317f06b40db9362ee145924634045e727923 | d3cac61f30d7a76eb61560ac54b0b8d11fd63a19 | /src/model/model.py | 33a6eee5e2b1a4916972b46a64914ee6f015bb93 | [
"MIT"
] | permissive | Lukeeeeee/FISDNN | a676f7f73b8f7b54386054daf320b6a683d89b02 | 49361770fe987337b16a296c00cfd6562a7e95ed | refs/heads/master | 2021-08-24T00:59:46.587476 | 2017-12-07T10:32:58 | 2017-12-07T10:32:58 | 113,009,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import tensorflow as tf
class Model(object):
standard_key_list = []
def __init__(self, config, sess_flag=False, data=None):
self.config = config
self.data = data
self.net = None
if sess_flag is True:
self.sess = tf.InteractiveSession()
def create_model(self, *... | [
"lukedong123@gmail.com"
] | lukedong123@gmail.com |
0b352f1ced73b8ed1635f69d5b20ad432bf0ae19 | 8f5f84cddd2a80b13e5cd2b163cafb30917f1d39 | /dnsrewrite.py | 82edbe7d2a6a79dade29ffc94a7889ce81af095d | [] | no_license | MaKess/dnsrewrite | edaebd832c575d84f677d976233246b99c85c272 | 548878df239ff07e9881a520782080f171d942f6 | refs/heads/master | 2022-04-17T15:10:53.251223 | 2020-04-18T12:16:51 | 2020-04-18T12:16:51 | 256,743,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,219 | py | #!/usr/bin/env python3
from socketserver import BaseRequestHandler, UDPServer
from ipaddress import IPv4Address, IPv6Address
import socket
from struct import unpack_from, pack, pack_into
import argparse
import sys
class domain(object):
def __init__(self, labels):
self.labels = labels
def __str__(self... | [
"martin@moegger.de"
] | martin@moegger.de |
958facbd6eaa83753f84814a9644d3f62d9e28f8 | 6af09fda01c13bc7ef9b940feb687cd7b738f810 | /Rascunhos/05 - Interagindo com o painel/06_update_graph_2.py | 7d2993c8595a63f34febd2d2ec8564becb0a3fae | [] | no_license | twpinter/Plotly-Dashboards-with-Dash | 18c536acd879922a2209170e51ba7544f0b3beec | fa334b54c8da7a17030d9d0f48833a978f704ff3 | refs/heads/master | 2022-11-25T17:21:05.000481 | 2020-08-07T02:39:31 | 2020-08-07T02:39:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objs as go
import pandas as pd
from numpy import random
from dash.dependencies import Input, Output
app = dash.Dash()
df = pd.read_csv('../mpg.csv')
# se quiser fazer os valores de lançamento dos carros parecerem
# ... | [
"kallilaraujo@gmail.com"
] | kallilaraujo@gmail.com |
851f182f4e8fd3a5a29ab28134a076b696039ae6 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-823.py | d21cebeaf029e04de343a5b0650c3a2f5c83733c | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,998 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
e1a03202a52532553b603892336e78105c19f48b | 22f43328913661a361692f4179843f4a19ab704e | /test.py | ada8936a1366b1285c02cd74cec6c1de94f11670 | [] | no_license | caitinggui/keyword | 7a3506007c9e2defb655ddefeda3055b1de1d5e9 | 6e77bf00d8404dcbee8b168e95974482869fa650 | refs/heads/master | 2021-09-01T18:54:26.109241 | 2017-12-28T10:06:24 | 2017-12-28T10:06:24 | 114,585,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | #-*- encoding:utf-8 -*-
from __future__ import print_function
import sys
import os
import logging
logging.basicConfig(
level=logging.DEBUG,
format='%(asctime)s %(filename)s %(funcName)s[line:%(lineno)d]%(levelname)s %(message)s'
)
logger = logging.getLogger(__name__)
path = os.path.dirname(os.path.abspath(__... | [
"1029645297@qq.com"
] | 1029645297@qq.com |
2ff91ecca732fa0fdd0488c745e4a152adb3b6d4 | ff349a301c6c261bbaed6b207a29413be1efb9ef | /labs/lab2/homework/thongke.py | 2f68abf3288308d648c36905209b7f21693d1659 | [] | no_license | maiyeu97/nguyenduyhoang-fundermental-c4e14 | 955c48dc195df6edf071fb8797931768a84a52fc | 4ab42e9a36b841215a8da20ca2933375f4f1598e | refs/heads/master | 2020-03-15T23:42:32.624930 | 2018-05-07T02:58:25 | 2018-05-07T02:58:25 | 112,141,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
import pyexcel
| [
"hoangnd@sphinx-software.com"
] | hoangnd@sphinx-software.com |
0fa6d323ecba0a3ae710060631fe263764f2e50e | 749c9c94378afce8c9f705dc17d8984cff4b51db | /go.py | 94d40d0815bf7c2b9f8ab425d51412cf1b901634 | [] | no_license | ygl-rg/rxgv1rpi | 8d3bf68a8f1baefae1443b6bb31441bddfeee279 | 2f002e4f493e53bab1b9004c02dd544e117b70ca | refs/heads/master | 2020-04-22T15:31:39.332681 | 2019-03-06T05:28:05 | 2019-03-06T05:28:05 | 170,480,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | import sys
from twisted.internet import reactor, defer
from twisted.python import log, logfile
import beat_tasks
import web_app
import settings
import api_core
import xy_lib
def InitWebService():
reactor.listenTCP(settings.HTTP_PORT, web_app.App())
async def Init():
await api_core.BizDB.Init(... | [
"roundgis@roundgis.com"
] | roundgis@roundgis.com |
c3dff196bc3806490b13aa49588477db563de8d6 | be840bcc886aa981bd287ed507ba0a604f4ca9a7 | /otherwebsites/twist.moe/animepahe/scrapepy/api.py | 4af03ed45f1e6c807fdc4525af9a6a0cefcc17e5 | [] | no_license | SrikarMannepalli/Myanimewebsite | effdd038e8cfdea69ec4d673d91c09ac4a1ca722 | 0c8d4e70f92b581a54839356ce5b4e4e01223c0e | refs/heads/master | 2020-04-03T07:31:33.359485 | 2018-07-25T15:27:34 | 2018-07-25T15:27:34 | 155,105,359 | 0 | 0 | null | 2018-10-28T19:02:51 | 2018-10-28T19:02:51 | null | UTF-8 | Python | false | false | 1,244 | py | #THIS FILE IS TO GENERATE A LOCAL DATA BASE FROM HTTPS://ANIMEPAHE.COM
#Argument id NEEDED
#from urllib.request import urlopen as ureq
from bs4 import BeautifulSoup as soup
import sqlite3, time, sys
import json
import requests
#curl -s https://animepahe.com/anime/$slug | grep 'getJSON' | cut -d "'" -f2 | cut -d "&" ... | [
"phanirithvij20003@gmail.com"
] | phanirithvij20003@gmail.com |
9cb2f1bdd1bdc428bbeab2a4bcd011661e134f04 | bad44a92fb338260f9c077689d7fa5472526c3fe | /models/tensorflow/google_bert/optimization_test.py | 4f2dcf133f1bc4d4531fc9b82432d149be054b21 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/nnfusion | ebc4c06331b8e93dbf5e176e5ecd3382e322ff21 | bd4f6feed217a43c9ee9be16f02fa8529953579a | refs/heads/main | 2023-08-25T17:41:37.517769 | 2022-09-16T05:59:01 | 2022-09-16T05:59:01 | 252,069,995 | 872 | 157 | MIT | 2023-07-19T03:06:21 | 2020-04-01T04:15:38 | C++ | UTF-8 | Python | false | false | 1,721 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# 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 ... | [
"noreply@github.com"
] | noreply@github.com |
6ab8eb635da3f2991cdb1382a551bbcd5eab15a4 | 36443d074cdf8bdabd5f745621ae28dff74c19bf | /Ciclo_while_ascendente.py | d6555d66ae9d0daa8b35796d6c9ebe95ff155960 | [] | no_license | Francisco-May/estudioPython | daadca9ac0423b4aada939df3ae6ff370045a409 | f72a4f79647a0d130bd993ff406e6e7c9e5bbfa5 | refs/heads/master | 2023-04-20T17:12:24.445832 | 2021-04-28T06:17:48 | 2021-04-28T06:17:48 | 362,357,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | #Genere los n primeros numero de forma ascendente
n=int(input('Ingrese un numero: '))
i=1
while i<=n:
print(i)
i=i+1 | [
"francsicomiguelmaysalazar@outlook.com"
] | francsicomiguelmaysalazar@outlook.com |
9ae41ce6ff29732f63c8add5ce795a8288aa40b9 | 4a74d015f7037c697e86bc3b99182c4adab76fb9 | /worldcreator/请求百度.py | 517cf2df9b09798bfbe34164f31a1686ab552f5f | [] | no_license | Hanlen520/Daxiang | d0468b691201dd8a13a86412b925de91412f989d | be30199c37eedd74b374ff8ac3f0e179221ad2a2 | refs/heads/master | 2023-03-15T19:36:29.875207 | 2019-12-07T06:09:14 | 2019-12-07T06:09:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | import requests
import unittest
# noinspection PyUnresolvedReferences
import json
class login(unittest.TestCase):
def setUp(self):
self.base_url='http://worldcreator.ksmobile.com/v1/getToken'
def test_get_sucess(self):
datalist={'dID':'b727bea5b9f26b859892cd1898e4cb33'
}
... | [
"liujiashun@cmcm.com"
] | liujiashun@cmcm.com |
6401d8cecd646d4a90bf3898755822c3665abd93 | 84defbccb61e70de74256fea7907715150f00e43 | /src/genie/libs/parser/iosxe/ping.py | 5813896b7fa90e6dbe5d992fce2f332da0abf2f1 | [
"Apache-2.0"
] | permissive | jamesditrapani/genieparser | 47f186764f5d090e8819134bd957202c1cd26c32 | d2c2f7e863889f323604c35ded767ca1d902055b | refs/heads/master | 2023-02-27T04:58:30.072015 | 2021-02-07T08:25:33 | 2021-02-07T08:25:33 | 293,441,813 | 0 | 0 | Apache-2.0 | 2020-10-20T12:26:35 | 2020-09-07T06:30:37 | null | UTF-8 | Python | false | false | 4,401 | py | """ping.py
IOSXE parsers for the following show commands:
* ping {addr} source {source} repeat {count}
"""
# Python
import re
# Metaparser
from genie.metaparser import MetaParser
from genie.metaparser.util.schemaengine import (Any,
Optional, Use, SchemaTypeError, Schema)
class PingSchema(MetaParser):
... | [
"thomryan@cisco.com"
] | thomryan@cisco.com |
5888852ec3e3e1d101f522c7c6c47c44232f364a | 11f3a72927b6222c6d4673d91d5086608472ebbb | /POSIX-logging-test.py | 1f2c8c0a4c127d10af3545b9767ef79b364e6ab9 | [
"MIT",
"Apache-2.0"
] | permissive | sc-perth/certbot_borked | 614ca043ab8e00785ff58159c41ad5d10c5b27f9 | cf4e4cf70459320b2b8e78edbc893a267bf7e7c7 | refs/heads/sc-perth | 2022-10-19T23:45:33.466103 | 2016-12-06T03:01:49 | 2016-12-06T03:01:49 | 71,715,789 | 1 | 1 | NOASSERTION | 2022-10-11T07:24:40 | 2016-10-23T16:42:30 | Python | UTF-8 | Python | false | false | 5,252 | py | import logging
import logging.handlers
import time
import syslog
logger = logging.getLogger("sc-perth_log-test")
# Changed from file_fmt to be more clear
logfile_fmt = "%(processName)s[%(process)s]: %(levelname)s:%(name)s:%(message)s"
fallback_logfile_fmt = "%(asctime)s:%(levelname)s:%(name)s:%(message)s"
# Changed f... | [
"perth@semicosmic.net"
] | perth@semicosmic.net |
5075a7d8be793394237a0ad715b73d532c8c67bc | ab8938360860741518b71e2dbeffaa1b151b95b2 | /venv/bin/pip3.6 | 1d42bedac6c9377d5acbf8c79e3049570d3aa92e | [] | no_license | AndrzejBaldys/rename | 3917a4cb01e36e8dd2dc32df690671810cb8a9aa | 8cfac5d4469106202943aa1f1ec6d59ef6d59870 | refs/heads/master | 2020-04-17T23:21:51.296136 | 2019-01-23T19:55:09 | 2019-01-23T19:55:09 | 167,032,072 | 0 | 0 | null | 2019-01-23T19:55:10 | 2019-01-22T16:56:34 | Python | UTF-8 | Python | false | false | 406 | 6 | #!/home/python/PycharmProjects/rename/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
s... | [
"andrzejbaldys1990@gmail.com"
] | andrzejbaldys1990@gmail.com |
b7ea03ae62967be8a403feff03d2727dc9e82db9 | 128e729b8ea7dd4b28856b46893a6f8d68d5e431 | /Python/Pluralsight/PythonBeyondTheBasics/OrganizingLargerPrograms/level1/level2/reader.py | fbd006375a01fb3ece98d76f8c87af1b2db009f2 | [] | no_license | sumaneshm/Code | 7c47484657a6592686d9bdd6100d9223cca84624 | 323485fd378386a38a794c0d5bbc556dfb169805 | refs/heads/master | 2023-04-07T21:31:01.293796 | 2023-03-26T03:59:46 | 2023-03-26T03:59:46 | 86,908,839 | 1 | 0 | null | 2023-03-03T00:49:34 | 2017-04-01T11:26:19 | C# | UTF-8 | Python | false | false | 1,056 | py | import os
# note that we have to refer to the complete package name to include modules
# even if this class is inside that package
from level2.compressed import bzipped
from level2.compressed import gzipped
extension_map = {
'.bz2': bzipped.opener,
'.gz': gzipped.opener
}
class Reader:
def __init__(self,... | [
"sumaneshm@yahoo.com"
] | sumaneshm@yahoo.com |
cc76c576e007bec2645142f15f9eff4adb921274 | 052fc88d66c751f5c390cc3ef40ff44f131650d3 | /dataloaders/data.py | 880a03d6ce2594574f1b4839e7686f65cc08bb9e | [] | no_license | 0liliulei/Mem3D | f69931cd266b14580db41eb4fd67cff2cc7a0360 | 583d689d9347a719a62e5ba2887f3d5178c351fe | refs/heads/main | 2023-07-24T21:37:11.030086 | 2022-09-22T15:27:31 | 2022-09-22T15:27:31 | 378,098,983 | 20 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,363 | py | import torch
import os
import math
import cv2
import numpy as np
import torch
import json
import random
import pickle
from PIL import Image
from torch.utils.data import Dataset
DATA_CONTAINER = {}
ROOT = 'data'
MAX_TRAINING_OBJ = 1
MAX_TRAINING_SKIP = 5
def multibatch_collate_fn(batch):
min_time = min([sample[... | [
"liliulei252@foxmail.com"
] | liliulei252@foxmail.com |
65d4ad17eadcfadf2de0e616f9d3cd0a2e570441 | be62543dd622d67d7aee05d87c945cda19602774 | /11 grocery list app.py | 213182753f2db4aef375cf6c9e0c64b5f5700846 | [] | no_license | prathmesh2606/prathmesh2606 | df0c9a6afa9e9680875989af713b92f28c148e99 | e154d705a9d4e04e2300cd3a53f2dccbc9330285 | refs/heads/master | 2022-11-11T17:23:49.488552 | 2020-07-06T12:09:17 | 2020-07-06T12:09:17 | 277,525,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | #Grocery list App
import datetime
time = datetime.datetime.now()
#welcome Screen
print("\t\t\tWelcome to the Grocery List App.")
print("Current Date and Time: ",time)
grocery = ["Meat", "Cheese"]
print("You currently have Meat and Cheese in your list.")
#Input from users
grocery.append(input("\nType of fo... | [
"noreply@github.com"
] | noreply@github.com |
0c6138582ad830d37791fb5026a991d34c2b481e | 37f488aa42e043a07ce4a706319844d932f1cd22 | /train/train3.py | e8e8d4cf43696eb231725ffaf49020f827e66eed | [
"Apache-2.0"
] | permissive | almoslmi/e2e_EL_multilingual_experiments | b149f8a4769a127d0e257f7889929eb3e922080f | a52745435f897d8ed5847d80e8bbce4175fb348f | refs/heads/master | 2020-06-17T22:39:03.406241 | 2019-06-20T04:50:17 | 2019-06-20T04:50:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | from data_generator import load_data3, generate_wiki
from keras.layers import Input, Dense, Dropout, concatenate
from keras.models import Model
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint
def build_model(sentdim=1024, entdim=100, gramdim=1024):
in1 = Input(shape=(sentdim, ))
... | [
"shun.sugiyama@jp21.com"
] | shun.sugiyama@jp21.com |
03f1e8560431f25fac102158672d40ee76bd4801 | 3e56603109198dccc6ab4e56f22498f5fd280f8e | /portfo/urls.py | 35fc043cc1ab4c67ca62a962ee038dcca9c9b9b6 | [] | no_license | Grelad/portfo | 6987d99ddfb6414b5a5914c85028724d6cd19f5d | 1d89ebfaf79c88097dfbb89909494510aa5618e0 | refs/heads/master | 2023-05-02T22:27:22.944229 | 2021-05-05T07:18:26 | 2021-05-05T07:18:26 | 364,061,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | """portfo URL Configuration"""
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('portfo.apps.accounts.urls')),
path('accounts/', incl... | [
"grechenenko@gmail.com"
] | grechenenko@gmail.com |
106644ecf82188802ba3eac0dfe259333734367c | 6a2a7be084aa38803f7ca7a6623e169909c67cfd | /PYTHON/6.00.1X/urlrequest.py | 22e46c5cabddd7817e507923c46aae926760236d | [] | no_license | Paeans/CodeAnywhere | f97c26062456fbc2b3ff65941f927a3faa630a33 | acd354e337498b1327bc9694c4c23264740f7e43 | refs/heads/master | 2021-01-10T16:03:13.731939 | 2017-04-19T04:13:26 | 2017-04-19T04:13:26 | 36,888,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import urllib2
import urllib
def URLRequest(url, params, method="GET"):
data = urllib.urlencode(params)
if method == "POST":
return urllib2.Request(url, data)
else:
return urllib2.Request(url + "?" + data)
paramstr = ''
f = open('file.name', 'r')
for line in f:
paramstr += line
f.clos... | [
"paeans@gmail.com"
] | paeans@gmail.com |
f1629890cb41cf63d385ff4525caec9e3678951b | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/word-count/4633f41ce11c4f3db40f1cfe10da8a7c.py | 7c016a0265697b750d833f5b89770e6f4100a444 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 355 | py | import string
def stripPunc(x): # From S.Lott's solution
for i in string.punctuation:
x = x.replace(i,"")
while " " in x:
x = x[0:x.find(" ")] + x[(x.find(" ") + 1):]
return x
def word_count(x):
words = {}
for i in stripPunc(x).lower().split(" "):
if i in words:
words[i] += 1
el... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
b36e41f808b782aab99d458eea400cd60244c034 | 88dbbb7ea7c5fde6e30025f9951d89069884e265 | /list_learn/targil3.py | 315a03000a25f5a5490e11fe70e4f53c52547cfa | [] | no_license | yustshachar/pythonProject1 | 8b85ab87f845e43e2731633652637bd3fa509aee | 0017284c895dd87b6816b3aec9a06da8a88c474b | refs/heads/master | 2023-04-10T05:02:38.621865 | 2021-04-26T16:12:47 | 2021-04-26T16:12:47 | 360,144,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py |
list1=[1,2,3,4,5,6,7,8,9,10]
list2=list1[-3:]
print(list2)
print(list1[-1::-1])
print(list1[2::2])
list3=list1[:5]
print(list3)
print(list1[1::2])
num=int(input("enter number: "))
# list1[7:]=[num]
# print(list1)
list1[-3:]=[num]
print(list1) | [
"yustshachar@gmail.com"
] | yustshachar@gmail.com |
9eceb2d94282e478399ac203447e9de1fc88b259 | 332212a813481afc081a0274b6633bfe042d7171 | /Algorithm/Code03-01.py | b613fb0212da1eedf9a2a3a63763e7557398d915 | [] | no_license | ally1003/TIL | e57c27a11d0550f9ecc64dec52501669391171c1 | c00e64bb0676e78925fb75a62ad07274c052740a | refs/heads/master | 2023-07-05T09:53:39.361519 | 2021-08-07T08:35:48 | 2021-08-07T08:35:48 | 373,744,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | katok = [] # 빈 배열
def add_data(friend):
katok.append(None)
kLen = len(katok)
katok[kLen - 1] = friend
add_data('다현')
add_data('정연')
add_data('쯔위')
add_data('사나')
add_data('지효')
print(katok)
| [
"noreply@github.com"
] | noreply@github.com |
d853c02b3c2f2ab16f6a52cad33a9d85e6453b4a | 2ed260d661f24b96cd465f90692a1dfb0e17d387 | /share/seeds/generate-seeds.py | b09575a132ebb2f80f01e9dc04e6c94e268f8aa7 | [
"MIT"
] | permissive | CryptoAxl/dimecoin | 5acbe1e260e05b6c42963676796db82d606ae149 | d40c3f50de6cbce230dbd610fe34dc4751451e6d | refs/heads/master | 2021-06-14T23:54:20.755847 | 2021-03-17T00:08:18 | 2021-03-17T00:08:18 | 156,613,956 | 0 | 0 | MIT | 2018-11-07T22:00:57 | 2018-11-07T22:00:56 | null | UTF-8 | Python | false | false | 4,298 | py | #!/usr/bin/python
# Copyright (c) 2014 Wladmir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the directory that... | [
"netalex80@gmail.com"
] | netalex80@gmail.com |
b0abb004c23a6350f7f0166fc2b70f45c3dbcd5c | f0dc4cf03eb755c24adaff28887d601ec905c25f | /caffe-tools/examples/cifar10.py | 3d95578592fc3b69417f9497c5738f616f95c7b9 | [] | no_license | lovie123/FaceShaping | ead5e9c6e188fc812080f8e1d049e0b6a6c49de4 | 85a205dd3266fea80ef62ca528542e363e3cf98e | refs/heads/master | 2020-03-20T01:24:56.447373 | 2018-06-12T15:21:43 | 2018-06-12T15:21:43 | 137,075,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,207 | py | """
Example for classification on Cifar10 [1]
.. code-block:: python
[1] A. Krizhevsky.
Learning Multiple Layers of Features from Tiny Images.
2009.
**Note: the LMDBs can also be found in the data repository, see README.**
Use ``caffe/data/cifar10/get_cifar10.sh`` to download Cifar10 and
``caff... | [
"loview@nvidia.com"
] | loview@nvidia.com |
58926b1c329de3e429b35cfb59323836e1d2a6a4 | 8f96faf9eb17ee5ae3b16e0c44f05d140152640b | /les_4/les_4_task_1.py | 5430d6e38b05033b5320b735b7223e6f84c96324 | [] | no_license | damkh/gb_py_parcing_2020-09-01 | f8adca34f70e521f7b0ef6314da5852db7f0c18f | e84e30a1dabc6774e4411546474672115b9182cd | refs/heads/master | 2022-12-24T03:00:45.635623 | 2020-09-30T03:51:05 | 2020-09-30T03:51:05 | 292,457,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,358 | py | """
Написать приложение, которое собирает основные новости с сайтов mail.ru, lenta.ru, yandex-новости.
Для парсинга использовать XPath. Структура данных должна содержать:
- название источника;
- наименование новости;
- ссылку на новость;
- дата публикации.
"""
from pprint import pprint
from lxml import html
import req... | [
"18482283+damkh@users.noreply.github.com"
] | 18482283+damkh@users.noreply.github.com |
446a1fa63901e71efef8e05a83630c45245b7ea4 | 759eba5b31d525638f66bd65dc14316c8a8e9806 | /venv/bin/pyrsa-verify | b2c5cc1cb2be23b00153813089a00b4e24f0cf7d | [
"MIT"
] | permissive | ajit-777/mlops_main | d56f093bb91306d908c6a31be29787f675f4ad7e | 1c49548f5fe20ad9667fdc4ad2c91c694fa61d82 | refs/heads/main | 2023-03-22T16:18:31.201863 | 2021-03-17T03:35:24 | 2021-03-17T03:35:24 | 348,569,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/Users/ajitbantia/Documents/workspace/Python_1/MLOPS/mlops_main/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import verify
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(verify())
| [
"ajitbantia@MacBook-Pro-3.local"
] | ajitbantia@MacBook-Pro-3.local | |
9d45c7ac1d31dcdc4b7a018c9ea7c272e9ce58b4 | 2c3da6e0bddf55d64d650040bbf286c47b31811a | /学习路线/1.python基础/day12/03-自定义异常.py | bd4172eec5c4d550a58d35d8fc6cc71179cba149 | [
"MIT"
] | permissive | Bngzifei/PythonNotes | 76bd53db3033a9c51ab4bdd727842cd89607b584 | 01590e1b6c1bc0f04aa2d355fa2553c04cce27f2 | refs/heads/master | 2023-02-04T06:49:00.725463 | 2020-12-15T09:26:40 | 2020-12-15T09:26:40 | 155,154,662 | 1 | 2 | MIT | 2020-09-08T01:30:19 | 2018-10-29T05:02:48 | Python | UTF-8 | Python | false | false | 1,938 | py | """
异常抛出的原理:
raise: 关键字 抛出 表示抛出指定的异常实例对象
raise 抛出异常的实例对象,然后except去拦截这个异常实例对象.
能不能拦截:是要看这个错误是不是这个错误的类创建的.
拦截:判断是不是同一个类造出来的,是,就把这个异常实例对象赋值给error.
先抛出来才能拦截.
自定义异常:不用解释器提供异常类.
1> 让异常信息是中文的,让用户也能看懂.更加人性化
2> 提前干预,还没有出错之前就来对问题进行处理.
3> 简化异常处理的流程,批量抛出,一次拦截.
注意: 自定义异常类必须继承Exception类,是为了使用raise的能力.否则会报错误.
"""
# try:
#... | [
"bngzifei@gmail.com"
] | bngzifei@gmail.com |
3acf4e7c0a1d9229123d0246516ee9b90f9c7d65 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_2239+043/sdB_PG_2239+043_coadd.py | 8fd4cff041120c8922b19c408c25702306753147 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[339.639,4.857103], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_PG_2239+043/sdB_PG_2239+043_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB_PG_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
ca985c3a9359c83b2e55ba8df7ac88dfde67a715 | 2c52f03f9ffcfb45b2659bde95fd27b73b82494f | /classes/__init__.py | 8d89e4af8986c8201f08245340a51355d11dbeda | [] | no_license | harishdurga/python-tic-tac-toe | 4dec7ac7fb2cfee078f582f89a41ca8d374bf61b | 722797254ecc07aa8d56a4f58f7f8653fb22d77b | refs/heads/main | 2023-06-24T04:28:46.555448 | 2021-07-18T11:33:47 | 2021-07-18T11:33:47 | 386,572,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | from .TicTacToe import *
| [
"harishdurga@LAPTOP-QCJUC3FA.localdomain"
] | harishdurga@LAPTOP-QCJUC3FA.localdomain |
e44af9a463f15eeb5cb6218cfed1839522c0b9e6 | 7e93826a8305f8b7977bf511fc2eaafbc782809b | /dtshare/stock/hk_stock_sina.py | bca5b27eea153b83b74bebc97fbb16915e95a0f6 | [] | no_license | SuperPcBull/dtshare | 71defe13ad12c56f6ea1f548e0ee42d166e4aff8 | 996b249078f3295c019e592d5ae5c135033d1c6d | refs/heads/master | 2021-03-15T22:12:25.937314 | 2020-03-11T01:58:30 | 2020-03-11T01:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Author: Tong Du
date: 2019/10/30 11:28
Email: dtshare@126.com
desc: 新浪财经-港股-实时行情数据和历史行情数据(包含前复权和后复权因子)
"""
import requests
import demjson
import pandas as pd
import execjs
from dtshare.stock.cons import (hk_js_decode,
hk_sina_stock_dict_p... | [
"dtshare@126.com"
] | dtshare@126.com |
3ce09f34e4e14345f6872e4cf4b7263ba1ac5a5d | a4a0f5f3e93cb779d57f1ace6fe8f5fba52c5c0b | /Hw2/cos_similarity.py | 163f4f9151c1454f11c36c8bb105a99c3404d7fd | [] | no_license | ga877439/Big_data_analytics | 072da936e24a6b28f5380b84a719d96db068d107 | 3414fb423abd9cfb6b535927fe8353db82c8298b | refs/heads/master | 2020-05-09T13:21:10.249369 | 2019-05-14T01:53:42 | 2019-05-14T01:53:42 | 181,144,934 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,525 | py | filename = 'bda2019_hw2_table.xlsx'
import pandas as pd
print('Loading data')
keylist = pd.read_excel(filename, 'L2_foxconn_keyword')[u'term'].tolist()
content = pd.read_excel('hw1_text.xlsx',"foxconn")[u'內容'].tolist()
df_dict = dict() #這是一個dictionary
def find_grams(article, output_list):
"""
輸出一個長度為245的list(此為稀疏... | [
"46038083+ga877439@users.noreply.github.com"
] | 46038083+ga877439@users.noreply.github.com |
7b1b2e96fd3db2489c10de68ffcdaa2fa1dda607 | 5827f04a573803021bf25d52434422539ce15c5d | /pomodules/postations.py | c3f3eaeeef9efa81b2123a272214c3de832773c3 | [] | no_license | escander266/PegelOnlineAbgabe2 | 85f54a809c649a020ebb50fd2d5ecf274342b51c | 829c1686a9047e9962ac8118bdeee47b284a0f2b | refs/heads/main | 2023-08-11T12:24:21.291198 | 2021-09-29T17:16:32 | 2021-09-29T17:16:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | from . import poBaseURL
from .urlreader import Urlreader
class PoStations:
def __init__(self):
self.url = poBaseURL + 'stations.json'
def getData(self):
ur = Urlreader(self.url)
json_data = ur.getJsonResponse()
# process all stations
stations = []
for d in json_d... | [
"alexander.kammerer94@web.de"
] | alexander.kammerer94@web.de |
3ed63577e2a8c2c688c2d4658af463c94885a891 | 1fcee7a3e60d2773246c4697f29f965686c8c91c | /encryption.py | 3b6307d3820caadbfaec1a0b732f460681efcdbc | [] | no_license | Estenoor/Network-Protocols | 8ac06b7a92cb06eeb057b869ad01c9c1aa47cd10 | fa1e89e82745bbc0563c39d9deadd9ab001e5cf7 | refs/heads/master | 2020-08-24T15:34:57.969480 | 2019-12-02T14:08:18 | 2019-12-02T14:08:18 | 216,855,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | for d in range(1, 25440):
if (17*d) % 25440 == 1:
print(d)
break
| [
"SamzFerg@gmail.com"
] | SamzFerg@gmail.com |
1730820bbb65feab897d8f823a7905d3ea1de5d3 | 8230f4b3e477458c34f168d44572f735f93e12eb | /Python/hipotenusa, perimetro, area.py | d10dc3b75966311d63804d0b454351f45adb148e | [] | no_license | MARIN4444/Codigos-del-semestre | e6b190d7e4069fc0d68c8fcee671a0c624a98a3d | 86ceb4a34078e52b2f7a8419ed9da52cfbf19925 | refs/heads/main | 2023-05-08T15:05:23.722068 | 2021-05-27T23:56:59 | 2021-05-27T23:56:59 | 371,237,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | cateto1=input("inserte valor cateto1:")
cateto2=input("inserte valor cateto2:")
cateto1=int(cateto1)
cateto2=int(cateto2)
import math
hipotenusa=math.sqrt(pow(cateto1,2)+pow(cateto2,2))
print("La hipotenusa del triangulo es")
print(hipotenusa)
perimetro=(cateto1+cateto2+hipotenusa)
print("El perimetro del triangulo es ... | [
"gohan44marin@gmail.com"
] | gohan44marin@gmail.com |
45f812ecb685f8f14eb10e38dd163f81e58cd0f4 | e74bb598f0e7612398ef605b0687d001f8ca4949 | /pygm.py | ab2a248f03089f3c5b653a2fee27cc69df2b969d | [] | no_license | Sarojkatwal/AIProject | 4b78324d13566674c7ed224d8ce7bc79f01245fc | 18724c32bcc63a70d0ac3014ccdabd4df7c80ba8 | refs/heads/main | 2023-03-09T00:01:17.066215 | 2021-02-24T03:53:53 | 2021-02-24T03:53:53 | 341,772,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | import pygame
pygame.init()
win = pygame.display.set_mode((500, 500))
pygame.display.set_caption("First Game")
x = 50
y = 50
width = 40
height = 60
vel = 5
block = [[None, None, None], [None, None, None], [None, None, None]]
fonts = pygame.font.Font('OpenSans-Regular.ttf', 40)
run = True
mm = True... | [
"noreply@github.com"
] | noreply@github.com |
44d953ef9c4f5502fe88c41502379ddb166cc814 | 583cda3adc496948456ecadb32b7aa3915f64d4c | /accountTesting.py | 0f6054370fe282f3aa339f52fbce99205152ac2e | [] | no_license | NikoleiAdvani/OOP-Project | 14302cc2af01cea264aeb29dad000e14780e3604 | dbf6efd18267658ab40b996476a3f82cb6b8ece4 | refs/heads/master | 2020-12-24T05:28:28.456942 | 2016-11-11T16:59:04 | 2016-11-11T16:59:04 | 73,495,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | # Nikolei Advani, 11/11/16
# This program tests the account class.
import account
def firstAccount():
nikolei = account.Account("Nikolei", 12345, 150)
nikolei.withdraw(50)
print(nikolei.showBalance())
if nikolei.withdraw(110):
print(nikolei.showBalance())
else:
print("Invalid bala... | [
"nikolei.advani@ssfs.org"
] | nikolei.advani@ssfs.org |
77bb8d0edbc32f2daee27dd739c806a846f8d986 | be8057bf5bfb491cd876c42821a94a58266ae836 | /manage.py | e4d17ff2433cbfdaf94d9146ff9376763cd3bd67 | [] | no_license | hasgeek/packman | 88ae1aa220167dc50a2b83011c53a49c13349437 | d99a1d7f08f26e3476a969278a6f0d87b050a280 | refs/heads/master | 2020-12-25T17:30:07.449733 | 2019-05-26T14:47:52 | 2019-05-26T14:47:52 | 24,697,117 | 0 | 1 | null | 2019-05-26T14:47:53 | 2014-10-01T22:03:35 | Python | UTF-8 | Python | false | false | 242 | py | #!/usr/bin/env python
from coaster.manage import init_manager
from packman.models import db
from packman import app, init_for
if __name__ == '__main__':
db.init_app(app)
manager = init_manager(app, db, init_for)
manager.run()
| [
"kiran@hasgeek.com"
] | kiran@hasgeek.com |
e9dfbdc7c6a62b3c2761e6e49c5d5ffc375d63b1 | 3a94b7dcededc3576b3f63acc8a7a4a386ccd06a | /app/models.py | cb06e9430e21a14eaefac51c5cb96503faa8db37 | [] | no_license | JunJae-Hong/git.test | 5044e9001ab2a778634e13913d69648517ecfd3c | 8247b921c0609faae3498c37ed63dbbf4703bf25 | refs/heads/master | 2022-11-24T15:39:13.653595 | 2020-08-03T10:28:37 | 2020-08-03T10:28:37 | 284,670,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from django.db import models
class Lol(models.Model):
title = models.CharField(max_length=100)
text = models.TextField()
date = models.DateTimeField(auto_now_add=True)
category = models.IntegerField()
| [
"hkjj1995@gmail.com"
] | hkjj1995@gmail.com |
43f43e93f47c1bebed88ed87d44afa9e783bf0d5 | 426e3c51d85e3ee60ce27c8b4f870b69db5dfc30 | /config/settings.py | 55666356579de325f1ac9be4bb1b0ab92bf4b406 | [] | no_license | seiya0723/diary_04 | ad5468f5af9f69bf659bfc3f977da6402cde1667 | 700213f4d646c09634fd0f76566604101796d2c1 | refs/heads/master | 2023-06-28T19:13:59.905437 | 2021-07-31T01:33:14 | 2021-07-31T01:33:14 | 391,228,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,842 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"seiya@asahina"
] | seiya@asahina |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.