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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8fecbe9a03541eeeb5fea0cf789c606f04665485 | ea64dc73abc2e866e0d8607c13f9adac686352e5 | /Project/day9/it/it/items.py | 1d402287d0bb92ca934596a71060b8f45572b4d0 | [] | no_license | cz495969281/2019_- | 9d8ddfb94558f9105a46b18d3a07244ff8636f3c | f8ec0bec399253e481e16443ba9a3e45e61486f4 | refs/heads/master | 2020-04-16T10:18:33.431154 | 2019-01-13T12:34:54 | 2019-01-13T12:34:54 | 165,499,601 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ItItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
class TencentItem(scrapy.Item):
n... | [
"495969281@qq.com"
] | 495969281@qq.com |
6c3771f8323a1c7d82457193cecb2c26fdf72161 | e62e5ff165894671375508c6336d28b0c8ee2a5a | /website_xupeng/wsgi.py | d1cabbc195c3791e7ddae59fc0b8441d99454f28 | [
"Apache-2.0"
] | permissive | xp2017/website_xupeng | fa4fd10484451580da5118924a337b91bca9a015 | 3a95a933021c1aa9bbb2475e0b7ddc97c6e866dd | refs/heads/master | 2020-04-24T15:48:24.933019 | 2019-02-28T11:22:26 | 2019-02-28T11:22:26 | 172,082,939 | 0 | 0 | null | 2019-02-28T10:43:28 | 2019-02-22T14:47:26 | Python | UTF-8 | Python | false | false | 405 | py | """
WSGI config for website_xupeng 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('DJANG... | [
"1741627614@qq.com"
] | 1741627614@qq.com |
74ead09a826437c8c0e06b7c403ff1c187d1f047 | 41e738d67a91fa69eead619768081893adb2e6b5 | /openshift/installer/vendored/openshift-ansible-git-2016-04-18/roles/lib_yaml_editor/build/src/yedit.py | 642733914acc12991f495892d18103c4d2b9402c | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | gburges/openshift-tools | e48e5bcedce8ae3dcce1d601c084f4a04cfaf280 | 7361729aeeeb6229dac77541427075c879731ebb | refs/heads/prod | 2020-04-16T19:56:34.413193 | 2019-04-10T05:24:36 | 2019-04-10T05:24:36 | 145,583,227 | 0 | 0 | Apache-2.0 | 2018-08-21T15:26:21 | 2018-08-21T15:26:17 | null | UTF-8 | Python | false | false | 6,339 | py | # pylint: skip-file
class YeditException(Exception):
''' Exception class for Yedit '''
pass
class Yedit(object):
''' Class to modify yaml files '''
re_valid_key = r"(((\[-?\d+\])|([a-zA-Z-./]+)).?)+$"
re_key = r"(?:\[(-?\d+)\])|([a-zA-Z-./]+)"
def __init__(self, filename=None, content=None, c... | [
"twiest@redhat.com"
] | twiest@redhat.com |
d22f1d29c71d26afd2458a666800317fbbbe8db4 | 91e9d429f8e34fd48d5e34a898b32bc090660fe1 | /core/migrations/0008_article_featured_mob_img.py | ab29fbd735ece0954ef2f0c6a20182b6c8281707 | [] | no_license | sherrywilly/blog-graphene | b286d4ba9a5a3499aefc684399630bcbd348ba8f | b05430896dff6b8944b2e6f5f30b6cfd875dc820 | refs/heads/main | 2023-07-14T22:20:29.973765 | 2021-08-07T06:35:32 | 2021-08-07T06:35:32 | 392,514,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # Generated by Django 3.2.6 on 2021-08-03 09:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0007_auto_20210803_0850'),
]
operations = [
migrations.AddField(
model_name='article',
name='featured_mob_im... | [
"sherrywilson521@gmail.com"
] | sherrywilson521@gmail.com |
f5bd5d0daea26ef86acd064dbec79ff7205d9815 | 10b5a703c0166b55331513d2a9aead687032e804 | /leetcode1578.py | 7f4f21ed382eed47d291365b4de17dc2a0e596ab | [] | no_license | jack456054/leetcode | f2d623d5683098b2038322ee3eef81dc020f6fb1 | 24f0075909f8620513f6f21c9ad3dc299dee8967 | refs/heads/master | 2022-11-12T18:01:52.832206 | 2022-11-10T07:24:39 | 2022-11-10T07:24:39 | 125,793,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | class Solution:
# def minCost(self, colors: str, neededTime: List[int]) -> int:
# if len(colors) == 1:
# return 0
# current_color: str = None
# time_list: List[int] = []
# results: int = 0
# for index, color in enumerate(colors):
# if current_color == ... | [
"jack456054@hotmail.com"
] | jack456054@hotmail.com |
fde06b2ff44e982bb2583bb88563f02a0ba24b88 | 7cd9b9f41fdbf52de6e4393c43e3ff4e7466b417 | /pokemon/urls.py | 68b22f96b1bbe9442e8b4515f49e8579b6d1466c | [] | no_license | BaeJuneHyuck/demo-pusan-univ-201907-django | 36f5be596c6850acc211358276c66df127e05633 | 4ef9e64a42a977e0b435fb2f83842433fac53bf3 | refs/heads/master | 2022-01-22T21:35:57.419007 | 2019-07-23T06:51:14 | 2019-07-23T06:51:14 | 198,371,100 | 1 | 0 | null | 2019-07-23T06:56:52 | 2019-07-23T06:56:51 | null | UTF-8 | Python | false | false | 242 | py | from django.urls import path
from pokemon.views import index, pokemon_new, pokemon_edit
urlpatterns = [
path('', index),
path('new/', pokemon_new),
path('<int:pk>/', pokemon_edit),
# re_path(r'(?P<pk>\d+)', pokemon_edit),
]
| [
"me@askcompany.kr"
] | me@askcompany.kr |
8b3e2b4e20bf0830570a8bc31f38212ee90a25b8 | 9ca2f63f855906695b4b587f137257a7793a75bb | /Analysis/Analysis/Ostap/python/Ostap/Kine.py | 4c27cf4f22a4d125edd05edc9a997a5ea7882e9d | [] | no_license | kidaak/lhcbsoft | a59ffb6c884e5b6e2d28740551d3c49f8338ec3d | b22a1dfea5d4d572e318d1e5d05dfb7484da5f3d | refs/heads/master | 2021-01-22T16:53:18.266147 | 2015-12-10T14:40:48 | 2015-12-10T14:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,033 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# $Id$
# =============================================================================
## @file
# Few very simple math-functions related to kinematics
#
# @author Vanya BELYAEV Ivan.Belyaev@... | [
"ibelyaev@4525493e-7705-40b1-a816-d608a930855b"
] | ibelyaev@4525493e-7705-40b1-a816-d608a930855b |
9ee315ac2024200c41be7cea91239935e6e6102c | 0b48b079330fa68b31d4bae203b884f86528fdfc | /2015/round_1/1.Homework/solutions/sources/1737.Vladimir | 794cf070d40226dcb3ce6c5192f00e89778ebeb3 | [] | no_license | kwx4github/facebook-hackercup-problem-sets | 1254455aad782ff30cc0b1640eafbcdc5e8b4242 | 85b5775179a4c718db092c3ce66f343d02a91627 | refs/heads/master | 2021-01-20T21:49:12.676642 | 2015-03-14T14:18:02 | 2015-03-14T14:18:02 | 30,278,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | vladimir | #! /usr/bin/python
# By Vladimir Svoboda
import sys
from argparse import ArgumentParser, FileType
import numpy as np
from math import sqrt
from collections import defaultdict
class ProblemInstance(object):
def __init__(self, a, b, k):
self.a = a
self.b = b
self.k = k
def parseInput(inF... | [
"kwokwah+tavernlabs@gmail.com"
] | kwokwah+tavernlabs@gmail.com |
51bb03878ba261243ca29fa5fbcd21c3d280cd06 | fecdcf39fec8d3c61d382c1ed71763c30ad410f4 | /网络编程大作业 设备管理/final_show/control_app/default/migrations/0008_auto_20161223_1444.py | be7b691ce509e6834e207c0a1bb7d47e0cca597a | [] | no_license | guohantao/web_control_app | f0afcc22f21614442abdc5756f3213445ec0ff50 | badc8e31c9c563f7a2f4407a21cf2b2f4c63c2b2 | refs/heads/master | 2021-01-12T08:04:22.351814 | 2017-01-22T04:48:56 | 2017-01-22T04:48:56 | 77,115,131 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-23 06:44
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('default', '0007_auto_20161223_1322'),
]
operations = [
migrations.RenameField(
... | [
"345743142@qq.com"
] | 345743142@qq.com |
9c59f9dbd1305703fbe6cfa40102879fac180355 | de6fb3a55196b6bd36a4fda0e08ad658679fb7a1 | /vt_manager/src/python/agent/xen/provisioning/configurators/mediacat/MediacatVMConfigurator.py | 1c32a6c5a7a87130868b322f6583514d2cd725a1 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | dana-i2cat/felix | 4a87af639e4c7db686bfa03f1ae4ce62711615e3 | 059ed2b3308bda2af5e1942dc9967e6573dd6a53 | refs/heads/master | 2021-01-02T23:12:43.840754 | 2016-02-04T10:04:24 | 2016-02-04T10:04:24 | 17,132,912 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | import shutil
import os
import jinja2
import subprocess
from xen.provisioning.hdmanagers.LVMHdManager import LVMHdManager
from xen.provisioning.HdManager import HdManager
from settings.settingsLoader import OXA_XEN_SERVER_KERNEL,OXA_XEN_SERVER_INITRD,OXA_DEBIAN_INTERFACES_FILE_LOCATION,OXA_DEBIAN_UDEV_FILE_LOCATION
... | [
"jenkins@integration.localhost"
] | jenkins@integration.localhost |
5870f195d207cf53ce4ff7a9673880f916a89ea9 | 52da321d7a417e5cda34fd17d07cbb3aa15264c4 | /MyClass/models.py | 21a566dc55e4af921b1f760cc01445741fb3c0f5 | [] | no_license | devanshsharma416/classbasedviews | eaf593159da4569e6d556f8148909f1abe9e1f09 | 5f090b0d9d19b551414bd392666d28717fbc7a70 | refs/heads/main | 2023-08-11T11:08:28.119931 | 2021-09-13T04:25:50 | 2021-09-13T04:25:50 | 405,659,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django.db import models
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length=100)
description = models.TextField(max_length= 500)
author = models.CharField(max_length=50)
count = models.IntegerField(null=True)
def __str__(self):
return self.title | [
"devanshsharma416@example.com"
] | devanshsharma416@example.com |
338d1428bc7508a2da49be3bd292cdb85916ced9 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Google/Drive/Files/Update.py | 5ed78c1781be712f6acaa6a31eb70220ec8e1590 | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,745 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# Update
# Updates the metadata or content of an existing file.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreo... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
556e66708d328cb200eff3aca6be3760ac756057 | d04a5cf47b6483cf2bb03c92c6aa13785bd7a9b8 | /NLP/深度学习/循环神经网络.py | a247d7ec7e305bbcac82ea953a7eba3c2dc020e6 | [] | no_license | dengyings/biji | 51cf0835e8ab277f7300bbfcf1302ec5b747f1a1 | 7bfcaa3e2ab39efd4832320c921e4d64d7c4aa5e | refs/heads/master | 2020-04-17T00:54:41.413470 | 2019-03-24T12:36:18 | 2019-03-24T12:36:18 | 166,067,379 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,051 | py |
# coding: utf-8
# 这章主要介绍循环神经网络的定义,原理及计算方法,并通过几个实例说明如何使用循环神经网络
# 15.2前向传播与随时间反向传播
# 
# 上图的计算过程,用Python程序实现的详细代码如下:
# In[1]:
import numpy as np
X = [1,2]
state = [0.0, 0.0]
w_cell_state = np.asarray([[0.1, 0.2], [0.3, 0.4],[0.5, 0.6]])
b_cell = np.asarray([0.1, -0.1])
w_output = ... | [
"dy964785023@163.com"
] | dy964785023@163.com |
0fb0f85f3464682eaa2704fe97fe870f721bc42d | 517bab1ede118e05ef01e899eda258d3404d4153 | /tensorpipe/funnels/funnels.py | 53ed3c6f74733149ef33a4a50c2522d9cd06e4a7 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ravich3373/TensorPipe | d66f3cf0f7478ef27ecc5accb89137bce5913b05 | 9bf893016a735c68afb7be8a9fa420cfb6781cd5 | refs/heads/main | 2023-02-14T02:21:12.291306 | 2020-12-28T18:54:35 | 2020-12-28T18:54:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,630 | py | """
Copyright 2020 Kartik Sharma
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | [
"kartik4949@gmail.com"
] | kartik4949@gmail.com |
b6eb043e86f25e60011a4bc8247fd506b33abb49 | a5935287892864e5470be2af4054c7e920a4c2c1 | /easy_mailer/__init__.py | 3bee4ef04ff1e0164c1b359a305f429120aab5c6 | [
"MIT"
] | permissive | JnaneshPrabhu/easy-mailer | 28a5d2cc4e476b29e18c127b42905921acf473c3 | c844e16c51e95ce9fa052581fdeba98f0307f682 | refs/heads/main | 2023-04-22T09:14:24.083273 | 2021-05-01T18:12:28 | 2021-05-01T18:12:28 | 363,426,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | from easy_mailer.send_mail import send_mail
| [
"noreply@github.com"
] | JnaneshPrabhu.noreply@github.com |
984e4c657c87f1dfc25095e87790522d62a8ffce | 2b40c1a9aaf8c5a131fe9000076a1426e81ccbbb | /change_into_NZtime.py | eac18daa1b856dbd26b46b67618eea019c18e3c4 | [] | no_license | neopj/Virtual-Power-Plant-Project | fc78fad7dc81e00fdb4987accd4f81e79446371f | 894c85a2714300c563fd49357f715b4fe2ecf74e | refs/heads/main | 2023-06-03T21:44:28.082718 | 2021-06-21T00:20:10 | 2021-06-21T00:20:10 | 378,764,436 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,794 | py | import glob
import pandas as pd
import csv
import numpy as np
from datetime import time
from datetime import datetime
from datetime import timedelta
##Path mentioned
path = 'T:\\projects\\2019\\EPEC2\\data\CSV-output\\redback\\redbackSummer.csv'
##Read csv file
redbackSummer = pd.read_csv(path)
#print(ev... | [
"noreply@github.com"
] | neopj.noreply@github.com |
1f87942cf0798f90d596f602e6524b16e1aed34a | df4b577668b830fcb41be675d691a72b952e892b | /releasenotes/source/conf.py | 9550aff663dfded18ef4e450b36cecf4ea41502c | [
"Apache-2.0"
] | permissive | 4383/tobiko | 37ef7bfb3b51918825c4c412136467fb32850494 | f8e6916db890021fa17ddbfc5e6007a25093c8cb | refs/heads/master | 2020-10-01T00:03:27.723538 | 2019-12-11T16:01:53 | 2019-12-11T16:04:14 | 227,405,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,970 | py | # Copyright 2019 Red Hat
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | [
"fressi@redhat.com"
] | fressi@redhat.com |
af3a982bb1e38db919790e04e56f80327509c4af | f3a55a42086d2bae3fdffa892318bf0f518b3549 | /tests/test_gp_interp.py | 265798b58161fcdcccd8cd4077f4898b5a13ac82 | [
"BSD-2-Clause"
] | permissive | LBJ-Wade/Piff_PSF | 0aa5d904dd416a81292b4d929ee29f19173b18f6 | 475939e250eaec12781596af90963daa3de7dbdb | refs/heads/main | 2023-04-03T08:47:15.933418 | 2020-12-10T15:18:45 | 2020-12-10T15:18:45 | 352,978,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,624 | py | # Copyright (c) 2016 by Mike Jarvis and the other collaborators on GitHub at
# https://github.com/rmjarvis/Piff All rights reserved.
#
# Piff is free software: Redistribution and use in source and binary forms
# with or without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redist... | [
"michael@jarvis.net"
] | michael@jarvis.net |
76e8996aac197a0b3885f921f41c55b81c48ac99 | 98535cd388dee9c71e95f3a80f835c6de7a9856f | /colector/migrations/0005_auto_20200409_1656.py | e987ef0576380caedcdd973d7b6f0a319d7d0476 | [] | no_license | GLEng81/wash | ab2478b838cad67c1f2d2f7b68990e0d8817b547 | 98af5fecd9f373affc2e2a365a7854badc83ec05 | refs/heads/master | 2023-05-17T09:59:02.512975 | 2020-07-30T16:23:39 | 2020-07-30T16:23:39 | 281,201,000 | 0 | 0 | null | 2021-06-10T23:14:36 | 2020-07-20T18:53:51 | Python | UTF-8 | Python | false | false | 1,447 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-04-09 13:56
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('colector', '0004_onlinestations'),
]
operations = [
... | [
"lambrev@gmail.com"
] | lambrev@gmail.com |
a53dd935915ce188e2c01b357422f6f816689102 | 044acee1c2fe0a75007acb2cdb16935b502419fe | /proxy_server.py | e89fc92f7be2f3665391227b3151cd9eccf357c3 | [] | no_license | ypark1018/IoTAMU | f34661015c035f667bbc00a0f72a82205a83824b | d9be7e2d72f5cf51110d3ab4919385f23784903f | refs/heads/master | 2022-11-17T04:41:14.394026 | 2020-07-16T13:56:10 | 2020-07-16T13:56:10 | 280,165,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,350 | py | #! /user/bin/env python
#
# Decrypt data received from the RI
#
# encryption source: https://cryptography.io/en/latest/hazmat/primitives/symmetric-encryption/
import socket, sys, parse, os, binascii, struct
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends ... | [
"noreply@github.com"
] | ypark1018.noreply@github.com |
1c70fcd7a85374cb3c865d51381650aa5511be8d | b35b449a9892d4d7f8c74f5239342275a387e255 | /src/posts/api/serializers.py | 960d94239ea9604d8daf4ca205b7cf6087f08cfc | [
"MIT"
] | permissive | arshpreetsingh3/Blog-Api | accb54d8fcf6469eea769892dfa01b01d8ddd217 | 4f6c1f404050b8acaaa97c8f599de38c0554af08 | refs/heads/master | 2023-01-06T19:14:35.274924 | 2019-06-11T20:56:53 | 2019-06-11T20:56:53 | 191,447,388 | 0 | 0 | MIT | 2022-12-26T20:15:49 | 2019-06-11T20:51:06 | Tcl | UTF-8 | Python | false | false | 1,608 | py | from rest_framework.serializers import ModelSerializer,HyperlinkedIdentityField,SerializerMethodField
from posts.models import Post
from comments.api.serializers import CommentSerializer
from comments.models import Comment
from accounts.api.serializers import UserDetailSerializer
class PostCreateUpdateSerializer(ModelS... | [
"sarshpreet07@gmail.com"
] | sarshpreet07@gmail.com |
97c2e262e2efb4d7e92034a42743e4ac6d711749 | c7a10224d832d7e55777a4332d2f02023dd80142 | /plot_decision_region.py | 550e894147dc39872b7166bac7725396eec4a5f8 | [] | no_license | Naresh1318/MachineLearning_Basics | cba48877e37cc80e61c47a8c477b67b5fd24c628 | 7294eaa8acd32b5d9dad4432c217ee745022470e | refs/heads/master | 2021-01-15T07:54:08.674660 | 2016-09-16T17:41:37 | 2016-09-16T17:41:37 | 68,401,472 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | from matplotlib.colors import ListedColormap
import matplotlib.pyplot as plt
import numpy as np
def plot_decision_region(X, y, classifier, resolution = 0.02, test_idx = None):
markers = ['s', 'x', 'o', '^', 'v']
colors = ['red', 'blue', 'lightgreen', 'gray', 'cyan']
cmap = ListedColormap(colors[:len(np.uni... | [
"rnaresh.n@gmail.com"
] | rnaresh.n@gmail.com |
37681d07a37def5dccdd450b9a0a044d1669059e | 9612f4e99cb8c35b8d3a585e2e6a00b97c2bde82 | /scripts/advanced-preprocessor.py | 2a604937d72aba00a9943b1a373d9debe2988cb6 | [] | no_license | handk85/dbrd-hands-on | 5d152edbe7483b4b9d9dc7bc2209aaa9cf65d2bc | 9631117654352f0387fee637cddaa95f94d3b1e0 | refs/heads/master | 2023-08-23T10:40:02.327115 | 2021-10-29T08:28:06 | 2021-10-29T08:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | import configparser
import glob
import json
import logging
import sys
import re
regexps = {"bug_id": re.compile("<bug_id>(.*?)</bug_id>"),
"title": re.compile("<short_desc>(.*?)</short_desc>"),
"status": re.compile("<bug_status>(.*?)</bug_status>"),
"resolution": re.compile("<resolutio... | [
"me@donggyun.com"
] | me@donggyun.com |
cfbde29af5c7d47388410751eaebd45c382e38a4 | ff3f4b3117847f70fe68741288f28576fe2cc5e3 | /baekjoon/1712_손익분기점.py | 7ad98c5c1bd7ff74104ee79698dc45bd51b98083 | [] | no_license | manuck/myAlgo | 087bbe99672c40762759e9202fe371c394736fb1 | c673687d23a2d5cc06b6a6d5fb1bc0cb2e2b7bd9 | refs/heads/master | 2021-07-01T00:13:27.590848 | 2020-12-17T18:10:16 | 2020-12-17T18:10:16 | 203,954,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | import sys
sys.stdin = open('1712_input.txt')
'''
문제
월드전자는 노트북을 제조하고 판매하는 회사이다. 노트북 판매 대수에 상관없이 매년 임대료, 재산세, 보험료, 급여 등 A만원의 고정 비용이 들며, 한 대의 노트북을 생산하는 데에는 재료비와 인건비 등 총 B만원의 가변 비용이 든다고 한다.
예를 들어 A=1,000, B=70이라고 하자. 이 경우 노트북을 한 대 생산하는 데는 총 1,070만원이 들며, 열 대 생산하는 데는 총 1,700만원이 든다.
노트북 가격이 C만원으로 책정되었다고 한다. 일반적으로 생산 대수를 늘... | [
"snc9000@naver.com"
] | snc9000@naver.com |
b1b38148dd34ab6a56a93319b0cf38852b1233e4 | f4ace251ea752c708bc58f5c478414339f16bf54 | /utils/constant.py | 0eddfc4597934392b2c7fe6c04b20bdf196a688d | [] | no_license | ilham1012/face_rec | 71af15759c7cf6f0fe8c847fba8da483932b2739 | 19dd682047b5bed9808369aac45bded1a0c6502b | refs/heads/master | 2023-03-10T12:43:22.989032 | 2023-03-02T08:58:06 | 2023-03-02T08:58:06 | 187,971,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | REG_FACES = ['aris', 'hanif', 'jony', 'rian', 'ilham', 'oka', 'arifin', 'ulfah']
MODELS = ['dt', 'svm', 'rf', 'adaboost']
OPTIMIZERS = ['forest', 'gbrt', 'gp'] | [
"myung1012@gmail.com"
] | myung1012@gmail.com |
befc3de90456d06e7253e8cfca71b997c05ef67d | 9ed9ed8038885f3647455da54675d6f7fb37f445 | /controllers/ratings_api.py | 16cd6b5c8d73a38b721a2f295412c1441eb98b54 | [
"LicenseRef-scancode-public-domain"
] | permissive | ayeh9/recipe-manager | 5bfaef24c400b053ca5ec717e0fbcff4d71c9f9a | 722f1287836562f9088acc36432abec5bd3c5153 | refs/heads/master | 2020-06-16T21:04:29.633108 | 2019-07-07T22:49:06 | 2019-07-07T22:49:06 | 195,704,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | py | import tempfile
import json
# Cloud-safe of uuid, so that many cloned servers do not all use the same uuids.
from gluon.utils import web2py_uuid
@auth.requires_login()
@auth.requires_signature()
def add_ratings():
# Validate the input.
if request.vars.recipe_id is None or request.vars.rating is None:
# Either the... | [
"awyeh450471@gmail.com"
] | awyeh450471@gmail.com |
b9da0f76d032c3df7d4bde0f771c584dbd887e18 | 930496f2768e92d6abef874ad7da4c6b6960701c | /MobilePredictor.py | b871fdf7019cba31803f4b5cf008e9f06e314e38 | [
"Apache-2.0"
] | permissive | kirill-pinigin/DeepImagePrediction | db1d97916fdbaaaac25f885e9aec79af19e30364 | 7422949aa313662e5cbbbf6cacc35e887f3ec2db | refs/heads/master | 2021-06-24T03:23:34.808154 | 2019-08-05T10:50:19 | 2019-08-05T10:50:19 | 148,470,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,171 | py | import torch
import torch.nn as nn
from NeuralModels import SILU, Perceptron
from DeepImagePrediction import IMAGE_SIZE, DIMENSION, CHANNELS
import math
def conv_bn(inp, oup, stride , activation = nn.ReLU()):
return nn.Sequential(
nn.Conv2d(inp, oup, 3, stride, 1, bias=False),
nn.BatchNorm2d(oup),... | [
"kir-pinigin@yandex.ru"
] | kir-pinigin@yandex.ru |
e2eb736bc7978630e6e2208b91616c2e2cdbe777 | eb218dd0d78588a527cf67bd25f6a4966f35e3cf | /tests/unit/command/test_experiments.py | c9865430cab7240916bce46610583ba23fbacfa3 | [
"Apache-2.0"
] | permissive | ik-python/dvc | 86f83a2b528d3b868b75423bfbf92d7182b0a5ed | 08300d3bcf51f7bd9c8509924110416461b11b60 | refs/heads/master | 2023-02-23T21:35:52.342950 | 2021-01-29T04:18:20 | 2021-01-29T04:18:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,745 | py | import pytest
from dvc.cli import parse_args
from dvc.command.experiments import (
CmdExperimentsApply,
CmdExperimentsBranch,
CmdExperimentsDiff,
CmdExperimentsGC,
CmdExperimentsList,
CmdExperimentsPull,
CmdExperimentsPush,
CmdExperimentsRun,
CmdExperimentsShow,
)
from dvc.exception... | [
"noreply@github.com"
] | ik-python.noreply@github.com |
64dd11875a6a2305f48f90f7a62ebcc7c4376775 | d5ae8e46de51b10e2a3e9b6503e20b64c0cc2117 | /estimateBuildingLevelCensus.py | 86302547d2687414acd248825d0f298c4b3783c9 | [
"MIT"
] | permissive | PeterJWei/CitywideFootprinting | 29f2758c60505e73cc3c9fedf4aeda3dc35e3cd7 | 98064e6119ceab26079c0b11629f3d428f4e745f | refs/heads/master | 2020-03-31T03:54:53.797573 | 2019-06-24T00:01:50 | 2019-06-24T00:01:50 | 151,883,870 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,372 | py | import csv
import web
import json
import datetime
import sys
import pickle
import math
from sklearn import linear_model
class estimateCensus:
def __init__(self):
self.boroughCode = {"MN":1,
"BX":2,
"BK":3,
"QN":4,
"SI":5}
self.censusPop = {}
self.censusBuildings = {}
self.censusRes... | [
"pw2428@columbia.edu"
] | pw2428@columbia.edu |
e911850a6ea1890da390432e22b4f66d472ca101 | d9dd87fce5428fa49cdf665297901ac487aab2a6 | /DeepIC50_construct_code.py | a18d156d1927f2697b3e55209e5ab697f1a14326 | [] | no_license | HabibMrad/DeepIC50 | e18bd2d88e3def3a7b04beeca53f804c15680d0a | 3bcc2dad63c77b07e486e5f9c3fc791fc41b181c | refs/heads/master | 2020-12-04T12:27:53.332937 | 2019-12-09T07:03:04 | 2019-12-09T07:03:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,347 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import os
import pandas as pd
import numpy as np
import tensorflow as tf
import random
from pandas import DataFrame
from datetime import datetime
import keras
from keras.models import Sequential,Input,Model
from keras.layers import Dense, Dropout, Flatten, Reshape, Acti... | [
"labnams@gmail.com"
] | labnams@gmail.com |
3ccfbc7cb88171245be6319346886e2f2d578724 | 1b18db113edef02932a3aae1c6d692bec8a52a31 | /create_input/connectivity.py | ea18c0d7f25000d95df7f4c8c4f881a01ff08c9c | [] | no_license | aljamaha/Zeolite | 20a656caa686b620e5c1c2f216f00472aca416c0 | 963d5b274409266af2944c279a11268be339a1f1 | refs/heads/master | 2021-08-10T10:48:20.863434 | 2021-07-23T07:18:00 | 2021-07-23T07:18:00 | 221,759,500 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,355 | py | #import packages
import sys, json
from molmod import * #further info are here: http://molmod.github.io/molmod/tutorial/install.html
from ase import io
'Modified version from Jeroen Van Der Mynsbrugge original script'
def connect(xyz_file, qm_atoms, output_name = 'tmp', zeolite=None):
'''
Objective: convert an xyz c... | [
"aljamaha@stanford.edu"
] | aljamaha@stanford.edu |
e2a991b355677ee0a574dce0a2c19d1b6cac5bc7 | 2256a61b57eed52ce5b3dd19e54108545e3fa1a1 | /sandbox/ipython/mydemo.py | fd31887d834e800fcd42827f23ebcf608aea26b6 | [
"Apache-2.0"
] | permissive | hubitor/progs | 18877b7dbd455f1192c96ebe1905f67329d1c749 | e4537da6da47d380a1a1a04e8068866013c7b7b6 | refs/heads/master | 2020-04-28T18:49:23.446076 | 2019-02-18T07:59:28 | 2019-02-18T07:59:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | #! /usr/bin/env python
# -*- coding: latin-1 -*-
from IPython.lib.demo import Demo
mydemo = Demo('myscript.py')
#mydemo()
| [
"romain.boman@gmail.com"
] | romain.boman@gmail.com |
c6322aae500d38989555dc8f18c4f075c76dfd66 | e06ab30609a37ff69748611a0864ba395e04dc01 | /python_tools/_algorithm/stack.py | 680914fa223de12136c5266bd506ed101623c619 | [] | no_license | chenxi-zhao/various_tools | e898bb858b81f7394eba44c4204079acefd3e87e | c15f242b3c73225a7a3e85fd43faa2c0845dc4c7 | refs/heads/master | 2021-01-01T04:30:42.542144 | 2016-05-03T03:44:00 | 2016-05-03T03:44:00 | 57,265,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | # coding = utf-8
__author__ = 'chenxi'
class Stack:
"""栈结构"""
def __init__(self):
self.items = []
def pop(self):
if self.isEmpty():
raise RuntimeError("Attempt to pop an empty stack")
topIndex = len(self.items) - 1
item = self.items[topIndex]
del self... | [
"zhaochx1@yonyou.com"
] | zhaochx1@yonyou.com |
a52be8922affd67547e135f801c5f101f05b49af | 60b2738284ae25231da1b1d91e3b61008c548673 | /ImageGenerator/generate_image_with_index.py | 0c4caf197fe57011c8892e239f78338ba67557a7 | [] | no_license | BhallaLab/Scripts | f54eb06693ae0f9de3b41a8ed2adda1da930aa24 | a5d3a2be92b269590316403b3c6194db020b261a | refs/heads/master | 2021-06-02T21:43:13.374239 | 2019-08-06T05:53:03 | 2019-08-06T05:53:03 | 37,115,228 | 8 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python
"""generate_image_with_index.py:
Generates transparent image with numbers written on them. Can be used to
caliberate projectors for frame per seconds.
"""
__author__ = "Dilawar Singh"
__copyright__ = "Copyright 2015, Dilawar Singh and NCBS Bangalore"
__credits__ ... | [
"dilawars@ncbs.res.in"
] | dilawars@ncbs.res.in |
0f85e629918d9c10d47d0f02fe53bdb4da9e6d75 | 328ebfdbcef076ce0e930715f9bd786d7498185b | /lang/python/learn-python-programming-masterclass/section-3/strings.py | 91b26393876205c803ac842e2289ac95f64a1bc6 | [] | no_license | pnowak2/learnjs | b618e6f9563b3e86be0b1a21d647698e289daec0 | f8842b4e9e5d2eae6fb4e0d663b6699d74c90e9c | refs/heads/master | 2023-08-30T05:04:00.227920 | 2023-08-18T10:58:24 | 2023-08-18T10:58:24 | 41,912,571 | 3 | 0 | null | 2023-03-31T06:58:40 | 2015-09-04T11:36:13 | Python | UTF-8 | Python | false | false | 467 | py | print("Today is a good day")
print('Python is fun')
print("Python's string are easy to use")
print('We can include "quotes" in string')
print("Hello" + " world")
greeting = "Hello, "
# name = input("Please \n enter your name ")
name = "Tim"
# if we want a space, we can add that too
print(greeting + name)
print(greet... | [
"p.nowak2@gmail.com"
] | p.nowak2@gmail.com |
e44011a706cb1a6bc10c4757985176317ba1acb0 | 3c1e4ef8629764c354c544f17ff2895171f8e51c | /phys163labs/lab2/lab2q7.py | 794889d6bf321a2940989a70560815bda8b16e60 | [] | no_license | RogShotz/phys | 2b7ad9ccbd9532c0bf18e26e9ea4c182e888486e | 1c90abd9321a2c9ab3f1580d035347928cfaff0f | refs/heads/master | 2022-10-18T05:55:13.283754 | 2022-10-12T01:14:55 | 2022-10-12T01:14:55 | 238,791,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | from vpython import *
line_x = cylinder(pos=vec(-5, 0, 0), axis=vec(10, 0, 0), radius=0.05)
line_y = cylinder(pos=vec(0, -5, 0), axis=vec(0, 10, 0), radius=0.05)
line_z = cylinder(pos=vec(0, 0, -5), axis=vec(0, 0, 10), radius=0.05)
scale_arrow = .01
k = 8.99e9 # Coulomb constant
L = 5.0 # length of rod
Q = 2.0e-2 ... | [
"RogShotz@users.noreply.github.com"
] | RogShotz@users.noreply.github.com |
b5d508e54602e8c3a651ff042c756698a67975ce | f371ee970c474aca8f15edd1eefceeaba5692a72 | /Session1/hello.py | 5977f4c39bd122124147a09843f5ed4ee56ec2e6 | [] | no_license | bach2o/NguyenNgocBach-fundamentals-c4e15 | c26149c5648fbe338ab76e1facf9e56f457ca7de | 259595c255d4a61c8a17417db979b8e0f3881b5a | refs/heads/master | 2021-05-04T21:44:29.433232 | 2018-02-09T15:19:33 | 2018-02-09T15:19:33 | 119,961,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | print("hello world and goodbye world")
n = input ("What's your name?")
print("Hello", n)
| [
"bachchakmak@gmail.com"
] | bachchakmak@gmail.com |
fe6f9e517fa57fa574ad57811ee18bab68c95b8d | 1243d11e36e61542693fb9a4b187f328aa2eb473 | /account/models.py | 6d5ebea9fe2dd56a1a41c1d14b7e00f2ff50f127 | [] | no_license | LatorreDev/Django-socialNetwork | 344fa7d4fdee2a136695cdf9be20feaa8a8e8094 | b15f7a3c13e118d3ce1144784357b44f81c426ac | refs/heads/master | 2022-12-08T23:02:43.221239 | 2020-09-18T01:05:03 | 2020-09-18T01:05:03 | 296,475,039 | 0 | 0 | null | 2020-09-18T01:05:04 | 2020-09-18T00:44:37 | null | UTF-8 | Python | false | false | 476 | py | from django.db import models
from django.conf import settings
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL,
on_delete=models.CASCADE)
date_of_birth = models.DateField(blank=True, null=True)
photo = models.Imag... | [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
f82607f74d1a032f97f36e8f68b0a32b783431f7 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startQiskit_QC115.py | aac0e298834b98a16d87fa3890ff00e155618dd8 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,817 | py | # qubit number=3
# total number=20
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
41861453f09818f9a2f62d37ff76df50af693824 | c5a1c95e9d8ce937f71caf8340cf11fe98e64f56 | /day15/problem2/[노태윤]소수 찾기.py | 8b5fff7359c78175d22f73d43ea64b2a1a1acb6b | [] | no_license | Boot-Camp-Coding-Test/Programmers | 963e5ceeaa331d99fbc7465f7b129bd68e96eae3 | 83a4b62ba2268a47859a6ce88ae1819bc96dcd85 | refs/heads/main | 2023-05-23T08:21:57.398594 | 2021-06-12T16:39:21 | 2021-06-12T16:39:21 | 366,589,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | from itertools import permutations
def isprime(N) :
if N <= 1 :
return False # 0 또는 1 이면 소수가 아니므로 False 반환
for i in range(2,N) :
if N % i == 0 :
return False # 하나라도 나누어 떨어지면 소수가 아니므로 False 반환
return True # 그 외에는 True 반환 (소수)
def solution(numbers):
answer = 0
total_perm... | [
"noreply@github.com"
] | Boot-Camp-Coding-Test.noreply@github.com |
f82878d8c9a6a5543e1d7390cb96b41bef092295 | 683c3c5f256f115f5c3547b9482cbd5ef2b63d23 | /2020/TJCTF/5_stop_solve.py | c0f1fdf645a776a09d6dbdbd6394ad27206d4ea7 | [] | no_license | yueJDy/pwn | eb1e7292c4fb6d34f65e976742abb390730e8a1d | 32d0e748dd6d2c2327e5175fc34a1784b67b83a5 | refs/heads/master | 2021-08-11T04:09:42.688560 | 2021-04-16T09:00:40 | 2021-04-16T09:00:40 | 248,710,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from pwn import *
r = process('./stop')
raw_input('debug')
rop_rdi = 0x400953
printf_got = 0x601fe0
getchar_got = 0x601fe8
printf_plt = 0x4005a0
printf_offset = 0x055810
system_offset = 0x0453a0
binsh_offset = 0x18ce17
main = 0x40073c
def func(rdi, addr):
r.sendlineafter('Which letter? ', 'a')
buf = 'a'*0x118
bu... | [
"yueJDy@users.noreply.github.com"
] | yueJDy@users.noreply.github.com |
5f85886dfe1921437b555ec616d53d2537f494f6 | fd732027206ca582f2957c75039989473cad2f93 | /server.py | af46c8e16f836c700c9389197916a6183d0b3533 | [] | no_license | Rafal-Kozdroj/zadanie-rekrutacyjne-GWP-Rafal-Kozdroj | ec44b4eb2db3569cdfa10dcf1259ff136b7cef94 | f3b3dbb8c1c16de26cd1dedac34a58eaa197240f | refs/heads/master | 2021-01-19T16:02:29.349523 | 2017-09-25T09:39:43 | 2017-09-25T09:39:43 | 100,980,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,572 | py | import json
from flask import Flask
from flask import request
from flask import make_response
app = Flask(__name__)
VALUE_MAX_SIZE = 1024 * 1024
KEY_MAX_LEN = 100
FILENAME = "values.json"
def put_value(key, value, values):
created = False
if key not in values:
created = True
values[key] = value
... | [
"rafal.kozdroj+git@gmail.com"
] | rafal.kozdroj+git@gmail.com |
62c68dddf80e0c9af49caa7184495595b89c6570 | 877103ed9aefb75d8b079c26fa9501235f36f135 | /news_history_library_builder.py | edab2111f3bd8fbf625597dbf3ebb95667313f66 | [
"MIT"
] | permissive | aljohnso/Market_Dreams | abc7b2845edbe9225d369f5b88a6676f40466a0d | 2cd2561df6ff46ecb32e029c10c761f636ab72ee | refs/heads/master | 2021-01-18T21:08:47.932379 | 2016-05-15T04:22:32 | 2016-05-15T04:22:32 | 55,817,426 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | import newspaper
import datetime
URL = 'http://www.reuters.com/news/archive/worldNews?date='
def getPaper(date):
URL = 'http://www.reuters.com/news/archive/worldNews?date='
URL = URL + str(date)
print(URL)
paper = newspaper.build(URL)
print(paper)
articles_ = paper.articles
pri... | [
"aljohnso@students.pitzer.edi"
] | aljohnso@students.pitzer.edi |
b5528fe3267e31e75996bc3fffe002a6cea4fa77 | 4de98697b5ad1ab7a7ca52ea39b1cc863ef2022f | /python/pacman_game/pacman.py | 43a332e5fd07d20c227adfa040de1f0adbb3c9e5 | [] | no_license | yask123/other-codes | bfb60b5fdca58df8dd46ce6dc6cf5782882bfd2a | adc73c7e3969d103b1154d2ec29a19348bca17ae | refs/heads/master | 2021-01-21T00:56:47.253189 | 2014-11-30T14:50:47 | 2014-11-30T14:50:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,316 | py | from random import randint
import os
#FUNCTION USED FROM : https://gist.github.com/jasonrdsouza/1901709
def getchar():
if os.name == 'nt':
ch = raw_input('Enter your turn (w,a,s,d) : ')
else:
import tty, termios, sys
fd = sys.stdin.fileno()
old_settings = termios.tcgetattr(fd)
try:
tty.set... | [
"skbly7@gmail.com"
] | skbly7@gmail.com |
45938a94e200a8047005b38b0fb3a89764ed49bc | dd3e43558a15191886f75e5a1bd45a8db7c2c446 | /ProjectTaskRecorder/urls.py | 820c7ffb7cff9013736b834a8cb50c85360e97d4 | [] | no_license | zsm767/ProjectTaskRecord | 1324c39564b2a3f1dc091abd6ab1f1f002d07d0e | 3a8f22f685cffad97071cba20feb3051238519fb | refs/heads/master | 2020-05-15T23:12:57.193403 | 2020-01-24T21:42:40 | 2020-01-24T21:42:40 | 182,546,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | """ProjectTaskRecorder URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')... | [
"zsm767@gmail.com"
] | zsm767@gmail.com |
fcb0a339297c247da0b710cde9ce4fd7d6f0a0b3 | 8cf2371c0dbb0b17fa6b601a4edf12a884f32958 | /Practice1.py | f2813e6b4003c28228c8e26a9cfcad9f53c4dcd7 | [] | no_license | meliissagr/CompElective | 2a00ad64657bbe3f1dd803ff205fd3c3eae88cb4 | efed0d5ad3b2a02afbee01d934bd6e38043d0586 | refs/heads/master | 2020-04-14T06:25:54.305716 | 2015-05-12T13:59:59 | 2015-05-12T13:59:59 | 35,280,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #Practice # 1
#Create 5 variables that store your personal info
#Name, Last name, Address, Email, Phone number,
#Print them separately and then concatenate them in a string.string
Name = 'Melissa'
LastName = 'Gutierrez'
Address = 'Samborondon'
Email = '15mgutierrez@iaa.edu.ec'
PhoneNumber = 2836880
print Name
prin... | [
"15mgutierrez@iaa.edu.ec"
] | 15mgutierrez@iaa.edu.ec |
cfac0ad8377b57b5c10a7d49b67b1f4bffd73f68 | 774bea659c3dd1b9d0d48cda8b9933da889aecf0 | /hashtag_count.py | 89f65ea02f5cc8a2a91a6270e7e17e018b6e88e0 | [] | no_license | js418/Algorithms-for-Data-Science | 44b2f7e7f3e30cfba568eaccdb08a3300e7b3a92 | 3821b51ab1e6b788c4e24631681bc25a738009b3 | refs/heads/master | 2020-03-19T07:08:46.171150 | 2018-06-04T22:39:41 | 2018-06-04T22:39:41 | 136,089,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | from mrjob.job import MRJob
class HashtagCount(MRJob):
def map(self, _, tweet):
"""
Output the number of hashtags and a count for each tweet
the '_' can be used when there is no key
"""
num_hashtags = sum(1 for i in tweet.split() if i.startswith("#"))
yield 'tweets'... | [
"noreply@github.com"
] | js418.noreply@github.com |
238a0fd2b61f6e8877eb39f50fc3f32b2dcc373c | c4223fa1db8324af96797240b3e156f9f697b547 | /agent_code/agent_task3_field_augment_prio_notimeaware/model.py | db55ed0b3a26b2eaf755cd858c2438e602e174e6 | [] | no_license | Philipp-g/ifml-project | 74b18933ab55a6402aa70d567ea961a641498f8c | 34c8fc56b0cf635509921290a1e70b6a812146d6 | refs/heads/master | 2023-03-25T06:38:54.566525 | 2021-03-29T12:18:14 | 2021-03-29T12:18:14 | 338,555,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | import torch.nn as nn
class BombNet(nn.Module):
def __init__(self, input_dim, output_dim):
super().__init__()
_, c, h, w = input_dim
if h != w and h != 15:
print("Input must be 15x15")
self.convs = nn.Sequential(
nn.Conv2d(in_channels=c, out_channels=16, ker... | [
"philipp.goeldner@gmail.com"
] | philipp.goeldner@gmail.com |
04ffe373712c4bca461e6b2f16eaa0b864c5d195 | c4ff5bb1db872144cc6a71f8954448d00a4db9e0 | /fugu/CodingDojo/acmicpc-1874-스택수열.py | 0349cd1fd567033cfe5b76799b32a63038203e4e | [] | no_license | gsn-coding-study/ibiza-summer | a50e50d68976bc0f5f5c91623086886c0e115612 | 01a89d67cca4b2cc27f45f432375a6a8c24f5d0b | refs/heads/master | 2021-01-25T09:15:25.106370 | 2017-12-08T06:17:03 | 2017-12-08T06:17:03 | 93,809,457 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | #-*- coding: utf-8 -*-
def play(seq):
os = range(1, len(seq) + 1)
stack = []
rec = []
while 0 < len(seq):
if os[0] < seq[0]:
stack += os.pop(0)
rec += '+'
elif:
pass
else:
return 'NO'
return '\n'.join(rec)
args = [input() ... | [
"ikrus81@gmail.com"
] | ikrus81@gmail.com |
c8c5b3d762ba711d24f16e25948f313a7ca2814e | e5038d0457f6d1dad38a98434072420b4c91c829 | /数据集/训练集/cls_loc/test_cls.py | 67b2f6c5bc61234caab8ca0a81e271e02f9270bf | [] | no_license | gyupup/RSRGAN | a0383f0851af4d31d00392bcd27480faaad91746 | 4e764c44cdd1d637dbbb92083c9cef7fcbf343a1 | refs/heads/master | 2023-05-20T18:24:23.636093 | 2021-06-15T13:35:42 | 2021-06-15T13:35:42 | 376,792,754 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | """
单独训练cls分类
"""
import argparse
import os
import numpy as np
import math
import itertools
import sys
import cv2
import glob
import torchvision.transforms as transforms
from torchvision.utils import save_image, make_grid
from torch.utils.data import DataLoader
from torch.autograd import Variable
from models impor... | [
"1468096997@qq.com"
] | 1468096997@qq.com |
97a57fc4cd9e3e25e79da1b5c05723155c868436 | 904a63bc6e2306d4a139a3977c0b99b08e7f5cb6 | /tests/test_painter.py | b0a16bffa18a9d89816f139722c60f9de81264f3 | [
"MIT"
] | permissive | fgimian/painter | b5c8192bf0022964083afa433e3077c6a2d33bac | 8975cba5fa6cd4f548a804990b9acceebf106818 | refs/heads/master | 2021-01-21T04:54:16.964640 | 2018-07-22T11:37:12 | 2018-07-22T11:37:12 | 19,145,773 | 16 | 2 | null | 2014-04-28T23:29:06 | 2014-04-25T12:49:50 | Python | UTF-8 | Python | false | false | 2,743 | py | from nose.tools import raises
from painter.painter import paint
paint.enabled = True
def test_painter_style_string():
assert paint.underline('foo') == '\x1b[4mfoo\x1b[24m'
assert paint.red('foo') == '\x1b[31mfoo\x1b[39m'
assert paint.on_red('foo') == '\x1b[41mfoo\x1b[49m'
def test_painter_pattern_stri... | [
"fgimiansoftware@gmail.com"
] | fgimiansoftware@gmail.com |
ec35f4c3d77874af773f2b4ba822170f62937374 | 97391e70aef84fceebdf5c67cf76cfb70ff00b5a | /setup.py | 562639eb02c713d622850d36593260b4d0897eb7 | [
"MIT"
] | permissive | tvarga1/PythonCanalyzer | 5e6c25647ceb049ae768ca92cd3eac161c1a7bfb | f6e458a840f98667ec8ea63e0ecba57407579508 | refs/heads/master | 2020-12-23T15:36:44.599687 | 2019-11-26T06:27:46 | 2019-11-26T06:27:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="python_canalyzer", # Replace with your own username
version="0.0.2",
author="Guopeng Sun",
author_email="sgnes0514@gmai.com",
description="Vector CANalyzer Win32Com",
long_description=... | [
"guopeng.sun@valeo.com"
] | guopeng.sun@valeo.com |
18746d107ac80f317f7718f9df54959cb3ba6e77 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/o4y.py | 89cc0accfba79c045c1482dbd947f1898b0456fa | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
184fe0d25f0fc5ed10550ecf87ed8762273c91fb | 52c0d7d09963fda57f0e4855c265cbc88f29e249 | /Python Flake8 Lint/contrib/flake8/_pyflakes.py | daf2749e9c57ebf33ac688d8ee717f8d4a85f8ea | [] | no_license | blizzrdof77/Sublime-Text-3-Packages | 8d52742ce6dca32d0c5caa22f808922089829dba | 04f91dcf79f121264daafa5dcacc4b8d54ef6968 | refs/heads/master | 2020-05-28T06:41:32.316971 | 2014-06-09T11:13:04 | 2014-06-09T11:13:04 | 9,673,021 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | # -*- coding: utf-8 -*-
import pyflakes
import pyflakes.checker
def patch_pyflakes():
"""Add error codes to Pyflakes messages."""
codes = dict([line.split()[::-1] for line in (
'F401 UnusedImport',
'F402 ImportShadowedByLoopVar',
'F403 ImportStarUsed',
'F404 LateFutureImport',
... | [
"benjamin.wagner@fahlgren.com"
] | benjamin.wagner@fahlgren.com |
a415dff3d2535b360a1ace9f56b0556656905e8d | cb80cc1dc7cac2e0b7046ee3ee25b3a067ccb16a | /users/migrations/0004_getleave_user.py | 5b00c42e4d91f2a86b975fa4e974abc76b722ed1 | [] | no_license | ninekulay/django-api-docker-macm1 | 7e218623407eefbab6a293053e55214aa73bcb1f | ac9adad76d26758abf0308f2aaa547636fd00b7e | refs/heads/main | 2023-04-05T19:46:26.852640 | 2021-05-04T11:46:22 | 2021-05-04T11:46:22 | 364,237,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # Generated by Django 3.0 on 2021-05-04 11:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('users', '0003_auto_2021050... | [
"chanin@Chanins-MacBook-Air.local"
] | chanin@Chanins-MacBook-Air.local |
be04f8de517fa361510d94b2831505d48a153f34 | e5eb2426985e3d1e0dbe249ac7adcbd30c5dec3b | /Newsrooms_NLP/popular_newsarticles.py | 47fa7c8efd1ddaae902e976d70fd8b4fc7fe55e5 | [] | no_license | mjjin967/Newsrooms | 17f6b54eb52b27e1a700cd9390ec8e19456b835a | c97651852c017afc3970517d384ebba471054bcf | refs/heads/master | 2020-07-28T15:35:52.158271 | 2019-12-27T01:44:36 | 2019-12-27T01:44:36 | 209,452,747 | 0 | 2 | null | 2019-09-21T23:21:50 | 2019-09-19T03:15:33 | Python | UTF-8 | Python | false | false | 6,204 | py | from os import getcwd,listdir
from os.path import isfile, isdir, join
import shutil
import json
import sqlite3
import pandas as pd
from gensim.models import LsiModel,TfidfModel
from gensim import corpora,similarities
# from gensim.test.utils import common_corpus,simple_process
import gensim
from gensim.test.utils impor... | [
"myungjin_lee@alumni.brown.edu"
] | myungjin_lee@alumni.brown.edu |
80c27f195497178cabd5c47b3d0356e31a1cc702 | b1bb53508e4f9e2b68435c0521e2df337873b8c5 | /lesson7/ex2.py | c16e0ac718cdce7cc2443bc8608d4e395e0ae2a3 | [] | no_license | smbdawsm/python_exercises | 1dccbf1344818fb39c3c1a605ce1791fdf561396 | 9c4465006ab9dc4221a04dfeed41747b167fa032 | refs/heads/master | 2023-01-23T01:31:43.824211 | 2020-11-30T16:54:01 | 2020-11-30T16:54:01 | 301,453,033 | 0 | 0 | null | 2020-11-30T16:54:02 | 2020-10-05T15:21:56 | Python | UTF-8 | Python | false | false | 2,199 | py | '''Реализовать проект расчета суммарного расхода ткани на производство одежды. Основная сущность (класс)
этого проекта — одежда, которая может иметь определенное название. К типам одежды в этом проекте относятся
пальто и костюм. У этих типов одежды существуют параметры: размер (для пальто) и рост (для костюма). Это мо... | [
"nikolay.nikishev@icloud.com"
] | nikolay.nikishev@icloud.com |
9ed50cdcb3294279c57952634ed65965df1eb842 | fbd926541dac8c087d8e67c2947e387e84d80bec | /LucidProgramming/linked_list.py | 56c62f3ec179ccf35c45a510d3a861e3c1b12ad9 | [] | no_license | nithin-kumar/urban-waffle | 2249e4009f7ed97e0beabc681e6706514e9e08f9 | 977de7f68c1a46c0b05992b45dd2d4d0a4205ae4 | refs/heads/master | 2020-09-12T22:35:55.566153 | 2019-11-19T01:33:33 | 2019-11-19T01:33:33 | 222,576,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,842 | py | class Node(object):
"""docstring for Node"""
def __init__(self, data):
self.data = data
self.next = None
class LinkedList(object):
"""docstring for LinkedList"""
def __init__(self):
self.head = None
def print_list(self):
current = self.head
while current:
print current.data
current = current.next... | [
"kv.nithin.90@gmail.com"
] | kv.nithin.90@gmail.com |
08b06d603bf17c8b7454333ac5e1645012aae45f | 756543fa0c042122395202291b7da3bba90c1392 | /Codes fuer neue Anwendung/Step1_AccessGithubRepo.py | 01c78da5447baa2a688d247b2a4179b4d026246d | [] | no_license | bvbgh/aimloss | df7f35305470e7ee71be878e461ec0815b7ca17a | 697ee3e45b9b3d6eb2f07578d1ae9c522f17141c | refs/heads/master | 2021-01-23T22:23:21.431330 | 2018-04-20T13:21:46 | 2018-04-20T13:21:46 | 83,125,678 | 0 | 0 | null | 2018-04-20T13:08:41 | 2017-02-25T10:58:33 | R | UTF-8 | Python | false | false | 6,953 | py | # Step 1 in Data Analysis Workflow
import json, gzip, urllib, time, os
# Falls das Programm auf einem Windowsrechner ausgefuehrt wird, laeuft der
# Speicher voll. Deshalb wurde ein explizites loeschen der temporaeren Daten
# implementiert. Zur Aktivierung die "tempDelete" Variable auf 1 setzen und
# den Pfad ... | [
"bvonbronk@gmail.com"
] | bvonbronk@gmail.com |
4cbb665b85d9594969147c4427691a18f0ff6da7 | 9cb0322bd0f837f586936ecad555309218d59882 | /Log/__init__.py | 5d20ee91003f12fa31d35170ee2962aecc2bc57b | [] | no_license | shuihun/readNgnixLogClient | e25f159b74a42190c309541a73e0d2499083dc29 | 258b89a9a549e1ffec1a7a7a18aae96be71ec0f4 | refs/heads/master | 2020-03-17T07:04:52.962076 | 2018-05-14T15:44:20 | 2018-05-14T15:44:20 | 133,382,328 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @version : 1.0
# @Time : 2018/1/13 16:53
# @Author : chenjh
# @File : __init__.py
# @Software: PyCharm
# @note : | [
"911257639@qq.com"
] | 911257639@qq.com |
72291f1a80d25d450fe906f87abf607eafeeffb1 | 1491ea6076b77a75a3c30ddca1b645f021377b14 | /build/lib.linux-x86_64-2.7/fishext/urls.py | 5981e434caa12b40d51f6a50e27ffcd2cd645877 | [] | no_license | fishkao/fishext | d6a837bd9618a5f6b06fbb1e73ee7453ddc7e34d | 8fb36f34b7a9b5385f177e16ded04734a19c6273 | refs/heads/master | 2021-01-22T11:58:45.513441 | 2014-04-02T07:22:34 | 2014-04-02T07:22:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('fishext.views',
url(r'^$', 'dashboard'),
) | [
"gzzhaoyinlan@corp.netease.com"
] | gzzhaoyinlan@corp.netease.com |
18c0c6f8a59ca7b22f43511f62bbd3c0b4da50bb | a7e4a3f8b650535e0b204599a650b49f7c833084 | /hw3/hw3.py | 61f3288587a678b1e3f3789f7e29082810fac8a2 | [] | no_license | AamirManasawala/matrics | bb998b6bb7c2b3e349e036b4c4cc924af9e179c1 | c2ced0dc7bfbff6b6dc7e2aade9db40120b00e84 | refs/heads/master | 2021-01-02T08:14:11.534557 | 2014-07-17T03:06:22 | 2014-07-17T03:06:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,639 | py | # version code 829
# Please fill out this stencil and submit using the provided submission script.
from mat import *
from vec import *
from matutil import *
## Problem 1
# Please represent your solutions as lists.
vector_matrix_product_1 = [1,0]
vector_matrix_product_2 = [0,4.44]
vector_matrix_product_3 = [14,20,26]
... | [
"manasawala.aamir@gmail.com"
] | manasawala.aamir@gmail.com |
0bb427439c4a8a56d195361c85fb14868b964517 | f508e4a751d3dfadd268794fd6092b3781a74d4c | /docs/conf.py | 090e77a6ac8479a9a127eddbd3cf278fac9292ef | [
"MIT"
] | permissive | mildewey/higlass | c2e274e0bdafccbfe5e994b8992248ae806e82fd | 8cc135017500216cb24b98c3c82d85ca861081b1 | refs/heads/master | 2020-04-02T19:26:31.670874 | 2018-10-19T16:05:30 | 2018-10-19T16:05:30 | 154,734,076 | 0 | 0 | null | 2018-10-25T20:34:59 | 2018-10-25T20:34:59 | null | UTF-8 | Python | false | false | 5,306 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# higlass documentation build configuration file, created by
# sphinx-quickstart on Mon Jul 3 16:40:45 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# au... | [
"pkerpedjiev@gmail.com"
] | pkerpedjiev@gmail.com |
2d583075790cb83484032d009a3e8cfe584193d0 | 70e970ce9ec131449b0888388f65f0bb55f098cd | /SignalMC/python/pythia8/AMSB_gluinoToChargino_M-1300GeV_M-900GeV_CTau-10cm_TuneCP5_13TeV_pythia8_cff.py | adb04714d2ed3a9d54092513fa5a34287cf407ba | [] | no_license | OSU-CMS/DisappTrks | 53b790cc05cc8fe3a9f7fbd097284c5663e1421d | 1d1c076863a9f8dbd3f0c077d5821a8333fc5196 | refs/heads/master | 2023-09-03T15:10:16.269126 | 2023-05-25T18:37:40 | 2023-05-25T18:37:40 | 13,272,469 | 5 | 12 | null | 2023-09-13T12:15:49 | 2013-10-02T13:58:51 | Python | UTF-8 | Python | false | false | 8,096 | py | COM_ENERGY = 13000.
MGLU = 1300 # GeV
MCHI = 900 # GeV
CTAU = 100 # mm
CROSS_SECTION = 0.0522 # pb
SLHA_TABLE="""
# ISAJET SUSY parameters in SUSY Les Houches Accord 2 format
# Created by ISALHA 2.0 Last revision: C. Balazs 21 Apr 2009
Block SPINFO # Program information
1 ISASUGRA from ISAJET # S... | [
"ahart@cern.ch"
] | ahart@cern.ch |
568d639fb495c2a405c45b251ca5058b0adb1e05 | 12c7a93d74d0bcf4d4c99bd2cd5210df49645c2d | /code-backend/lib/config.py | 62fce9337f9a2b7d48e375a6190a95b2e7d5a966 | [] | no_license | FalconLee1011/ntou-cs-embedded-system-project1 | 34734dfdfae94698409c4f4a7f9c7722b022d682 | 177a32ebf8f4646545a0511123788e64b987d93a | refs/heads/master | 2023-03-30T05:09:05.584010 | 2021-04-06T12:27:48 | 2021-04-06T12:41:12 | 355,089,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | import yaml
CONF = None
def loadConfig(path):
global CONF
with open(path) as f:
CONF = yaml.load(f, Loader=yaml.SafeLoader)
f.close()
return CONF
def loadConfigAndReturnAsLocalVariable(path):
with open(path) as f:
conf_let = yaml.load(f, Loader=yaml.SafeLoader)
f.clo... | [
"falcon.lee1011@gmail.com"
] | falcon.lee1011@gmail.com |
05b17cb231ce22ac5fa98d9b4327665c821720eb | c06dc659681ad7a933e53809d46dd4a7b9211f0f | /edureka_old/module6/Assignment6/question3.py | b6758f1f1e753d984656d1f7615aacc5e91131b4 | [] | no_license | sunitskm/Python | 6233949182215b0c6cea31b62f62dea9e3bb57c8 | 0c4d4384ad930520ce16d446cc18898a5f497291 | refs/heads/master | 2020-04-21T18:34:13.908308 | 2019-09-19T14:14:30 | 2019-09-19T14:14:30 | 169,774,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | #Could not find any other way to do. Feel free to share any idea regarding this problem.
import scipy as sp;
v = sp.zeros((10,10))
l= []
print(v.shape)
for i in range(v.shape[0]):
for j in range(v.shape[1]):
if(i==j):
v[i][j] = 2
if(abs(i-j)==2):
v[i][j] = 1;
print(v)
| [
"31219436+sunitskm@users.noreply.github.com"
] | 31219436+sunitskm@users.noreply.github.com |
669f960900ea3a0f9a8cf9a0daf16becb2ab4e31 | de64d2c61df22d3b9fc967cf8a28feb70829d8da | /scripts/tweet.py | 39776414d2fac05c3fdcc77de70802c0ffee9ef7 | [] | no_license | arueckle/Hub | 1368c73eec5a0c0430d54e54891ec7d3b54c56fc | e14961affb210c2a285b8b2ef92aee1549c11435 | refs/heads/master | 2023-01-08T13:42:24.221220 | 2020-11-01T14:31:26 | 2020-11-01T14:31:26 | 279,960,383 | 0 | 0 | null | 2020-07-15T19:36:39 | 2020-07-15T19:36:38 | null | UTF-8 | Python | false | false | 2,744 | py |
import os
import sys
from twython import Twython
from utils import REPO_FOLDER
import yaml
dir_path = os.path.dirname(os.path.realpath(__file__))
SINGLE_TWEET = os.path.join(dir_path, "tweet_templates", "single.txt")
MULTI_TWEET = os.path.join(dir_path, "tweet_templates", "multi.txt")
# read the Twitter authenticat... | [
"36051308+calpt@users.noreply.github.com"
] | 36051308+calpt@users.noreply.github.com |
2285b70ca377c6f1d7352094d1f626929e63df89 | c21546695e35a3f7c60e684de04bcbe88b2b985a | /0191_Number_of_1_Bits.py | c55f7da2b0e4f58f2b0605fc72f4ee8b7757bcc1 | [] | no_license | piecesofreg09/study_leetcode | 4a05ddee44c72a6d0c50bca7cb0b70abd33b0b85 | fc69721dbe003fcc2f7795a6b38c41d877905205 | refs/heads/master | 2023-01-14T05:02:24.779136 | 2020-11-18T17:23:30 | 2020-11-18T17:23:30 | 288,774,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | '''
n & n - 1 will remove the rightmost 1 to be 0
'''
class Solution:
def hammingWeight(self, n: int) -> int:
count = 0
while n != 0:
count += 1
n = n & n - 1
return count
| [
"noreply@github.com"
] | piecesofreg09.noreply@github.com |
4802483d78f2dce57654e4d31f152e239e562f11 | 3b71b8362f5aeaabb7b5aa33505e9d7908147722 | /yellowNote.py | 874dfb51f4e4a39140176efcbcbd47953afd1b5b | [
"Apache-2.0"
] | permissive | anokhina/yellowNote | 01f0618d58223edafc6910d18d49183bd96a63fa | 9833972ab57cb4c9d65ae54210866a6273f5dcdb | refs/heads/master | 2020-03-11T05:04:32.215473 | 2018-04-16T19:28:44 | 2018-04-16T19:28:44 | 129,792,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,535 | py | import tkinter as tk
import tkinter.scrolledtext as tkst
import sys, getopt
import os.path
from subprocess import call
cntrl = 1
geometryX = -50
geometryY = -50
file_name = "yellowNote.txt"
fake_message = "File not found: "
print ('Number of arguments:', len(sys.argv), 'arguments.')
print ('Argument List:', str(sys.a... | [
"anokhina.veronica@gmail.com"
] | anokhina.veronica@gmail.com |
825084fe1307f1b6f817be92f582ab4e5bb805cd | 8d179c3b6c0e301c095ad05f35126ece927c2974 | /myfibheap.py | 3666ee619659ff7ee238fc6c8371481f4b133ef9 | [] | no_license | naveen-verma19/applauseTest | 34e503e1f265a2f7db33a2178975140fc308c7a0 | 8aa9eb27fcfeda436f9f008da8ea4eeb07104d83 | refs/heads/master | 2021-04-12T00:42:50.205259 | 2020-03-21T22:40:49 | 2020-03-21T22:40:49 | 249,070,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,585 | py | name = 'fibhaha'
def makefheap():
"""make-heap in Cormen et al."""
heap = Fheap()
return heap
def fheappush(heap, item):
"""insert in Corment et al."""
x = Node(item)
heap.insert(x)
return x
def getfheapmin(heap):
"""minimum in Corment et al."""
return heap.min.key
def fheapp... | [
"naveen@Naveens-MacBook-Pro.local"
] | naveen@Naveens-MacBook-Pro.local |
cdf9efa80ff42220c6bb7c2264bb80f8d4828cf0 | 765a99ececc4df78b4acb1fe6eda823b965d0c5a | /lesson3_4step7.py | 0821b517938a9341152b9a6a1f27cb27aa653bc3 | [] | no_license | max3koz/Selenium_auto_test_course | e31233a28a57157f476d19b336b417df96b1333d | f64ae495dbe6a5dcf8b629535bf64bb490a08f49 | refs/heads/master | 2022-12-10T00:54:19.865788 | 2019-07-16T21:14:22 | 2019-07-16T21:14:22 | 196,007,673 | 0 | 0 | null | 2022-12-08T05:19:07 | 2019-07-09T12:50:18 | Python | UTF-8 | Python | false | false | 923 | py | import pytest
from selenium import webdriver
link = "http://selenium1py.pythonanywhere.com/"
@pytest.fixture(scope="function")
def browser():
print("\nstart browser for test..")
browser = webdriver.Chrome()
yield browser
print("\nquit browser..")
browser.quit()
class TestMainPage1(object):
... | [
"Maksym_Trykoz@jabil.com"
] | Maksym_Trykoz@jabil.com |
d3caaf1ea7b102d8e331df73fea31c1a13df226f | 85a1d4d57fc461aa10fbe4a3dabb5c938b0e210b | /vote/urls.py | 877a7cfd6582b5305b6e6c7759f9fd61f5f69c66 | [] | no_license | Loic-Mathieu/vote-backend | 6ccd4d2dd373885495f0f6bedccca98af58c096b | 0ef8b8183aad7d00a16a3c8facd2f2fb083ab43a | refs/heads/master | 2020-12-14T16:58:48.481592 | 2020-01-19T23:42:59 | 2020-01-19T23:42:59 | 234,816,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | from django.urls import path, include
from rest_framework import routers
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView,
)
from . import views
app_name = 'vote'
# Pages accessibles
router = routers.DefaultRouter()
router.register(r'candidats', views.TestViewSet)
router.reg... | [
"loicn.mathieu@gmail.com"
] | loicn.mathieu@gmail.com |
d50b4734dc4ad636dbef82b733c3bfc6003ca7c6 | 22cb93a0b78f1dcf118a0490a233d1ad2966c026 | /host/pyscripts/modules/tabletools.py | a72bcf1a317264e505227a18b971c13b4a2f3eff | [] | no_license | gabrieleara/PARTProf | f6a5655143e0c7285741f5bbb85c8ad4a627c628 | c0ec8ca3129f3ac952545e6b3082ff65aebf26fd | refs/heads/master | 2023-08-31T06:14:39.207829 | 2021-10-21T14:00:02 | 2021-10-21T14:00:02 | 339,413,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,596 | py | #!/usr/bin/env python3
import re
import pandas as pd
from . import si
def pd_read_csv(
*args,
index_col=False,
float_precision='high',
**kwargs,
):
"""
Wrapper for pandas.read_csv function that sets some default argument values common throughout this project.
"""
... | [
"gabriele.ara@santannapisa.it"
] | gabriele.ara@santannapisa.it |
186aad5955392fda1d645d2081f56cfc70054898 | 9b9fa48ec458fec2b451b3be54bf2be23188b11e | /labs/functions/character_permutations.py | 08fb258bbbda4e629cb991a9d908bb5c6e327b6c | [] | no_license | Nikoletazl/Advanced-Python | 1bc55ce42693ff0a5bcf082f9f7867e07b771007 | f1e31fbd423b31e2b24db151df8b73c7eaf35ab5 | refs/heads/main | 2023-08-21T20:46:43.572803 | 2021-10-22T09:47:52 | 2021-10-22T09:47:52 | 415,001,443 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | def permute(index, values):
if index == len(values):
print("".join(values))
return
for i in range(index, len(values)):
values[i], values[index] = values[index], values[i]
permute(index + 1, values)
values[i], values[index] = values[index], values[i]
permute(0,... | [
"noreply@github.com"
] | Nikoletazl.noreply@github.com |
c64581f90957bb1084eecb39effbfffddfb65ec9 | 4a1aad3573ef3fd0eb07d3bec5af25bc6042348c | /mask_rcnn/roi_data/data_utils.py | fe604b0b4d51e68fcb32c2f4f6293389055117b9 | [
"MIT"
] | permissive | rochesterxugroup/csc_249_final_proj_a2d_det | 8f56ca9180fdf21ef2fde7f47dab169d7f1de82f | 0f742981699352181e94a001f3d6f4a5b1824a54 | refs/heads/master | 2020-05-03T13:24:01.110190 | 2019-04-17T04:02:34 | 2019-04-17T04:02:34 | 178,651,833 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,246 | py | # Copyright (c) 2017-present, Facebook, 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 or agreed... | [
"hubertlee915@gmail.com"
] | hubertlee915@gmail.com |
e75157de30d6c01d98d13e3328e33a80acc43c3a | e9cedf619bb263a6915c09a88f90e88f1cf48c32 | /classify.py | 745f9be51995377b48e78156ebed64e2ed7821a4 | [] | no_license | jack19861225/multi-label-classification-using-keras | b3d57797ad73d2989342b8d6e6db4449c3549bc8 | 3945e3ddf2a66842d14be7959b1eb03d79e1e831 | refs/heads/master | 2020-06-19T06:46:32.652417 | 2018-09-14T11:48:54 | 2018-09-14T11:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py |
# USAGE
# python classify.py --model fashion.model --labelbin mlb.pickle --image examples/example_01.jpg
# import the necessary packages
from keras.preprocessing.image import img_to_array
from keras.models import load_model
import numpy as np
import argparse
import imutils
import pickle
import cv2
import os
# constr... | [
"dummahajan@gmail.com"
] | dummahajan@gmail.com |
cb7d8b6a5c90248314996ce4caad17c578f9edc9 | 60c8d65989fe641771cc237d3b4481977a7000d2 | /setup.py | 195880bc9554c3e9eaed675d4124e9420a8b4d03 | [] | no_license | Helioviewer-Project/hvJP2K | 78e520225bba60d3fe6396d87f46830d71a6b925 | 7fbaaee2df1628e68a7a24e5cc66f947b9dc0623 | refs/heads/master | 2021-01-10T19:38:14.578914 | 2018-03-02T06:13:41 | 2018-03-02T06:13:41 | 50,620,145 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | from setuptools import setup
from Cython.Build import cythonize
kwargs = {'name': 'hvJP2K',
'description': 'JPEG2000 tools for the Helioviewer Project',
'long_description': open('README.md').read(),
'author': 'SWHV ROB',
'author_email': 'swhv@oma.be',
'url': 'https://g... | [
"bogdan@nicula.net"
] | bogdan@nicula.net |
540470b8386757da783d1ea5354a0783db4d6ec2 | 821699dcb35891ce1b3a387b4f9eae9d8544d1f5 | /python_study_3/page10/script.py | e9e2f1ebbf33077601cd96fb2d3d5d83afd52b05 | [] | no_license | skiym-aaa/20200228_Progate | aaf0f2ae0fc53f0f9135e5ad6774667de142fdb3 | e3bd6e796a20834322da9a24a6b2ecaba1d44cd8 | refs/heads/master | 2023-01-23T02:32:33.998582 | 2020-07-12T00:03:47 | 2020-07-12T00:03:47 | 243,649,688 | 0 | 0 | null | 2023-01-19T05:30:32 | 2020-02-28T01:02:10 | CSS | UTF-8 | Python | false | false | 965 | py | def validate(hand):
if hand < 0 or hand > 2:
return False
return True
def print_hand(hand, name='ゲスト'):
hands = ['グー', 'チョキ', 'パー']
print(name + 'は' + hands[hand] + 'を出しました')
print('じゃんけんをはじめます')
player_name = input('名前を入力してください:')
print('何を出しますか?(0: グー, 1: チョキ, 2: パー)')
player_hand = int(inpu... | [
"y.sakiyama3216@gmail.com"
] | y.sakiyama3216@gmail.com |
7da59f251007025738f7e21b8a090919b0fcdacf | a0414992e4a8528860e3161e79dd379db0875d18 | /python/1000digit.py | e025fb1973071e4f30701b9bb4ae96398a80e8d6 | [] | no_license | bibek22/project-euler | 48a0c1d75f8f1b1ee82ddb0fe93917ae3ad9c1aa | 2638f6846346c679fc97f2ad2f178907d0b91b9e | refs/heads/master | 2020-04-07T20:19:37.277495 | 2018-12-02T06:35:17 | 2018-12-02T06:35:17 | 158,683,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | num_str="73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231617318564030987111217223831136222989342338030813533627661428280644448664523874930358907296... | [
"forgot.bg@gmail.com"
] | forgot.bg@gmail.com |
6fa67bf817d711224d8e565294999ff0d2059322 | 06f11e89a7f3a160ad24c80f569d463b8383dd35 | /src/cart/migrations/0003_cart_subtotal.py | cb51030a1bd67086fc312f968c76434393974e9c | [] | no_license | anashfire0/ecommerce | eff5399fde381d421188e9704665618abeef5863 | f8eae5c3f33edb299e1ca7dd7077426a74661d8e | refs/heads/master | 2022-12-10T05:28:48.321713 | 2018-06-23T03:10:38 | 2018-06-23T03:10:38 | 137,232,435 | 0 | 0 | null | 2022-01-21T19:16:26 | 2018-06-13T15:08:44 | JavaScript | UTF-8 | Python | false | false | 478 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-13 08:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cart', '0002_auto_20180613_0735'),
]
operations = [
migrations.AddField(
... | [
"ashrmzn22@gmail.com"
] | ashrmzn22@gmail.com |
f963b2e1071b23551bdfcc0681cd03ec0413c0f3 | 8fb098b5550e7bfde4cb7c7c2c180e00cfe6a8ad | /Email Slicer.py | 2b4e6c85ab746ed1070fa0f4a32b5550340863b7 | [] | no_license | Harsh1t-coder/Python | 27d987b798506d0bdde13d4dec7fa4323084a30c | 2b42c6acfbc36db5ea66ca6a230a99cdcc7464b7 | refs/heads/main | 2023-07-15T18:21:02.962938 | 2021-08-21T05:37:27 | 2021-08-21T05:37:27 | 398,455,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | mail = input("Enter your mail id: ")
username = mail[: mail.index('@')]
domain = mail[mail.index('@')+1:]
print(f"Your username is '{username.upper()}' and your domain is '{domain.upper()}' " ) | [
"rastogiharshit14@gmail.com"
] | rastogiharshit14@gmail.com |
20ba0fcd249c51ee20e9e62d009017c975a1ea48 | 44b25a6dd617a29bfc12889d3b83737de1c625e8 | /dbToVirtPed.py | 5e0d3aba41038efa25537773b3661637c3e33024 | [] | no_license | icleen/python_data_manips | 9a85716569a1b84414879a3a82f531ec24c59d1e | 7bb0af9369c59d8d60855d70cff431f5a2582008 | refs/heads/master | 2021-01-21T20:15:41.800926 | 2017-05-23T18:40:50 | 2017-05-23T18:40:50 | 92,207,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | import sys
from unqlite import UnQLite
import json
import base64
import os
import urllib
def image_creator(field):
imagePath = base64.b64decode(field['source']['descriptionId'].split('_')[-1])
n = field['values'][0]['text']
gender = person['gender']['type'].split("/")[-1]
di = person['id'][1:]
# x ... | [
"icleen@gmail.com"
] | icleen@gmail.com |
dd9a99d983f3c8f41ef97e6ecd2d757828ea0df1 | 7616705a1b123427a240bd5958f23450d2ba05f2 | /ExplorationNoise.py | 21647ac78160b04b384bb97527bbb089a01c57c7 | [] | no_license | ikoryakovskiy/curriculum_learning | 5575fcfd891a509079ac6475bb50e59911b8c830 | de665e17134fd69bcd6091f1ea3344553061d0ff | refs/heads/master | 2021-07-04T03:30:23.667237 | 2018-06-02T18:22:31 | 2018-06-02T18:22:31 | 107,388,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,932 | py | """
Package containing different types of exploration noise:
- White noise
- Ornstein-Uhlenbeck process
- Noise decay
Original Author: Bart Keulen
Author: Divyam Rastogi
"""
import numpy as np
class ExplorationNoise(object):
# ================================
# WHITE NOISE PROCESS
# ===========... | [
"divyamlk22@gmail.com"
] | divyamlk22@gmail.com |
c2431eff6b733f06f5fae9a1d3f93326b600fb42 | a6b5ddcb0f80f49cd54e0c1ebd62cc06709fdbb1 | /controllers/rcj_soccer_player_b1/rcj_soccer_player_b1.py | 82390da9fd71625bf3d7fa950f6ad7ce17c1297a | [
"Apache-2.0"
] | permissive | AlexHuynh23/SoccerWebots | d3c31111403c659ad1060a9dc1663f4d11f5fd24 | 2cc4277e16832263628f296a8d853ec4bf23feca | refs/heads/master | 2023-03-06T00:45:35.963015 | 2021-02-03T17:04:07 | 2021-02-03T17:04:07 | 333,018,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,973 | py | # rcj_soccer_player controller - ROBOT B1
# Feel free to import built-in libraries
import math
# You can also import scripts that you put into the folder with controller
import rcj_soccer_robot
import utils
class MyRobot(rcj_soccer_robot.RCJSoccerRobot):
def goToPoint(self, robot_pos, point):
pointAngl... | [
"70555816+AlexHuynh23@users.noreply.github.com"
] | 70555816+AlexHuynh23@users.noreply.github.com |
c31e659110b66300d3a5f2982f28690d73a5c462 | 4ed3db861ae2fe727c7be604d42d540a00923320 | /samsung_multiroom/service/player.py | 68cf53039187d62a94f10fb1ba54dd7a7eac1581 | [
"MIT"
] | permissive | kusma/samsung_multiroom | 7cac147283a52bf491d7f50a6569c64de53eb4a5 | 09ca86d27b87a4aa0c97ec2accbd4ec67dd0cc61 | refs/heads/master | 2020-12-04T07:46:19.688568 | 2019-04-20T16:29:44 | 2019-04-20T16:29:44 | 231,683,383 | 0 | 0 | MIT | 2020-01-03T23:47:29 | 2020-01-03T23:47:28 | null | UTF-8 | Python | false | false | 6,225 | py | """Player allows playback control depending on selected source."""
import abc
# repeat mode constants
REPEAT_ONE = 'one'
REPEAT_ALL = 'all'
REPEAT_OFF = 'off'
class Player(metaclass=abc.ABCMeta):
"""Player interface to control playback functions."""
@abc.abstractmethod
def play(self, playlist):
... | [
"k.galutowski@gmail.com"
] | k.galutowski@gmail.com |
f94db6bac67f597423eff94c30b6983c792b95f7 | 4ebe1c23456237cfee2d19fdd63421835d97d244 | /crawler/main.py | 3b9d7af9bbd263dfcd1eef55ad1adbdb83baaea2 | [] | no_license | Jan1ey/ACM_difficult_words_list | a89498b84ce452e793bb524ad29c09533c74b335 | 3b9ee4991d22d8a85a03c365cf3a1ed9cf30a72a | refs/heads/master | 2021-10-20T10:15:36.256524 | 2017-09-21T11:38:49 | 2017-09-21T11:38:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,587 | py | import function as my_tool
import threading
lock_task = threading.Lock()
lock_list = threading.Lock()
task_id = 1001
task_end_id = 3262
word_dict = {}
word_list = []
thread_number = 20
def get_task():
global task_id
if task_id >= task_end_id:
return 0
lock_task.acquire()
temp_id = task_id
... | [
"chendingchao1@126.com"
] | chendingchao1@126.com |
cc4a17a7174b8409f4875d4c7fce223c8ee00a2d | cd486d096d2c92751557f4a97a4ba81a9e6efebd | /18/addons/context.venom/playFromHere.py | 887d841b3746e04a0b3b31161b57f8631de3a007 | [] | no_license | bopopescu/firestick-loader-kodi-data | 2f8cb72b9da67854b64aa76f720bdad6d4112926 | e4d7931d8f62c94f586786cd8580108b68d3aa40 | refs/heads/master | 2022-04-28T11:14:10.452251 | 2020-05-01T03:12:13 | 2020-05-01T03:12:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,874 | py | import sys, xbmc, json
try:
from urlparse import parse_qsl
from urllib import quote_plus
except:
from urllib.parse import parse_qsl, quote_plus
xbmc.log('__name__= %s' % __name__, 2)
xbmc.log('__package__= %s' % __package__, 2)
# sys.path = []
# if __name__ == '__main__' and __package__ is None:
# from os im... | [
"esc0rtd3w@gmail.com"
] | esc0rtd3w@gmail.com |
4071d21eb5cd3463dc714a85424e09a1fedfa660 | cd3e195e3eff75a01d93fe6a3df082bc839507db | /Prime_range.py | 57398abf3955c4143a4b1ae5cd175f678247cfe2 | [] | no_license | swathichinnaiyan/Sandya | 493002be8b221cad7af63bc0ee5833ef678171d2 | 34b77340f556054dd39c2a5de4ed933943ada319 | refs/heads/master | 2020-06-09T00:38:02.884184 | 2019-05-28T12:44:48 | 2019-05-28T12:44:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | n,k=map(int,input().split())
c=0
f=0
for i in range(n,k+1):
for j in range(2,i+1):
if ((i%j)==0) & (i!=j):
f=1
break
else:
f=0
if f==0:
c=c+1
print(c)
| [
"noreply@github.com"
] | swathichinnaiyan.noreply@github.com |
a0d9d2417139ff030007f062b7104aceecab4d9f | 5e7af0aa1511a24f6fc1c688bb8c0a5fd567a814 | /de-dupe_pix-pix_data_gen.py | 582fd41a954cc42f46c2323599f11064fccd03d0 | [] | no_license | eravallirao/Local_scripts | 59901ae9709873bf92afcc4b2303f6d04cb5247d | 7051794ca86f87468548c8f5b22cda8ad83c6e8d | refs/heads/master | 2022-04-27T23:02:41.064368 | 2020-04-22T09:46:32 | 2020-04-22T09:46:32 | 257,856,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # import required classes
from PIL import Image, ImageDraw, ImageFont
import os
import argparse
import random
import cv2
import numpy as np
# print(random.choice(list(open('file.txt'))))
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", type=str, default="",
help="path to input image file")
args = var... | [
"prasad@github.com"
] | prasad@github.com |
758ddeec7b172f7f1236be16322795bec7ad6325 | e7263026bd4f34bae664c37e57a299ce83c7f111 | /03-Spider/scrapy-spider/xiciIPSpider/xiciIPSpider/items.py | 06d00e44d6c499c8beabdb1eace42bc540d723ca | [] | no_license | Aries000004/grocery | 34d0ad0648c6dff5c36f4a68abf9eeac59da214d | 27492f4ac7ef66d544f853dd6686920bcb9dc663 | refs/heads/master | 2020-03-24T22:50:37.703257 | 2018-07-26T11:43:54 | 2018-07-26T11:43:54 | 143,105,389 | 1 | 0 | null | 2018-08-01T04:51:12 | 2018-08-01T04:51:12 | null | UTF-8 | Python | false | false | 292 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class XiciipspiderItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"1367000465@qq.com"
] | 1367000465@qq.com |
bf54f5c914e5c3502ce9097b0970dda2cbc0419a | 2f781a8fec992cee743b2f66b3175d23d7fe7190 | /python/series/series.py | 06f8bf8adcd0dfb7c32d5182bc532eb949668d64 | [
"MIT"
] | permissive | rob93c/Exercism | f2a05cf6391b7b4d6246fed9ff57f16318ad290f | 51e38b6559a5650a56d81e733be22b7ee349cedd | refs/heads/master | 2021-12-23T03:57:34.271149 | 2021-10-28T20:29:35 | 2021-10-28T20:29:35 | 175,385,460 | 0 | 1 | MIT | 2019-03-19T12:20:58 | 2019-03-13T09:11:45 | Java | UTF-8 | Python | false | false | 276 | py | def slices(series, length):
out = []
if len(series) < length or length < 1:
raise ValueError("Length argument doesn't fit the series.")
else:
for i in range(len(series) - length + 1):
out.append(series[i:i + length])
return out
| [
"rob.uniud@gmail.com"
] | rob.uniud@gmail.com |
286ee60f55676e245dd032e51a0ee29b44cdbd46 | 34714cd4c363a417d910233e9653ddeaefcc142e | /metrics/unlv_build_gt.py | 26be56353c7419242a0a710771341c1155f7d922 | [] | no_license | akmaral-yes/table_structure_recognition_using_detectron2 | e8dcc2c68802a966202bb77f343f6d980d9adc76 | 4c9970151294006fdafaba3c2ca84b7c04da97e7 | refs/heads/master | 2023-07-13T11:36:47.500567 | 2020-09-16T06:40:47 | 2020-09-16T06:40:47 | 293,349,398 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 9,065 | py | import os
import argparse
import cv2
from lxml import etree
from utils.file_utils import load_dict, save_dict
from utils.draw_utils import draw_rectangles
def check_file_names(images_path, gt_path):
"""
Check if names in two folders are the same
"""
image_names = os.listdir(images_path)
image_name... | [
"yakmaral@student.ethz.ch"
] | yakmaral@student.ethz.ch |
a3bd8733d9aa46d8519cb196daadb1b2eac0410b | 66bc6a1e04531ab7e8d6eb87d9f92dbd6bff00a2 | /encode.py | 3802b39d5f274431cff466f016f3544073e270ba | [] | no_license | richuln6/MASK-D | 87e9f705c0a4368f75a6544b9c456e849e14fee8 | 188ff2dfba7ec3a867ee76225ba630aaf669ecac | refs/heads/master | 2021-04-08T01:54:04.089276 | 2020-04-09T10:12:09 | 2020-04-09T10:12:09 | 248,726,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,676 | py | import pandas as pd
import geoip2.database
from ipwhois import IPWhois
from pprint import pprint
from math import sin, cos, sqrt, atan2, radians
import os
import re
import numpy as np
from pandas import DataFrame as df
import pickle
from sqlalchemy import create_engine
from sklearn import preprocessing
import datetime
... | [
"root@debian.richul.com"
] | root@debian.richul.com |
6914c85135645273f1edd76d5900fe84b14f27ea | d9d83da900ad5a4d2a6c6f80b25301d1986a475e | /lib/OneGan/setup.py | 6f07e298cca5498a6ff89955df9a2153152b6172 | [
"MIT"
] | permissive | nestarz/lsun-room | 43def1d99a3995a0a8ce7c645b25acfcdeae0118 | b77b98dc8361b044080469db01506eebd03d9c1f | refs/heads/master | 2020-03-24T10:58:12.573727 | 2018-08-13T02:25:38 | 2018-08-13T02:25:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | # Copyright (c) 2017 Salas Lin (leVirve)
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
from setuptools import setup
def version():
with open('onegan/__init__.py') as f:
for line in f:
if line.startswith('__version__'):
return line.r... | [
"elias.rhouzlane@gmail.com"
] | elias.rhouzlane@gmail.com |
e0cc251b7be81f59167da51f8be18c476dce2fab | 9caac2ce291b1fa5315043aecd0d3404243eacce | /min-temperatures.py | c621290c01bb3775a25f333da81aad8ceb939716 | [] | no_license | avinashtadi/mycode | d017ef1c56c47bca007ba7911c9ac73ddfd4f320 | de424aa38c3b2150aace878588329c8562b2f13f | refs/heads/master | 2020-05-30T14:29:41.479611 | 2019-06-02T02:02:43 | 2019-06-02T02:02:43 | 189,792,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | from pyspark import SparkConf, SparkContext
conf = SparkConf().setMaster("local").setAppName("MinTemperatures")
sc = SparkContext(conf = conf)
def parseLine(line):
fields = line.split(',')
stationID = fields[0]
entryType = fields[2]
temperature = float(fields[3]) * 0.1 * (9.0 / 5.0) + 32.0
... | [
"avinash.tadi@gmail.com"
] | avinash.tadi@gmail.com |
dbb2e74eb81af614f35c05d23d1455766030f58a | a8e8d9f2cb2981c1cd86ac8c8ebe7d056f326296 | /Partition labels.py | ed837c457f7a5db6643fbec1de0cf4643b8738d4 | [] | no_license | sameerkitkat/leetcode_practice | 443c88f7ed97676cfb83f19eb93df839e290be7e | c8ea2699a9448fb988fc3a10690ad794e01efda7 | refs/heads/master | 2022-12-25T21:42:43.943201 | 2020-09-30T19:48:39 | 2020-09-30T19:48:39 | 282,039,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | '''
A string S of lowercase English letters is given.
We want to partition this string into as many parts as possible
so that each letter appears in at most one part, and
return a list of integers representing the size of these parts.
Example 1:
Input: S = "ababcbacadefegdehijhklij"
Output: [9,7,8]
Explanation:
The... | [
"sameerkitkat4.4@gmail.com"
] | sameerkitkat4.4@gmail.com |
425d004cb0602841444236ea3de1759ff102e59f | 07ffbf063633866443a02dd5f81a461d0dc45586 | /client/stattool.py | 3a272e4992d316d4d9ad8f82ecd484777f96700c | [
"MIT"
] | permissive | zhonghe0615/python-sdk | a3e3b30274817c9cceb2f19cd5fa68a45d2acdbe | 4dbc3d3ab608c8e1d78cb5960d1ae0e55b2502b2 | refs/heads/master | 2020-06-22T23:39:42.611289 | 2019-07-24T04:57:00 | 2019-07-24T04:57:00 | 198,433,110 | 3 | 0 | MIT | 2019-07-23T13:10:25 | 2019-07-23T13:10:24 | null | UTF-8 | Python | false | false | 1,613 | py | '''
bcosliteclientpy is a python client for FISCO BCOS2.0 (https://github.com/FISCO-BCOS/FISCO-BCOS)
bcosliteclientpy is free software: you can redistribute it and/or modify it under the terms of the MIT License as published by the Free Software Foundation
This project is distributed in the hope that it will be u... | [
"zkx@vip.qq.com"
] | zkx@vip.qq.com |
d4ea202031d8effa052f5564c89a304be2b0d059 | 1e826a1c4194aaba4e84c3dfeb7976f1ed3f2e78 | /news/news_project/comments/migrations/0002_auto_20200801_1158.py | 7570e07062b98136f31ef9e35be2eca3ba793561 | [] | no_license | choirulihwan/django | 95e62c8601dc34ddc7a3b816296683437fbc57f8 | 5cee04f4443f463088a5309b81aee6cb688f15ac | refs/heads/master | 2022-12-13T10:07:12.276471 | 2022-01-09T08:57:36 | 2022-01-09T08:57:36 | 237,208,107 | 0 | 0 | null | 2022-11-22T09:48:06 | 2020-01-30T12:26:17 | HTML | UTF-8 | Python | false | false | 988 | py | # Generated by Django 3.0.8 on 2020-08-01 04:58
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('articles', '0005_auto_20200621_1449'),
migrations.swappable_dependency(settings.AUT... | [
"aristhu_oracle@yahoo.com"
] | aristhu_oracle@yahoo.com |
63ecf846da82a0b432c45839f42553813fcdcf3a | e14b357df0b8dc66bcc00690406121b57b09df79 | /src/test/bot/__init__.py | 6d56268b7a30fdf12955bd9a671f8d000acdc3ea | [] | no_license | arthur-samarin/SoftwareDesignProject | 102f295627651bdf710ea6ad9ee069057f8ff41f | 9858fcb16d98c2e5950214d3c839c7ae2c2a4912 | refs/heads/master | 2020-04-06T15:33:46.678018 | 2018-12-08T00:39:50 | 2018-12-08T00:39:50 | 157,583,298 | 0 | 0 | null | 2018-12-05T15:48:05 | 2018-11-14T17:08:02 | Python | UTF-8 | Python | false | false | 81 | py | from .request_faker import RequestFaker
from .app_test_helper import AppTestCase
| [
"asamarin97@gmail.com"
] | asamarin97@gmail.com |
100a50cb0f53aeb3db3fb461563fb11dad7fd331 | f7262aa82274b63327e3a7dab04630f657b6fb81 | /rango/views.py | 64875152514052433a246e8fd9af7fdb3c1c48bc | [] | no_license | aserranogomez/Bares | a5cdc96698b94fd53c55ca61b689b803da2a20b3 | ee37dbdf9df873bdfdf3ed896fcdba035d1b07e7 | refs/heads/master | 2021-01-10T13:58:09.004279 | 2016-02-11T00:51:54 | 2016-02-11T00:51:54 | 51,412,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,600 | py | from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render
from rango.models import Bares, Tapas
from rango.forms import BaresForm, TapasForm, UserForm, UserProfileForm
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_requir... | [
"andresserranogomez@gmail.com"
] | andresserranogomez@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.