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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
017913159afed747b1270dae62aabff70e28a5e2 | 677208aa111589719e24313f0c0eef6267c54cb1 | /yolagcy/urls.py | 79acc086821daad6a2618e9e95d2ad09a71a4534 | [] | no_license | amanmyrats/taksi | e97172063fb7861fb243b14142f01baf5b326423 | bef5e743c0528f14507d453cdde4617914c2c5fc | refs/heads/main | 2023-08-22T14:03:18.849574 | 2021-10-01T08:59:08 | 2021-10-01T08:59:08 | 346,410,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py |
from django.urls import path
from .views import search_view
urlpatterns = [
path('search/', search_view, name='search'),
path('search/<str:nira>/', search_view, name='searchcategory'),
]
| [
"A.SOYUNJALIYEV@bycn.bouygues-construction.com"
] | A.SOYUNJALIYEV@bycn.bouygues-construction.com |
da1f403db95e038688dc9c46c5fa9a028823e73c | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/aio/operations/_network_management_client_operations.py | b5ef06c1443c98c5807d9023cf421816c15aa794 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 47,161 | 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"
] | paultaiton.noreply@github.com |
c7aa0242abeaf5f3eaa96ceb9b88bbb05f027b94 | 19f673a34ec4aabbb67e9cd4b469f4591f5b9cc0 | /word2vec.py | 557d6c9720b523f7aa541a38b76e58149745b7c9 | [] | no_license | lucasjinreal/tensorflow_lstm | 9f409915b20443c4dcee17c3883725b7831d2096 | a50e530cab05d49d27944c0460b363a3ae4e322a | refs/heads/master | 2023-04-28T14:09:55.402372 | 2017-03-05T15:31:35 | 2017-03-05T15:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,405 | py | # -*- coding: utf-8 -*-
# file: word2vec.py
# author: JinTian
# time: 05/03/2017 11:12 AM
# Copyright 2017 JinTian. 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
#
# ... | [
"nicholasjela@gmail.com"
] | nicholasjela@gmail.com |
d38a64980bb07c06db2cda09547eb0528b777da0 | e206cc00299804ce2271eb5d1513620e44ee9a9b | /course1-algorithm-toolbox/assignments/assignment_003_quick_sort3_way_partrition/sorting.py | 7c0e0b028b58859d54188ef65c487733d890039d | [] | no_license | dmitri-mamrukov/coursera-data-structures-and-algorithms | 15459cd160f7bbae5464bf53d995bca868a0b415 | 01dd6f0dadf62a520bcafafddf7bf2b79e8e2603 | refs/heads/master | 2020-05-24T18:27:00.665642 | 2019-05-21T20:45:37 | 2019-05-21T20:45:37 | 187,410,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | #!/usr/bin/python3
import sys
import random
def __partition3(data, left, right):
"""This function partitions a[] in three parts:
a) a[left..l - 1] contains all elements smaller than the pivot element
b) a[l..r] contains all occurrences of the pivot element
c) a[r + 1..right] contains all elements gre... | [
"dmitri.mamrukov@gmail.com"
] | dmitri.mamrukov@gmail.com |
058c2972e70e67a0246e21c14b00768a128b7442 | 2a63be7cf3cd26e1dd06d93ca4a6aa8dd79e0f37 | /pythonex.py | e15cfbc878e56a6818570bc59fe6f60c7483f931 | [] | no_license | DylanGuidry/python102 | f16a4adb63b118bca68a88113b84f83926dcf553 | 11efe6dea33d1d089a597737337213155322dcb1 | refs/heads/master | 2023-05-29T19:51:23.408462 | 2021-06-08T15:39:51 | 2021-06-08T15:39:51 | 373,930,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | #Finding the sum:
numbers = [1, 2, 3, 4, 5]
print(sum(numbers))
#Finding the largest number:
numbers = [1, 50, 92, 91048, 492]
highest_number = 0
for num in numbers:
if num > highest_number:
highest_number =num
print(highest_number)
#Finding the smallest number:
number = [2, 1, 3, 4, 5]
smallest = 5
for ... | [
"dylanguidry20@gmail.com"
] | dylanguidry20@gmail.com |
b2f3f678e8fbf93dd31fcfe427dfa72144cd96b2 | dc365f0bbbb97d50d20c273482d83b30bfae15d1 | /calculadora.py | 5986bb5f9a90ec93f2b5ff39eddbf2325f2b78ca | [] | no_license | SheilaCampanella/X-Serv-13.6-Calculadora | 3db7a9e735ae3a5bc02738915d2c67f726751ed9 | 2a25a896536df1428aa2e261896049210c0005d7 | refs/heads/master | 2021-09-06T08:55:18.058177 | 2018-02-04T15:46:31 | 2018-02-04T15:46:31 | 119,969,369 | 0 | 0 | null | 2018-02-02T10:42:31 | 2018-02-02T10:42:31 | null | UTF-8 | Python | false | false | 528 | py | #!/usr/bin/python3
import sys
try:
operando1 = float(sys.argv[2])
operando2 = float(sys.argv[3])
except ValueError:
sys.exit("Solo se permiten operandos float")
if sys.argv[1] == 'sumar':
print(operando1 + operando2)
elif sys.argv[1] == 'restar':
print(operando1 - operando2)
elif sys.argv[1] ==... | [
"sm.campanella@alumnos.urjc.es"
] | sm.campanella@alumnos.urjc.es |
96d683c068fba436d9b291a2c0b5d2c252bf3a56 | eb706c79e2294d573e85bf6474c3be5b511e079f | /Card/EPF.py | d469b6df7ff9b197d8b3571ccf8cf3a17ce5a7cc | [] | no_license | aci456852/openCV | fa1b7ce4faca083316b21cfcb1b3cc1719ab5a01 | 174965cb718c9b14862c6299f4841fdde46bad01 | refs/heads/master | 2020-12-21T05:11:46.013104 | 2020-02-18T15:03:48 | 2020-02-18T15:03:48 | 236,315,633 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import cv2
import numpy as np
#边缘保留滤波 EPF
def bi_demo(image):
#高斯双边模糊 保留轮廓 相当于美颜相机的滤镜
dst=cv2.bilateralFilter(image,0,100,15)
cv2.imshow("bi demo",dst)
def shift_demo(image):
#均值迁移 类似油画效果
dst=cv2.pyrMeanShiftFiltering(image,10,50)
cv2.imshow("shift demo",dst)
img = cv2.imread(... | [
"1084665808@qq.com"
] | 1084665808@qq.com |
0265602b0ed2b218fc0e14b8a694681805ca5e14 | b72356d9ab9f3cc73e2944ed6284232c462dea5d | /collectors/zuche/shenzhou.py | 7f247b8b0b903dbe8f238b0a2e4149a6b475422f | [] | no_license | flyg/timeline | 5b9dae5d847f8428f616aab4d656f5069e806e75 | cea93b89173b6950e48e2bb9e186fc99c23ec461 | refs/heads/master | 2021-01-17T23:25:25.901633 | 2012-05-07T02:57:00 | 2012-05-07T02:57:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,385 | py | #.-.coding=utf8
__author__ = 'konglingkai'
import urllib
import urllib2
import cookielib
import os
import xlwt
import json
import datetime
from lxml import etree
from kernel import collector
cookie_filename = 'shenzhou.cookies'
FIRST_PAGE_URL = 'http://www.zuche.com'
FORM_UNIQUE_ID_XPATH = '//*/input[@id="_form_uni... | [
"konglingkai@egibbon.com"
] | konglingkai@egibbon.com |
8acc0122b0113f851be70ee0616a6d824d1b604b | 6d8a8619eddcdc360174607658a5473b66832bcb | /message/admin.py | 94d3a3e4b6f44b5dce160d8aa2485956b00bf4cf | [] | no_license | NKCTF/NKCTF-Backend | 636508589261b377056c587cae6ba6989df58947 | d704cd5f594eff8e5248b1ccaf80ec0ab77fb59b | refs/heads/master | 2022-12-19T08:10:57.843855 | 2018-10-08T02:18:37 | 2018-10-08T02:18:37 | 150,583,931 | 1 | 0 | null | 2021-06-10T20:50:17 | 2018-09-27T12:33:30 | Python | UTF-8 | Python | false | false | 160 | py | from django.contrib import admin
# Register your models here.
from .models import Mail, JoinRequest
admin.site.register(Mail)
admin.site.register(JoinRequest) | [
"1184249450@qq.com"
] | 1184249450@qq.com |
eea3755b4336c080de33aea738527196da0e1213 | 3bd0f44a74bf8d15cbff67d92eda4a20bcc0d5c8 | /jw_testcase/testcasename003PostImpl.py | d3ee3f23c50a27b29f4c07ce2f6d6aad75f83211 | [] | no_license | cash2one/ctrip-automation | fc88f94c7956e0d471a8650b5f0b6edfe47e2d6c | df89196418c8a6e6a9b73cc04432023d6b0c0a5a | refs/heads/master | 2020-05-22T17:03:04.261193 | 2016-12-14T10:55:02 | 2016-12-14T10:55:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# encoding:utf-8
import time,os,sys,datetime,unittest
import os
sys.path.append("../")
sys.path.append("../jw_modules")
import httplib
import unittest
import json
import urllib
class testcase_api_httpsendpost(unittest.TestCase):
def setUp(self):
# self.widget... | [
"j_cui@jointwisdom.cn"
] | j_cui@jointwisdom.cn |
ddde87e2014f09bb5219a53771ad76642888329c | 0bee73e5bde6b4899db8e38e3fb59a75caf71ad9 | /src/utils/environment.py | 323a6f9dde13f302adc255ba5ba4678b64ff29d9 | [] | no_license | mycal-tucker/stalker-drone | 8e7710045b4d57fb4ddf19197371f55c1e5acfac | 245695009a1a1a70a009c4acbaf8533ef6877ced | refs/heads/master | 2020-04-04T11:54:01.756265 | 2018-12-04T22:00:39 | 2018-12-04T22:02:55 | 155,907,258 | 0 | 0 | null | 2018-11-27T19:58:50 | 2018-11-02T18:34:44 | Python | UTF-8 | Python | false | false | 877 | py | # Representation of the environment, which consists of stationary obstacles.
class Environment:
def __init__(self, obstacles=[]):
"""
constructor for a new environment object
:param obstacles: a list of obstacles, where each obstacle is a list of points
"""
self.obstacles = o... | [
"zach.duguid@gmail.com"
] | zach.duguid@gmail.com |
a55ce84d3a6c9d704dd97209345f06e6b84efeaf | c2db19a9040dbf13673bb103135ffd7dda9e623f | /microcart/microcart/settings.py | 96c16b7897cdcdf276f50359639d8619d146f0d1 | [] | no_license | MH-sabu/storefront_api | 726fce3f86fedcb61d11b2664d619b0f01bccc3a | 4492467dc681b9df4af646c29a7dd2ee2f92b439 | refs/heads/master | 2020-04-21T00:07:52.013702 | 2019-02-05T04:01:02 | 2019-02-05T04:01:02 | 169,187,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | """
Django settings for microcart project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"sabu.prof@gmail.com"
] | sabu.prof@gmail.com |
29a38d5484f0ff397b468621d0e4122048d5a301 | 1d959f9dba8ff61d214ca74ed6885b11d8574ddb | /tests/test_valid_xhtml.py | d00a28c1ce5be3286c1d3081a26faf7b5743fc3f | [] | no_license | pediapress/mwlib.epub | 20ea516ed11926723922219cd6c4e3f174697893 | d0989cf34d58a0db95744c4c39578853eb5f40f1 | refs/heads/master | 2021-01-13T02:40:10.409044 | 2013-09-11T08:21:11 | 2013-09-11T08:21:11 | 5,872,351 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | #! /usr/bin/env python
#! -*- coding:utf-8 -*-
# Copyright (c) 2012, PediaPress GmbH
# See README.txt for additional licensing information.
'''Test for valid xhtml 1.1 output
Since I have given up on producing valid xhtml 1.1 this is just a collection of
now disabled and non-functional tests/code.
'''
# def get_tid... | [
"volker.haas@brainbot.com"
] | volker.haas@brainbot.com |
4ec94a92a53e13eac7363138ee50017b41aacc98 | 969d8ec3596844d930aa9b6ac77b3764adddc03e | /model.py | 7e841523aa51dea77f29b5e27f8aa431a62ddb50 | [] | no_license | pratikmjoshi/trumptweetgenerator | d1a2c1768680cc4723efb8b4ae9d441fe0da65b6 | 328e6707f1247088684ac8efc772f5e6b85eae11 | refs/heads/master | 2021-09-20T23:50:25.075501 | 2018-08-17T05:01:46 | 2018-08-17T05:01:46 | 109,177,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | import numpy as np
import sys
import os
import keras
from keras.models import Sequential
from keras.layers import Embedding,LSTM,Dense,Dropout,Bidirectional,TimeDistributed,Activation
def get_model(vocab_size):
model = Sequential()
model.add(Embedding(vocab_size,100))
model.add(Bidirectional(LS... | [
"t-prjosh@microsoft.com"
] | t-prjosh@microsoft.com |
d04daf17932d454dd22f8c3a5fe6678b1fcf9138 | 14fbb3276c7a0ade8f0f30d10750b3839d87f500 | /custom/icds_reports/migrations/0099_service_delivery_report.py | 6ab1c34d19909dc8bc5e995b5dc82e7a8a03a973 | [] | no_license | developer11092/commcare-hq | a5725ca3a6fc6588438e10d804c23a9fa59149ec | 38aa42bfe8279d0af1eacf193c8f51344023a45b | refs/heads/master | 2021-10-23T22:27:47.254088 | 2019-03-20T08:23:59 | 2019-03-20T08:23:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2019-02-11 15:38
from __future__ import unicode_literals
from __future__ import absolute_import
from django.db import migrations
from corehq.sql_db.operations import RawSQLMigration
migrator = RawSQLMigration(('custom', 'icds_reports', 'migrations', 'sql_templ... | [
"rohit25.negi@gmail.com"
] | rohit25.negi@gmail.com |
a984fa5280233327fd1997479acb19840c8efd63 | c8d7c4ba5e949b0af2f5aa234c3ae594b1a49950 | /Python接口自动化/auto_test_old/common/scripts/temp_db_file/xj_recon_model.py | beaa278e766c8975c7a679ebc4bb38c46a2d89d4 | [] | no_license | chase001/chase_learning | 00b7396a6775fb6e2fd80950f8acf3f1737b162e | c5ee2473e49923c781212eb3f9f50341c0bc80c8 | refs/heads/master | 2022-12-12T00:08:08.407671 | 2020-03-06T14:17:39 | 2020-03-06T14:17:39 | 221,268,073 | 0 | 0 | null | 2022-12-08T05:26:49 | 2019-11-12T16:56:34 | Python | UTF-8 | Python | false | false | 55,014 | py | from common.db.MyFields import *
from common.db.func import init_database
from peewee import *
database = init_database('db_hot')
class UnknownField(object):
def __init__(self, *_, **__): pass
class BaseModel(Model):
class Meta:
database = database
class AreaCode(BaseModel):
code = BigA... | [
"chenyuliang@globalegrow.com"
] | chenyuliang@globalegrow.com |
7f9e6d7b2d645fcd5aa6bd33457e423a8acbaae7 | 485784cea86f52c2acda0a495942689104cd391e | /schedule/migrations/0002_rinkschedule_schedule_date.py | 9b86d692f4df4d3b153c2be9115884978a11c438 | [] | no_license | BrianC68/OIC_Web_Apps | 50ec9f46868ad37dc809548d2d362a4573320539 | e75b9439b11cf2325675d76dacac38806156fb16 | refs/heads/master | 2023-08-09T07:39:33.066601 | 2023-08-07T13:22:39 | 2023-08-07T13:22:39 | 197,438,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # Generated by Django 2.2.1 on 2019-10-08 23:50
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('schedule', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='rinkschedule',
... | [
"brianc@wi.rr.com"
] | brianc@wi.rr.com |
c241357210f715247bd9310a64e055e45000c867 | 1a7051fed7e872d1217bf3a4f16eab3b20b04156 | /graph_bfs_dfs.py | 1b8fc36108645ffd78145a471b7872f9e44ef99f | [] | no_license | michaelng126/python_cp | e8aa64b41fe42efc2ae7e9bf84121b3f9caf07ff | 1b28dd9e1fd4f1dcd6cf82028613ceb431f89bb2 | refs/heads/master | 2023-01-14T08:50:39.402899 | 2020-11-22T17:25:43 | 2020-11-22T17:25:43 | 315,022,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | # Graph (undirected), adjacency list form
# Connected Components via dfs
# Example BFS
# Example DFS
class G:
# vertices zero indexed
# connected components via dfs
def __init__(self, V):
self.V = V
self.adj = [[] for i in range(V)]
def add_edge(self, v, w):
self.adj[v].append... | [
"michael@michaels-mbp.home"
] | michael@michaels-mbp.home |
a5ce8e3808360b1d98652c7e2b7c2658debc42d3 | 559f3dec0964d2e0f86c6c871371fe779cf3726c | /contrib/MedicalSeg/tools/preprocess_utils/dataset_json.py | 5b3372963ae365689314ba2a9ae2d83d7a9307a9 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleSeg | 319ab26665ea492527a1949671650135123ffc39 | 2c8c35a8949fef74599f5ec557d340a14415f20d | refs/heads/release/2.8 | 2023-08-31T09:08:06.724717 | 2023-08-18T01:59:56 | 2023-08-18T01:59:56 | 204,380,779 | 8,531 | 1,866 | Apache-2.0 | 2023-09-12T02:30:42 | 2019-08-26T02:32:22 | Python | UTF-8 | Python | false | false | 478 | py | import json
def parse_msd_basic_info(json_path):
"""
get dataset basic info from msd dataset.json
"""
dict = json.loads(open(json_path, "r").read())
info = {}
info["modalities"] = tuple(dict["modality"].values())
info["labels"] = dict["labels"]
info["dataset_name"] = dict["name"]
i... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
3040ec4d0744d00d0c908c83374cffac423a5df1 | 01f134e6f6f4cbf148979ed4831fcf28639ced5a | /codificar.py | 8626bafd4e909707aa60dbbf6e630e984ad149c2 | [] | no_license | ikerseco/encrypt | a3db625b296da5f30967ca17aad98b7285944809 | 73e3f51d1759bc7daf2c050c7e0d8ae33ba153f8 | refs/heads/master | 2021-05-07T18:01:20.646506 | 2018-01-02T20:47:06 | 2018-01-02T20:47:06 | 108,777,952 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,711 | py | import os
codigo = [
"vx66cLsxoñU3ñp1;MLf*ÑlkBt3&dmqmFYY4iopCÑwÇs?9Py¿V9KKN00cRPF?jgR;ydwj2QÑ0w*!0kKlz2A$aO8aÑVoYsJU7QiI2q",
"Qm50QdjO@V7&9/QZCbrVM%VijS9%3;!xY3%b9Ñ*Çpg1Z1L^JbkSgs28@LMq¿ZnXmVR2uvyh5y?GU;M@RIWl33Z0zhbsXb%&WÑLS/",
"VGUsaVi!lnnoQY6@L!AP/2&%/Mb&zsx8?26w5sXhD*$rD*VñCa7ZWB!DI2B¿7vArZ@FRtHWJMx4m2ñ¿^?f3bGzCxP... | [
"garrantsitsua@gmail.com"
] | garrantsitsua@gmail.com |
cc30e3e61bd5839e2a0450e37255e918cb0b15cc | 814e4ad96172a76d9b72ac35697553980d0db5f1 | /pyalp/gs_interface/generate_certificates.py | e7aa246d4bb2851366daaf5f91a5fe555ce9c5c2 | [
"MIT"
] | permissive | Mause/pyalp | 29785037d3b4ebc2822e6ec74621aa65f621bb8e | fb0f723070e11f8c9ed57e2475eb963599f442a6 | refs/heads/master | 2022-12-05T12:05:01.804305 | 2014-07-02T13:04:21 | 2014-07-02T13:04:21 | 15,419,434 | 0 | 0 | MIT | 2022-11-22T00:24:05 | 2013-12-24T14:00:26 | PHP | UTF-8 | Python | false | false | 692 | py | #!/usr/bin/env python
"""
Generate client and server CURVE certificate files then move them into the
appropriate store directory, private_keys or public_keys. The certificates
generated by this script are used by the stonehouse and ironhouse examples.
In practice this would be done by hand or some out-of-band process... | [
"jack.thatch@gmail.com"
] | jack.thatch@gmail.com |
3fd7828668916336350ebd4793108ab031472436 | f9d6fce3a46297321a9429ef75834e5d48da36dc | /test/test.py | a8adb64af2593f46ae209320e7223e1eb2fd75e8 | [] | no_license | rafiei91/Assignment---Scientific-Computing-using-Python-1 | 38409a60befa72b91182d5428725d6fad04e295a | fc2c99ff3bf0b75f4ce931a0b1e5e6eb6d436ca5 | refs/heads/main | 2023-06-29T13:55:55.488956 | 2021-07-31T10:56:31 | 2021-07-31T10:56:31 | 388,409,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | """
In this file you may have your tests
"""
import sys
sys.path.append('../')
import unittest
from scipy.integrate import solve_ivp
import numpy as np
import lorenz
import case
def ode_lorenz_attractor_t(t, X):
x = X[0]
y = X[1]
z = X[2]
delta = 10
beta = 8 / 3
rho =... | [
"noreply@github.com"
] | rafiei91.noreply@github.com |
d5d3139ac75d3c0e6996ff5e91d37517035be29c | 9c60059131f9e084954c43c696472be2df640362 | /generators2.py | e064391a2ed142f8b06f8dd071cb0ed5b48d4e5c | [] | no_license | mgud1989/lear-Py | 4bf9c07fcf76b23355a2273fcf35ca882c25cc0b | 7487dfbd210684089cc9ab702527018ac7724ff2 | refs/heads/master | 2020-12-24T02:30:31.035338 | 2020-03-14T21:34:10 | 2020-03-14T21:34:10 | 237,351,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | #basicamente es para acceder o manejar array anidados
def devuelveCiudades (*ciudades):
for elemento in ciudades:
#for subElemento in elemento:
yield from elemento
ciudadesDevueltas = devuelveCiudades("Caracas", "Madrid", "Buenos Aires")
print(next(ciudadesDevueltas))
print(next(ciudadesDe... | [
"m.gud1989@gmail.com"
] | m.gud1989@gmail.com |
28cba7aaaf5149aec561511644e027600f0e5a15 | c47a7256a6371aae98399fc1547fcc404f593549 | /jalvenv/bin/django-admin | 6ff3a8e7aefb5186b21dbb19a89712434cc6810b | [] | no_license | captainjex/my-first-blog | 7a81c90a11aa6df2b8395201a787178d51240f15 | 3cb5f5aca7ee2f87435c78664940345dc6acccc9 | refs/heads/master | 2021-06-05T22:16:36.498214 | 2016-10-26T06:23:27 | 2016-10-26T06:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | #!/home/laborank/wkwksama/djangogirls/jalvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"mailpakgasing@gmail.com"
] | mailpakgasing@gmail.com | |
0f5b6933686f9dfea4edde042b1f68f228d414fd | 7d40e1de5f12521bdab2ed19d37fe3798f7695ed | /scripts/functions.py | 29939a2e4a82b5f81f086797c99a78edb46b9341 | [] | no_license | bridgecrew-perf4/AWS-ECS-Terraform-Jenkins-JavaApp-Deploy | f4db2a77fc957652278881ea062987311bc38534 | 9fda4d912fd1431414669852023cde5199138418 | refs/heads/master | 2023-03-16T18:00:04.842788 | 2020-12-16T09:33:29 | 2020-12-16T09:33:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,065 | py | import urllib.request
import urllib.parse
def availability_check(host, port):
try:
if urllib.request.urlopen(host + ":" + port, timeout=10).getcode() == 200:
print('!OK --- Connection established')
except Exception as e:
print("An Error occurred, probably can't connect to host, det... | [
"d.klocek@wp.pl"
] | d.klocek@wp.pl |
08ab2bdd3f7dd32a02472f4851a4d4ca0bc7851c | d2b1b6e5f1c1ab14dda148183a6cb5ce73368731 | /Raspberry/django/gestorArduino/carcel/urls.py | 280989259f5c678c470f170af315d2a252dd2563 | [] | no_license | jaabal/projecte_ASI | 70955983858e3a3f16c52d5414e8c1ae9c53cc3a | 6298a8576b5c2fe20a562ce5396ee9e092335d5f | refs/heads/master | 2020-03-09T01:27:37.523213 | 2018-05-25T17:06:37 | 2018-05-25T17:06:37 | 128,515,000 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | import views
from django.conf.urls import url
urlpatterns = [ url(r'^action/', views.action), url(r'^proba/', views.proba) ]
| [
"erjabal@gmail.com"
] | erjabal@gmail.com |
a98a8495541ccde04ffcafcc1ec91cf60765e561 | b0056c7b2178dde4c646c4caed433b29e2bae3e9 | /BankAccountClass.py | b6db43db3c3cf394dfd87072615a05c552211b50 | [] | no_license | victoriadonohoo/ClassesAndOOP | 1170bdbf1c0977b10732eda203427649d1f91649 | fd299348b692c57142cc9490c5d1f9c08e97b5ed | refs/heads/master | 2023-03-07T10:22:14.537477 | 2021-02-25T03:43:48 | 2021-02-25T03:43:48 | 337,841,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # The BankAccount class simulates a bank account.
class BankAccount:
# The __init__ method accepts an argument for
# the account's balance. It is assigned to
# the __balance attribute.
def __init__(self, bal):
self.__balance = bal
# The deposit method makes a deposit into the
... | [
"victoria_donohoo1@baylor.edu"
] | victoria_donohoo1@baylor.edu |
153ef5840765a6a35807780ba3aad81045b0e0b6 | e3825619d276b154588653477c45c11663339296 | /Youtube Trending Music Lyrics Scraper/support.py | 26903b7b8aa30c44fd418f1ad17d40aaa6982965 | [
"MIT"
] | permissive | Skygear55/youtube-trending-music-lyrics-scraper | f9be003f6064c686704e505072a994325ece0619 | f404ecefb3580278d880fc46365a4bacd4e41ba9 | refs/heads/master | 2023-01-19T07:58:31.572343 | 2020-11-21T14:10:47 | 2020-11-21T14:10:47 | 314,818,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 11 22:36:26 2020
@author: k.kirilov
"""
from bs4 import BeautifulSoup
import requests
""" Function truncates and formats the titles so that they can be directly input to search for genius url"""
def title_truncator(title): #argument must be a string
permiss... | [
"noreply@github.com"
] | Skygear55.noreply@github.com |
1434600aa23894fe97502d7f97ad8e909d58c0ec | 9249947c07f8addf64dd3d2a2f9f37d379f83921 | /libs/gluon/contrib/aes.py | cecf2d9073cb71ee75006f771492d0cb4b5943e6 | [
"MIT"
] | permissive | operepo/ope | eb71aa763d157416009d7c3052ace11852660e0a | 018c82af46845315795c67c36801e2a128f515d5 | refs/heads/master | 2023-08-08T15:05:28.592589 | 2023-07-25T00:22:24 | 2023-07-25T00:22:24 | 96,855,111 | 12 | 11 | MIT | 2023-03-03T15:10:34 | 2017-07-11T05:42:14 | Perl | UTF-8 | Python | false | false | 16,671 | py | """Simple AES cipher implementation in pure Python following PEP-272 API
Homepage: https://bitbucket.org/intgr/pyaes/
The goal of this module is to be as fast as reasonable in Python while still
being Pythonic and readable/understandable. It is licensed under the permissive
MIT license.
Hopefully the code is readabl... | [
"ray@cmagic.biz"
] | ray@cmagic.biz |
aeb6c6f719bb4bd7980c1dcf68a4aa5fbf449e3f | 609992bf47f2f77ecd4dd7f92dc8309b4c69d91b | /authentification/templatetags/perso.py | ff520e4393c2a5a91e1d37d28bc2c66146018c93 | [] | no_license | Sokhna-cambell/projet_planning_EPT_DIC1_GIT | c9ae99723446e161210ab75bc514e69332e65065 | 3ac6dd29bf1d7d54d7c75abfb0eee5e96142792f | refs/heads/master | 2021-03-08T05:30:05.152066 | 2020-03-10T14:09:53 | 2020-03-10T14:09:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | from django import template
from django.template.defaultfilters import stringfilter
register = template.Library()
@register.filter
def add(value, arg):
return value + int(arg)
@register.filter
def replace(value, arg):
return arg
class SetVarNode(template.Node):
def __init__(self, var_name, var_val... | [
"cambelldieng76@gmail.com"
] | cambelldieng76@gmail.com |
c68caa4bbb324ddfe067f6747e712a921df68b1c | acac8f186630c1de2fca6fa06ec5ed5d03c5785e | /mmtrack/core/track/similarity.py | 66a07300d4537b87de4c783e90f997cba5dfba2e | [
"Apache-2.0"
] | permissive | akiozihao/center_track | eb1b2afb7898537d26fa2f65b65d35c9df4c97ee | 3a06c91044e9f441963f6f602a6f223bad0eeaaa | refs/heads/master | 2023-07-03T10:56:17.233695 | 2021-08-04T02:25:49 | 2021-08-04T02:25:49 | 385,299,742 | 0 | 1 | Apache-2.0 | 2021-07-18T13:36:57 | 2021-07-12T15:45:14 | Python | UTF-8 | Python | false | false | 1,549 | py | import torch
import torch.nn.functional as F
def embed_similarity(key_embeds,
ref_embeds,
method='dot_product',
temperature=-1,
transpose=True):
"""Calculate feature similarity from embeddings.
Args:
key_embeds (Tenso... | [
"noreply@github.com"
] | akiozihao.noreply@github.com |
a81d1c8f8a794323a7e144230038a9cf75b5a284 | bbed50a6dac60e1a4d9a3173f116368c85ab5b61 | /contacts/factories.py | f2cfcb0e6ddbeb515b83031b1442c710a8cbee07 | [] | no_license | Elvirarp92/django-query-troubleshooting | 12b5523eace5b07edfb5a66a76484e2c4dae81b9 | 5370721e13ee811f353016834ef876e305318fc1 | refs/heads/main | 2023-05-14T07:43:16.037636 | 2021-06-07T10:33:23 | 2021-06-07T10:33:23 | 374,647,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | import factory
from faker import Faker
from .models import Contact, ContactSubtype
fake = Faker('es_ES')
class ContactFactory(factory.django.DjangoModelFactory):
name = fake.first_name_nonbinary()
surname_1 = fake.last_name()
surname_2 = fake.last_name()
class Meta:
model = Contact
class C... | [
"elvirarp92@gmail.com"
] | elvirarp92@gmail.com |
ee63b12e238a4138f9963f331b11ffc93c1e0fa0 | 5979cf3c79daa04706c8fef1595574c6e36c14a1 | /vgl/home/urls.py | 0547341057b158de3626eb131277cda6b03c92a1 | [] | no_license | rahuezo/valley-green-landscape-inc | f675b5242ed7a80e457b236a253fb9ed0602829c | 6dac5ed2202336a69a86c6dcafee892cbadaa5b3 | refs/heads/master | 2021-08-15T16:48:50.594629 | 2017-11-18T00:08:49 | 2017-11-18T00:08:49 | 110,613,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from django.conf.urls import url
from . import views
app_name = 'home'
urlpatterns = [
url(r'^$', views.index, name='index'),
]
| [
"rahuezo@ucdavis.edu"
] | rahuezo@ucdavis.edu |
ff3d49be3bf5b78cc08abc6a3ff566006d7ac3f2 | 8beaf464e741de2da91a077634c7fb4c598269a0 | /requests模块简单使用/05.发送带参数的请求1.py | 9ea4015f87f7501cdd9b13044c040dd9e703fb5f | [] | no_license | starrye/spider_learning | d1ee3f5a571e4c7ce26dc5dc990681ea4093a7d5 | b969e6b6ff92d15478000948c9f165ff2cee6d42 | refs/heads/master | 2020-04-23T01:40:28.238512 | 2019-02-18T05:58:19 | 2019-02-18T05:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | import requests
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36"}
url = 'https://www.baidu.com/s?wd=python'
response = requests.get(url,headers=headers)
print(response.text) | [
"hello_lwz163.com"
] | hello_lwz163.com |
16e2efa0e9f7f301ed6fff3874477844dcdea2ad | 32b15ce47bae2ae08abb06dac11bbf0da7ca2e21 | /matcher/matcher_wsgi.py | 23cfd62bb378b035ecf7584fa9046496c6503ff7 | [] | no_license | yuqiaoyan/match650 | a045453b633e92258759e92a920e3ecc620933d4 | 1698b325293948d9ac545729ab833187ae3fa06d | refs/heads/master | 2016-09-06T14:33:50.750718 | 2012-08-19T18:27:32 | 2012-08-19T18:28:03 | 3,540,984 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from lucene import *
initVM()
getVMEnv().attachCurrentThread()
SITE_DIR = '/opt/apps/site/matcher'
import site
site.addsitedir(SITE_DIR)
import os
import sys
sys.path.append(SITE_DIR)
os.environ['DJANGO_SETTINGS_MODULE'] = 'matcher.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.W... | [
"ke.wu@ibeca.me"
] | ke.wu@ibeca.me |
ea61199d476cb071f56b1843ee2812a6240fab8e | c6cd0b904dbb4a68eb6786bb4d62edf81e256424 | /guessinggame.py | 4d56a54f6eb2aca2c4e5f0672e60b1d6241d9c70 | [] | no_license | 18donovkyld/Programming-Portfolio | 99b10fee70c3e6229ee3f8aeeace925b16872dfc | c3a8eaf104e248b613cf4d9bedb62b0b986bcf21 | refs/heads/master | 2020-12-24T16:31:52.591527 | 2016-03-04T21:55:33 | 2016-03-04T21:55:33 | 41,106,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | # High Low Guessing Game
def show_instrustions():
print "Pick a number between 1 and 100 and I will try to guess it. I can do this in \
no more than 10 guesses. \
After each guess, enter: \
0 - if I got it right. \
-1 - if I guessed too high \
1 - if I guessed too low. "
def take_guess():
| [
"kyliedonovan@Alveyworld-20.local"
] | kyliedonovan@Alveyworld-20.local |
ebd421b8ca86aef485ac23adaef83b91b32a5f0a | 201bfacc820f2ecb3d0f7921f2348648369bea75 | /Project2/src/motif_prj2_console.py | 83977eb100c7dafd96545fe55e1a67267b1af86c | [] | no_license | markkuku/Bioinformatics_project_demo | 73a6663871446ef060c31d310da31e3228935881 | 0b87716918c4f3b98d32c9f0420699d23f5bb716 | refs/heads/master | 2021-01-25T09:45:02.555351 | 2017-06-10T08:04:28 | 2017-06-10T08:04:28 | 93,876,130 | 1 | 0 | null | 2017-06-10T08:04:29 | 2017-06-09T16:11:24 | null | UTF-8 | Python | false | false | 566 | py | '''
Created on 2011/11/5
@author: markku
# The console of motif finding algorithm
'''
from time import clock, time
from motif_find_obj import *
mf = motif_finding()
filename = raw_input("input your file name:\n")
#filename = "test"
#length = 3
length = int(raw_input("input your motif length:\n"))
mf.load_seq(file... | [
"b871626@life.nthu.edu.tw"
] | b871626@life.nthu.edu.tw |
3bad13cc5bddd857215b2177bebc8b7cae6f2551 | 20c80f722c451b64d05cc027b66a81e1976c3253 | /commons/libs/pyblish_qml/rpc/__init__.py | a461a54bd8d5068ae347c7d751ec764fdb30bacd | [] | no_license | flypotatojun/Barbarian | 2d3fcb6fcb1b4495b6d62fc5e32634abf4638312 | efe14dd24c65b4852997dad1290e503211bcc419 | refs/heads/master | 2021-07-18T01:43:14.443911 | 2017-10-24T03:37:43 | 2017-10-24T03:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from . import client, server, service
__all__ = [
"client",
"server",
"service",
]
| [
"lonegather@users.noreply.github.com"
] | lonegather@users.noreply.github.com |
dc89107f7dcfdfa9cd7401d4281ed7ea790232a3 | 0ad7f553df6b210b5ac004fbf490ed651a21d55e | /algos/discrete_esay_control_lib_01.py | ef19dd246fb029fd2da77e0c6b9a839eebbfc2a8 | [] | no_license | MarianoDel/spyder_python | fa00987eb9aa1ef61d7224679a84c05a217c6c35 | 5f5896df68f95eb860bc08c21ae2b19516432cdc | refs/heads/master | 2020-05-23T06:14:57.329478 | 2020-04-23T14:58:16 | 2020-04-23T14:58:16 | 84,753,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | # -*- coding: utf-8 -*-
#usando libreria de control
import numpy as np
from scipy import signal
b = [0.125, 0.125, 0.125, 0.125, 0.125, 0.125, 0.125, 0.125]
tf1 = (b, [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.001) #ver que dt coincida con el step de tiempo en discreto
#w, h = signal.freqz(b)
#w, h = sign... | [
"marianodeleu@yahoo.com.ar"
] | marianodeleu@yahoo.com.ar |
67f12d8933ae63eef4aa93f09cc44f61d8f48c3d | 7801b0356b60de5a4fa6b214717a1c04942b5b62 | /crm/migrations/0003_userinfo_user.py | 2daf274b45a19a80d357f35f9323cbef54a43799 | [] | no_license | hqs2212586/CRM_demo | 365652c61c991a2098d32b5db318d55cf29baa0b | 941a896aef598d81750a96074bc63ccfaaadf0a5 | refs/heads/master | 2020-03-27T17:43:40.110992 | 2018-08-31T09:20:01 | 2018-08-31T09:20:01 | 146,869,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # Generated by Django 2.0.6 on 2018-08-31 03:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rbac', '0004_permission_action'),
('crm', '0002_customerdistrbute'),
]
operations = [
migrations.Ad... | [
"443514404@qq.com"
] | 443514404@qq.com |
c462fe20d6d7cce0e51e04a3e6bcad1a9adb245d | fdbe0e560f9488d9cbeca7f633c242a0bde57f1f | /reverse_word_order.py | 67f78677caeb2326c4943d0690316215f7a93531 | [] | no_license | adamcfro/practice-python-solutions | a3e497307de715c993134f4f4fbb74b5b48a032e | e3d8a6c8e4c600bd2511a53ea32d3dca87bd9554 | refs/heads/master | 2022-07-10T04:08:23.639000 | 2022-06-28T13:25:18 | 2022-06-28T13:25:18 | 153,543,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py |
# def letters_reversed():
# backwords = input("Give me several words: ")
# return backwords[::-1]
# print(letters_reversed())
##########
def words_reversed():
backwords = input("Give me several words: ").split(' ')
return ' '.join(backwords[::-1])
print(words_reversed())
##########
def reverseW... | [
"adamcfro@gmail.com"
] | adamcfro@gmail.com |
2a02caa7558f764522bd58b00871216e796676d8 | d42dea822871be6027fadbf8b167be1c0b38d9c7 | /BST/debug.py | 2cc73f8d9784aa9f8a21c2b7530ff531d0bb1e4b | [] | no_license | siddhantprateek/Python-in-Practice | d8412c46dec57d512d8abd87cb0a33b71070c5ee | 0ad806f02fecb87de20078ef956f8e23bb38e342 | refs/heads/main | 2023-06-26T22:34:55.172882 | 2021-07-29T15:14:09 | 2021-07-29T15:14:09 | 354,875,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | class BSTreeNode:
def __init__(self, val):
self.value = val
self.left, self.right = None, None
class BinaryST:
def __init__(self):
self.root = None
def insert(self, val):
self.root = self.insertHelp(val, self.root)
def insertHelp(self... | [
"siddhantprateek@gmail.com"
] | siddhantprateek@gmail.com |
debb5cc0393534e545e36b88a2e60783faca5eef | cbbaa3fc4b747e666c18ae9ddc2b24ffa9da9a8f | /workspace1/build/mrobot_gazebo/catkin_generated/pkg.develspace.context.pc.py | 964395d3266f6d7c4228bc2520a77bf6c32f652b | [] | no_license | bucky527/roswork | 4aef0fc6b5ceea418df7ac3628cf79febbcd62ee | bcc5810e60ff7e24a73bee711fb4fe023e3beec9 | refs/heads/master | 2022-04-27T18:22:26.934289 | 2020-04-28T15:06:39 | 2020-04-28T15:06:39 | 255,950,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "mrobot_gazebo"
PROJECT_SPACE_DIR = "/... | [
"435133229@qq.com"
] | 435133229@qq.com |
4f25b1e5b4f7a4e50b0cdaa6f94e53e850f93c0b | d2316e3902190dfa766258471270335295d59892 | /suggestions/migrations/0001_initial.py | 3c71b0bb5dcfba8963325ac5faaf95e087b0b124 | [
"BSD-2-Clause"
] | permissive | yoniLavi/Open-Knesset | 62c18585470e5c859f96b8934b340ba03edbfeab | 8297e5431914edb48b12e4d5a17b910ac9271b59 | refs/heads/master | 2022-06-05T13:28:08.575149 | 2013-07-03T22:59:34 | 2013-07-03T22:59:34 | 7,697,672 | 0 | 0 | BSD-3-Clause | 2022-05-21T00:22:58 | 2013-01-19T01:25:48 | Python | UTF-8 | Python | false | false | 8,743 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Suggestion'
db.create_table('suggestions_suggestion', (
('id', self.gf('django.d... | [
"mkriheli@gmail.com"
] | mkriheli@gmail.com |
5ae9b28df851a85fea96edf6169e6cf8f14c6a50 | 07f92805a75dc91b8be2ac14c238394245eda9ea | /Python生物信息学数据管理/python-for-biologists/03-modular_programming/10-functions/calc_atom_atom_distance.py | 5156d4af63c5626cef0355e63c950a6aecc07d18 | [] | no_license | 08zhangyi/Some-thing-interesting-for-me | 6ea7366ef1f0812397300259b2e9d0e7217bcba0 | f4cbda341ada98753c57a3ba07653163522dd023 | refs/heads/master | 2023-01-11T22:54:03.396911 | 2023-01-06T05:47:41 | 2023-01-06T05:47:41 | 136,426,995 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | '''
Find two alpha-C atoms in a PDB structure and calculate their distance.
-----------------------------------------------------------
(c) 2013 Allegra Via and Kristian Rother
Licensed under the conditions of the Python License
This code appears in section 10.4.4 of the book
"Managing Biological Data wi... | [
"395871987@qq.com"
] | 395871987@qq.com |
21393f5ec3107ae718cce881c013ad295cbc9e74 | bf74f773f0c69e0ce7c5cc57a5897ca86cca6587 | /custom_collections/tree.py | b2452b64db079d1947db82cf94a240f15c822c36 | [
"BSD-3-Clause"
] | permissive | weijia/custom_collections | a532b01b18049f0e0aad9920f8e90d45e3c24812 | e9b7bcc25f83f6a9adfbee94c825835414799aab | refs/heads/master | 2016-09-06T09:01:05.969014 | 2014-09-20T17:42:48 | 2014-09-20T17:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,068 | py | import uuid
from django.utils import timezone
import django.db.utils
from django.contrib.auth.models import User, Group
from django.contrib import admin
from django.conf import settings
from obj_sys.models import UfsObj
from guardian.admin import GuardedModelAdmin
from guardian.shortcuts import assign_perm
try:
... | [
"richardwangwang@gmail.com"
] | richardwangwang@gmail.com |
43589f610d031b46faaa40ca7ed51622d5c8345d | 8c9c27cb88a2d210a5e2fb5803fe89204dba95ef | /phy/gui/qt.py | fee9e2549519dba466c131d6a190d3459af0496c | [] | no_license | arnefmeyer/phy | c13b1eceb70ee72cf0ff9c4a273e195f122fabc4 | 14663e1f2baad421d6bc9f420d34170c6c969bbe | refs/heads/master | 2020-12-07T15:42:49.605432 | 2016-04-20T21:10:38 | 2016-04-20T21:10:38 | 56,718,986 | 1 | 0 | null | 2016-04-20T20:32:18 | 2016-04-20T20:32:18 | null | UTF-8 | Python | false | false | 4,107 | py | # -*- coding: utf-8 -*-
"""Qt utilities."""
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
from contextlib import contextmanager
from functools import wraps
import logging
import sys
logger = l... | [
"cyrille.rossant@gmail.com"
] | cyrille.rossant@gmail.com |
8fccd0cff368e16ca6d7c0dc283a75d8b574cc55 | 75b1524774479afee0c9bc1fc4beb7325f9ac021 | /adivinhacao/adivinhacao.v10.py | e002fe645a35119e4b21a3599d5d5959a534bbc6 | [] | no_license | ronaldfalcao/formacao-python-alura | 2fb8c10dbd56a5dc34a61ed9dfc40ae03d77a41e | 460ab551e6f8d43d3e8c2de27033467dd939ef7c | refs/heads/master | 2020-12-04T08:12:08.204505 | 2020-02-27T01:11:59 | 2020-02-27T01:11:59 | 231,689,854 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py |
import random
print(36 * '*')
print("* Bem Vindo ao Jogo da Adivinhação *")
print(36 * '*')
numero_secreto = random.randrange(1, 101)
total_tentativas = 0
pontos = 1000
print("Escolha seu nível de dificuldade:\n", numero_secreto)
print("(1) Fácil\t(2) Médio\t(3)Difícil")
nivel = int(input("Escolha seu nível agora: ... | [
"ronald@ronaldfalcao.com.br"
] | ronald@ronaldfalcao.com.br |
0a9353bdfb1b9fb77bb469e3de9a5a5472e7acb1 | 2283ed34956c6a3d2aecf2bd6a0d9ed61e70b17b | /python_command_process/command_ex1.py | 67a1e208a94b747126569523e156d825c0d4bd1f | [] | no_license | starshineman/frank_python_toolbox | d6ec51be5713c4222589aefdb45852ef7976a6c2 | cd59132148db16cfc7ac40202e4a80686587f9a4 | refs/heads/master | 2021-06-09T11:23:33.616931 | 2016-12-11T03:16:39 | 2016-12-11T03:16:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import sys
import getopt
def get_opt():
opts, args = getopt.getopt(sys.argv[1:], "hi:o:")
input_file=""
output_file=""
for op, value in opts:
if op == "-i":
input_file = value
print input_file
elif op == "-o":
output_file =... | [
"junjunwang1@creditease.cn"
] | junjunwang1@creditease.cn |
a92804e62a65f55e2f8b2801e043655a9d1c621c | 8ba99582cfa3ef771bb38947247dd457002ed0b7 | /poly.py | 0578eff91db2e27dac0f3458898abbc41c11c5e2 | [
"MIT"
] | permissive | psorus/graham | 928280f9324101fa63e56902d0419b131b214f5c | b986c3657ee6a679581a5c13ce17f5b784ac8fcc | refs/heads/main | 2023-03-21T13:55:46.631383 | 2021-03-23T19:36:43 | 2021-03-23T19:36:43 | 326,035,321 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py |
def basis(n=3):
return [unit(i) for i in range(n)]
def unit(i):
ret=[]
while len(ret)<i:ret.append(0.0)
ret.append(1.0)
return poly(*ret)
class poly(object):
r1=0.0#ranges for the orthogonality
r2=1
def __init__(s,*q):
s.q=q
def ql(s,l):
ret=list(s.q)
while len(ret)<l:
... | [
"simon.kluettermann@rwth-aachen.de"
] | simon.kluettermann@rwth-aachen.de |
8f19500bec07cb1d58e54569fa7819da44bba7f3 | 7d95e90453752d03606e3557227f31c673b8cdad | /Basic Programs/Python/W3ForSchools/5-DataTypes.py | f1ceafedeea49dc24c9a9fe86f58c5b893543022 | [] | no_license | mayur-jagtap/Hacktoberfest | a2d70bafba03dffe2d182a986c99e5b94f67038a | 1e7096be5132ab0d51ab58cdd424440666c7a4a8 | refs/heads/main | 2023-08-26T23:10:52.017951 | 2021-10-27T06:57:25 | 2021-10-27T06:57:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | """
Text Type: str
Numeric Types: int, float, complex
Sequence Types: list, tuple, range
Mapping Type: dict
Set Types: set, frozenset
Boolean Type: bool
Binary Types: bytes, bytearray, memoryview
"""
#Getting data types
intv = 5
print (type(intv))
strv = "This is a string"
print (type(strv))
floatv ... | [
"noreply@github.com"
] | mayur-jagtap.noreply@github.com |
39cee95e4282f7757bc95867b9002bfc9eab11e4 | e2b4e4715e117b413650db30e5f5cb0f4e784f84 | /mysite/settings.py | 9dc79270f793674ceb392d5b36f5b26b749aa3e6 | [] | no_license | Yuxin45/CMPUT404-lab4 | f3c183e2d355b2eb41cbad005fc4749db94633e0 | 7825cb35dc51fee6beee1ab5e84c8d8ff6ce2d9c | refs/heads/master | 2023-02-26T13:15:28.619240 | 2021-02-02T21:04:13 | 2021-02-02T21:04:13 | 335,119,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.6.
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 ... | [
"yliu17@ualberta.ca"
] | yliu17@ualberta.ca |
21a7a0d191e436778696a60dc3d9ec84201d7805 | 9e2fee3aecc462f8a7250fe31a8a43ee6bf271d3 | /11.py | 7ff8a2cfc5126954d0d78069e53ba159a7d95d26 | [] | no_license | kushalchordiya216/OpenCV-Practice | 426396fdb82a2bf69e704e53ab21c6fe90eec7a4 | 8e6d92cc6b68a58478e4a082a842a2b776d6e64f | refs/heads/master | 2020-06-16T06:27:56.715621 | 2019-07-06T05:40:16 | 2019-07-06T05:40:16 | 195,502,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import cv2
import numpy as np
img_bgr = cv2.imread('test_image.jpg')
img_gray = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2GRAY)
template = cv2.imread('template.jpg', 0)
w, h = template.shape[::-1]
res = cv2.matchTemplate(img_gray, template, cv2.TM_CCOEFF_NORMED)
threshold = 0.8
loc = np.where(res >= threshold)
... | [
"chordiyakushal@gmail.com"
] | chordiyakushal@gmail.com |
3ae34a178134449c68525baf4ebdd896725934b8 | 83ba57063f31447afa4914dfe272a7ec5f82e249 | /conditions_and_loops/positive_or_negative.py | 83e0c0c64c3ae5359dfb02aa0cc2e9f98c078855 | [] | no_license | timekeeper13/python_scripts | 81085381f35548bb6a7c2d524544178487d539df | e34433394c3cf86a6059c87bf85f9a993527c81c | refs/heads/main | 2023-04-30T13:14:53.130651 | 2021-05-14T04:53:19 | 2021-05-14T04:53:19 | 366,722,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py |
a = float(input("enter the number : "))
if a < 0:
print(f"the number {a} is negative")
elif a == 0 :
print(f"the number {a} is zero")
else :
print(f"the number {a} is positive") | [
"noreply@github.com"
] | timekeeper13.noreply@github.com |
7c6e0f6234acef62dcc182e1e93468181f99ce5c | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/apigateway/apis/DescribeIsDeployApiGroupsRequest.py | 5734f9aeb75d8ebb2d719eb77989012b428bf204 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,460 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"tancong@jd.com"
] | tancong@jd.com |
28e7a8291a172f4b4e2037a1d25ea719a7d1cf32 | 3a6cec32b4faedf54ecfd418c072f4ec0c58139b | /property_management /report/__init__.py | f28ac9003c1b73ea835fa2ead3b08bfee949bda2 | [] | no_license | ketul-1997/2021-Tranie-demo | 6db5ee0e49386f5db1287c19d6cc1a857aac6b6e | 45fa89cfb6912d122bd65b65c094e3df897096e4 | refs/heads/main | 2023-02-20T22:59:44.073229 | 2020-12-30T12:33:30 | 2020-12-30T12:33:30 | 325,518,542 | 0 | 7 | null | 2020-12-30T12:34:35 | 2020-12-30T10:16:11 | Python | UTF-8 | Python | false | false | 54 | py | from . import tenancy_repot
from . import date_report
| [
"shahketul97@gmail.com"
] | shahketul97@gmail.com |
34c7b773e53917d2159f02ce52b8b596c639c5d3 | df5646391c32799e436bb2d89df2fce4d331778a | /LSTM/rnn.py | 0507ded4ae0b1b0d1d169d017dabee0173492739 | [] | no_license | sukruc/Time_series | 73af4f04ea13fdd4d7532677ddc0fc24297d8591 | 942e105aa361702297acd0c7d3699ceac25e2167 | refs/heads/master | 2020-03-28T14:48:09.202321 | 2018-10-20T23:02:34 | 2018-10-20T23:02:34 | 148,524,053 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,057 | py | # Recurrent Neural Network
# Part 1 - Data Preprocessing
# Importing the libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import statsmodels.api as sm
import statsmodels.formula.api as sf
import statsmodels.tsa.api as st
from arch import arch_model
from plots.plot_series import tspl... | [
"39256971+sukruc@users.noreply.github.com"
] | 39256971+sukruc@users.noreply.github.com |
a0e47b2dc0fcc47fb71038af8cc410bbb4a1d078 | 4d30d393fbd9bdf6955409c99a3122502377d9b9 | /scripts/development/zdoom/github_release.py | 48c2cd1b2bac3a0fea86361bb50b94c322fdc844 | [] | no_license | Nonamiriuki/tools | a4a141e52d50eb4db4de9157e2288dabc47ce4cd | 6cc5371a951d4b8031ed3b04987d491270a6a7fd | refs/heads/master | 2022-04-11T01:35:35.565414 | 2020-04-01T14:19:06 | 2020-04-01T14:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | #!/usr/bin/env python
import sys
import os
import traceback
import github3
if 8 != len(sys.argv):
print('Usage: github_release <user> <token> <repository> <tag> <name> <description> <file-to-upload>')
sys.exit(1)
class Config(object):
pass
config = Config()
config.user = sys.argv[1]
config.token = sys.a... | [
"alexey.lysiuk@gmail.com"
] | alexey.lysiuk@gmail.com |
e7ef376d819a5f5d02e4afb8eb7e19d9d6c7d651 | fd8b5abc390fa584266694abda7e8d558ad43f73 | /1-python基础/2-OOP/01.py | da607f0c962dbf4803b48d78ffd8b654d4d344d5 | [] | no_license | nightwarm/Python_lerning | e01899846c8d27e2f774d1da377b7dfab01ba664 | a0483f1f96f5443059d33809c15f95ebafb29cd2 | refs/heads/master | 2020-05-09T16:36:46.187539 | 2020-02-29T06:50:09 | 2020-02-29T06:50:09 | 181,277,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | '''
定义一个学生类,用来形容学生
'''
#定义一个空的类
class Student():
# 一个空类,pass代表直接跳过
#此处pass必须由
pass
# 定义一个对象
mingyue = Student()
# 在定义一个类,用来描述听Python的学生
class PythonStudent():
# 用None给不确定的值赋值
name = None
age = 18
course = 'Python'
# 需要注意
# 1.def doHomework的缩进层级
# 2.系统默认除一个self参数
def doHome... | [
"nightwarm@126.com"
] | nightwarm@126.com |
9cc54889a765bab903199f828a43ea283d327182 | 252289003a312e81033c0510ffb6c74601330e30 | /yyTagManager/serializers.py | 9f358ede44b48a4399c437519e4d9904a0c7deba | [] | no_license | ComiCoder/YoYoProject | 5283d9b83d3b87077916697b9a861b1d8233c0a6 | 3fb5a80642c98a2eeef3b78c4dbca4f3e8d86a90 | refs/heads/master | 2021-01-22T10:18:27.728374 | 2014-12-17T07:03:39 | 2014-12-17T07:03:39 | 26,566,679 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from rest_framework import serializers
from yyTagManager.models import YYTagInfo
from rest_framework import pagination
class YYTagInfoSerializer(serializers.ModelSerializer):
class Meta:
model = YYTagInfo
fields = ('id','tagType','tagValue','status',
'createTime','updateTime'... | [
"glutinit@gmail.com"
] | glutinit@gmail.com |
8b7641767d7456a30a42aaefeb9cee8c4c607de4 | 51888119e10cdff12dafb060a54824632edccf3f | /Folders/Python/BlackSailSubmit.py | fb3aabf18c996ca4a44e2ffda207c3e9e2ed6b01 | [
"BSD-2-Clause"
] | permissive | kuchinal/lamakaha | b64511ad8c6d2b36da5a84a266b9e7a69acd3106 | 24e3b2ff53bcac2ad1c0e5a3b9afd4593d85f22d | refs/heads/master | 2023-09-01T17:55:56.551183 | 2023-07-31T19:32:04 | 2023-07-31T19:32:04 | 182,849,747 | 0 | 0 | null | 2021-09-10T06:34:22 | 2019-04-22T19:00:02 | Python | UTF-8 | Python | false | false | 519 | py |
import nuke
import rrSubmit_Nuke_5
def BlackSailSubmit():
try :
g = nuke.selectedNode()
f = nuke.allNodes("Write")
f= nuke.allNodes("AutoWrite")+f
for a in f:
sel = a['selected'].value()
if sel == 1:
a['disable'].setValue(0)
... | [
"lamakaha@gmail.com"
] | lamakaha@gmail.com |
d4d954d44be3a396eee4d2792ce89b3c14160299 | c909310c5a19affd99ece040f8977f0473d43793 | /view/loading_stage.py | 2288e6bf6cef4368024366180edf0d23f7d0d637 | [] | no_license | pineapplebin/ClickHero | e57b8589d4fa85acaf0f7d2c0fa8d67fa5edf983 | 93779653526c1b00471c0fc863aaf00306351cd4 | refs/heads/master | 2021-01-10T06:16:35.410976 | 2016-02-20T13:56:43 | 2016-02-20T13:56:43 | 51,997,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | import pygame
import lib
from view.base_stage import BaseStageView
from lib.constant import C_WHITE, SCREEN_SIZE
class LoadingStageView(BaseStageView):
def __init__(self):
BaseStageView.__init__(self)
self.background_color = (0, 0, 0)
self.font = pygame.font.SysFont('微软雅黑', 24)
sel... | [
"pineapplewing@126.com"
] | pineapplewing@126.com |
ca92b11ae29b542a68de49c252a4cedc2ea136ee | 9cfbc37f52ae506ef4695476c7522e97766c583b | /format.py | afc7a416e751d1e41575a0086eaf34b8931e99e7 | [] | no_license | cdeocampo/coding-challenge-dev | 3423ed80ba5243907f945cbe5aed9b110680b331 | fbbd5c950a19e04139c617f9a6e986057ef1bb29 | refs/heads/master | 2020-03-08T01:01:22.487513 | 2018-04-02T22:32:29 | 2018-04-02T22:32:29 | 127,819,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | import abc
class Format(abc.ABC):
@abc.abstractmethod
def getCost(self):
pass | [
"christian.deocampo@gmail.com"
] | christian.deocampo@gmail.com |
729ee3599b771638d9ec339109ca49aec032238f | fc2553e40712aa389a46be44d269a90fd46ff153 | /snakeGame.py | c64d55bfef5108e01862856ac84f0b85f74102c6 | [] | no_license | VonHumbolt/SnakeGameWithPythonPygame | 95b397d905260348851520bd064c5e315c7ce752 | ebf25cc5e1325c5b627c06efc6eed6d11eda9754 | refs/heads/main | 2023-05-09T06:01:53.014070 | 2021-05-26T18:20:44 | 2021-05-26T18:20:44 | 371,126,882 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,736 | py | import pygame,random
pygame.init()
WIDTH , HEIGHT = 800,600
screen = pygame.display.set_mode((WIDTH , HEIGHT))
clock = pygame.time.Clock()
direction = "UNKNOWN"
class Snake(pygame.sprite.Sprite):
def __init__(self):
super(Snake, self).__init__()
self.surf = pygame.Surface((15,15))
self.s... | [
"noreply@github.com"
] | VonHumbolt.noreply@github.com |
d8016bc80a93118465606928587f8e8755d4e87a | aba74338092c4de7cb504419eb7b4a19a71d35d7 | /1.딥러닝과러닝머신/4/5/bmiuse-graph.py | 8f160be6a591c5441628084fee098926c061c4d8 | [] | no_license | goodlucky1215/artificial-intelligence | 469f6ec931dcd30aae4b9d2782588e2468a3635f | 07c5fd009ca86c6ceb0f5ce9c960aeb1ffcd435a | refs/heads/master | 2022-04-24T22:57:33.094666 | 2020-04-29T13:00:59 | 2020-04-29T13:00:59 | 259,822,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | import matplotlib.pyplot as plt
import pandas as pd
#pandas로 CSV 파일 읽어드리기
tbl=pd.read_csv("bmi.csv", index_col=2) #???만약 테이블 내의 특정한 열을 행 인덱스로 지정하고 싶으면 index_col 인수를 사용한다.
#그래프 그리기
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
#서브 플롯 전용 - 지정한 레이블을 임의의 색으로 칠하기
def scatter(lbl, color):
b = tbl.loc[lbl]
ax.sc... | [
"goodlucky1215@naver.com"
] | goodlucky1215@naver.com |
19f23f916ded964153a9795db3c755a1e3549688 | 31cc24893472113dfea7db427db173e4c988b0ad | /multiplayer/lib/python3.6/copyreg.py | 1cee2c63fbd91047847c73eed36d2010834bf892 | [] | no_license | hanhanhan/multiplayer | cb1dd926c58b4826dbed324f1f422719f4edb305 | 19a6614b9757ec21476c3558a75db6d2f54cd77f | refs/heads/master | 2022-12-10T14:33:35.045390 | 2018-01-05T21:03:03 | 2018-01-05T21:03:03 | 116,425,898 | 0 | 0 | null | 2022-12-07T23:47:24 | 2018-01-05T20:55:48 | Python | UTF-8 | Python | false | false | 49 | py | /Users/hannahl/anaconda3/lib/python3.6/copyreg.py | [
"hanhanhan.lazarus@gmail.com"
] | hanhanhan.lazarus@gmail.com |
1dc159782b26f0d17f41ecff2c8a15e8a94d3429 | 989badd5ac93a8ee65b6f7e7524cd31f2a265cc0 | /apps/Pymes/forms.py | 9eab28d9131ed71ce3d4fbaa134f55ceb41e2290 | [] | no_license | n4pc/uPymer | c742074c52ae1486bf1e71a10842bb7e7eefb212 | c636027c3db9206fa01764beef1ab5a261e4c54f | refs/heads/main | 2023-01-24T22:45:42.558135 | 2020-12-03T04:11:09 | 2020-12-03T04:11:09 | 311,497,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | from django import forms
from .models import Cat, Pyme, Producto
class CatForm(forms.ModelForm):
class Meta:
model = Cat
fields = ['nombre', 'descripcion','img']
labels = {
'nombre': 'Nombre',
'descripcion': 'Descripción',
'img' : 'Imágen de Categoría',... | [
"73497817+n4pc@users.noreply.github.com"
] | 73497817+n4pc@users.noreply.github.com |
6c1ed26e3ef5b698878b91a283ecd74d9a4e09b7 | f4583e8d54936107e4991a1b0d79362e22c4a90e | /vfwizx/VFwizv1/fbr_maincode.py | d437496a1a3e4c3cb1a78b45328a543e41f6a675 | [] | no_license | GaiaKnowledge/VFWiz | 61874c24f7b346d81ce442ca6aa997917488b551 | 7ee2ba8afe26fedabca0f153cc50222cb9f8029e | refs/heads/master | 2020-05-04T17:46:51.357124 | 2019-08-02T21:57:50 | 2019-08-02T21:57:50 | 179,326,145 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,004 | py | # Main Code for VF Wiz - Francis Baumont De Oliveira
import json
import math
from . vf_input import inputContainer
def get_input_scenario(input_file):
with open(input_file) as f:
inputs = json.load(f)
input_scenario = inputContainer()
input_scenario.iLights = inputs['light_type']
input_scenario.i... | [
"44947452+FrancisBaumont@users.noreply.github.com"
] | 44947452+FrancisBaumont@users.noreply.github.com |
795c2cd25d0c63738792fa566600877cea9a2584 | 04b0ba56d7d6749e1d3946da43e19f69caefe356 | /logme/urls.py | 8bc140c7fa8584c5d04426d94248c7c29d73df8c | [] | no_license | ChristopherDuallo/django-TimeLog | e97a37403f6ca452608f628a2146f6677ed2b717 | dfa5488941459ee194d879ab5fb2585bef52a628 | refs/heads/master | 2020-12-11T04:00:32.374521 | 2015-05-07T14:13:05 | 2015-05-07T14:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from django.conf.urls import patterns, url
from logme import views
urlpatterns = patterns('',
url(r'^$', views.Index.as_view(), name='index'),
url(r'^home/$', views.Home_Page.as_view(), name='home'),
url(r'^register/$', views.Register.as_view(), name='register'),
) | [
"ark485@gmail.com"
] | ark485@gmail.com |
6cb993adb73ad3b1b6d015990d0112732cd66128 | f47c540d5e8d1b773de57a9e66e0ad2af9b13e9c | /mwana/apps/userverification/tests.py | fc6a39684e1d412df4c24db9f9cd01eb9e384ae5 | [] | no_license | mwana/mwana | e70d1b0c59f2f3ad1300452f58b908a57210415d | 698c2f693f2c49f6dc41c1c0b6669300b619b579 | refs/heads/develop | 2021-01-17T10:11:17.502708 | 2016-02-15T10:56:56 | 2016-02-15T10:56:56 | 600,738 | 5 | 6 | null | 2016-02-03T19:12:45 | 2010-04-08T13:24:18 | Python | UTF-8 | Python | false | false | 16,874 | py | # vim: ai ts=4 sts=4 et sw=4
from mwana.apps.reports.models import SupportedLocation
from mwana.apps.userverification.models import UserVerification
from datetime import timedelta
import time
from mwana.apps.userverification import tasks
from mwana.apps.labresults.testdata.reports import *
from mwana.apps.locations.m... | [
"sinkalation@gmail.com"
] | sinkalation@gmail.com |
d39710f1547ec275d3551e81e41ed29e3e73529b | 6b374510fbc28c817941875e0d3c1ec7aab09450 | /models/shufflenet_v2.py | 4150ad147cbaac70ef0e7767be353538ce0f39a9 | [
"MIT"
] | permissive | yangtong1989/Light_CNN | 891f68118a69306036c98969e9fdb451cc24e1fe | 1465eceb47033661ee6e5c2260f71732390bac26 | refs/heads/master | 2021-05-24T11:11:09.735708 | 2018-12-19T02:10:21 | 2018-12-19T02:10:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,577 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from collections import OrderedDict
from torch.nn import init
import math
import time
def conv_bn(inp, oup, stride, padding):
return nn.Sequential(
nn.Conv2d(inp, oup, 3, stride, padding, bias=False),
... | [
"wellzengwei@163.com"
] | wellzengwei@163.com |
c5996923e5133fa8560cb230918c501edf16e042 | ef29c84cdc26f01fd4b578e39c0f3ed4bd8d0d34 | /ozpcenter/migrations/0024_auto_20170829_1944.py | c1349aa6e8dc7416e1bee2950abbcf70a0f1a583 | [
"Apache-2.0"
] | permissive | ozoneplatform/ozp-backend | 831863bb1c6ddf8dfaa33283edd9c4ef439e225a | d31d00bb8a28a8d0c999813f616b398f41516244 | refs/heads/master | 2020-12-14T08:50:11.801877 | 2019-01-17T13:08:06 | 2019-01-17T13:08:06 | 67,625,894 | 1 | 7 | Apache-2.0 | 2019-01-17T13:08:07 | 2016-09-07T16:45:45 | Python | UTF-8 | Python | false | false | 594 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('ozpcenter', '0023_auto_20170629_1323'),
]
operations = [
migrations.AddField(
model_name='review',
n... | [
"mannyrivera2010@gmail.com"
] | mannyrivera2010@gmail.com |
6c8a442acb14c856d7f761064e44561c82b10f6c | 212028581b4875ac2fefa9acd7b17b88b4b8eccd | /ulugugu/values.py | e5fbdd042dbd0dbd5cebbe5d437a2fa3c34403d1 | [] | no_license | jonashaag/ulugugu | 65a3b55c2fa2d624ba7cc72cc5186eb353e7b016 | 509e3ceadbb50aad34c585b63d33284357a21ed6 | refs/heads/master | 2016-08-06T07:10:53.578924 | 2015-07-25T12:54:15 | 2015-07-25T12:54:15 | 37,680,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | class Value:
pass
class Integer(Value):
def __init__(self, value):
self.value = value
def __repr__(self):
return '<Integer %d>' % self.value
class String(Value):
def __init__(self, value):
self.value = value
def __repr__(self):
return '<String %r>' % self.value
class Application(Value):... | [
"jonas@lophus.org"
] | jonas@lophus.org |
924c4786c418c5f6ba94014768067df9fd08892e | 62009d7843d120beddd696258686c8b479713384 | /tribune/urls.py | 960254574acbddbcb52308d302a510e032a17349 | [] | no_license | Janice-M/-The-Moringa-Tribune | a81d5e94b325254c78a6c0eea3c48e031935bdba | c960fa8dac1444f6fd4ea1a823f63433ae1645e4 | refs/heads/master | 2021-06-16T20:06:18.140544 | 2019-08-20T09:54:41 | 2019-08-20T09:54:41 | 203,201,486 | 1 | 1 | null | 2021-06-10T21:53:04 | 2019-08-19T15:38:57 | Python | UTF-8 | Python | false | false | 764 | py | """tribune URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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-ba... | [
"janiceink001@gmail.com"
] | janiceink001@gmail.com |
42fdb67ff09320fd1ae7ed48b1d7252395a78674 | 93db4b48741ff4ab0a3895813a6c7543e01821ea | /leetcode/Python/875_bananas.py | ce09bb5605a8310b0d9dfe00aaffbe27d27ed1c7 | [] | no_license | shubham14/Coding_Contest_solutions | f884c458d3316bdafc6f1b1a52cf3e962c58bc47 | 1b67497f35b892c25e3d9600214fa37a738ffd40 | refs/heads/master | 2021-06-22T13:34:10.581101 | 2019-10-09T02:56:01 | 2019-10-09T02:56:01 | 131,326,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 24 00:09:31 2018
@author: Shubham
"""
class Solution(object):
def minEatingSpeed(self, piles, H):
def possible(K):
return sum((p - 1)/ K + 1 for p in piles) <= H
s, e = 1, max(piles)
while s < e:
m = (s + e)/2
... | [
"shubham.ddash@gmail.com"
] | shubham.ddash@gmail.com |
0b6ba993f844ba2f1c864a92e3e56c18727c11d0 | cf7f2f9a89ec0b48a2eedbe2b09ee0eb52944d23 | /july15_numpy/july15_2.py | 0a717f1f756543be4b55ca7db6322a0e1f554e89 | [] | no_license | DongXiaLei/study_day | cc63ea4123cc60c0f50f8d85f47ffdf757bb8abe | 376762b168c4c06c3be1db15016937c2db02f18d | refs/heads/master | 2020-03-23T02:54:20.268671 | 2018-07-15T08:26:59 | 2018-07-15T08:26:59 | 140,998,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | from datetime import datetime
import numpy
import sys
def numpysum(n):
a = numpy.arange(n)**2
b = numpy.arange(n)**3
c = a+b
return c
def pythonsum(n):
a = list(range(n))
b = list(range(n))
c=[]
for i in range(len(a)):
a[i] = i**2
b[i] = i**3
c.append(a[i]+b[i])... | [
"1594003819@qq.com"
] | 1594003819@qq.com |
24bb895264a229cc4ada928fa9f9dc331e5c44ff | b6df966960d3f4f2d9aadf6a6984e7c9d9ded540 | /utils/data_loader.py | b68715c3b662c9eaad9872cd14fee4120a39029b | [] | no_license | xhuangcv/lf-reconstruction | f8781465830829862d681c29bf11dd7a576395ec | 2d31e2c599be459d0d488b8aab89b3876cd35832 | refs/heads/main | 2023-06-03T00:33:44.739864 | 2021-06-22T07:16:17 | 2021-06-22T07:16:17 | 379,169,861 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | import os
import configparser
import pickle
import tensorflow as tf
import numpy as np
def get_batch(path, sence, h, w, bs, data_type):
with tf.name_scope('data_batch'):
def load_single_image(filename):
contents = tf.read_file(filename)
images = tf.image.convert_image_dtype(tf.ima... | [
"noreply@github.com"
] | xhuangcv.noreply@github.com |
51b35645ddfec9c5ce1aa5da3d87cd26d207073e | 484804c0ae919cabe5454c6e44d99cf4934027c0 | /lerPaginaWebMostrarLinhas.py | 3f49c874a1d3182bb58d47806cc1d29b876b1d6b | [] | no_license | rlaecio/segur | c00ccbc05e1ebcbf9bd919aa252d1ad7066d4b31 | af7addf6e45f15f75406cd2cafcd11c77607ce56 | refs/heads/master | 2022-10-27T22:40:33.686293 | 2020-06-16T13:12:56 | 2020-06-16T13:12:56 | 272,712,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # coding: latin-1
# versao python 3
import urllib.request, urllib.error, urllib.parse, base64
request = urllib.request.Request('http://www.ismai.pt')
result = urllib.request.urlopen(request)
lista = result.read()
listaLinhasDecod = lista.decode()
listaDelinhas = listaLinhasDecod.split('\n')
frase1 = ('ISMAI').lower()
... | [
"rlaecio@hotmail.com"
] | rlaecio@hotmail.com |
9fd29c1d0357ec0049c8fb9e6e66c6d6e576c565 | cf8dcb53848e873901d44cf49c3ce0d363dcab0f | /B-555 Machine Learning/SahilTyagiProject/webservice/main.py | 3f479565fee1bc22a0cc844ed1f239952940afe8 | [] | no_license | sahiltyagi4/miscellaneous | d8d24b4be8cf0e2da9a9a8d80414c78d740dabd8 | ab962de1f9980fdfcc8dd8aad8356617cdc0b1a5 | refs/heads/master | 2022-11-07T10:37:48.981921 | 2021-05-23T07:54:47 | 2021-05-23T07:54:47 | 130,197,092 | 0 | 1 | null | 2022-11-04T22:46:26 | 2018-04-19T10:08:43 | Jupyter Notebook | UTF-8 | Python | false | false | 1,088 | py | def hello_world(request):
"""Responds to any HTTP request.
Args:
request (flask.Request): HTTP request object.
Returns:
The response text or any set of values that can be turned into a
Response object using
`make_response <http://flask.pocoo.org/docs/1.0/api/#flask.Flask.make... | [
"sahilt.tyagi@gmail.com"
] | sahilt.tyagi@gmail.com |
3cce302430399686b13d6cc49040ace97eb052a2 | 632eee486e432d1bc2a7c771db7e9a06f7cad7a9 | /2812-laercio.py | 3d976d923a342bfca9597d558079aab8c6f0269b | [] | no_license | L4res/URI-Python | d1c578d87201151540876a6b8eca2aecd833a953 | 2f59387ca38e16f6396a6ea677d71f7c2c919fc2 | refs/heads/master | 2023-03-25T17:34:57.635187 | 2020-06-15T18:20:03 | 2020-06-15T18:20:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | for i in range(int(input())):
n = int(input())
lista = list(map(int, input().split()))
lista.sort()
impares = []
resultado = []
# Pegando os valores impares:
for j in range(n):
if lista[j] % 2 != 0:
impares.append(lista[j])
# Pegando os valores na ordem ... | [
"noreply@github.com"
] | L4res.noreply@github.com |
cca18cb825f175d67fcd6a0e72a4dfe55e9e107f | 2f174ad60697f3447fdfba1361ab98776e740f0f | /Chapter_5/colchester_practice.py | b9d7012d28a26acff9cb8db503cc2f62603038c1 | [] | no_license | cwb4/Impractical_Python_Projects | 3979e9633f3a035be02044afe8b25d87a43b8a86 | 7f0defc9d2f264aa63d85c2b9d3466d21adcee72 | refs/heads/master | 2022-04-24T12:58:04.727716 | 2020-04-28T20:20:53 | 2020-04-28T20:44:42 | 258,514,430 | 1 | 0 | null | 2020-04-24T13:04:53 | 2020-04-24T13:04:53 | null | UTF-8 | Python | false | false | 1,270 | py | """Solve a null cipher based on every nth-letter in every nth-word."""
import sys
def load_text(file):
"""Load a text file as a string."""
with open(file) as f:
return f.read().strip()
# load & process message:
filename = input("\nEnter full filename for message to translate: ")
try:
loaded_messag... | [
"31315095+rlvaugh@users.noreply.github.com"
] | 31315095+rlvaugh@users.noreply.github.com |
562caff292e6ed33755469e42b6fedb48fb84855 | fcff6d0d8cdcaecb7e6c833ccd7c5e888b1533c6 | /ExoPython/conca_t_ner.py | e4a0daec6e96d06712a95941dcb07fd7838d9d85 | [] | no_license | Qais17/PYTEST | a6fb5e28a884b922c9882ecc0b7e3d97e693a593 | ae356519343d9009870df52b46bbba3246e793e6 | refs/heads/master | 2020-03-30T10:56:34.206333 | 2018-11-18T20:01:18 | 2018-11-18T20:01:18 | 151,145,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #!/usr/bin/python3.5
# -*-coding:Utf-8 -*
prenom = "Morgan"
Hello = "Good morning"
message = "today is monday March 15, 2032"
chaine_complete = Hello + " " + prenom + " " + message
print(chaine_complete)
| [
"qaisbewebpro@gmail.com"
] | qaisbewebpro@gmail.com |
bccecc6995a1fcb323de9ae3254a02a54008d43a | e1a2c6ed4a4b93b4697974e3b0a32a4d67daa6f6 | /venv/Lib/site-packages/pybrain3/rl/environments/ode/tasks/ccrl.py | 74047621ad42288a4b7988d703bcde82599a35e9 | [
"MIT"
] | permissive | ishatserka/MachineLearningAndDataAnalysisCoursera | cdf0f23a58617e17d6b938e3a9df17daae8585e4 | e82e772df2f4aec162cb34ac6127df10d14a625a | refs/heads/master | 2021-09-11T01:39:26.228392 | 2018-04-05T14:33:39 | 2018-04-05T14:33:39 | 117,153,454 | 0 | 0 | MIT | 2018-03-27T05:20:37 | 2018-01-11T21:05:33 | Python | UTF-8 | Python | false | false | 15,329 | py | __author__ = 'Frank Sehnke, sehnke@in.tum.de'
from pybrain3.rl.environments import EpisodicTask
from pybrain3.rl.environments.ode.sensors import SpecificBodyPositionSensor
from scipy import tanh, zeros, array, random, sqrt, asarray
#Basic class for all ccrl tasks
class CCRLTask(EpisodicTask):
def __init__(self, ... | [
"shatserka@gmail.com"
] | shatserka@gmail.com |
7b020eaaeb0622fa1efc754bb3ed788aeedd1ff8 | d17706b3061c93b9f83f2e9c28e58eadcbe058cb | /problems/9.py | effd6ea462593ec4f6d513b7cffab8a37e27a993 | [] | no_license | Luctia/project-euler | b89c75a40c175216c9db00288edfcceb19e77ae3 | 56c207b37d67dcb9ae24e2afe61f4b145d69773a | refs/heads/master | 2023-08-25T12:58:49.430470 | 2021-10-30T17:03:20 | 2021-10-30T17:03:20 | 391,651,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | def bruteforce(target):
for a in range(1, target + 1):
for b in range(a, target + 1 - a):
for c in range(b, target + 1 - a - b):
if a**2 + b**2 == c**2 and a + b + c == target:
return a * b * c
return -1
print(bruteforce(1000))
| [
"timmerman.luc1999@gmail.com"
] | timmerman.luc1999@gmail.com |
aa611c1670449e133c290241f9c2bbbc38d1505a | ed21823488a1cca51009793efa0b124e40d224a4 | /neurobioseg/170111_avoid_redundant_path_calculation/p170111_03_compute_paths.py | b61c0656c06859d665bca2fe34b87a67a2cc9716 | [] | no_license | jhennies/py_devel | 4a41e13ec8cd9b834c3d5acf64becc0fa8ffc479 | 9fc860be95ae91064a40f25e26d4024fbae6eb1f | refs/heads/master | 2021-01-16T23:25:56.716283 | 2017-03-10T17:49:55 | 2017-03-10T17:49:55 | 45,381,183 | 1 | 0 | null | 2017-03-10T17:49:56 | 2015-11-02T08:21:35 | Python | UTF-8 | Python | false | false | 4,945 | py |
import os
import inspect
from hdf5_image_processing import Hdf5ImageProcessing as IP, Hdf5ImageProcessingLib as ipl
from hdf5_processing import RecursiveDict as rdict
from shutil import copy, copyfile
import numpy as np
import matplotlib.pyplot as plt
import processing_libip as libip
import sys
from yaml_parameters im... | [
"julianhennies@hotmail.de"
] | julianhennies@hotmail.de |
15248ba595c0c8d26c0e60ebde078f523c33804a | ce9386a806af873c566f281527795e4b2db0276a | /dwr/ds_partition/query26/voila_sampling.py | 07b0ce14528adca9e898145663ce2f9d6ffd1318 | [] | no_license | rischanlab/cvopt | 05d7df9406a441207ba2ad7e508e82bedbd5bbb4 | bbd75b61957c97507e45613a041b6d84213cf897 | refs/heads/master | 2023-03-10T02:31:36.563970 | 2021-02-24T22:57:47 | 2021-02-24T22:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,022 | py | from dwr import *
from dwr.ds_partition.query26 import *
SAMPLE_TYPE = VOILA
for DS in ds_list:
logging.info("DS: {0} - Get statistic".format(DS))
# language=HQL
hiveql.execute("""
SELECT
i_item_id,
COUNT(*),
ABS(STDDEV(cs_quantity) / AVG(cs_quanti... | [
"trongdn@fb.com"
] | trongdn@fb.com |
9bee2ad20e29a95bb54d466366ddd596291713d2 | 8d2ebc43f91e1d5d84c621e6cbc781472880344e | /capital.py | bf88b28d11a6b3695ccbdd31699bc20485c55b55 | [] | no_license | ifferus/bottravel | 93f2f0da1d39c93b859b9c2deaed9dac27e198d8 | 61e4ff966f5065876b12bbd6ffd5b51c63af15b0 | refs/heads/master | 2020-09-16T10:07:31.963071 | 2019-11-25T07:20:11 | 2019-11-25T07:20:11 | 223,737,855 | 0 | 0 | null | 2019-11-24T12:07:19 | 2019-11-24T12:07:18 | null | UTF-8 | Python | false | false | 282 | py | class Search_capital:
def __init__(self,search):
self.searchIn=search
def search(self):
a=self.searchIn
file=open('base_date_city.txt','r',encoding='UTF-8')
for line in file:
if a in line:
capital=line[0:line.index(':')]
return(capital)
| [
"noreply@github.com"
] | ifferus.noreply@github.com |
8b3422f2c6a46bbedc7e442bd7ee3dd98a44e761 | cbb3afbbf76d68d694276612155674e8333f6785 | /apps/user/__init__.py | 5274503e412eab81a44d38b8246ae436e9a2cce7 | [] | no_license | lyzhwj/MobileManageItem | 6a745dbd022273a958bc5875ba8f0418e026ca11 | 71ddc736b97a5a2f03464d7193d28246e8d62652 | refs/heads/master | 2022-12-13T06:20:50.943115 | 2019-12-05T02:21:27 | 2019-12-05T02:21:27 | 224,790,996 | 0 | 0 | null | 2022-12-08T06:17:01 | 2019-11-29T06:29:47 | JavaScript | UTF-8 | Python | false | false | 152 | py | from flask.blueprints import Blueprint
user_bp = Blueprint('user', __name__)
category_bp = Blueprint('category', __name__)
from apps.user import view
| [
"614680720@qq.com"
] | 614680720@qq.com |
46e7155c122fe2b89291a70967d3ced59f4c38ce | cf1f1d3f7a4aaaaaee322b0101f7b294909c5a67 | /Code/Al/loop_index.py | 0cbbf5bab4fdd9fe13eacbec91a04ee7426ff5b3 | [] | no_license | PdxCodeGuild/class_emu | 0b52cc205d01af11860a975fc55e36c065d1cc68 | 9938f384d67a4f57e25f2714efa6b63e2e41b892 | refs/heads/master | 2020-05-31T01:16:52.911660 | 2019-12-09T05:22:06 | 2019-12-09T05:22:06 | 190,046,342 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | # Write your code here :-)
import string
print(string.ascii_lowercase)
abc_list = list(string.ascii_lowercase)
print(abc_list)
for num in range(len(abc_list)):
print(abc_list[num])
| [
"al.burns.email@gmail.com"
] | al.burns.email@gmail.com |
c0943021abd5401db74b8a9ee7af084331bb607c | e58290627862b6a3f3c7f4552832170b524967aa | /main.py | 89f47c48e0d471e9b4cd7dcd3d03f95bd722ee02 | [] | no_license | Phay-mann-khaing/Script_for_Excel_Odoo | f886580eb44719d97edd8800dfaa6f757acfb9e8 | a054f38b7b4df9a1a3e182845707283c2d228f6c | refs/heads/master | 2021-01-11T14:10:21.908454 | 2017-06-26T04:57:50 | 2017-06-26T04:57:50 | 94,989,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | import csv2xlsx
import os
from Tkinter import Tk
from tkFileDialog import askopenfilename
import convert_into_importable
Tk().withdraw() # we don't want a full GUI, so keep the root window from appearing
ft = [('Excel file', '*.xlsx'), ('All Files', '*')]
filename = askopenfilename(filetypes=ft) # show an "Open" dia... | [
"phaymann009@gmail.com"
] | phaymann009@gmail.com |
c76da95e5f7e2c4118bcc22f272ef5631f04054b | 0e21ecd5dc834b8a164cbeda770d536f07584390 | /Fingerprints.py | 42afb8fcee456ae535d0c6a497976fe985184aa2 | [
"MIT"
] | permissive | NehaAgarwal2598/Codeforces | 162b33334998fa27f03e2d8889ccf6017712db5d | 859196a734cb24834736adf9517b351647da6e73 | refs/heads/master | 2022-10-19T02:04:59.631309 | 2020-06-13T14:45:32 | 2020-06-13T14:45:32 | 272,025,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | n, m = list(map(int, input().split()))
x = list(map(int, input().split()))
y = list(map(int, input().split()))
for i in x:
if i in y:
print(i,end = ' ')
| [
"noreply@github.com"
] | NehaAgarwal2598.noreply@github.com |
06abedeeb86ea84b63cc44a7445aca6a9ef0a24a | 9e213e75806ea91b30085d51502423f044f5df07 | /q08_gradientboosting_regressor/tests/test.py | cea0d15749f1285be701bfb5af7dcedd3348baa0 | [] | no_license | greyatomtestuser2/time_series_day_02_project | c9073e33a16b5d8c7605196141d742daba13bb57 | 18e83b1ac59e3c1a2fd29b1fba866b66b582524d | refs/heads/master | 2021-08-28T06:02:41.871599 | 2017-12-11T10:06:31 | 2017-12-11T10:06:31 | 113,818,783 | 0 | 0 | null | 2017-12-11T06:00:14 | 2017-12-11T06:00:14 | null | UTF-8 | Python | false | false | 1,645 | py | import unittest
from inspect import getargspec
from ..build import q08_gradientboosting_regressor as student
from greyatomlib.time_series_day_02_project.q08_gradientboosting_regressor.build import q08_gradientboosting_regressor as original
import dill
import pandas as pd
from pandas.util.testing import assert_frame_equ... | [
"alex19427@gmail.com"
] | alex19427@gmail.com |
501efc03e712d21a0a76e29634ed02d611170f9e | 8fbd8b98cdf04d319f7b5789d6dc1a738a90566b | /th_mastodon/tests.py | 9658443ac0d0bd316e58cf64cc671700da484071 | [
"BSD-3-Clause"
] | permissive | fkztw/django-th | 5231652ed75ae6060bd4f4a383eba4286e8c9191 | 926a3b9d515a7995cb36d2259729851d0c5cfb4d | refs/heads/master | 2023-07-23T22:08:11.898683 | 2017-10-27T12:38:21 | 2017-10-27T12:38:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,978 | py | # coding: utf-8
from django.conf import settings
from django.core.cache import caches
from django_th.tests.test_main import MainTest
from django_th.models import ServicesActivated
from mastodon import Mastodon as MastodonAPI
from th_mastodon.forms import MastodonProviderForm, MastodonConsumerForm
from th_mastodon.mo... | [
"foxmaskhome@gmail.com"
] | foxmaskhome@gmail.com |
48f85e06c833dfe92109428305e04cffda329a1b | 01411b609236c258c5592704befb5cb99a7314f8 | /65.ham.py | fcac558e99b7bff4a17c6faedc4fddaf2293ca07 | [] | no_license | ZeroHX/PSIT2018 | 31515002ec124651dff49ee7e3a08d6594cdfcda | 5ef16bc51ef8b8b402ace197e26ae63377602ce1 | refs/heads/master | 2020-03-29T09:30:16.034742 | 2018-10-07T08:07:46 | 2018-10-07T08:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | """61070023 Hamburger"""
def main(front, back):
"""print hamburger like ||**********|||
inp = 2, 3 <a bread front and back hamburger>
in middle print "*" * (inp1 + inp2) *2"""
print("|" * front, end="")
print("*" * ((front+back)*2), end="")
print("|" * back, end="")
main(int(input()), int(inp... | [
"41178369+ZeroHX@users.noreply.github.com"
] | 41178369+ZeroHX@users.noreply.github.com |
3a1e60bcb78bcb63bbc2f4c77fdc013d158aeacf | 60503391d3d64a4689d1cc4fc75b0f4d692df694 | /build/catkin_generated/order_packages.py | f0b3b9b316ca56f03d476473071c1d3fdec667b6 | [] | no_license | Cutiino/ROSWebCam | 821d5ec0dd94ff5476e818577d79b5fc25bb4477 | 4528472b6eaa7c115954e5482481d7781c68e488 | refs/heads/master | 2023-06-28T22:11:21.796628 | 2021-07-23T00:50:23 | 2021-07-23T00:50:23 | 388,627,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = '/home/agustin/TareaRos/src'
whitelisted_packages = ''.split(';') if '' != '' else []
blacklisted_packages = ''.split(';') if '' != '' else []
underlay_workspaces = '/home/agustin/TareaRos/devel;/opt/ros/noetic'.split(';') if '/home/a... | [
"agustin.cutino@gmail.com"
] | agustin.cutino@gmail.com |
3fc5b0bea4c9effacae47dda4bdb51a60a002a2d | 1c8554b39967ce19fb67de80ca01722fc8517181 | /vk.py | 6c882b4c6e274c8199fe22ea23c6082a141400f8 | [] | no_license | vadikTheBest/vki_api_python | 7a7d449652975e7ac39358a09cd01fd0eb848b5d | 6863327b5855446dde9c9313a9357ae7805544b3 | refs/heads/main | 2023-03-24T08:38:21.946704 | 2021-03-20T08:43:27 | 2021-03-20T08:43:27 | 343,154,874 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | import requests
from api_key import my_token
api_url = 'https://api.vk.com/method/'
id_group = '-202262558'
def getjson(api_method):
response = requests.get(f"{api_url}{api_method}", params={"owner_id": id_group, "count": 10, "offset": 0, "access_token": my_token, "v": "5.52"})
response = response.json... | [
"noreply@github.com"
] | vadikTheBest.noreply@github.com |
1a8c95fb36269e7d2b68c2e4d27a52658f6cc0a7 | ed5dc6a659c131027e2d90bf5810d428515ddfce | /auctions/migrations/0008_alter_listing_image_url.py | e247f6076782f1eb49be240c5998a96d53ca9893 | [] | no_license | ivanmclennon/cs50_commerce | 1e0e4dd9a03867a20d3c97dfbcd6cef73ab7fc7a | 4835d4a25419c2c5a0689caacfd161b5b635143d | refs/heads/main | 2023-06-20T15:02:31.754773 | 2021-07-17T18:03:20 | 2021-07-17T18:03:20 | 376,960,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # Generated by Django 3.2.4 on 2021-06-16 13:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auctions', '0007_auto_20210616_1556'),
]
operations = [
migrations.AlterField(
model_name='listing',
name='image_url... | [
"iagninenko@edu.hse.ru"
] | iagninenko@edu.hse.ru |
84ed986e2026f850538971e4e12cd76e5eb232c5 | 8218ac4b1ad2cf0ac55d7eda19b2e466ad078402 | /venv/lib/python3.7/site-packages/pyecharts/options/series_options.py | 444ae93cfe26a54b0aa1751d222b1c4eb49f1bbe | [] | no_license | william-xiangzi/NetworkTest | 07044c58976aa0d3d6325f81d3b17d51e5e9bc54 | 89500dabd09b64407056c8a45997cfdea2b14a41 | refs/heads/master | 2020-07-04T01:53:57.757693 | 2019-08-13T09:52:48 | 2019-08-13T09:52:48 | 202,114,781 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,042 | py | # coding=utf-8
from ..commons.types import JSFunc, List, Numeric, Optional, Sequence, Tuple, Union
class ItemStyleOpts:
def __init__(
self,
color: Optional[str] = None,
color0: Optional[str] = None,
border_color: Optional[str] = None,
border_color0: Optional[str] ... | [
"jiaochengxiang@3commas.cn"
] | jiaochengxiang@3commas.cn |
55ee36fda763641ceb51241c524d5e1b9ba444e2 | ea0f1fda7e7826bc9ef64aa08c062207be2bbcc0 | /DollyFish/ChickyDaoWord.py | 4ada0647869c2883c7be17fd17582556eb25e82b | [] | no_license | DollyFish/Myproject | bd7bfc620e4663bab507de9cc06350436bad1fa6 | c02b0e23f96e5c0960fe52bb84039c62071811a4 | refs/heads/main | 2023-08-21T16:03:25.017100 | 2021-10-30T12:46:44 | 2021-10-30T12:46:44 | 422,083,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,870 | py | import random, Menu, csv, pickle,time
def maingame():
username = "Guess"
stamp = ["NOT HAVE", "NOT HAVE", "NOT HAVE"]
with open('stamprally.txt', 'rb') as file:
try:
data = pickle.load(file)
except EOFError:
data = {}
with open('stamprally.txt', 'wb... | [
"noreply@github.com"
] | DollyFish.noreply@github.com |
9c3e7efe4f11de9d2d352605026b21608815d9e9 | 6e4448d99733d6cabba8fc725e3f5132161e49f7 | /pre_2016_17_cool_season/prism_precip_ncar.py | 642981c52f13da509e7e2be9ea7433f5f4bee27c | [] | no_license | tomgowan/model-climatology | 00a4d75e11bb0a8599121aeb0cd6831f32b04329 | 1fab1c15535311c3ff4258bd4670ccdd81239ca2 | refs/heads/master | 2020-03-22T20:28:45.907527 | 2018-07-11T16:54:32 | 2018-07-11T16:54:32 | 140,603,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,501 | py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap, maskoceans
import pygrib, os, sys
from netCDF4 import Dataset
from numpy import *
import numpy as np
from pylab import *
import time
from datetime import date, timedelta
import pyart
from matplotlib import ... | [
"tom.gowan@gmail.com"
] | tom.gowan@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.