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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7d7faf9f09aff41374a60d36ae6d52a4afb8344f | e5ee1b485c0dc12f8e1121daeff9a4d78a40f9f9 | /travesty/__init__.py | cf9ae069a98ed1267b27bf435630b1995b526cbe | [] | no_license | CodeMan99/travesty | ac2e194f6c7a326891460ffae176ceb5b6f55f72 | 0357d1db9db6ff3b1bf249628c5522f7d6308f4e | refs/heads/master | 2021-01-17T23:04:01.341515 | 2016-09-24T03:19:39 | 2016-09-24T03:39:14 | 34,356,089 | 0 | 0 | null | 2015-04-21T22:47:40 | 2015-04-21T22:47:39 | Python | UTF-8 | Python | false | false | 1,979 | py | from .base import Leaf, unwrap, core_marker, GraphDispatcher, Marker
from .base import Wrapper, Traversable, to_typegraph, make_dispatcher
from .base import graphize, validate, dictify, undictify, associate_typegraph
from .base import clone, mutate, traverse, IGNORE, CHECK, CHECK_ALL
from .datetypes import DateTime, Da... | [
"dplepage@gmail.com"
] | dplepage@gmail.com |
e11d12473f0b5708c3e7481974b91923f8e075f3 | c021c17736f8839d66d2f875cc37b48c319b74f3 | /disabler.py | 5a9752613cf1e1f81f1899be366f28e4b2c2a6f2 | [] | no_license | bianfusia/WinKeyDisabler | 310363a2b85aac36e9bbd897e9bd65e35c64c55d | c5e6b4689ef59d0c2c866b984aa1967d02eab626 | refs/heads/master | 2022-12-02T07:01:46.145850 | 2020-08-11T15:00:22 | 2020-08-11T15:00:22 | 267,564,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | import keyboard
keyboard.block_key('left')
input("this is included here to make a persistent console to ensure script stays alive.")
| [
"noreply@github.com"
] | bianfusia.noreply@github.com |
f7d11bab716283917a00ac4cf88bbe0e1409eb96 | 1818aaf61380ed516097cb40ab378d36e3c1a06a | /tests/unit/validate/example_templates/component/unnamed/a.py | 9c803aa2b037621b19d514b789ef78274e3bddc3 | [
"Apache-2.0"
] | permissive | JackBurdick/crummycm | a4504ba3efd42e4d93c62120ad4fece89c6b3ae2 | ffa9dad9b5c4c061d3767d700e90d5e34f92eac8 | refs/heads/main | 2023-01-18T20:07:24.102504 | 2020-11-25T00:56:57 | 2020-11-25T00:56:57 | 304,761,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,462 | py | from crummycm.validation.types.placeholders.placeholder import KeyPlaceholder
from crummycm.validation.types.dicts.foundation.unnamed_dict import UnnamedDict
from crummycm.validation.types.values.element.numeric import Numeric
from crummycm.validation.types.values.element.text import Text
# from crummycm.validation.ty... | [
"jackbburdick@gmail.com"
] | jackbburdick@gmail.com |
4e36fc5436291385399f6f1b6bcdf595e9102b42 | bbc0c6116117ab835d8fe28d4aa1dedb2a64200e | /SplashScreen.py | 7f24c3bb07298516e86d55b3df98ca2e97bbf149 | [] | no_license | osakhawalkar/tartanhacks18 | 4aa2ae84d29592491e02bd675da8ffe08bebfb3d | cf9384b0e0ad9231dccc75e92a3e26feab2d4cf5 | refs/heads/master | 2021-05-01T19:52:58.597937 | 2018-02-10T20:26:15 | 2018-02-10T20:26:15 | 120,954,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,838 | py | from tkinter import *
def startScreen(canvas,data):
canvas.create_rectangle(0, 0, data.width, data.height,
fill='AntiqueWhite1', width=0)
(helloX , helloY) = data.hello
#canvas.create_rectangle(helloX - 60 , helloY - 20, helloX + 60, helloY + 20, width= 5, fill = "grey... | [
"noreply@github.com"
] | osakhawalkar.noreply@github.com |
fd2c1ef20a11bfa71fa0c756a103e4bc46115f21 | 27ac3a2b2ee81d43d0381f50fbe4c866e90d2c25 | /crm/migrations/0001_initial.py | 02b533913f06aaf65fb971fa6aca167a99ef4097 | [] | no_license | Anzalsk/crm | 3557288517a9980e9ed9f13dea27827aff299940 | 5378b60bd1775ec8f671d72da2b78ff0b528be65 | refs/heads/main | 2023-02-22T03:29:31.931947 | 2021-01-29T13:40:31 | 2021-01-29T13:40:31 | 334,154,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # Generated by Django 3.1.5 on 2021-01-20 09:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Customer',
fields=[
('id', models.AutoField... | [
"ejaz.sk124@gmail.com"
] | ejaz.sk124@gmail.com |
0ae0b7cc11a68a67ca5c8f5f511bf81476008878 | 54c850a8d5f02295020ca5caf1f0b74167b3adf5 | /3 - Infection Transmission/calculate_rdmst.py | 810d0ffdd376ce9551a74570e9cceb61a7424459 | [] | no_license | ThisIsRoy/Algorithmic-Thinking-Projects | 9706e00d308bb9ffb0d2f2e4de10258d4f68b460 | 70215fcb14f6f0e2d4c6b3d1ee7325d50814b687 | refs/heads/master | 2021-04-04T06:16:27.985614 | 2018-04-30T05:15:12 | 2018-04-30T05:15:12 | 125,116,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,726 | py | from collections import *
from copy import *
def compute_rdmst_helper(graph, root):
"""
Computes the RDMST of a weighted digraph rooted at node root.
It is assumed that:
(1) root is a node in graph, and
(2) every other node in graph is reachable from root.
Arguments:
... | [
"rs58@rice.edu"
] | rs58@rice.edu |
81a9468e822101750e73217c4b2e6d17f02e75b2 | 7a3fc3ea3dd71e4ec85ac73e0af57ae976777513 | /.history/flaskblog_20210524215327.py | 3dc704c3d526e4ab9cbfa1dbab452f4fb649c5bb | [] | no_license | khanhdk0000/first_proj | 72e9d2bbd788d6f52bff8dc5375ca7f75c0f9dd0 | bec0525353f98c65c3943b6d42727e3248ecfe22 | refs/heads/main | 2023-05-12T10:36:08.026143 | 2021-06-05T15:35:22 | 2021-06-05T15:35:22 | 374,148,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
@app.route('/home')
def hello_world():
return render_template('home.html')
@app.route('/about')
def about():
return render_template('home.html')
if __name__ == '__main__':
app.run(debug=True) | [
"khanhtran28092000@gmail.com"
] | khanhtran28092000@gmail.com |
98096f66b312e6ddd29fff6907327916490295c7 | e8294bb01d47a59745065bf50ca718d1321c7184 | /accounts/urls.py | e8227847fe408eb693d9683b54ea4ac58eb4699e | [
"MIT"
] | permissive | ko-naka-3010527/accup-python | 59164929ae2eadef5820f2f0b8c2edbd92f78c19 | e10ff96111be889573d830f4b710d9b8b19e1828 | refs/heads/master | 2023-03-22T04:46:52.998623 | 2021-03-18T05:15:16 | 2021-03-18T05:15:16 | 348,617,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | from django.urls import path
from . import views
app_name = 'accounts'
urlpatterns = [
path('', views.index, name='index'),
path('<str:fmt>/', views.index, name='fmt'),
path('html/login/', views.login, name='login'),
path('html/redirect/', views.login_redirect, name='loginredirect'),
path('html/log... | [
"ymbk@k-off.org"
] | ymbk@k-off.org |
0cb8793177ffef90d8390d28c3b577deb8cb9e29 | 370e95125f5bd6ba4103a04aa9492035f7dc5994 | /lab4/patterns/pattern06.py | 25bb9512a6546ac451f992bf709f8bdda9aba59e | [] | no_license | TariniS/lab4_CS | 1c074a89b5be32676cb6ce56603ce849f98f87cc | 17e36d490a557db9492a36f19a7c37b66e3923bc | refs/heads/main | 2023-02-04T01:37:14.565019 | 2020-12-21T22:09:09 | 2020-12-21T22:09:09 | 323,458,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import driver
def letter(row,col):
if((row==col)or((col+row==6))):
return 'X'
else:
return 'O'
if __name__ == '__main__':
driver.comparePatterns(letter)
| [
"noreply@github.com"
] | TariniS.noreply@github.com |
3f6b280bdd02b4576ac013f02d7caa5265b2339d | fc9bf6483a22dff83c6251e1425fa494f7a41563 | /main.py | b141641a5ef525c00516c617f3d7a0524ee8c5f6 | [] | no_license | nicholasosto/Trembus-Tech | dc390ba07850ef53c58ec6d211635b5adcb0ba67 | a9ab1ee054dacc07549b77ad16c414fe987686af | refs/heads/master | 2016-09-09T17:56:59.063235 | 2014-07-31T22:18:50 | 2014-07-31T22:18:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | import os
import urllib
from google.appengine.api import users
from google.appengine.ext import ndb
import jinja2
import webapp2
JINJA_ENVIRONMENT = jinja2.Environment(
loader = jinja2.FileSystemLoader(os.path.dirname(__file__)),
extensions = ['jinja2.ext.autoescape'],
autoescape = True)
class MainPage(webapp2.... | [
"nicholasosto@Nicholass-iMac.local"
] | nicholasosto@Nicholass-iMac.local |
be2a2cffd88039d7e883315a60934503019a8713 | c313288fe7a31f75e562afec42ef82ce79001cae | /tests/test_main.py | c04ef37849bff81f033be8c44f2bf8b67abd37fb | [] | no_license | 3slab/pygisapi | 1ba4138da13152c9152cac3f7e34462529f7d810 | ccead89919a9ef342d36bedfc528b906bfd9930d | refs/heads/master | 2022-12-12T14:40:27.985938 | 2020-10-02T14:45:01 | 2020-10-02T14:45:01 | 221,058,634 | 1 | 0 | null | 2022-12-08T10:54:47 | 2019-11-11T19:53:50 | Python | UTF-8 | Python | false | false | 188 | py | # -*- coding: utf-8 -*-
from . import client
def test_home():
response = client.get("/")
assert response.status_code == 404
assert response.json() == {'detail': 'Not Found'}
| [
"jonathan.bouzekri@gmail.com"
] | jonathan.bouzekri@gmail.com |
71a647bc0c4861ce9748d1653962bd9272ed223d | 7f32426d36f10d57bc52382a03132093830434eb | /reindeer/sys/handler/user.py | c7b27e2c4e448e0046f45584b0c6f4c1952145a2 | [] | no_license | CuiVincent/MCMS-Python | a7b5b922f3ae5352f0535a9c42b92b76f06db73e | 07f1b8c811d0eb23ebe9bf91ab17d0a6eaa692bd | refs/heads/master | 2022-07-10T16:06:40.863179 | 2015-06-20T14:53:31 | 2015-06-20T14:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,413 | py | __author__ = 'CuiVincent'
# -*- coding: utf8 -*-
import reindeer.sys.base_handler
from reindeer.sys.model.sys_user import SysUser
from tornado.escape import json_encode
import random
from reindeer.sys.exceptions import BusinessRuleException
class UserListHandler(reindeer.sys.base_handler.BaseHandler):
def get(se... | [
"xoyoshin@gmail.com"
] | xoyoshin@gmail.com |
acc4182cbee129776c793f9c60c02d618d834485 | 59e53439e205f7252bef8fe72d658211c9f22bf8 | /{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/migrations/__init__.py | 9f19b1712a5651649c6cf8441e26cbc63005d765 | [] | no_license | D-Bits/Django-Cookiecutter | 291a991620777e5569d484ac2bc2d4ba14f31b5f | 7c4a653eb61f386b6379422508cd868c27838a2d | refs/heads/master | 2023-04-29T20:02:53.231144 | 2019-12-05T01:31:56 | 2019-12-05T01:31:56 | 212,965,058 | 0 | 0 | null | 2023-04-21T20:40:40 | 2019-10-05T08:06:04 | Python | UTF-8 | Python | false | false | 24 | py | # Package for migrations | [
"Dana.Lockwood2@seattlecolleges.edu"
] | Dana.Lockwood2@seattlecolleges.edu |
825c3a081928e9dfab29f460e918c27c3e835224 | 5f041c97889b1eade34669499c300eb764b4fc89 | /test/simple_match.py | 705d9e420743602afa8f119c86eb289b012ac2e6 | [
"MIT"
] | permissive | sirius8156/tea-recognition | d54df2ed0f341ee0bacd3f94f44d85d1b377b6ea | fec58fbca22627433bb37ba57942ebeaa5eefaa5 | refs/heads/master | 2020-03-17T06:21:09.946095 | 2018-05-14T12:17:46 | 2018-05-14T12:17:46 | 133,351,767 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,480 | py | # coding=utf-8
import cv2
import numpy as np
import tools.feature_extract as ife
import tools.feature_key_point as fkp
def test_match(img_path_1, img_path_2):
canny_img_1 = ife.get_canny_img(img_path_1)
key_points_1, desc_1, signed_img_1 = fkp.sift_img(canny_img_1)
canny_img_2 = ife.get_canny_img(img_pa... | [
"duyaming@baidu.com"
] | duyaming@baidu.com |
44bccce4581a9be8d40ef02613ab79ebd72ed817 | ba98e2171d38c85ddc122cb35b400df30c952cd6 | /translifyapp/migrations/0001_initial.py | 8969cb9d1c1107c49d17b532ffb9a14f60b156c3 | [] | no_license | dbribe/DemoANPR | 5f760b39aaa324be2539e3366bddd5b3516550e7 | 4cbc761b97d67685faa6586b2e671aa57e49621b | refs/heads/master | 2020-03-21T09:50:34.174266 | 2018-06-25T16:49:54 | 2018-06-25T16:49:54 | 137,877,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,901 | py | from django.contrib.postgres.operations import CITextExtension
import django.contrib.postgres.fields.citext
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import translifyapp.models
class Migration(migrations.Migration):
initia... | [
"kir141996@gmail.com"
] | kir141996@gmail.com |
7d7c1bbc6e3d39f628484db6de2dbae30a640adc | 95a08c7d63e7b47b42f4a56a40615e6fd7ddfd10 | /venv/bin/easy_install | 9742d91681c24d9fab91db729019ea86bac73878 | [] | no_license | ShahrokhGit/take-a-break | 361569c8f43023f69a2615debc05e6fdb6c3e45b | 40e475603847e9ec6438b2727d6763242e179d92 | refs/heads/master | 2020-04-14T02:34:15.495333 | 2019-01-07T06:39:33 | 2019-01-07T06:39:33 | 163,585,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | #!/Users/shahrokh/Documents/ShahProjects/take-a-break/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"shahrokh.zita@gmail.com"
] | shahrokh.zita@gmail.com | |
4eb772561fe04abfb679dd1063c0227fdab4288c | dffc8bb91840e85a102a3680a409bc03a2c2cda4 | /routers.py | 7be903ab25b6c413e1645d397179076474aa4632 | [] | no_license | quanted/qed_pisces | 0cca18bc6f1c97c4e3aa25cc468a57ec446639cc | 7a3a84a697ac193d440db3fc84d66abfed3e01d7 | refs/heads/master | 2021-05-01T23:52:43.294938 | 2017-10-16T17:04:04 | 2017-10-16T17:04:04 | 78,057,905 | 0 | 1 | null | 2017-10-16T17:04:06 | 2017-01-04T22:24:07 | Python | UTF-8 | Python | false | false | 1,180 | py | #Class for pisces_db routing
class PiscesRouter(object):
"""
A router to control all database operations on models in the
pisces application.
"""
def db_for_read(self, model, **hints):
"""
Attempts to read hem models go to pisces_db.
"""
if model._meta.app_label == '... | [
"kurt.wolfe@gmail.com"
] | kurt.wolfe@gmail.com |
d1d7b3d188456c9ce66966bb6625e2af07ecdf85 | e6b41b3c70ce572c64fdb7ea475f426945190ab2 | /lab10.1.py | f9432834f94bad6bac8ac92dc88c1fac5cc0f268 | [] | no_license | CodeLyokoZ/lab_Ex | fd6f7be963c8a80b9810a21705b3e974e6d963c8 | a0081b288fcd4b16182d5b4d278d9a3ed17148c1 | refs/heads/master | 2022-06-17T14:53:29.504476 | 2020-05-12T17:20:09 | 2020-05-12T17:20:09 | 257,349,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | def read_file(filename): # funtion for read file
file = open(filename, 'r')
content = list(map(int, file.read().split(',')))
print(content)
file.close()
return content
def save_file(filename, content): # funtion for save file
file = open(filename, 'w')
file.write(content)
file.close... | [
"noreply@github.com"
] | CodeLyokoZ.noreply@github.com |
720fc250757a422d1392d63e837b0e5d97ab5faa | 114d78320fb2bcd99c9dc802a3ed5bab47c537e6 | /ksp_scraper/tests/user_utilities_test.py | a78de591f5e943dd497f3a80ac7faf51078f5014 | [] | no_license | johnnie172/scraper-web-app | 1d36ffe9e476c0590c023e4907bbf0d44e0e7539 | 2b6c72c4d34a5a30c485c90f879aab30325af25d | refs/heads/master | 2023-03-28T14:47:37.148053 | 2021-02-28T10:17:50 | 2021-02-28T10:17:50 | 336,233,542 | 0 | 0 | null | 2021-02-28T10:17:51 | 2021-02-05T10:07:30 | Python | UTF-8 | Python | false | false | 429 | py | import unittest
from unittest import mock
import UserUtilities
import consts
class TestUserUtilities(unittest.TestCase):
# @mock.patch('builtins.input', side_effect=["walla@walla.com", "123456", "gmail@gmail.com", "123456"])
# def test_user_login(self, side_effect):
# self.assertEqual(users_utilities... | [
"jmpstillsart@gmail.com"
] | jmpstillsart@gmail.com |
590718870c9a1af82d2b270b04cdca68e6a53547 | d9366ddca913f561474ecfbf7b613c2da41ac974 | /posts/forms.py | 81907dab299da60530ef724fc0295167a7c661d4 | [
"MIT"
] | permissive | Duskhorizon/discoplaytogether | cba2b1e510e79166bac5dfe4ea0296fab42f153a | e74a11b0f65d14db6f15d1bb0536411dd546eda6 | refs/heads/master | 2021-03-15T09:43:56.634236 | 2020-04-05T14:12:49 | 2020-04-05T14:12:49 | 246,829,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | from django import forms
from django.forms import ModelForm
from .models import Event, Game
from .widgets import XDSoftDateTimePickerInput
class EventForm(ModelForm):
title = forms.CharField(label='Nazwa wydarzenia:')
description = forms.CharField(label='Opis:')
game = forms.ModelChoiceField(queryset=Game... | [
"duskhorizon.ggmu@gmail.com"
] | duskhorizon.ggmu@gmail.com |
6546eaac9531d7194aec8eac4caf36a6fda8ad87 | 249a30f5d0913dfd0f289f59d4943bf9253f847d | /del_bupp_files.py | e5ca01b04890817a6b1a02dac6b18fa52f23cc83 | [
"MIT"
] | permissive | SciLifeLab/standalone_scripts | 40d45c6a55ee89ec5ee089d6893df22d544d882f | cc3c6c13395d463b21764a2c7d3e950a002ff21a | refs/heads/master | 2023-05-12T08:56:24.927233 | 2023-05-08T13:36:10 | 2023-05-08T13:36:10 | 24,371,145 | 4 | 23 | MIT | 2023-05-08T09:37:09 | 2014-09-23T12:50:27 | Python | UTF-8 | Python | false | false | 2,278 | py | #!/usr/bin/python
"""A script to clean up among files which will be backed up on tape.
slightly adapted from the original, kindly supplied by it-support@scilifelab.se.
"""
import glob
import datetime
import os
import argparse
import sys
def main(args):
files = glob.glob("/home/bupp/other/*")
for f in files:... | [
"alneberg@kth.se"
] | alneberg@kth.se |
00fdb46cfc5b0b82858263c76bdbebc1112d5445 | 9222357cc34a687321ee25e750f9aae6aa1989f5 | /alpaca_server/setup.py | e97fc25ced3488e8712da374e64f82210decb2fd | [] | no_license | codefly13/AlpacaTag | 0ad177d3ea22c2dda7849ee1ca0ab4654b2b4d7d | 9f34d495ba0d94fbf9b50e38f39d17113214007e | refs/heads/master | 2022-04-08T21:53:37.513880 | 2020-03-24T06:02:05 | 2020-03-24T06:02:05 | 259,337,840 | 1 | 0 | null | 2020-04-27T13:51:54 | 2020-04-27T13:51:54 | null | UTF-8 | Python | false | false | 1,168 | py | from os import path
from setuptools import setup, find_packages
# setup metainfo
libinfo_py = path.join('alpaca_serving', '__init__.py')
libinfo_content = open(libinfo_py, 'r').readlines()
version_line = [l.strip() for l in libinfo_content if l.startswith('__version__')][0]
exec(version_line) # produce __version__
... | [
"danny911kr@naver.com"
] | danny911kr@naver.com |
b626e2a94b9b88f526ed11ae5ece091ffd01df8a | 7e99ded7f8f300651f99e4b8b295d6f4bccb9a85 | /venv/Scripts/django-admin.py | 47f2b0ed24a9536a97ee93d864b73b1fb1bb7597 | [] | no_license | Godwinjthomas/Full-stack- | 075b604c590fab1ca15660e1fc8b30e1308edc6e | eb51942913ae2134584c3dd42e2002c0a9ef5879 | refs/heads/master | 2023-07-02T17:58:23.468193 | 2021-08-04T12:39:25 | 2021-08-04T12:39:25 | 392,565,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | #!c:\users\godwin\pycharmprojects\textoperations\venv\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django... | [
"87801046+Godwinjthomas@users.noreply.github.com"
] | 87801046+Godwinjthomas@users.noreply.github.com |
5b204d08c098c4b40f0d851978139606c080d14f | bc42b64d28ef03622cc1de3fc22d25c0f4ef5e6d | /bsPipe/bs_ui/bsui_asset/bsui_assetManager.py | 46faf6eed6c45bb3cb225d4dee63c07c69b40c93 | [] | no_license | amolrupnar/bsPipe | fcc032f5c74c12497291e3ee1f582d4cc728ad22 | db9c0039e7fae8d856f7b3f34c2bca18fd588272 | refs/heads/master | 2021-08-30T20:12:53.319618 | 2017-12-19T08:54:17 | 2017-12-19T08:54:17 | 113,181,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,429 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:/bsw_programation/01_maya/Pipeline/bsPipe/bsPipe/bs_ui/bsui_asset/bsui_assetManager.ui'
#
# Created: Tue Dec 19 12:41:12 2017
# by: pyside-uic 0.2.14 running on PySide 1.2.0
#
# WARNING! All changes made in this file will be lost!
fr... | [
"crashsonu@gmail.com"
] | crashsonu@gmail.com |
124cc01f09e4a09f6b04f3d79b499aba8b561276 | 6796f5a07ae5fe7fd79ba700bd9e68d35b3b1959 | /src/_check_freq_azimuth_amp.py | 82af83d24ba562c7094e7e2641ff500b4aa8131b | [] | no_license | Hiroki-kt/robot-audition-experiment | 642d157514fb9ae886b5c65107a76c27d56cfdf4 | 40feab6231801bcd71ad71a049b60ab7e6e2ac5a | refs/heads/master | 2022-04-10T08:23:54.917243 | 2020-03-27T02:21:07 | 2020-03-27T02:21:07 | 214,172,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from _function import MyFunc
import sys
if __name__ == '__main__':
mf = MyFunc()
data_set_file_path = mf.onedrive_path + '_array/200220/'
data_name = '191205_PTs05'
origin_path = mf.speaker_sound_path + '2_u... | [
"katayama.hiroki.kb3@is.naist.jp"
] | katayama.hiroki.kb3@is.naist.jp |
fe0b2ad7b2c4837a963b199042559a743734e1bc | ad9f6a77777dd0384e09a88fe0eddf0a3435fa98 | /ana.py | 48e1771235c0850d8ca825d99409d700cb13bf3c | [] | no_license | Keitokuch/csl_work | 608595277356b4339a6c665761cd4fae73ced69e | 6404445464ac60c3d1ce913eae902e272bba88a3 | refs/heads/master | 2021-08-17T15:34:36.528215 | 2020-09-17T23:11:33 | 2020-09-17T23:11:33 | 222,787,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | import pandas as pd
import sys
# df = pd.read_csv('cmdata.csv')
# df = pd.read_csv('./parsec_2.csv', index_col='ts')
# df = pd.read_csv('./test_running.csv', index_col='ts')
filename = sys.argv[1]
df = pd.read_csv(filename, index_col='ts')
# print(df['can_migrate'].eq(1).sum(), df['can_migrate'].eq(0).sum())
# s... | [
"jingdec2@illinois.edu"
] | jingdec2@illinois.edu |
6cb5a5e75a9c8324286d70e2893b91e427710002 | 60cbdf1f9771159f872e632017fa736800784297 | /Codewars/Find-the-odd-int.py | c1567718b97f70ca035fd5cb5332e8b15ddf1595 | [] | no_license | AG-Systems/programming-problems | 6ea8c109f04c4d22db6e63fe7b665894c786242a | 39b2d3546d62b48388788e36316224e15a52d656 | refs/heads/master | 2023-04-16T16:59:20.595993 | 2023-04-05T01:25:23 | 2023-04-05T01:25:23 | 77,095,208 | 10 | 3 | null | 2019-10-14T16:16:18 | 2016-12-22T00:03:14 | Python | UTF-8 | Python | false | false | 355 | py | def find_it(seq):
hashtable = {}
for x in seq:
if x in hashtable:
hashtable[x] += 1
else:
hashtable[x] = 1
for key,val in hashtable.items():
if val % 2 != 0:
return key
"""
def find_it(seq):
for i in seq:
if seq.count(i)%2!=0:
... | [
"noreply@github.com"
] | AG-Systems.noreply@github.com |
8fd2424a8d46f18ffec8634804ad72d2101d76a1 | 8be1a938a7554bfa6c4c90f7734380bdb23c837a | /A3/systemctl (1)/1systems/B4p2p/pserver.py | 9b1cd15c4467b82361715e1c795f3f8bbe2a249e | [] | no_license | roninx991/Computer-Networks-TE | 4ddd64d544ebdaaa38d8fcc00c937bd4524806eb | f5c5b9952ae8926b6c71807cb2e7b2149802e5f6 | refs/heads/master | 2022-03-14T13:07:27.024369 | 2017-11-17T08:19:43 | 2017-11-17T08:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import sys
import socket
def server():
host = ''
port = 2000
serversock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
serversock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
serversock.bind((host,port))
serversock.listen(1)
newserversock,addr = serversock.accept()
print "connected to ... | [
"sangatdas5@gmail.com"
] | sangatdas5@gmail.com |
d2532abf4853a00083e27afaff4c1ee3781091b1 | b92d59b1d78276c2f642b640fbb495fa85e222c9 | /debugger_tools/sitepackages_libs/pygments/styles/borland.py | e7494b0b556f302ed49dc2d3d8cb49a7d0731409 | [] | no_license | tin2tin/weed | d69d27ed9fb0273d0bbcbcf6941d9d9bfd4bbb44 | dade41a9f6e82a493d4817d53a5af3dcdf31f21c | refs/heads/master | 2020-12-27T06:21:09.047047 | 2020-02-02T18:03:15 | 2020-02-02T18:03:15 | 237,793,836 | 0 | 0 | null | 2020-02-02T15:43:25 | 2020-02-02T15:43:25 | null | UTF-8 | Python | false | false | 1,613 | py | # -*- coding: utf-8 -*-
"""
pygments.styles.borland
~~~~~~~~~~~~~~~~~~~~~~~
Style similar to the style used in the Borland IDEs.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygment... | [
"cristian@blender.cl"
] | cristian@blender.cl |
c41845008487c6093767f0afb04faa5273492412 | 2729fff7cb053d2577985d38c8962043ee9f853d | /bokeh/sampledata/tests/test_perceptions.py | fd7da155b0a33f279e0b263f36c4dea9d66e1929 | [
"BSD-3-Clause"
] | permissive | modster/bokeh | 2c78c5051fa9cac48c8c2ae7345eafc54b426fbd | 60fce9003aaa618751c9b8a3133c95688073ea0b | refs/heads/master | 2020-03-29T01:13:35.740491 | 2018-09-18T06:08:59 | 2018-09-18T06:08:59 | 149,377,781 | 1 | 0 | BSD-3-Clause | 2018-09-19T02:02:49 | 2018-09-19T02:02:49 | null | UTF-8 | Python | false | false | 2,212 | py | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved.
#
# Powered by the Bokeh Development Team.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#---------------------------------------------------... | [
"noreply@github.com"
] | modster.noreply@github.com |
a4dc23eae566a3bc54d8ce9848d14fcec8cffa10 | dd240d4b1298117806d9218c409eaf3237b29509 | /test/test_min_edge_weight.py | c12d47401d1b0ece4159760694a6b6cc408d7120 | [] | no_license | NicolasBondouxA/openbackend_clustering_ls | 10a196ab012edc231aebed7dd88fbcec6a21760b | 36f0bbac9c5c2b09e5de578b32e3a5a8a0d913ba | refs/heads/master | 2023-04-21T15:54:19.426282 | 2021-05-17T17:44:03 | 2021-05-17T17:44:03 | 368,251,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | """
No unit tests in this class.
Class used to run a test campaign with different nb_clusters and min_edge_weight.
"""
import logging
import pathlib
import unittest
from openbackend_clustering.instance.instance import InstanceMatrixParser, display_graph
from openbackend_clustering.model.local_solver_model import LSM... | [
"nbondoux@amadeus.com"
] | nbondoux@amadeus.com |
ae30829a988b8ab8e312dc21f65011b6c2658bcf | 8396606fcb98d8ab2d5e5a139da83e7ce0880324 | /galaxy-dist/lib/galaxy/web/form_builder.py | 72e71ab851b14a80aeb1253dc5f87971c253993d | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/Learn2Mine-Main | 87b3d6d7fa804568a93c4c7e8324c95574afc819 | acc0267b86ad6a9e5e1619d494c20407d4710e90 | refs/heads/master | 2021-05-29T17:48:17.844094 | 2015-09-14T16:19:36 | 2015-09-14T16:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,185 | py | """
Classes for generating HTML forms
"""
import logging, sys, os, time
from operator import itemgetter
from cgi import escape
from galaxy.util import restore_text, relpath, nice_size, unicodify
from galaxy.web import url_for
from binascii import hexlify
log = logging.getLogger(__name__)
class BaseField(object):
... | [
"nashtf@g.cofc.edu"
] | nashtf@g.cofc.edu |
1e0e33a438ef73e28874fea87773b1cf5ca40c49 | 03b7823d164d126d40189305f5782cb24befeb72 | /detection.py | a092028d36973e02ab46541bea4abcb236e2aa79 | [] | no_license | doanab/person-detection | 518f6e4714baddcf0b6058275c5da29fcf7a5d47 | efb535547261fab6f8d2efe66f229103ce460e53 | refs/heads/master | 2021-03-24T17:08:39.189508 | 2020-03-15T21:19:20 | 2020-03-15T21:19:20 | 247,551,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # Them cac goi thu vien
from imutils.object_detection import non_max_suppression
from imutils import paths
import numpy as np
import argparse
import imutils
import cv2
# Tao doi so
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--images", required=True, help="path to images directory")
args = vars(ap.parse_args... | [
"doanbebk2018@gmail.com"
] | doanbebk2018@gmail.com |
847583d24105d7141eccf2797b87b466cbd57b01 | 99f43f4591f63d0c57cd07f07af28c0b554b8e90 | /python/프로그래머스/직사각형만들기.py | 16bef1835142eb60413503e1b66a432aafa71fc8 | [] | no_license | SINHOLEE/Algorithm | 049fa139f89234dd626348c753d97484fab811a7 | 5f39d45e215c079862871636d8e0306d6c304f7e | refs/heads/master | 2023-04-13T18:55:11.499413 | 2023-04-10T06:21:29 | 2023-04-10T06:21:29 | 199,813,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | def solution(v):
v = sorted(v)
x_dic = {}
y_dic = {}
for x, y in v:
if x_dic.get(x) is None:
x_dic[x] = 1
else:
x_dic[x] += 1
if y_dic.get(y) is None:
y_dic[y] = 1
else:
y_dic[y] += 1
answer = []
for x, cnt in x_dic... | [
"dltlsgh5@naver.com"
] | dltlsgh5@naver.com |
4589205cd366b6f298b02d86f9c43531f17d96f3 | 5d61acc1f9595047861f76b916cd28a167496f9e | /Configuration/GenProduction/python/ThirteenTeV/GMSB/GMSB_L500TeV_Ctau1200cm_Pythia8_13TeV_cff.py | 4c40005548ada354e0fd1851954fd8435b425dbe | [
"Apache-2.0"
] | permissive | zhangzc11/cms-gmsb-sps8-configs | 1bbd3cf2a45ee187f3e41ff51c409976fd59f586 | 838e6aac1d13251e050c0ee8c4ed26ca0c6cef7e | refs/heads/master | 2020-06-24T05:28:46.872990 | 2019-09-24T20:05:33 | 2019-09-24T20:05:33 | 198,862,590 | 0 | 0 | Apache-2.0 | 2019-07-25T16:03:09 | 2019-07-25T16:03:08 | null | UTF-8 | Python | false | false | 59,260 | py |
SLHA_TABLE = '''
# ISAJET SUSY parameters in SUSY Les Houches Accord 2 format
# Created by ISALHA 2.0 Last revision: H Baer 27 May 2014
Block SPINFO # Program information
1 ISASUGRA/ISASUSY from ISAJET # Spectrum Calculator
2 7.88 02-JAN-2018 11:01:14 # Version number
Block MODSEL # Model se... | [
"zzhang2@caltech.edu"
] | zzhang2@caltech.edu |
bc45b4f440231771d040320fa33af10e7caddee6 | 945ed3bc28abff20e7d4a445941fdd6b2161b3cd | /[python3]/generic.py | df70588171070948c7e2d33347fa6aa2a309a2d4 | [] | no_license | cash2one/adwords | 066a9f3173af37ea456488152c1e95fa16aae35e | ea1376286972886f8b6c47c5873558345ff81491 | refs/heads/master | 2021-01-21T10:55:45.940180 | 2017-01-30T11:04:28 | 2017-01-30T11:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,880 | py | #BookYogaRetreats
#Generic Keywords
######################################################################################
# import sys
# #set max cpc bid for keyword and ad group here
# print "Please type in the max cpc for the landing page."
# max_cpc = float(raw_input())
# if type(max_cpc) != float:
# sys.ex... | [
"stephanie@ebookingservices.com"
] | stephanie@ebookingservices.com |
e55a27dca2368a2b46c0c89ab0d91c9214f68154 | 9f2f386a692a6ddeb7670812d1395a0b0009dad9 | /python/paddle/fluid/tests/unittests/ipu/test_print_op_ipu.py | 3189e060d58373250ba776271009bcab004e762b | [
"Apache-2.0"
] | permissive | sandyhouse/Paddle | 2f866bf1993a036564986e5140e69e77674b8ff5 | 86e0b07fe7ee6442ccda0aa234bd690a3be2cffa | refs/heads/develop | 2023-08-16T22:59:28.165742 | 2022-06-03T05:23:39 | 2022-06-03T05:23:39 | 181,423,712 | 0 | 7 | Apache-2.0 | 2022-08-15T08:46:04 | 2019-04-15T06:15:22 | C++ | UTF-8 | Python | false | false | 3,306 | py | # Copyright (c) 2022 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"
] | sandyhouse.noreply@github.com |
325e307598c52d6975a86c8edc8054b6e0fe4a67 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200423012150.py | d1a2e804abef8dfd13862f5b3c728acfea003b0a | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,543 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 20200414
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una p... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
b3519ec67a53f9f13aa52c53f567d1d776edbd44 | 7f0710a8aea6f41044ee29651c32ca9eebfe7715 | /keys.py | 51be492a55aba4d87e010bbd3ee80b05cf282ec6 | [
"MIT"
] | permissive | KennethD96/IPX | 5d0f0aea471d4997404e1064c878f2b1d1ec0caa | 971b8197ab6d7f84c961b2f613311e98451ff992 | refs/heads/master | 2021-01-15T19:06:50.920263 | 2014-12-11T18:29:36 | 2014-12-11T18:29:36 | 99,811,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | ####
# The code within this file is copyrighted by its original creator,
# and obtained from the following URL. It is thus not covered by this
# project's license.
#
# Source: http://stackoverflow.com/a/13615802
##
import time
import ctypes
SendInput = ctypes.windll.user32.SendInput
# C struct redefinitions
PUL = cty... | [
"simen@lybekk.no"
] | simen@lybekk.no |
099107a1fc7a937fe06c9e7494308aa4d7f2223e | 26d030d1a8134f1900d11054dc63c674dc2beec8 | /main.py | 0895f7c340f491aad10624532b6215a61944c9a2 | [
"MIT"
] | permissive | kendricktan/pychip8 | 1ea1259abb61485c0db9bd26dda0201c2369452d | c9eb4f950f4546dbad0ca84f1c393d822a925a10 | refs/heads/master | 2021-04-27T15:44:17.064807 | 2018-02-23T14:28:13 | 2018-02-23T14:28:13 | 122,475,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from pychip8.emulator import Chip8
if __name__ == '__main__':
rom_name = 'pong.rom'
chip8 = Chip8(rom_name)
chip8.run() | [
"kendricktan0814@gmail.com"
] | kendricktan0814@gmail.com |
2060cc6036f984b39e6124ba18d02103c6b57d5d | 21b6f23951aa54e3c59a8a284f69599817f5c5ad | /filehandling_example.py | e25019dbbf3cd0a8eadee895f6288206c8f0f85c | [] | no_license | syladiana/basic-python-b3 | 1f94d70acdab93815dbc146bdbaeb5a3e715ea50 | 36ade0a5b7fbb488af53878b7430bfb4647e2238 | refs/heads/main | 2023-03-01T23:40:25.318183 | 2021-02-07T14:37:52 | 2021-02-07T14:37:52 | 328,089,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | def menu():
print("Menu: ")
print("1. Lihat daftar kontak")
print("2. Tambahkan kontak")
print("3. Keluar")
option = int(input("Masukkan pilihan: "))
return option
def show():
f = open("file_kontak.txt", "r")
print("List nama kontak: ")
print(f.read())
f.close()
def add():
... | [
"sylasudiana@gmail.com"
] | sylasudiana@gmail.com |
9fd8ade44c4ae07271c9aec55135a23ab06f9c4d | ed56a197b12d8e5cfca16cd314b188353aa46ebd | /scripts/get_rdkit_descriptors_for_all_datasets.py | 871681ff454e6e92507e593ffea0ca5fd0e8f191 | [] | no_license | GeorgeBatch/moleculenet | b0698f8cabb2cb65d3399d313e4e5bddad03c971 | a72cf362e0002261e8e1de1bfbcb65efac315437 | refs/heads/master | 2023-02-07T16:25:44.435430 | 2020-12-23T12:35:31 | 2020-12-23T12:35:31 | 278,653,042 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # Import modules
import numpy as np
import pandas as pd
import time
from rdkit import Chem
from rdkit.Chem import AllChem
from rdkit import RDLogger
from rdkit.Chem import Descriptors
# record time to show after execution of the script
since = time.time()
# For each dataset*smile_typecombination get the rdkit feat... | [
"george.batchkala@gmail.com"
] | george.batchkala@gmail.com |
9ee890146ce6af634c55139f125f346f2d8a82b8 | 4b3c57a19006ddc2136e20458fec330180f1dd19 | /19캡디 머신러닝/get_data.py | 8119c4c8dd2587bca9c871b882cd7f666e5951fe | [] | no_license | yangtae/Motion-Guantlet | 78fef29931b4cc296c7c798da480061516b5ca5a | f69cf152160cef627b6df7e4229af3769d51247e | refs/heads/main | 2023-06-09T17:52:42.978797 | 2021-07-03T13:42:21 | 2021-07-03T13:49:28 | 382,616,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | # file: rfcomm-server.py
# auth: Albert Huang <albert@csail.mit.edu>
# desc: simple demonstration of a server application that uses RFCOMM sockets
#
# $Id: rfcomm-server.py 518 2007-08-10 07:20:07Z albert $
import pandas as pd
from bluetooth import *
import pyautogui as p
import keyboard
import sys
# Global Variable
... | [
"xotjr1316@gmail.com"
] | xotjr1316@gmail.com |
34e43b4116a0c8e45799e462f0469116df0a77a4 | 0645f92331396e03d449668bc37d5e26a82b07df | /hash_table.py | 02d8f06c69419dc8e4d0e5244206cab90983b18a | [] | no_license | jhkette/data_structures_algorithms | 8cfba599baf59028ae7ecf905745340f468dd675 | 9ed023082eb64aacb0eed32ed3987fc6d9e44dee | refs/heads/master | 2022-05-03T20:33:22.633849 | 2022-03-14T15:48:07 | 2022-03-14T15:48:07 | 205,164,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | # Given an array of integers, return indices of the two numbers such
# that they add up to a specific target.
# You may assume that each input would have exactly one solution,
# and you may not use the same element twice.
# Example:
# Given nums = [2, 7, 11, 15], target = 9,
# Because nums[0] + nums[1] = 2 + 7 = ... | [
"joseph.ketterer@gmail.com"
] | joseph.ketterer@gmail.com |
5ab89bff4f0be6f2e9393198d7937d50d28f6ba9 | bf683796ca0368468b0d361c91083f7ef1d19e11 | /mainapp/migrations/0005_auto_20200522_1011.py | 8672b1a9f9ba9c9e1385f01e03deea7275d8511a | [] | no_license | pavanvarma08/python-django-models-authentication | d5771a4a04f22f415f366d1699a19623cb989f6b | 83379653506081c50a92048fc689cd66e28fc889 | refs/heads/master | 2022-08-21T09:05:43.487596 | 2020-05-22T10:15:45 | 2020-05-22T10:15:45 | 265,871,127 | 0 | 0 | null | 2020-05-21T14:33:44 | 2020-05-21T14:33:43 | null | UTF-8 | Python | false | false | 695 | py | # Generated by Django 2.2.9 on 2020-05-22 10:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0004_blogpost'),
]
operations = [
migrations.CreateModel(
name='Tag',
fields=[
('id', mod... | [
"pavan.indukuri@ericsson.com"
] | pavan.indukuri@ericsson.com |
d7fae122e7f8a84921a3b1fe45c07f443c21ff43 | 89b2f5b08c441d4af0a63ed2ec1a5889bc92f0f7 | /NI_DJANGO_PROJECTS/urls_and_templates/second__app/urls.py | cfec6a5b99b358adb0edc6eaa0de920d58001cc6 | [] | no_license | KoliosterNikolayIliev/Softuni_education | 68d7ded9564861f2bbf1bef0dab9ba4a788aa8dd | 18f1572d81ad9eb7edd04300deb8c81bde05d76b | refs/heads/master | 2023-07-18T09:29:36.139360 | 2021-08-27T15:04:38 | 2021-08-27T15:04:38 | 291,744,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from django.urls import path
from second__app import views
urlpatterns = [
path('', views.index)
]
| [
"65191727+KoliosterNikolayIliev@users.noreply.github.com"
] | 65191727+KoliosterNikolayIliev@users.noreply.github.com |
c6977906e213e68c73e51c78565d020bd2a58022 | 2cefbfc49a118f1bc820e1acb4866cf13240d91b | /aula0305/regex.py | 5ed8891f447504ecd738ce002b8cfc5aabb1298a | [
"MIT"
] | permissive | proffillipesilva/aulasdelogicaprogramacao | c574aee382501f75a713b6b89a1e2f9a533e17d1 | f32d1019d4bfd5da371417911cb6bcafe58dfac7 | refs/heads/main | 2023-06-04T07:48:28.828672 | 2021-06-26T01:27:33 | 2021-06-26T01:27:33 | 354,985,186 | 1 | 25 | MIT | 2021-06-26T01:27:34 | 2021-04-05T22:06:40 | Python | UTF-8 | Python | false | false | 100 | py | import re
email = "<p>Aloha</p>"
valido = re.search("^<p>(.*)</p>$", email )
print(valido.group(1)) | [
"noreply@github.com"
] | proffillipesilva.noreply@github.com |
307953eec58975a8509f55196d62a9976bd07307 | f02cdc9bb054fe82895cbedba09dcb6284de0d88 | /driver.py | 3c9a97a16ea674fc7746a60848542fd3dff61d5a | [] | no_license | Nagesh-a5/A04 | bc2edd49bfe36a70d7653bf466fb085d204ed5cd | 725ee803cb211e5ff06a6e79dee5bdfd836d17c1 | refs/heads/master | 2020-05-18T01:45:24.575301 | 2019-05-08T04:41:48 | 2019-05-08T04:41:48 | 184,098,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | import os
import virtual
def read_file():
tasks=[]
for path, dirs, files in os.walk('vm_snapshots'):
for f in files:
fin=open(path+'\\'+f, 'r')
data=fin.read()
tasks.append([f, data])
return tasks
def get_params(str):
name, ext=str.split('.')
... | [
"noreply@github.com"
] | Nagesh-a5.noreply@github.com |
55ff3c9682db0bd28e6eb9aa2c943bf04ef521d5 | d1be29b65e7e4118d42446d5c056bb55839358e1 | /Project-Euler/Problem-25.py | cd471aab0ec4a09d6a1314f78ebd96d3b0d4deb3 | [] | no_license | XiaoTaoWang/JustForFun | f77693139181ffc6ef102adbc670e4758a4b7e5f | 09ddf48f22994e6a8fc23bad32cbac41b62574b1 | refs/heads/master | 2021-01-10T14:37:12.211897 | 2016-03-13T04:38:47 | 2016-03-13T04:38:47 | 49,762,427 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 4 00:17:25 2016
@author: Xiaotao Wang
"""
"""
Problem 25:
What is the index of the first term in the Fibonacci sequence to contain
1000 digits?
"""
def fib():
a = b = 1
while True:
yield a
a, b = b, a+b
if __name__ == '__main__':
F = ... | [
"wangxiaotao868@163.com"
] | wangxiaotao868@163.com |
9f4a47f73799a81165385e13b29c9011492f03ef | c00b2b96e00cd999c5bafc9d9e0c57dcbdd080ac | /scripts/Kinda.py | 430cef06cf3eb5c2290e3179fa52ed1ea647eadf | [
"MIT"
] | permissive | thomaslao/home_edu | d038b038f47b84070a6978e927b99e06744897d0 | 6368967917892eb43164ca79fd4faeafb085be37 | refs/heads/master | 2023-05-01T07:09:27.467886 | 2021-05-12T08:58:53 | 2021-05-12T08:58:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | flag = 0
while True:
answer = main.answer_question_from_data(msg, kdata)['answer']
print(answer)
if answer == 'follow':
flag = 1
elif answer == 'stop':
k.move(0, 0)
break
forward_speed, turn_speed = f.follow(c.depth_image, flag==1)
k.move(forward_speed, turn_speed)
| [
"lamkinun@gmail.com"
] | lamkinun@gmail.com |
f3e8bbb985e9c431950c37d1dbd0f064440bd7c5 | 7437c54720a7e221ac99f436919c7988458abd1e | /src/tests/skills/test_sample.py | 4cd1e26fe0cf80a6258a959eecc4e1b7cd88fa71 | [
"Apache-2.0"
] | permissive | alexkryu4kov/DreamJob | e6a1ec4320836662f393f6080a5ee9600cf614ce | 27ae092d0086c8dde2ceb9598e65c3b79a654f56 | refs/heads/develop | 2023-08-04T14:35:54.231891 | 2019-12-04T15:45:20 | 2019-12-04T15:45:20 | 217,653,574 | 0 | 0 | Apache-2.0 | 2023-07-20T15:03:36 | 2019-10-26T04:03:03 | Python | UTF-8 | Python | false | false | 246 | py | from tests.constants import skills_request
def test_set_email_known_unknown(request_parser):
request_parser.set_email_known_unknown(skills_request)
assert request_parser.known == ['android']
assert request_parser.unknown == ['git']
| [
"noreply@github.com"
] | alexkryu4kov.noreply@github.com |
d83ff0cf32e9893c0e9435a58e94531245790845 | e96c5e2770f3df29a9fdfe56ae0270648d1108df | /tweetsplitter.py | 06c45a5e432f441a545da97291619e10533ed1b7 | [] | no_license | NaruBeast/tweet-splitter | 66506dfc9b1d15d487204eeda93aec3ef028f36e | a94338631d465cb8d030d18a03e64c1f7de6930c | refs/heads/master | 2023-03-02T16:02:36.175667 | 2021-02-05T05:10:11 | 2021-02-05T05:10:11 | 336,168,834 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | def tweet_splitter(text, counter):
char_limit = 280
counter_char = 8 if counter else 0
end = char_limit - counter_char
tweets = []
break_points = ".,&!?;" # Sentence ending punctuations
index = 0
if counter: # By Punctuation with Counter
tweets_temp = [] # Temporary list... | [
"mohmahn@gmail.com"
] | mohmahn@gmail.com |
f00da1225c7993c12b6cda82ddca593124f48469 | 491ecd86c572906fcbc6e59f3f4ef4812e0022c4 | /mqtt-publisher.py | ea4633db38c84f9de1bf74e68db96d00fe5670a2 | [] | no_license | velmurugan2020/mqtt | d88e614eb907ed5b1c5cc93bc0d2393ebdde3d5e | 398e3548955fb4e2f1f809b72ff26a85e8289fb1 | refs/heads/master | 2022-12-08T19:13:29.788278 | 2020-09-01T12:13:55 | 2020-09-01T12:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import paho.mqtt.client as mqtt
import time
broker_address="iot.eclipse.org"
#broker_address="192.168.1.102"
# This is the Publisher
client = mqtt.Client("p1")
client.connect(broker_address)
client.loop_start()
client.publish("test", "Hello world!")
client.disconnect()
client.loop_stop()
| [
"noreply@github.com"
] | velmurugan2020.noreply@github.com |
7d02c53728c44c82d12d502f85beedd67a1d19c0 | d631bcbcec6b0d4fc2a6e3e18d6d23ef7eb462e3 | /inventoryproject/user/migrations/0001_initial.py | e97923b45f902c1f34fe3c901c7ff57f0f453c34 | [] | no_license | NazmulMilon/inventory_system | 63e1e027977969f5fc3035811d367e8ed5277b1a | 58740904372333c779c27877b3f9ff1ae165fad5 | refs/heads/master | 2023-07-13T21:42:46.256820 | 2021-08-26T19:38:20 | 2021-08-26T19:38:20 | 399,541,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | # Generated by Django 3.2.6 on 2021-08-25 16:07
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"milon16103373@gmail.com"
] | milon16103373@gmail.com |
5c696de0f62ac5ddf947bd3c760a3a4cb5157354 | 7cda45674ecd42a371928bd7263ca959843b5436 | /Instagram/wsgi.py | da40952ae14e1ce64f4a6d88e6b263d03aa1f457 | [] | no_license | sachitbatra/Django-InstaClone | 096f3437ba74ca3609032077b25a8a299157cd80 | a69d71af91cade589a2bfc227ee50a66eea20c62 | refs/heads/master | 2021-01-01T16:22:39.806016 | 2018-11-24T17:20:00 | 2018-11-24T17:20:00 | 97,817,199 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for Instagram project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"sachitbatra97@gmail.com"
] | sachitbatra97@gmail.com |
f2a995cb08d5daa59a055ec2dd0139d44f2eb797 | f54fc8f56e5710d990966f273bc783cff9818b41 | /train.py | 5471e3a2a81677241f10c537a1b2128441ae10ef | [] | no_license | xavierign/tangoAi | aea1d7c70308b0a4e0b04ff9039c972a3aa4f48f | bef793f6a55465dab195aae95ae242b18125d60a | refs/heads/master | 2023-06-19T15:33:41.593085 | 2021-07-04T19:57:59 | 2021-07-04T19:57:59 | 367,705,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,637 | py | import os
import pickle
import numpy
from music21 import note, chord, instrument, stream, duration
import time
from keras.callbacks import ModelCheckpoint, EarlyStopping
from keras.utils import plot_model
from models.RNNAttention import get_distinct, create_lookups, prepare_sequences, get_music_list, create_network
fr... | [
"xig2000@columbia.edu"
] | xig2000@columbia.edu |
e281c75728a1005f2eeb65258609d547a8f7e51f | 4dbbd709f7a12976d52f102e05cedc0aec4b7c07 | /launcher.py | ec267e6249936d9e91832436d6f4bbb507e47c83 | [] | no_license | chartes/erasmus | 7b2ac3a4d5123897dc6ae0824e610bf615d090a6 | 5ec1662625112698e9c18cce83720e9371658ef5 | refs/heads/dev | 2020-03-21T18:01:03.711082 | 2018-07-17T09:11:42 | 2018-07-17T09:11:42 | 138,867,565 | 0 | 0 | null | 2018-07-17T09:15:19 | 2018-06-27T10:38:08 | HTML | UTF-8 | Python | false | false | 121 | py | from app import create_app
app = create_app("dev")
if __name__ == "__main__":
app.run(host='127.0.0.1', port=5020)
| [
"vrlitwhai.kridanik@gmail.com"
] | vrlitwhai.kridanik@gmail.com |
5fd20e3011e980f89584b88c39314ab97024b9db | 8a6a7d63f637c242052cbbb42b50dcf98f11642e | /inProgress/pyChess-master/BasicObjects/BaseObject.py | 0db35f95f4f00ccc470c4239e1ff7e520b605153 | [] | no_license | Paulware/waveSharePython | f77a7a2ab10c9ce52a180fe7e6607db59d36467c | 06b6b4f1527f31dbb4f65057c8c54559c36367cf | refs/heads/master | 2021-07-11T00:20:39.759342 | 2020-07-06T18:25:55 | 2020-07-06T18:25:55 | 168,863,769 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | """
BaseObject class
"""
# Module informations
__project__ = u''
__author__ = u'Pires Baptiste (baptiste.pires37@gmail.com'
__modifiers__ = u''
__date__ = u''
__version__ = u'1.0.0'
# Importations
# Specific definitions
# Classes / Functions declaration
class BaseObject(object):
"""
This class will... | [
"Paul Richards"
] | Paul Richards |
80c97795d9082435f7a91d8ed6670f3aaffe5112 | 7bca567686375d643542dedafd119546a3e63526 | /ex43_classes.py | 78d34f9e32e914e2bceb876def40ab3828020e39 | [] | no_license | gitkenan/Games-and-experiments | 50f263021b07afbf70564c84ae6fc223a3d71427 | 81e7e160fe381a32bc8a97c0a88d2f69b67ac8d0 | refs/heads/master | 2020-05-18T03:21:32.725115 | 2019-09-12T00:18:16 | 2019-09-12T00:18:16 | 184,143,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | from sys import exit
from random import randint
class Scene(object):
def enter(self):
pass
class Engine(object):
def __init__(self, scene_map):
pass
def play(self):
pass
class Death(Scene):
def enter(self):
print """You don't make it out alive. The Gothons take you captive
and ensure that you h... | [
"kenan.mth@gmail.com"
] | kenan.mth@gmail.com |
27bca25d2dc36b5ed3b2f910eae3ec8de7b5d080 | a1ef153a7249c50df517e978c7932e07757b426d | /mysite/polls/views.py | 6445a3a072999cd8c6ecb481ba52efaf2f9607f4 | [] | no_license | Sangry13/django-project | 1235e6de173ecd89ff67f1d230de35b5a34a2330 | 5e3e33e79ab564d5e3a2c782c9dfd272743a9fe7 | refs/heads/master | 2020-12-25T02:29:52.629177 | 2012-12-14T00:38:34 | 2012-12-14T00:38:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | from django.shortcuts import render_to_response, get_object_or_404, render
from django.contrib.auth.models import User
from django.contrib.auth import login, authenticate
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.template import RequestContext
fro... | [
"simeonf@gmail.com"
] | simeonf@gmail.com |
28bf6dde8bb5f2f4f836584daa7697bbbb60659a | 5679731cee36c537615d285ed72810f4c6b17380 | /492_ConstructTheRectangle.py | 864fd723b3b57af7cb42b67c170b150f6a55bac9 | [] | no_license | manofmountain/LeetCode | 6b76105190a9b62df65a7b56b6def4120498b9fa | 718f688b3d316e8c10ef680d9c21ecd518d062f8 | refs/heads/master | 2021-01-12T03:41:48.318116 | 2017-07-18T12:35:58 | 2017-07-18T12:35:58 | 78,252,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | import math
class Solution(object):
def constructRectangle(self, area):
"""
:type area: int
:rtype: List[int]
"""
width, res = int(math.sqrt(area)), list()
while width != 0:
if area % width == 0:
res.append(area / width)
... | [
"noreply@github.com"
] | manofmountain.noreply@github.com |
58a54670cfbc63f0049ae9e408774a69a90f14e8 | 98eed0bd411dbf36115d45299a669914ef7d3421 | /Ping-Ping/Jogo Ping-Ping.py | c014a5045b698be5beed8e784714c2060ef4eda2 | [] | no_license | GabrielMorais2/jogo-ping-pong | c5d833ac4501654022eef44f9ff37b87a6a0938f | c5866f205769776e1677d792abcc915399dcde30 | refs/heads/master | 2022-11-24T11:54:36.257323 | 2020-07-26T20:05:57 | 2020-07-26T20:05:57 | 282,724,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,756 | py | # Game Ping-Pong
# Imports
from tkinter import *
import random
import time
# Variável recebendo o valor digitado pelo usuário
level = int(input("Qual nível você gostaria de jogar? 1/2/3/4/5 \n"))
# Variável
length = 500 / level
# Instância do Objeto Tk
root = Tk()
root.title("Ping Pong")
root.resiza... | [
"noreply@github.com"
] | GabrielMorais2.noreply@github.com |
0a2e966187b89beb9f8331300b18f5e41d660407 | 69c882c678103b182988fb60d3e898d569980f1c | /Day 6/day6prog14.py | 6b4f901785e52ff819f090084f7e227d01a62b68 | [] | no_license | gittygupta/stcet-python | 44be9d91cdd6215879d9f04497214819228821be | e77456172746ee76b6e2a901ddb0c3dbe457f82a | refs/heads/master | 2022-03-05T11:37:08.720226 | 2019-12-01T00:56:03 | 2019-12-01T00:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | def fact(x):
pro = 1
for i in range(1, x+1):
pro *= i
return pro
def perm(n, r):
return (fact(n)/(fact(n - r) * fact(r)))
n = input("n = ")
r = input("r = ")
print(perm(n, r))
| [
"noreply@github.com"
] | gittygupta.noreply@github.com |
2fb599f614a7c8f7aecc28811d5fdeeaa7f4f484 | 3e03f4701ed09f5bf4f53c9b47fa9ebf36309bfb | /ctpExecutionEngine.py | 56eb521829d68a22d4f2f9118a4ba1c4c43433bb | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | WinQuant/arsenal-ctp-driver | 387926c08d37866a6bdc12e01265cb903bc3ea1f | 23acd98b8df8e4c7407b14a5b01de6679f2d2501 | refs/heads/master | 2021-01-21T08:02:07.396257 | 2017-02-28T07:42:26 | 2017-02-28T07:42:26 | 83,330,822 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,887 | py | '''The execution engine for CTP interface.
'''
'''
Copyright (c) 2017, WinQuant Information and Technology Co. Ltd.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code m... | [
"qiush.summer@gmail.com"
] | qiush.summer@gmail.com |
a07208baa41623aadfd3f44d003830fe174faa6c | 73b4efb5e2f79131d083711e84f06edf1db92966 | /RDT_2_1.py | d3a76058328615b0520a636ebe8963ac9d5b6dc2 | [
"Apache-2.0"
] | permissive | nicktonj/466-prog-2 | a801a8173a287de763763e97b090cda6dd5649ae | caf362b91818fb4f356a34dbcb62c0f55f977398 | refs/heads/master | 2022-03-01T04:09:03.605837 | 2019-10-12T00:20:55 | 2019-10-12T00:20:55 | 212,420,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,616 | py | import Network_2_1 as Network
import argparse
from time import sleep
import hashlib
# This is a Packet class
class Packet:
## the number of bytes used to store packet length
seq_num_S_length = 10
ack_S_length = 10
length_S_length = 10
## length of md5 checksum in hex
checksum_length = 32
... | [
"zbryantaylor@gmail.com"
] | zbryantaylor@gmail.com |
cd7fd456176850a00ea9e237f482bc0ff0b23b23 | 400ad761259442dec1a496f0e8bf516a1665ce0b | /sorters.py | a72d3fb116e422508db30994dc5f55a6f071b72a | [] | no_license | trevanreeser41/bom_words | dcdfabc5e4232e556315a0c6db9468b464f10097 | d89c017485745b42b5449e53a8e033d9d3196494 | refs/heads/master | 2021-05-20T09:42:50.144121 | 2020-04-01T16:40:01 | 2020-04-01T16:40:01 | 252,231,409 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,865 | py | # Parameters in the following functions:
# data: a list of tuples
# index: the tuple index to sort by
#
# Consider the following example data:
data = [
( 'homer', 'simpson', 50 ),
( 'luke', 'skywalker', 87 ),
( 'bilbo', 'baggins', 111 ),
( 'mike', 'azowskie', 21 )
]
#
# bubble_sort(data, 0) sorts ... | [
"trevanreeser41@gmail.com"
] | trevanreeser41@gmail.com |
1e02d4a21be50b792bdf4b14e5bcc50bd4fd9afd | c231c3205adc965d98ab69e846e543bf38207b1a | /bin/notify-proxy | ab5951b17672d6248aafc96e8555f19c39b7f9af | [] | permissive | rasa/dotfiles-3 | 879bc9cbfda315d68055c03c375ebcd4e64d70bd | 3438a379c5c70074ca697937126f3f28409db293 | refs/heads/master | 2023-09-05T13:58:03.095705 | 2021-11-22T18:41:44 | 2021-11-22T18:41:44 | 354,554,255 | 0 | 0 | MIT | 2021-04-04T13:44:12 | 2021-04-04T13:44:12 | null | UTF-8 | Python | false | false | 2,812 | #!/usr/bin/env python3
import asyncio
from distutils.spawn import find_executable
import os
import logging
import json
logger = logging.getLogger('notify-proxy')
notify_send_path = find_executable('notify-send')
@asyncio.coroutine
def is_focused(window_title):
environ = dict(os.environ, NOTIFY_TITLE=window_tit... | [
"github@skywww.net"
] | github@skywww.net | |
22b53232f46e095efd4866c40161ce323aec31d8 | 7940c9c528057521a4b2c6a9608edf48706139c9 | /code.py | 6c3b6df0054ed69aa9d8d1242634d30b89dc3114 | [] | no_license | msafdarkhan/mydata | 4f700d7b9c6709eb200cc733841ba0aa6f75c13a | 37589f71f68afb2d92ca592e8093dbf940e5c73d | refs/heads/master | 2020-06-01T20:21:38.214830 | 2019-06-13T17:50:16 | 2019-06-13T17:50:16 | 190,915,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,627 | py | from tkinter import *
#Defining all Sub-routines:
####################################################################################
def identify():
import cv2
import numpy as np
import os
identifier = cv2.face.LBPHFaceRecognizer_create()
identifier.read('trainer/trainer.yml')
cascadePath = ... | [
"noreply@github.com"
] | msafdarkhan.noreply@github.com |
8c6c97e42f1033b93ec5c59b7037a4bbb78588ae | f570654b7b7edd4fb45f8ff6610c68c99ecf3d9b | /restaurant/restaurant/urls.py | 926eb83fc79b9875032a8f4fa4abf3e43860e7b0 | [] | no_license | Sam11360/django | 596f8d7a224f80486bf71c29cfa40c54ea40db70 | 3fa5a62888e1671a68dd94d8bb9156c86d48a59c | refs/heads/master | 2021-01-21T14:56:40.622282 | 2017-07-03T13:59:50 | 2017-07-03T13:59:50 | 95,230,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | """restaurant URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"baleclyps@hotmail.fr"
] | baleclyps@hotmail.fr |
1e9cb8061f6aae23dd4a1704f261f1fd6fbb8916 | b85c21315f9ebb19b76cb1bab2f904fa7c726f11 | /预科/7-10/作业讲解/非诚勿扰.py | d58a2a48159a290b9c7ab3699fa64ffc9bd2ea1a | [] | no_license | Ngyg520/python--class | 10d07981dc7fd1a559bc9ab1acec68840c5f0cf0 | 58647b6a8e9ad631ce5dc293395cc8bddd992adc | refs/heads/master | 2020-03-26T11:28:19.367471 | 2018-08-15T11:27:37 | 2018-08-15T11:27:37 | 144,844,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | man_age=int(input('请输入男生的年龄:'))
man_height=int(input('请输入男生的身高:'))
man_weight=int(input('请输入男生的体重(公斤):'))
man_income=int(input('请输入男生的收入:'))
woman_age=int(input('请输入女生的年龄:'))
woman_height=int(input('请输入女生的身高:'))
woman_weight=int(input('请输入女生的体重(公斤):'))
woman_income=int(input('请输入女生的收入:'))
if (20<=woman_age<=30) and (... | [
"1755193535@qq.com"
] | 1755193535@qq.com |
fc579a4c1ef34346215732c86f64d6cccd35a1d7 | 0c212aa63d07e84fbad849d15f2ee6a72aea82d2 | /03-Package/p05.py | 97746f6706a0c92afc79db4efa4a3440e9f2a3a6 | [] | no_license | flyingtothe/Python | e55b54e1b646d391550c8ced12ee92055c902c63 | 064964cb30308a38eefa5dc3059c065fcb89dd9f | refs/heads/master | 2021-08-06T19:44:42.137076 | 2018-12-03T12:15:15 | 2018-12-03T12:15:15 | 145,518,863 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | from p01 import *
sayHello()
stu = Student('sss', 88)
stu.say() | [
"heidemeirenai@163.com"
] | heidemeirenai@163.com |
ba5005318e358cdcd9c9dfb8ddb237303ae65140 | 8a3b144f871815b9e89e6b4326910747817a4bc7 | /learning_logs/models.py | 3d6d9289b0340984e28a31ca8680d39defe1c6be | [] | no_license | borays/learning | b71777be9298dc87b81f821319d0131495762ee7 | e2e5ab0fe6859635b329a844837546b711b557e3 | refs/heads/master | 2021-01-21T01:33:22.570183 | 2017-08-30T12:43:51 | 2017-08-30T12:43:51 | 101,879,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | from django.db import models
#for user data
from django.contrib.auth.models import User
# Create your models here.
class Topic(models.Model):
text = models.CharField(max_length=200)
date_added = models.DateTimeField(auto_now_add=True)
owner=models.ForeignKey(User)
def __str__(self):
return s... | [
"borays@qq.com"
] | borays@qq.com |
3ff68a4c1c5275640a532fc3ea8213874164cbde | 81435421d3741d7c3a09f66537427717fe0ee823 | /PyBitcoin/utils/conversions.py | 87f2a53f9dbe6a2b8e4fc1b337b17932ecfcda1f | [] | no_license | Scowley4/PyBitcoin | 2d958c3c164d45f7544465e8bab4105fee78352e | 7fa228e06907a57b27cd82710eeb2adda5f2f207 | refs/heads/master | 2020-05-03T07:03:49.276531 | 2019-04-18T15:04:51 | 2019-04-18T15:04:51 | 178,488,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | def hex_byte_swap(h):
"""Swaps endianness of a hex value."""
return bytes.fromhex(h)[::-1].hex()
def int_to_nbyte_hex(i, n, lendian=False):
"""Converts int to nbyte hex."""
h = ('{:x}'.format(i)).zfill(n*2)
if lendian:
h = hex_byte_swap(h)
return h
def int_to_varint(i):
"""Converts... | [
"stephencowley44@gmail.com"
] | stephencowley44@gmail.com |
7cc4981c7cd0c60282834db79a919e6aa5ad472b | f879a376a17de22256257436bc59d34fa45a0c05 | /estado.py | 414e34caf7ad1669a60dcd10d6ab04713ab4a8e2 | [] | no_license | braldanago/Trabajo1 | c2b58c3b9089ae92e8b97e80bb35cc28ec980455 | 5bdce9246f4c5a3f3d9ed559ceb5d57e9f4fc9a1 | refs/heads/master | 2021-06-23T19:19:27.700833 | 2017-08-11T03:00:11 | 2017-08-11T03:00:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | def dec_a_bin(decimal):
if decimal == 0:
return ""
else:
return dec_a_bin(decimal//2) + str(decimal % 2)
print("Resultado " + dec_a_bin(6))
| [
"noreply@github.com"
] | braldanago.noreply@github.com |
dc5ea16ec7bea01bcd37de490d79bc1f42277f89 | 174dd6831c7c79dc299bf83b7278c72244f553f8 | /Una0112/source/0804/GET.py | 84abad7bd36e93952abbfd1337b39dfa2ff8c7fc | [] | no_license | Zaybc/bingyan-summer-camp-2020 | a4e95cd5c2ac6bd7687516c02f0336587e7ae2e7 | 821b949565a4cbb4f5d3d89c3ea13c04518c60bc | refs/heads/master | 2023-04-15T21:25:41.432267 | 2021-03-20T07:24:53 | 2021-03-20T07:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 3 16:15:22 2020
@author: 16038
"""
import urllib.request
import urllib.parse
import ssl
# 取消代理验证
ssl._create_default_https_context = ssl._create_unverified_context
# url 地址
url = "http://www.baidu.com/s"
word = {"wd": "贴吧"}
word = urllib.parse.urlencode(word) # 转换成ur... | [
"59985892+Una0112@users.noreply.github.com"
] | 59985892+Una0112@users.noreply.github.com |
5106b4bc6065ba4a922017012271755814c6cbb5 | ad0df4e7cd5a75f9272ec40321c9e4863d40dc18 | /extensions.py | 0f2c9962d20e3e92841d4e984adf2adf3548e067 | [] | no_license | gitxiangxiang/crawls_of_guangxi | 2ddad8d61384553aaddd9367ea6d93289350428e | f5174928cc072078c7bfbde3e25883ee15125d77 | refs/heads/master | 2023-01-02T07:36:28.806193 | 2020-11-01T17:17:18 | 2020-11-01T17:17:18 | 297,000,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | from scrapy import signals
from scrapy.crawler import CrawlerProcess
from scrapy.exceptions import NotConfigured
from guangxi_by_sxp.utils import SpiderCounter
class SpiderOpenCloseLogging(object):
def __init__(self, item_count):
self.item_count = item_count
self.items_scraped = 0
self.sp... | [
"xiang@git.com"
] | xiang@git.com |
f7bddb9f78d1af55f6cdc5c3f6c8d5430cbb95c3 | a11b99b9e423eda5c4e0b26d32b93fe9af5967e7 | /app/posts/models.py | df64e4d71ec671f464ad64ba92615657084ff745 | [] | no_license | vintkor/test_app_drf | d88d86717d5d1b05c0114584397c7932515caa61 | 2aceb5185f95ef2ee8c082ff7e89b8a8e34e7c2d | refs/heads/master | 2022-04-29T13:15:08.311520 | 2020-03-19T09:48:04 | 2020-03-19T09:48:04 | 248,354,484 | 0 | 0 | null | 2022-04-22T23:10:47 | 2020-03-18T22:13:07 | Python | UTF-8 | Python | false | false | 993 | py | from django.db import models
from django.contrib.auth import get_user_model
from django.utils.translation import gettext_lazy as _
User = get_user_model()
class Post(models.Model):
author = models.ForeignKey(User, on_delete=models.CASCADE)
title = models.CharField(max_length=255)
text = models.TextField... | [
"alkv84@gmail.com"
] | alkv84@gmail.com |
fa5a3c808bc276ec761788b984f27ff991cc67d7 | f5b221c8b6926ae4ab5ba65e636acb67eb35554c | /groups_manager/migrations/0001_initial.py | 42d87452c34c1d38449475d63bf4b7be9e222bd4 | [
"MIT"
] | permissive | vittoriozamboni/django-groups-manager | 2f388ef6d29c37194ce3f43d103eee054ad51c45 | b07ee33e9dd45cdf21e9d5b5e574c5ac85bab3d9 | refs/heads/master | 2023-07-01T02:30:58.548617 | 2023-06-15T09:49:48 | 2023-06-15T09:49:48 | 25,861,369 | 95 | 33 | MIT | 2023-06-15T09:49:49 | 2014-10-28T09:15:27 | Python | UTF-8 | Python | false | false | 6,381 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import jsonfield.fields
import mptt.fields
import django.db.models.deletion
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('auth', '0001_initial'),
... | [
"vittorio.zamboni@gmail.com"
] | vittorio.zamboni@gmail.com |
39a076f793af787e4e0f6223f985459d3b3a06eb | ebd2de1b198d3aacfe18f1e04788beaf81a00948 | /npc.py | a349798d548a7b1c4b671f593daf77df9fdf9233 | [] | no_license | Manethpak/python-text-adventure | 0a0d38b04ed3286496523916d8809ac0440aa8f4 | b3762260822ca6782888678af71cdee54f735944 | refs/heads/master | 2023-01-29T04:04:59.228919 | 2020-12-12T07:07:06 | 2020-12-12T07:07:06 | 303,360,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | import items
class NonPlayableCharacter():
def __init__(self):
raise NotImplementedError("Do not create raw NPC objects.")
def __str__(self):
return self.name
class Trader(NonPlayableCharacter):
def __init__(self):
self.name = "Trader"
self.gold = 1000
self.i... | [
"58499300+Manethpak@users.noreply.github.com"
] | 58499300+Manethpak@users.noreply.github.com |
24c29542f75701de4464297026f75f48b43d3ed4 | 18e2effa75180759d4fed875ae5a9a53dbbd93f9 | /HackerRank/Candies.py | d328bac5aa5726b461bcf42da137cb15f3a4e137 | [] | no_license | Shubham20091999/Problems | 3161422cc3d502df12a52bf62f078e727dc4f3c5 | 565fdd452a9c7f5db58ca3baf7cfeca6c824e459 | refs/heads/master | 2021-07-12T03:07:50.153479 | 2020-08-28T15:30:48 | 2020-08-28T15:30:48 | 198,468,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # https://www.hackerrank.com/challenges/candies/problem
def candies(n,arr):
candies = [1]*n
# Forward
for i in range(1,n):
if arr[i]>arr[i-1]:
candies[i] = candies[i-1]+1
# Backward
for i in range(n-1,0,-1):
if arr[i-1]>arr[i] and candies[i-1]<=candies[i]:
ca... | [
"shubham.patel@jai-kisan.com"
] | shubham.patel@jai-kisan.com |
a2cb206e12ecf1ac18256a7a20df090cdb7e6379 | 4fb0feb7f460dae19d788bcea02e294020fc5fc3 | /src/AlgorithmGridView.py | 71566f844b520ad58a7e56863042ef2625da4983 | [] | no_license | TheChouzanOne/AlgorithmCompare | e24033fde6aa6e2ff469bfe08807ad1d4912cc8c | b76dc6221c5ea39ed48f4f3802d94f4bb6181444 | refs/heads/master | 2022-09-06T10:02:55.402314 | 2020-05-26T01:14:48 | 2020-05-26T01:14:48 | 262,175,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import graphics as gx
class AlgorithmGridView:
def __init__(self, width, height, nodesPerSide, config):
self.config = config
self.background = self._getAlgorithmGridBackground()
self.titleLabel = self._getTitleLabel()
def draw(self, window):
self.titleLabel.draw(window)
... | [
"thechouzanone@gmail.com"
] | thechouzanone@gmail.com |
628a3cc362d668c9258cc2ea42153488961de655 | d8b19fd2011ef684444c94bdabd15cfdea61d340 | /pythonProject/data08/dataframe살펴보기/데이터프레임으로읽어오기.py | 081d7dbd7586cebaa4ee522bb36394a991f7eb1f | [] | no_license | kanu21sj/Python_Edu | 28045690addd2b161a4d134dd06be29da8dbee18 | f5b3cc3e3841a32dcf6297b2c7c3dbe72bc9a24e | refs/heads/main | 2023-04-19T01:24:20.103017 | 2021-05-06T01:10:19 | 2021-05-06T01:10:19 | 364,742,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | # 데이터를 2차원 데이터의 형태인 테이블로 읽어오려면 pandas 라이브러리 필요
import pandas as pd
import numpy as np
df = pd.read_csv("../data/2010.csv")
print(df) | [
"kanu21sj@gmail.com"
] | kanu21sj@gmail.com |
6e3669121fdd67488f4e7ec58aa121cf467f15dc | f8ffac4fa0dbe27316fa443a16df8a3f1f5cff05 | /Regex/Matching_Anything_But_New_Line.py | 9d1b4802c8910f717e3f7aafecd4dfcb1cc4b4c3 | [] | no_license | ankitniranjan/HackerrankSolutions | e27073f9837787a8af7a0157d95612028c07c974 | e110c72d3b137cf4c5cef6e91f58a17452c54c08 | refs/heads/master | 2023-03-16T19:06:17.805307 | 2021-03-09T16:28:39 | 2021-03-09T16:28:39 | 292,994,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Your task is to write a regular expression that matches only and exactly strings of form: abc.def.ghi.jkx, where each variable a,b,c,d,e,f,g,h,i,j,k,x can be
# any single character except the newline.
regex_pattern = r"^.{3}\..{3}\..{3}\..{3}$" # Do not delete 'r'.
import re
import sys
test_string = in... | [
"noreply@github.com"
] | ankitniranjan.noreply@github.com |
77eb6e1582768564296247181be6190754fbe83c | 6da178d1c3fee5709e43d8162359c1b087c29a92 | /Intermediates/level_1/level_1d.py | 4324803b75398e8a5cb52a6ce3ac48c40200302d | [] | no_license | joewofford/coding_exercise | d74e50ad3ecbb0cee13c78fb44a7a317847f2863 | ae57eee4c556e78b04668dd6cb9e799f309bc3f9 | refs/heads/master | 2020-04-06T06:54:50.296103 | 2016-08-30T16:10:31 | 2016-08-30T16:10:31 | 65,870,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,886 | py | from __future__ import division
import requests
import random
import time
import websocket
import json
import Queue
import re
from threading import Thread
from bs4 import BeautifulSoup
from selenium import webdriver
from datetime import datetime
AUTH = {'X-Starfighter-Authorization': '0c758ac77e1595c23756812113e730d... | [
"joewofford@Josephs-Mini.domain"
] | joewofford@Josephs-Mini.domain |
5e54e5543f6dc3aa9f9a040b8151490d7c0ce6cc | 3aecb162945b4738bf5a13ae10a638fb42057bdc | /ex46.py | b0fd8865135316d587da3fa683e94b19bbfd4ab7 | [] | no_license | tmemud/Python-Projects | c35f38f5adfafdc24356ac889780358283147328 | c6330986cd49f19014e18dfb12b976574d962931 | refs/heads/master-Repo | 2023-02-02T17:34:25.229646 | 2023-01-31T13:16:55 | 2023-01-31T13:16:55 | 265,056,954 | 0 | 0 | null | 2023-01-31T13:16:57 | 2020-05-18T20:41:52 | Python | UTF-8 | Python | false | false | 209 | py | #average in a loop
count=0
sum=0
for other_numbers in [1,2,3,4,5,6,7,8,]:
count= count + 1
sum= sum + other_numbers
print(count, other_numbers, sum)
print(count, other_numbers, sum/count)
| [
"noreply@github.com"
] | tmemud.noreply@github.com |
fba5870fe191a0fc0b1193de47a1b812cb0a2846 | 7574d5b3dc8a6feb9a363fed8e7303a110faf4ba | /public/cgi-bin/signup.cgi | 29f954e826aeee78159eb13fb8371a6a8cea4091 | [] | no_license | augustecolle/Komen-eten | a6b4e820734291083cf122127d0122e5d458e5bc | 50ca2087ef26e059d28b5353b304a635eb26fcc0 | refs/heads/master | 2016-08-12T03:00:56.172754 | 2015-07-15T19:40:19 | 2015-07-15T19:40:19 | 36,119,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | cgi | #!/usr/bin/python
# this script uses passlib to hash the passwords
# to install it:
#
# pip install passlib
#
#
import imp # to find our user_database module
mod = imp.find_module("user_database",["."])
user_database = imp.load_module("user_database",*mod)
import cgi,cgitb; cgitb.enable()
from user_database import Us... | [
"camille.colle@ugent.be"
] | camille.colle@ugent.be |
2d5ecf7358af515774131476888553a17bd614ae | 0f0be8e5cfb5fc9b0da164e428249c73e4e7b025 | /Self/Test/inherit.py | 110af38dc6e6c1fc046c584a7463f02c65123da7 | [] | no_license | tatatakky/algorithm | 3158ca558ef2171440be51750e1b6031f75220c6 | ed72e2520622a88efe8ed8120b4d2daad8f80c33 | refs/heads/master | 2020-03-10T11:17:23.882533 | 2018-05-02T16:54:12 | 2018-05-02T16:54:12 | 129,353,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | class Parent:
def __init__(self,name,height,weight): #コンストラクタ
self.name=name
self.height=height
self.weight=weight
def output_p(self):
print("<{}さんの情報>".format(self.name))
print("名前:{} 身長:{} 体重:{}".format(self.name,self.height,self.weight))
class Child(Parent):
def _... | [
"s1240232@gmail.com"
] | s1240232@gmail.com |
277a305282a2d7828d7ea54255db9def6e09bb6b | 4f6fff91dce0f9712a4c2d3bd02ac5608e48dc8e | /garageproject/models/pemilik_motor.py | 54942dd0c93d1e9591fa30614289fbd49bb22ae4 | [] | no_license | ManBeunta/ThreeGaragePython | 473046965c6255b7e2e7a8e228b1084e80e89a07 | b02c6b59b1c47f6bef07f275d7125ad65879948a | refs/heads/master | 2023-02-15T20:18:12.912033 | 2021-01-06T17:05:53 | 2021-01-06T17:05:53 | 326,122,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from django.db import models
from garageproject.models.size_motor import Size_motor
from garageproject.models.brand_motor import Brand_motor
class Pemilik_motor(models.Model):
name = models.CharField(max_length=100)
nameMotor = models.CharField(max_length=100)
brand_motor = models.ForeignKey(Brand_motor, ... | [
"ramadhanyananta@gmail.com"
] | ramadhanyananta@gmail.com |
06f4a5191659fecff39026c84ba1da0bf26db778 | 1bbb75db28908f492ee05b1d084fd8be71527579 | /hotel.py | f486d420ff862cb4287d98e4cc80112464c5ac2c | [] | no_license | gayoungoh5/my_project | 090f95c297228bbb7f0b19cf6c9ecbaa9368348a | 71f85413f9eb06fb9e8c5991c74e639c0b889b21 | refs/heads/master | 2022-12-17T22:48:36.493908 | 2020-09-10T14:05:46 | 2020-09-10T14:05:46 | 285,817,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | import requests
import pprint
import urllib.parse
import time
from pymongo import MongoClient
# 맛집 데이터는 seoul_matjip 이라는 데이터베이스에 저장하겠습니다.
client = MongoClient('mongodb://test:test@13.125.185.68', 27017)
db = client.seoul_matjip
# 서울시 구마다 맛집을 검색해보겠습니다.
seoul_gu = ["서울", "인천", "대전", "대구", "광주", "부산", "울산"]
# 네이버 검색 AP... | [
"gayoungoh5@users.noreply.github.com"
] | gayoungoh5@users.noreply.github.com |
c586bd5693c7518eb1d938ce2ad960a01f98d250 | f95e73867e4383784d6fdd6a1c9fe06cffbfd019 | /ProjectEuler/p004_Largest_palindrome_product.py | 5d8c9510aee2afac0a0864fbbfc27608ef991779 | [] | no_license | linxiaohui/CodeLibrary | da03a9ed631d1d44b098ae393b4bd9e378ab38d3 | 96a5d22a8c442c4aec8a064ce383aba8a7559b2c | refs/heads/master | 2021-01-18T03:42:39.536939 | 2018-12-11T06:47:15 | 2018-12-11T06:47:15 | 85,795,767 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import timeit
def PE004():
M=0
for i in range(100,10000):
for j in range(i+1,1000):
k=i*j
#if k==int(str(k)[::-1]) and k>M :
if k>M and k==int(str(k)[::-1]) :
M=k
print M
print timeit.tim... | [
"llinxiaohui@126.com"
] | llinxiaohui@126.com |
768d56b4aa61d462bcd2ff40eae5b901a5f5a04a | 478925516b5d32e61eacdb22555097b2318cd649 | /P47/01-06-2021/functions_examples.py | 485186078f8b09e067ba652f8a990729e4e5d0e4 | [] | no_license | Rogerd97/mintic_class_examples | fee9f867d8f846757b5a14326ab5e737b86b64c2 | 0a53f9fac13b1abe539bd345ed2186c95b3e08b5 | refs/heads/main | 2023-05-10T06:13:58.863766 | 2021-06-12T02:02:07 | 2021-06-12T02:02:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | # default parameters
def fun(a, b, c=1, d=2):
pass
import datetime
from io import DEFAULT_BUFFER_SIZE
def func(delta_days=5):
return datetime.datetime.now() + datetime.timedelta(days=delta_days)
# Create a function that makes a math operation to a given number. By default, it should be to calculate
# th... | [
"reyes2000jose@gmail.com"
] | reyes2000jose@gmail.com |
e15553e15d02f44a2891a48cfd96e63bd730812a | 3a85606fa2f643a12f0747e57cdb8bb626ccb338 | /FER_2020_python/faceDetectionWithAPIAndVision.py | 277b90e89a5e7789505fcf40462b8534a710d8a8 | [] | no_license | LucasBarrot/FER2020 | b98aaa43a8ff2784900acb8a4fccb5d43a9ba86c | dea3e175e4474a1899af1c3bcbc895b335a1def0 | refs/heads/master | 2022-12-27T19:56:46.657577 | 2020-10-15T22:11:44 | 2020-10-15T22:11:44 | 275,368,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | # -*- coding: utf-8 -*-
import requests
# Detect and return the first face found location in the image_data given (byte array : <class 'bytes'> )
def faceDetection(image_data):
ENDPOINT = 'https://istancedetecface.cognitiveservices.azure.com/' # Set the endpoint
KEY = '787e01a860bb4be0a7fb0044e286931c' # ... | [
"lbarrot.lb@gmail.com"
] | lbarrot.lb@gmail.com |
931e52355a9877de357fa0e0b6a602e2de02d64e | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayBossFncInvoiceBatchqueryResponse.py | cfe0f6e638e1c8ae763e1e65af4347042e876024 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,739 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
from alipay.aop.api.domain.ArInvoiceOpenApiResponse import ArInvoiceOpenApiResponse
class AlipayBossFncInvo... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
1b3509386baedb66e3612538112b0031faddc94e | d0c8ca75d4d87d6698e6f96d8520d8a3104b7d88 | /MT/src/onmt/Models.py | 834decfc92b7b7c8e45ac813b968c975f15811f6 | [] | no_license | pingfansong/Controllable-Invariance | 44d8ad4a7a7aa204157d66387f62107b624e86a2 | 373ac88548f93fe18d0a8f77a4faa444e0b1ba63 | refs/heads/master | 2021-01-25T13:47:36.602040 | 2017-12-04T07:46:39 | 2017-12-04T07:46:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,752 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import onmt.modules
import torch.nn.utils.rnn as rnn_utils
import math
def check_decreasing(lengths):
lens, order = torch.sort(lengths, 0, True)
if torch.ne(lens, lengths).sum() == 0:
return None
else:
_, rev_order = to... | [
"cheezer94@gmail.com"
] | cheezer94@gmail.com |
44533fbbc7b814605f1f41f18cc1a17868022aff | ad4f3c164cb3acda3863e4b3f644f5e241cdf890 | /cli_tools_py/rosnode_list.py | 021f7e6cc5345a723d23654255927c7be9f7a4e4 | [
"Apache-2.0"
] | permissive | nuclearsandwich/cli_tools | 9a1b41846c6e9910d0ab0feca1485d132e23ea4b | 4937030dbec7dabc5a051f24f5f5db54c97f03f0 | refs/heads/master | 2021-01-25T09:09:59.743138 | 2017-06-09T01:10:59 | 2017-06-09T01:10:59 | 93,792,172 | 0 | 0 | null | 2017-06-08T21:10:27 | 2017-06-08T21:10:27 | null | UTF-8 | Python | false | false | 2,047 | py | # Copyright 2017 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"noreply@github.com"
] | nuclearsandwich.noreply@github.com |
8a6abacedfda94088a76510acfaf478288bec22d | 586695a9a52c69123fd1053358c754ad3ccc11fd | /hackerrank/SockMerchant.py | f35e40b7cce9f6f4525059280226f9911658e666 | [] | no_license | nidiodolfini/descubra-o-python | 9ba8b72b88f6b0db797d844610f93cded170161b | 0759410a82f4e26272f7b761955e9cf5bab461dc | refs/heads/master | 2020-08-28T05:22:16.862971 | 2020-05-14T18:46:27 | 2020-05-14T18:46:27 | 217,604,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | n = 9
ar = [10, 20, 20, 10, 10, 30, 50, 10, 20]
def sockMerchant(n, ar):
count = 0
ar.sort()
ar.append('#')
i = 0
print(ar)
while i<n:
if ar[i]==ar[i+1]:
print(i, ar[i], "" , ar[i])
count = count+1
i+=2
else:
i+=1
return count
... | [
"nidiosdolfini@gmail.com"
] | nidiosdolfini@gmail.com |
fc6c4503a020087e941bb71c2c4ee42a2d2a12fd | d3d61b0c141d71a9666a3a700ee1c11e76288b3e | /extra/helper.py | 7f1c183e33fe0cf5c73c8b8d2118ed5f1f05fb5c | [] | no_license | sharababy/py-dip | c84aaec7bc2a55c9d37e4eaa806744b42a940454 | 0ef480e9b177bca479e49be4a6fd4bbede0e5e07 | refs/heads/master | 2021-04-29T00:41:22.460947 | 2018-05-16T09:26:01 | 2018-05-16T09:26:01 | 121,835,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | def truncate(f, n):
'''Truncates/pads a float f to n decimal places without rounding'''
s = '{}'.format(f)
if 'e' in s or 'E' in s:
return '{0:.{1}f}'.format(f, n)
i, p, d = s.partition('.')
return '.'.join([i, (d+'0'*n)[:n]])
def linearSolver(x1,y1, x2,y2):
m = (y1-y2)/(x1-x2);
c = int(... | [
"bassi.vdt@gmail.com"
] | bassi.vdt@gmail.com |
a7a56c33c5dc7c3f5ec6f3f23457b3c7828ea508 | 1ddae0fb9cbcc187a4fcafadf668dba75f9dbc74 | /prac_07/hello_world.py | 4bcf821b59cecf75876a72b03856cbbb12f2b320 | [] | no_license | riskarampengan/CP1404 | d21bba7317d55398074f64b4d3eaf51a6bb9f490 | aa1fc655bcb75b5401e6884baa89401107585a6e | refs/heads/master | 2020-06-21T16:25:01.302935 | 2019-09-26T13:30:06 | 2019-09-26T13:30:06 | 197,501,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from kivy.app import App
from kivy.app import Widget
class HelloWorld(App):
def build(self):
self.root = Widget()
return self.root
HelloWorld().run() | [
"noreply@github.com"
] | riskarampengan.noreply@github.com |
eb5d7aba99ce10ed488f5be198476d799554acb2 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_private_link_resources_operations.py | 95f8c439d59dff4da2f06f3595ae038121fa0f85 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 8,751 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
5bd58b1f6673a0ce365efc48e5b852e5ac8e54ed | 984529e5171b0594c966b55d4680d54389ae7d0c | /cc/apps/tracking/migrations/0011_auto__chg_field_trackinglog_participant.py | 7f6cacb87c49401ac3bd180636f18403772ce2f7 | [] | no_license | afsmith/cc | 6d15616cbba7b0d47a3de1b9d4d11dddb1986f5b | 86f08c78e8d855e55488c4fdf73353e4dd8a43cd | refs/heads/master | 2021-03-16T09:52:19.020011 | 2015-04-22T11:35:07 | 2015-04-22T11:35:07 | 10,797,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,458 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'TrackingLog.participant'
db.alter_column(u'tracking_tr... | [
"hieuh25@gmail.com"
] | hieuh25@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.