blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
534a4e3a572af24eb566340df6d9ff2f6a779074 | e1dd0997239951d4d459b1ba0229493512b0b331 | /mds_py/mds-env/lib/python3.11/site-packages/cleo/io/inputs/token_parser.py | 1b0f702287034dd015189b66f64297578fa1aa06 | [] | no_license | alexmy21/Octopus | bd17777cf66654c1e7959654f63ca82b716865b5 | 7844ec616376ec6cd9c1a8b73dbcad9c729557ae | refs/heads/master | 2022-12-22T22:42:29.473433 | 2022-12-21T16:52:09 | 2022-12-21T16:52:09 | 61,543,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,937 | py | from typing import List
from typing import Optional
class TokenParser(object):
"""
Parses tokens from a string passed to StringArgs.
"""
def __init__(self) -> None:
self._string = "" # type: str
self._cursor = 0 # type: int
self._current = None # type: Optional[str]
... | [
"alex.mylnikov@hitachivantara.com"
] | alex.mylnikov@hitachivantara.com |
a4cab5589801580f49853730f9ebb47d44b78a6a | dc7dc1ab85403a4467044d4c0c936c17fff5225a | /fstmerge/examples/Fail2ban/rev579-732/base-trunk-579/server/datetemplate.py | a495df29c03ed39cdbb248484605dae12d27a53e | [] | no_license | RoDaniel/featurehouse | d2dcb5f896bbce2c5154d0ba5622a908db4c5d99 | df89ce54ddadfba742508aa2ff3ba919a4a598dc | refs/heads/master | 2020-12-25T13:45:44.511719 | 2012-01-20T17:43:15 | 2012-01-20T17:43:15 | 1,919,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | __author__ = "Cyril Jaquier"
__version__ = "$Revision: 1.1 $"
__date__ = "$Date: 2010-07-25 12:46:34 $"
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
__license__ = "GPL"
import re
class DateTemplate:
def __init__(self):
self.__name = ""
self.__regex = ""
self.__cRegex = None
self.__pattern = ""
self._... | [
"joliebig"
] | joliebig |
d57b61b9f136e1ff89cbd1756e5f76c76a7fb80f | e43ff8f429a6938a4f16edc4b2c94976acbff157 | /ABC/ABC 168/b.py | 735be34191c1e1479524c1884243fefb41cf2ea4 | [] | no_license | Soule50431/AtCoder | 4fcd6ab6b771d55c90dc62aedd75eb81fd067466 | 118ac5d03630ce143fb50153402eee38e988ae0c | refs/heads/master | 2023-06-18T13:07:13.843361 | 2021-07-14T01:56:20 | 2021-07-14T01:56:20 | 357,827,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | k = int(input())
s = input()
if len(s) <= k:
print(s)
else:
print(s[:k] + "...") | [
"h.ekcero.el6no11@outlook.jp"
] | h.ekcero.el6no11@outlook.jp |
9aa06aefad0eb809be1ca802dc63eaa0fc7b6b52 | 74a8503870c091dfc02d0772be71bd8eed508835 | /data_refinitiv_host_1_qa/subscribe_data_FVc1.py | 6078f332f8515098d078e0135969d42bf96e70d7 | [] | no_license | xiaorensean/Aggregated-Exchanges-App | 3c212c4dfc396276c4604194936b5ed11bbd099b | 070bf23c057621910589881542673d0e02691c9e | refs/heads/master | 2023-02-25T08:20:14.435706 | 2021-01-30T15:18:34 | 2021-01-30T15:18:34 | 255,150,488 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,473 | py | import sys
import os
import time
import requests
import socket
import json
import websocket
import threading
import traceback
current_dir = os.path.dirname(os.path.abspath(__file__))
pkg_dir = os.path.dirname(current_dir)
sys.path.append(pkg_dir)
from influxdb_client.influxdb_client_host_1 import InfluxClientHost1
fro... | [
"50184308+xiaorensean@users.noreply.github.com"
] | 50184308+xiaorensean@users.noreply.github.com |
e6ff9ac5d8d9fb92b4548b2d325b3f5ba5aa2e09 | dfc827bf144be6edf735a8b59b000d8216e4bb00 | /CODE/experimentcode/FundamentalCode/SerrecentFD/Run.py | 84b4f975d1b28d247108e897c317804838aed81d | [] | no_license | jordanpitt3141/ALL | c5f55e2642d4c18b63b4226ddf7c8ca492c8163c | 3f35c9d8e422e9088fe096a267efda2031ba0123 | refs/heads/master | 2020-07-12T16:26:59.684440 | 2019-05-08T04:12:26 | 2019-05-08T04:12:26 | 94,275,573 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,738 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 22 10:09:21 2015
@author: jordan
"""
from Serre2FDC import *
from scipy import *
import csv
import os
from numpy.linalg import norm
def copyarraytoC(a):
n = len(a)
b = mallocPy(n)
for i in range(n):
writetomem(b,i,a[i])
return b
def copyarr... | [
"jordanpitt3141@github.com"
] | jordanpitt3141@github.com |
4211a9ccc3f5e8c8113247b6341eec5da41389f9 | 14ea45983fdcabe18f948ee45c388e10d825f53d | /SolarSystem.py | 0237a9a3620a71e8edd2fee5698fa9789b946dd5 | [] | no_license | aodarc/Galileo | f4d6cbc3b8b3dbc9f0af70fe1874013d8d981b5d | f201a2ba3c560d893206ba29a1eefcf793025103 | refs/heads/master | 2020-12-28T20:30:31.899852 | 2016-01-14T10:29:27 | 2016-01-14T10:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | from tkinter import *
from time import sleep
from math import sqrt, pi, sin, cos
class Element(object):
_x = int()
_y = int()
_mass = float()
_is_movable = False
speed = 1.
img = 'atom50x50.png'
def __init__(self, root, mass=0.):
self._mass = mass
self._root = root
... | [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
c622faefc313d7d0db83653fc9d302fc1d646689 | 658ab464e9c796f819ad85f569ad06ab6e66992e | /src/oop/student.py | 65c635d844e4dc672fcce29362f2c86fcd0be550 | [] | no_license | huowolf/python-demo | 03e5731ba632caada819dd70d0f9dc07c98308a1 | e3b80dcc0e0bc2437a0b2882e17563c8171460a2 | refs/heads/master | 2020-03-23T22:00:57.515258 | 2018-09-07T15:33:22 | 2018-09-07T15:33:22 | 142,147,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | class student(object):
def __init__(self,name,age):
self.__name = name #私有属性
self.__age = age
def print_student(self):
print('%s : %s' % (self.__name,self.__age))
def get_name(self):
return self.__name
def get_age(self):
return self.__... | [
"274956285@qq.com"
] | 274956285@qq.com |
758711a827b03415e97b4a4791f38fa8ead78674 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/lngchl001/ndom.py | 7c44c51178f0b565fa9e5abcdb94faf7ca087691 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | def ndom_to_decimal(a):
b=0
c=1
firstmult=0
for i in range(len(str(a))):
first=eval(str(a)[b:c])
firstmult+=first
firstmult=firstmult*6
b+=1
c+=1
final=(firstmult//6)
return int(final)
def decimal_to_ndom(a):
dec1=''
while T... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
768a967f1b7f95199fec72a2acc7d628d7aba565 | e0b0abc1e8d442adb63cf0e5b8641f4185c5611c | /apps/myapp/migrations/0003_auto_20190416_1503.py | 0afc907d80ed6c5f380233840e2ef2b88fb44147 | [] | no_license | nramiscal/petDemo | f7d0c149941b2efabdb74a4e10717f540b6d7eee | c4d341105c1b1f14e868f198199fe37cf3687c8f | refs/heads/master | 2020-05-14T08:21:23.669095 | 2019-04-17T23:02:24 | 2019-04-17T23:02:24 | 181,721,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | # Generated by Django 2.1.4 on 2019-04-16 15:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('myapp', '0002_auto_20190416_1503'),
]
operations = [
migrations.CreateModel(
... | [
"nramiscal@gmail.com"
] | nramiscal@gmail.com |
fe0b74f15b5d93ae0b7558f4334f7d75135b18f6 | 6223dc2e5de7921696cb34fb62142fd4a4efe361 | /.metadata/.plugins/org.eclipse.core.resources/.history/ec/e0e81f3a218f001414849ea2c9622fd7 | 62f7a07fa6b5d81c8ef0610651721bffd9527d76 | [] | no_license | Mushirahmed/python_workspace | 5ef477b2688e8c25b1372f546752501ee53d93e5 | 46e2ed783b17450aba29e4e2df7b656522b2b03b | refs/heads/master | 2021-03-12T19:24:50.598982 | 2015-05-25T10:23:54 | 2015-05-25T10:23:54 | 24,671,376 | 0 | 1 | null | 2015-02-06T09:27:40 | 2014-10-01T08:40:33 | Python | UTF-8 | Python | false | false | 4,108 | #!/usr/bin/env python
#
# Copyright 2014 <+YOU OR YOUR COMPANY+>.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This software is dis... | [
"imushir@gmail.com"
] | imushir@gmail.com | |
32c0b16bc6274f687e88566938c5cf3eb5a7cbf1 | 94575dcfd3699f4654fa6102cc908e929306b964 | /search/templatetags/search_tags.py | 11993c2a81d9f2ff40b9781ef7fa1d3f3e9be82c | [] | no_license | ViktorOgnev/tradenplay | 7c0f0535edd25dee17aacbb0bda0f28987547003 | b9d303ec4b1db3a97f04b8e3a17445a48ea8a9e9 | refs/heads/master | 2020-12-24T15:41:03.589087 | 2013-11-12T21:06:26 | 2013-11-12T21:06:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | import urllib
from django import template
from search.forms import SearchForm
register = template.Library()
@register.inclusion_tag("tags/search_box.html")
def search_box(request):
q = request.GET.get('q', '')
form = SearchForm({'q': q})
return {'form': form}
@register.inclusion... | [
"ognev.victor@gmail.com"
] | ognev.victor@gmail.com |
9e859f7f3957aec59205b030144805f23ffc59c5 | ee6acbd5fcd0fcd16230e96a4a539de41a02c97e | /operators/submariner/python/setup.py | c44ed5e96d91acc0c0fa554327e991420f75af4c | [
"Apache-2.0"
] | permissive | isabella232/pulumi-kubernetes-crds | 777e78137aaf6525a44b61a02dccf91bf0d87a14 | 372c4c0182f6b899af82d6edaad521aa14f22150 | refs/heads/master | 2023-03-15T04:29:16.039753 | 2020-12-30T19:35:54 | 2020-12-30T19:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | # coding=utf-8
# *** WARNING: this file was generated by crd2pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import errno
from setuptools import setup, find_packages
from setuptools.command.install import install
from subprocess import check_call
class InstallPluginComman... | [
"albertzhong0@gmail.com"
] | albertzhong0@gmail.com |
699b70eb414da2b57563595e6a27cd4605d03fff | fa44abffdfe00e5a44fffe6610dce25a325ee93e | /instagram_clone/users/migrations/0013_auto_20180815_1540.py | e22b26aaf1bcb563d48860f3fb74a24da6fe6537 | [
"MIT"
] | permissive | devjinius/IG_clone | e539e44318cdf9baf5137057a0c671e8748c36bf | 6a525524ec357d5617b09e013b449df2ec9336ad | refs/heads/master | 2020-03-21T08:55:23.803771 | 2018-12-07T13:55:25 | 2018-12-07T13:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # Generated by Django 2.0.6 on 2018-08-15 06:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0012_auto_20180811_1614'),
]
operations = [
migrations.AlterField(
model_name='user',
name='gender',
... | [
"eugenekang94@gmail.com"
] | eugenekang94@gmail.com |
a1ce1f81eb074822e1b694d7c4fbd4c00ab933b6 | a03c75b3a47c3d0f4662b5115162074802698bec | /w3/tests/tests.py | 133f0638b446cf0250123b92da0338ccac9e1133 | [] | no_license | shants/fss18 | 0ea88a4a41684a8b47a8b4aadafe285d90d172ef | 4e78ed3529934ca2f2d3f984ce4ba2df77b5b300 | refs/heads/master | 2020-03-26T22:37:40.406379 | 2018-11-01T20:24:03 | 2018-11-01T20:24:03 | 145,474,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | #ACK Did refer to code https://github.com/FahmidMorshed/fss18/tree/master/Week%203
# Once or twice to get doubt cleared, did not copy
import testingModule
import os,sys,inspect
current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parent_dir = os.path.dirname(current_dir)
sys.path.in... | [
"mailtoshants@gmail.com"
] | mailtoshants@gmail.com |
a12920082831e56c19bf3a6ab7bca2d8d737aa11 | 53181572c4b22df4b569a9901bcd5347a3459499 | /ceit_190910_zhuhaotian/quiz2_1025/q3_sort_words.py | 2b92084de924b1aa44ec88047e5d2dd08b3b85e5 | [] | no_license | edu-athensoft/ceit4101python_student | 80ef067b77421fce76d04f778d5c6de8b12f676c | 33cfa438c062d45e8d246b853e93d3c14b92ff2d | refs/heads/master | 2020-07-30T01:04:21.084384 | 2020-07-27T02:21:57 | 2020-07-27T02:21:57 | 210,027,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # sorting words
# input 5 words from keyboard
#
word_list = []
word_list.append('aaa')
word_list.append('bab')
word_list.append('aba')
word_list.append('baa')
word_list.append('abb')
# word_list = ['aaa','bab','aba','baa','abb']
print(word_list)
word_list.sort();
print(word_list) | [
"inf.athensoft@hotmail.com"
] | inf.athensoft@hotmail.com |
bf0b4282f32489a6113d59a0f489ec203840d4e7 | 9f91fa2910d13273a50ae416c116e16385a4eb95 | /natvenv/env/bin/futurize | f4d2e794f7d69d3d86a7f87393fb0f58566e13ad | [] | no_license | natrayanp/mysb_v2 | cac811e7f66670f8546cccdbca386ba6ff4f8cd6 | 24dea04e2a631ca6b465b3f62077a83a5dce9758 | refs/heads/master | 2022-11-20T16:49:30.341095 | 2018-07-31T17:18:04 | 2018-07-31T17:18:04 | 116,319,931 | 0 | 1 | null | 2022-11-14T21:09:17 | 2018-01-05T00:05:13 | Python | UTF-8 | Python | false | false | 457 | #!/home/natrayan/project/AwsProject/Python/Tradingapp/tradingapp5/natvenv/env/bin/python3.6
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.16.0','console_scripts','futurize'
__requires__ = 'future==0.16.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-... | [
"natrayan@localhost.localdomain"
] | natrayan@localhost.localdomain | |
c27e5d09683ac47879f811cb0cae11bcab8ea895 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/eBay/Trading/GetMemberMessages.py | d16e5be16b3903621ecda033d6f17f043b859ee1 | [] | 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 | 6,062 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# GetMemberMessages
# Retrieves a list of the messages that buyers have posted about your active item listings.
#
# Python version 2.6
#
############################################################################... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
08f80ff0d0bbbd7b910370538714a85bfaf01765 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/datashare/v20210801/blob_container_data_set.py | acb5a305365291b9c2b2853d7a6f8214d71848df | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,973 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
cbec3524bde8a5ee537bdc6d6c7858463522890b | 199677a3a5b4d205f03f39ef517f17a0f1fd450d | /transformer/Optim.py | 9f1a30ccc4f6ba35e173be280643bbdbcc4abc8f | [] | no_license | RRisto/jyri_bot | b304b834db3cb059afd63246fecd80569fea8f01 | 0018235436331cf733051a0125069cf052c1d28a | refs/heads/master | 2023-05-14T12:19:40.672041 | 2020-03-15T16:11:13 | 2020-03-15T16:11:13 | 243,827,027 | 0 | 0 | null | 2023-05-01T21:21:31 | 2020-02-28T18:18:04 | Jupyter Notebook | UTF-8 | Python | false | false | 2,329 | py | import torch
import numpy as np
# code from AllenNLP
class CosineWithRestarts(torch.optim.lr_scheduler._LRScheduler):
"""
Cosine annealing with restarts.
Parameters
----------
optimizer : torch.optim.Optimizer
T_max : int
The maximum number of iterations within the first cycle.
... | [
"ristohinno@gmail.com"
] | ristohinno@gmail.com |
6315f499af64fbc9b68fcc99493d8765b4c830e6 | db2a6433d6cbc0652308ad31f0ceab12a32cc37e | /data/base_data_manager.py | 623a8cbaab49ffe755b3ce77b17aa97e46a13c5d | [] | no_license | ablewald/RLDP | c42e6657024410753c770614feaad5ee505eb2a5 | 6d39348e94ec86f3f9f43fc0eaba112c5b2e13c7 | refs/heads/master | 2020-04-26T20:49:05.565537 | 2019-03-11T16:52:08 | 2019-03-11T16:52:08 | 173,822,474 | 1 | 0 | null | 2019-03-04T21:14:36 | 2019-03-04T21:14:36 | null | UTF-8 | Python | false | false | 1,969 | py | import logging
from typing import NamedTuple, Optional
import pandas as pd
from carball.generated.api.game_pb2 import Game
from data.utils.utils import normalise_df
logger = logging.getLogger(__name__)
class GameData(NamedTuple):
proto: Optional[Game]
df: Optional[pd.DataFrame]
class DataManager:
"""
... | [
"harry1996@gmail.com"
] | harry1996@gmail.com |
476f7760da9d24dd776d5c5707f96d54ad244c15 | 1d05ebcbfcf806f5459990a6a64e73b48ba9892d | /docs/conf.py | cd2d2b71b2982fd6fa2387e27e3f406013990318 | [
"MIT"
] | permissive | asmodehn/caerbannog | 2da3cafb5c0323a4802467b1d42573ad450ed1e7 | 47bb1138190748041a4c0d02e522c0924a9af962 | refs/heads/master | 2023-07-09T15:34:04.100983 | 2019-04-03T09:15:19 | 2019-04-03T09:15:19 | 167,014,660 | 0 | 0 | MIT | 2019-03-10T11:12:01 | 2019-01-22T15:10:09 | Python | UTF-8 | Python | false | false | 5,490 | py | # -*- coding: utf-8 -*-
#
# Caerbannog documentation build configuration file, created by
# sphinx-quickstart on Sat Feb 9 19:32:44 2019.
#
# 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
# autogenerated file.
#
... | [
"asmodehn@gmail.com"
] | asmodehn@gmail.com |
d95b0548f2e6420f3ccee5b833c033df4a965499 | 6e12c2e6d453ea1caf64c0eafaf3410b30f434e0 | /shop/migrations/0034_supplier_show_in_order.py | fe6c4a45d5be5bbddeb3d730c251d63778ff5f7d | [] | no_license | andreynovikov/django-shop | 43b66ec639037473cd72f7480f83811d911104fb | 8f843b0b15354903a335c324daa65714bfb2f8cc | refs/heads/master | 2023-04-28T01:26:16.938227 | 2023-04-22T15:33:29 | 2023-04-22T15:33:29 | 43,815,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('shop', '0033_auto_20161125_1809'),
]
operations = [
migrations.AddField(
model_name='supplier',
name... | [
"novikov@gmail.com"
] | novikov@gmail.com |
36db238a5b5abe3f0914813641510bb82143db4f | 51888119e10cdff12dafb060a54824632edccf3f | /Folders/Python/expressionMy.py | 14699ba1a009fe68ceae66e06157b87238811cde | [
"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 | 370 | py | import nuke
def expressionMy():
try:
if 'Deep' in nuke.selectedNode().Class() and "DeepHoldout" not in nuke.selectedNode()['name'].value() and "DeepToImage" not in nuke.selectedNode()['name'].value():
nuke.createNode("DeepExpression")
else:
nuke.createNode("Expression")
... | [
"lamakaha@gmail.com"
] | lamakaha@gmail.com |
4aaf88b9b7c2ae1f4dd6a2157c55eae876572c46 | ad9bd58a3ec8fa08dfcc994d4101ee815a9f5bc0 | /02_algorithm/programmers/Level3/정수 삼각형.py | 799f7bd3aaebc37d94b122073b679fc586cec6c8 | [] | no_license | wally-wally/TIL | 93fc1d0e3bc7d030341ed54155294c68c48b4c7d | 936783bc86f563646c0398c24e2fcaa707f0ed23 | refs/heads/master | 2023-04-28T08:59:48.235747 | 2023-04-12T12:06:52 | 2023-04-12T12:06:52 | 195,918,111 | 40 | 7 | null | 2020-09-29T16:20:46 | 2019-07-09T02:31:02 | Python | UTF-8 | Python | false | false | 625 | py | def solution(data):
n = len(data)
arr = [[num for num in data[idx]] + [0] * (n - idx - 1) for idx in range(n)]
DP = [[0] * n for _ in range(n)]
DP[0][0] = arr[0][0]
if n == 1:
return DP[0][0]
for i in range(1, n):
for j in range(i + 1):
if j == 0:
DP[i... | [
"wallys0213@gmail.com"
] | wallys0213@gmail.com |
158323da0447340d0b42dcfb2cfbf3efdd3bed85 | aec687a4b6f85190981fee4193a67ff2e1ee51a4 | /semana5/MyHolidays/myholidays/holidays.py | 9655fe98fff656337b8ff31b09d69ae286f94c4e | [] | no_license | brunobuenonapp/NappAcademy-1 | 7766072a9d23e22b7415eae703998292ff1c8413 | 3eddbc90d220724e5e8bc95c2403a1be9ce8d733 | refs/heads/master | 2023-03-13T19:48:36.118382 | 2021-03-05T13:31:09 | 2021-03-05T13:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from datetime import date
class MyCalendar:
def __init__(self, *args):
self.datas = []
| [
"orlandosaraivajr@gmail.com"
] | orlandosaraivajr@gmail.com |
51f4c0948a8ff2aca4506ba0482a184398efee8a | c3d0a0b6336a3ff73724fe1615eb1809dbdaaed8 | /Durga OOPs/Super()_Method_OOPs.py | 298d926568c6b45e2b71f79a093affe5bdb7a139 | [] | no_license | Silentsoul04/FTSP_2020 | db0dae6cd9c371f3daa9219f86520dfa66348236 | 7e603af918da2bcfe4949a4cf5a33107c837894f | refs/heads/master | 2022-12-21T20:44:32.031640 | 2020-09-20T12:29:58 | 2020-09-20T12:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,784 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 29 19:14:09 2020
@author: Rajesh
"""
Super() Method :- It is nothing but parent class methods are called super methods because Parent means super only.
-------------
Question :- Why do we need of super() method ?
Answer :- It is very useful in the python OOPs concepts in... | [
"sharma90126@gmail.com"
] | sharma90126@gmail.com |
bcbf988f50e81324829f054a398cd2482060cfc2 | 640d26baa9322b92ea5d247280668b4ad7475f8d | /robot_assignment_ws/build/turtlebot/turtlebot_see/catkin_generated/pkg.installspace.context.pc.py | 87d357364c348496a3a8053c19362e393f8311c9 | [] | no_license | JulianVJacobs/Robotics-Project-2021 | 6baa5a6423a28cc278b84d831f2d8c9f5239da90 | 18a58cee8e2793bd05e5e158c0c998099fc62d5c | refs/heads/main | 2023-06-03T02:47:15.579120 | 2021-06-25T19:56:32 | 2021-06-25T19:56:32 | 374,733,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | 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 = "turtlebot_see"
PROJECT_SPACE_DIR = "/... | [
"1605267@students.wits.ac.za"
] | 1605267@students.wits.ac.za |
6ebe306e963ff722a39f95e97c0e7e0176f232db | 61fc42a1411551a023426705825692b570209f24 | /seleniumbase/translate/japanese.py | 54afb345ddc23d76b3f31a9e51052c5a96d40412 | [
"MIT"
] | permissive | dE1l/SeleniumBase | 9c33be707cd9773f9c4a53439eed74583ef14f43 | 6020f9fb3dd25700636b3837d5be192387d23acd | refs/heads/master | 2022-04-23T23:22:07.196648 | 2020-04-22T07:18:31 | 2020-04-22T07:18:31 | 257,905,752 | 0 | 0 | null | 2020-04-22T13:13:03 | 2020-04-22T13:13:02 | null | UTF-8 | Python | false | false | 8,569 | py | # Japanese / 日本語 - Translations - Python 3 Only!
from seleniumbase import BaseCase
class セレニウムテストケース(BaseCase): # noqa
def URLを開く(self, *args, **kwargs):
# open(url)
return self.open(*args, **kwargs)
def クリックして(self, *args, **kwargs):
# click(selector)
return self.click(*arg... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
4f82d7c8c1484dc4f051d1bbc2e00c5af99f5175 | 7b750c5c9df2fb05e92b16a43767c444404de7ae | /src/leetcode/python3/leetcode831.py | b5df08e76e5758d1e9c9d370b21a13f7000a71bc | [] | no_license | renaissance-codes/leetcode | a68c0203fe4f006fa250122614079adfe6582d78 | de6db120a1e709809d26e3e317c66612e681fb70 | refs/heads/master | 2022-08-18T15:05:19.622014 | 2022-08-05T03:34:01 | 2022-08-05T03:34:01 | 200,180,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
隐藏个人信息
"""
class Solution:
def maskPII(self, S: str) -> str:
if "@" in S:
sarray = S.split("@")
firstname = sarray[0].lower()
lastname = sarray[1].lower()
return firstname[0] + "*****" + firstname[-1] + "... | [
"jack.li@eisoo.com"
] | jack.li@eisoo.com |
a28b5082bb8fc7c6b6d6ed95d0d894e1c957d6dd | 7f9dfa2cccf77764940ffcbbf92939e37c138c43 | /crawl_file/file_path/pylab_examples/colours.py | e405f6214b0577b7746527d95670fbfdc7c89f73 | [] | no_license | zhangmman/scrapy_spider | f80bd8d213edde0dea083babe610ca7b1bc449a3 | 2bda4aa29f2550c649c939045ce4fcdea2736187 | refs/heads/master | 2020-09-11T13:58:49.930929 | 2019-12-21T08:40:56 | 2019-12-21T08:43:43 | 222,080,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | # -*- noplot -*-
"""
Some simple functions to generate colours.
"""
import numpy as np
from matplotlib import colors as mcolors
def pastel(colour, weight=2.4):
""" Convert colour into a nice pastel shade"""
rgb = np.asarray(mcolors.to_rgba(colour)[:3])
# scale colour
maxc = max(rgb)
i... | [
"zhangman@ncepu.cn"
] | zhangman@ncepu.cn |
f3b32c83e9bff4d7005d532dc83f6857c74e5f3d | da90c94fff1959bd2641aaf4d4fd35db75cab802 | /positive.py | 503d450d6de21d62e327639572c32c438f64fcab | [] | no_license | Python-lab-cycle/Shehara-Ashraf | 73c9bfc8e03f23be7b381ff09f65cdeae3f3a97e | 76fb4181a8528b920bc42510cb8c00f5e9777636 | refs/heads/main | 2023-06-05T12:34:23.470845 | 2021-07-02T10:27:06 | 2021-07-02T10:27:06 | 326,703,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | list1=[11,-21,0,45,66,-93]
for num in list1:
if num>=0:
print(num,end=",") | [
"noreply@github.com"
] | Python-lab-cycle.noreply@github.com |
431403eaa0ceb56b26d30a9e7c72a61329582028 | 8ce0fd5e5c5b858fa24e388f2114885160421c03 | /python/socket/socket_communication_server.py | 0a170df96928af5a20e86ab71ac48d87ae3483c5 | [] | no_license | kong-ling/scripts | 266e9975ae0156d6fdddf43b8f1d7ee20469b388 | 3c41c49646358d46871c8fd8ebe1ba52bdea046c | refs/heads/master | 2021-01-10T08:29:34.772634 | 2020-01-03T09:04:57 | 2020-01-03T09:04:57 | 43,275,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | # this is the program for socket communication
# it can be used both for server and client
# python socket_communication.py -server for server
# python socket_communication.py -client for client
# sys.argv[0] : script name
# sys.argv[1] : -server or -client
# sys.argv[2] : string to send to server
import socket
i... | [
"kong.ling@outlook.com"
] | kong.ling@outlook.com |
5a99e8654f5c77396ef78c380d534862a0d12d05 | c5e6f7c89a5cf17944d6d3d6a31d1fc43928b954 | /django_statsd/__init__.py | 5ee47936f607f0c853b8a0aef1acc1bc99442bdd | [
"BSD-3-Clause"
] | permissive | klaviyo/django-statsd | f9d681207e96e2d2fcf6b45f07287f522942b35c | 42a00a168c5fb8818d7da26f460a533bae5ae7a7 | refs/heads/master | 2023-07-23T14:54:42.720518 | 2023-07-07T18:42:29 | 2023-07-07T18:42:29 | 107,584,346 | 0 | 1 | NOASSERTION | 2020-12-10T15:46:11 | 2017-10-19T18:37:06 | Python | UTF-8 | Python | false | false | 114 | py | from django_statsd import patches
from django_statsd import clients
from django_statsd.plugins import NoseStatsd
| [
"amckay@mozilla.com"
] | amckay@mozilla.com |
037569816e8001c619300cef12e5522b95fc42a8 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/analytics/admin/v1alpha/google-analytics-admin-v1alpha-py/google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py | d547448cd7270c8e63923dd04d0b6edfdda031a5 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96,532 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
1cfc9599d03cc840fc64b3918207676e2e667af4 | 7b63b5b068ee4cdf876a4cbbe16b8a8a7eb21b42 | /src/lib/models/networks/mobilenetv3_centernet.py | d9056a1ba010d8f560d23a75fe3dc6571c80f048 | [
"BSD-3-Clause",
"MIT"
] | permissive | akirasosa/CenterNet | 913a2dd9dbff46063a5f257da06256fea054bfe8 | 5f865dda53b1cd6001dad3b7d13a74a7dc4b7ee9 | refs/heads/master | 2020-08-07T03:32:55.214345 | 2019-10-23T09:54:54 | 2019-10-23T09:54:54 | 213,280,991 | 0 | 0 | MIT | 2019-10-07T02:38:34 | 2019-10-07T02:38:34 | null | UTF-8 | Python | false | false | 11,201 | py | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# Modified by Dequan Wang and Xingyi Zhou
# ------------------------------------------------------------------------------
from __f... | [
"akirasosa@gmail.com"
] | akirasosa@gmail.com |
a8c5736efe67d43d9082343c8675d35c51e02d45 | eaf4027bfff9c063af70ac8393ccf2a960ea4485 | /app/views.py | 31b8262e10f072baefaac074d14e8c10df814e1a | [] | no_license | williamjohngardner/movie_api | de062040fef7cdf8796040aa992600f18a88d0cd | 1b452b3da9cb19f97864f34f5c590f6f11798192 | refs/heads/master | 2020-12-19T04:42:10.354866 | 2016-06-28T19:25:55 | 2016-06-28T19:25:55 | 62,158,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from django.shortcuts import render
from app.models import Movie, Rater, Rating
from django.views.generic import View
from rest_framework import generics
from app.serializers import MovieSerializer, RaterSerializer, RatingSerializer
class MovieListAPIView(generics.ListCreateAPIView):
queryset = Movie.objects.all(... | [
"bill@williamjohngardner.com"
] | bill@williamjohngardner.com |
c4a68abfea2dc3f7dff0da1407aeeddae4027912 | f83f5cef508f0356e33e9cca83dce176249090e2 | /apps/calculate_percentage.py | 5437777e461de4e23769c716d917dbf5f6280bfa | [] | no_license | AnupJoseph/topic_centrality | 1bcb75b4eaee4536c28dc0fec9927421412f6463 | 21811e8a500f74b4032b0fea5d664320b6f335e8 | refs/heads/master | 2023-01-19T11:26:59.218020 | 2020-11-28T09:13:50 | 2020-11-28T09:13:50 | 280,427,036 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | import pandas as pd
from collections import Counter
import os.path
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
def calculate_percentage():
politicians = ['SenSanders', 'realDonaldTrump', 'JoeBiden', 'andrewcuomo', 'TeamPelosi',
'NikkiHaley', 'MittRomney', 'Mike_Pen... | [
"anup20joseph@gmail.com"
] | anup20joseph@gmail.com |
98bbe7cbbd152d0babe84eee89c53b25ed74ea83 | 78f50f3777963500aa78e0d98314a54c46ceed07 | /cupy/random/__init__.py | 08fbaac10a4b123afc442d5a291a276548fb9b48 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | KillEdision/chainer | 78d360f713936de9ed9200b0bc08dc27435f8c27 | 3f70edd67db4d9b687bd4b5f9cc21e426ad58beb | refs/heads/master | 2020-12-24T18:22:51.794784 | 2015-09-12T12:35:05 | 2015-09-12T12:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | import numpy
from cupy.random import distributions
from cupy.random import generator
from cupy.random import sample
rand = sample.rand
randn = sample.randn
random_sample = sample.random_sample
random = random_sample
ranf = random_sample
sample = random_sample
bytes = numpy.random.bytes
lognormal = distributions.log... | [
"beam.web@gmail.com"
] | beam.web@gmail.com |
64d00c72230a28b3a56922bc825e9b10434e3e27 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/3071.py | f0ee9ea5da1cad7eb9ae4cc51b642c17264b5911 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | file=open("E:/q1.in")
ansfile=open("E:/ans01.txt","w")
lines=file.readlines();
noitems=int(lines[0])
l=[]
c=0
ans=0
for i in range (1,noitems+1):
c=0
ans=0
l=list(lines[i].strip("\n").split(" ")[1])
for j in range(0,len(l)):
if c<j:
ans+=j-c
c=j
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5d9b4ae82cb669a73d1b4b521ff3accb5d759d9e | 5b9a7423f4f52b905be652cb8bbd10072bf9ffcd | /brute_http_form.py | cdb6b030d7886562eb7bd8b7e5c4af268ea95e3f | [] | no_license | obnosis/scripts | f411722253215c73bfc467dfa107912980d52e45 | df9db475ab5920823e4a11faf4a880de7e633cc6 | refs/heads/master | 2021-01-16T18:14:29.109986 | 2013-04-05T15:55:32 | 2013-04-05T15:55:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | import requests
URL = ''
USER_VAR = 'user_id'
PASS_VAR = 'user_pw'
def get_users():
return ['admin']
def get_pwds():
return ['Test1', 'Test2', 'Camera1']
for user in get_users():
for pwd in get_pwds():
auth = {USER_VAR: user, PASS_VAR: pwd}
resp = requests.post(URL, data=auth)
... | [
"stephen@averagesecurityguy.info"
] | stephen@averagesecurityguy.info |
0bf420d601adfcaefef9e783bb2ceb944757decc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02785/s693405136.py | c468c690c6909138d5659733d995c58b43534902 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | N,K,*H = map(int, open(0).read().split())
H.sort(reverse=True)
print(sum(H[K:])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f0ca5cacf63bb531c1973663118d4212e89662e0 | 21b0b4c27193898207751c91b8b2ed168a1b1638 | /py/py_0418_factorisation_triples.py | bf71bc166aae2762f714f628cc860fd4ee8c29c9 | [
"MIT"
] | permissive | lcsm29/project-euler | 67560a4e66968f1671a3d7ecf2dda6c956893dca | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | refs/heads/main | 2023-07-04T11:45:24.374841 | 2021-08-07T08:20:41 | 2021-08-07T08:20:41 | 371,808,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # Solution of;
# Project Euler Problem 418: Factorisation triples
# https://projecteuler.net/problem=418
#
# Let n be a positive integer. An integer triple (a, b, c) is called a
# factorisation triple of n if: 1 ≤ a ≤ b ≤ c a·b·c = n. Define f(n) to be a +
# b + c for the factorisation triple (a, b, c) of n which mi... | [
"lcsm29@outlook.com"
] | lcsm29@outlook.com |
d8a5ceb674eade3bb97a5b46c8118190fc310a72 | ce74ed4ad6834168b81d6ec5e53c80935f247fe1 | /scripts/evaluate.simple.py | 131baf5404548192c5e940fb3814493809dd7554 | [] | no_license | chenghuige/melt | 6b6984243c71a85ec343cfaa67a66e3d1b48c180 | d2646ffe84eabab464b4bef6b31d218abdbf6ce5 | refs/heads/master | 2021-01-25T16:46:57.567890 | 2017-08-26T04:30:13 | 2017-08-26T04:30:13 | 101,304,210 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,796 | py | #!/usr/bin/env python
#coding=gbk
# ==============================================================================
# \file evaluate.py
# \author chenghuige
# \date 2014-01-04 08:58:40.965360
# \Description similary to TLC show : confusion matrix , pic of auc
# input... | [
"chenghuige@fa64baa9-71d1-4fed-97ae-c15534abce97"
] | chenghuige@fa64baa9-71d1-4fed-97ae-c15534abce97 |
b1f21c6a67c048f668ee6bd826fcfd903544ad41 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /third_party/blink/web_tests/external/wpt/mathml/tools/xHeight.py | 724352bf91679ea9a7e4d862ad43b5707f9cfb7b | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/python
from utils import mathfont
import fontforge
v = mathfont.em / 2
f = mathfont.create("xheight%d" % v)
g = f.createChar(ord('x'))
mathfont.drawRectangleGlyph(g, mathfont.em, v, 0)
assert f.xHeight == v, "Bad x-height value!"
mathfont.save(f)
| [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
76e8517821c4f615d7904b26dc91fa843601111f | e16fbfdf1e3074d59b70902073c3024bafa77235 | /spider/dongguan/dongguan/pipelines.py | 28c993d4e8d12f03a0724243a46208c56c7fa9da | [] | no_license | haha479/Scrapy | aa52a0999ef3b2c8570696a85cc6dfd95ebd1d03 | d6c2c12b94e2ecf4846d20bfe8349e3bd09a3beb | refs/heads/master | 2021-09-04T14:29:38.555015 | 2018-01-19T14:42:07 | 2018-01-19T14:42:07 | 117,560,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import codecs
import json
class DongguanPipeline(object):
def __init__(self):
self.filename = codecs.open("dongggu... | [
"283275935@qq.com"
] | 283275935@qq.com |
177cdee2c48eaed1e374cd0c9a356b1efbab84af | 05dc9e0e2d14246c3b920abedfef5526eee66f1d | /env/bin/python-config | 4260ff927740213c2939ecf3598615b0a09f0195 | [] | no_license | msrshahrukh100/temporary | e1994dce7894718a0146b60b0408d58508424a58 | 7e2092b90a903f3b985fa8194061ab94a0808454 | refs/heads/master | 2020-05-23T08:15:30.217505 | 2016-10-07T18:55:34 | 2016-10-07T18:55:34 | 70,273,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | #!/home/mohammad/JamiaMemoriesWebsite/env/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.ve... | [
"msr.concordfly@gmail.com"
] | msr.concordfly@gmail.com | |
4a5793eee465438873f58bc2bc7c5684c2671b42 | b6febded37da6c15b13c44a6d041d83306699abd | /netneurotools/freesurfer.py | 5941f380c456e7efe02977caf0e1fdbc3563c705 | [
"BSD-3-Clause"
] | permissive | allizwell2018/netneurotools | 43c7a98e72ab00d2414981022744da51961b78c7 | dfe3f309c621b44d7f075805c8872764ef3e1139 | refs/heads/master | 2020-09-13T19:14:32.156414 | 2019-11-04T16:32:09 | 2019-11-04T16:32:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,004 | py | # -*- coding: utf-8 -*-
"""
Functions for working with FreeSurfer data and parcellations
"""
import os
import os.path as op
from nibabel.freesurfer import read_annot, read_geometry
import numpy as np
from scipy.ndimage.measurements import _stats, labeled_comprehension
from scipy.spatial.distance import cdist
from .d... | [
"rossmarkello@gmail.com"
] | rossmarkello@gmail.com |
424f0c0c5072d11b2dae9aff8f3df1b4504f7a0b | 6163c502cba634a922c448219afb6021e88f2747 | /Data Visualization/Seaborn/faceting with Seaborn.py | d1d558c9b2b05a87ac10d7ae795d3d571f1d9c16 | [] | no_license | Okroshiashvili/Data-Science-Lab | 9cddf8ff7dae41dabe321fa8804a9b041c24596b | 796d4f5c0ec8c90d373bde2bfbc0cf244f62e69b | refs/heads/master | 2023-04-05T05:36:48.088628 | 2023-03-22T18:52:04 | 2023-03-22T18:52:04 | 130,345,437 | 12 | 2 | null | 2022-11-21T23:41:31 | 2018-04-20T10:08:23 | Python | UTF-8 | Python | false | false | 2,018 | py |
"""
Data Link:
https://www.kaggle.com/thec03u5/fifa-18-demo-player-dataset
Faceting is the act of breaking data variables up across multiple subplots,
and combining those subplots into a single figure.
"""
import pandas as pd
import numpy as np
import re
import seaborn as sns
pd.set_option('max_colu... | [
"n.okroshiashvili@gmail.com"
] | n.okroshiashvili@gmail.com |
dd074b8b470a687ed2c08f6fea742702f346f792 | b610b21ad9645bf099ad9ab0c024ccd212c36b53 | /AdvancedBlogAPI/Todo/models.py | 640f45a4439954103cdd19680e2772ee35ff14dd | [] | no_license | co-codin/AdvancedBlogAPI | 7c98aa36a2c9da3df6b23a2fbf6803d5f4ca3f43 | f478eb272ed067f175dbcfc20efdc10601d5c8bc | refs/heads/master | 2022-02-03T04:35:48.212984 | 2018-08-09T14:23:30 | 2018-08-09T14:23:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from django.db import models
# Create your models here.
class Todo(models.Model):
text = models.CharField(max_length=120)
complete = models.BooleanField(default=False)
def __str__(self):
return self.text
| [
"cuiyeqing960904@gmail.com"
] | cuiyeqing960904@gmail.com |
80e47ba9061751983d8ba2a0898defab0b7c9e12 | 94c8dd4126da6e9fe9acb2d1769e1c24abe195d3 | /test/python/visualization/timeline/test_events.py | b799fc7a36f5508ab72eec1b8df9e9c969e5d531 | [
"Apache-2.0"
] | permissive | levbishop/qiskit-terra | a75c2f96586768c12b51a117f9ccb7398b52843d | 98130dd6158d1f1474e44dd5aeacbc619174ad63 | refs/heads/master | 2023-07-19T19:00:53.483204 | 2021-04-20T16:30:16 | 2021-04-20T16:30:16 | 181,052,828 | 1 | 0 | Apache-2.0 | 2019-06-05T15:32:13 | 2019-04-12T17:20:54 | Python | UTF-8 | Python | false | false | 6,989 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | levbishop.noreply@github.com |
baeb46c0e91b8e8bacdcba90f5e8125da06e03ae | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/notificationhubs/_inputs.py | 35bb77487b128973f2ef800c02659554c2331d8b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 20,002 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | morrell.noreply@github.com |
4ae64eb893a2bc7e08bc9513e6d66cb09bb75910 | d9c95cd0efad0788bf17672f6a4ec3b29cfd2e86 | /disturbance/migrations/0028_auto_20200505_1219.py | 64dd3427825f2d5b508840eb281397175b84262b | [
"Apache-2.0"
] | permissive | Djandwich/disturbance | cb1d25701b23414cd91e3ac5b0207618cd03a7e5 | b1ba1404b9ca7c941891ea42c00b9ff9bcc41237 | refs/heads/master | 2023-05-05T19:52:36.124923 | 2021-06-03T06:37:53 | 2021-06-03T06:37:53 | 259,816,629 | 1 | 1 | NOASSERTION | 2021-06-03T09:46:46 | 2020-04-29T03:39:33 | Python | UTF-8 | Python | false | false | 1,225 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2020-05-05 04:19
from __future__ import unicode_literals
import disturbance.components.compliances.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('disturbanc... | [
"katsufumi.shibata@dbca.wa.gov.au"
] | katsufumi.shibata@dbca.wa.gov.au |
8583f5bb6cababfed20301df5b0a8835b294325b | c7330806e61bb03e69e859b2ed33ae42fc7916e6 | /Discovery/Content/CollectionBook.py | 74ca10f7499a72757dade2cde554ef893670d284 | [] | no_license | ixfalia/ZeroProjects | ec2f91000a5ce014f7413f32873b10fb01a3ed20 | 17bd2c0f9c3a5ef3705b008f6b128d589aef4168 | refs/heads/master | 2020-06-03T05:20:44.370134 | 2019-06-24T05:01:18 | 2019-06-24T05:01:18 | 191,456,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,520 | py | import Zero
import Events
import Property
import VectorMath
class Marvel:
def __init__(self, name, text, discovered = False, color = None):
self.Name = name
self.Text = text
self.Discovered = discovered
#endclass
class Collectable:
def __init__(self, name, amount, text = None):
... | [
"systematisoperandi@gmail.com"
] | systematisoperandi@gmail.com |
326d0c7de68e073287f3a396f8a137a169102766 | 139af68b78734a6bc53bd942ffa05476baf3d71d | /PYTHON OOP/Previous Exams/Python OOP Exam - 10 Apr 2021/exam_skeleton/project/aquarium/aquarium/freshwater_aquarium.py | d117fdaea034b8266d55f12414f36f536bf8cbd0 | [] | no_license | MiroVatov/Python-SoftUni | 7fe3fc0a3928848c5317fb120f789c773bfc117e | 0d0d6f116281b4de8c413d254386e27d992d047b | refs/heads/main | 2023-08-24T09:44:31.261137 | 2021-10-18T14:04:03 | 2021-10-18T14:04:03 | 317,510,574 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | from project.aquarium.base_aquarium import BaseAquarium
class FreshwaterAquarium(BaseAquarium):
def __init__(self, name):
super().__init__(name, capacity=50)
self.aquarium_fish_type = "FreshwaterFish"
| [
"noreply@github.com"
] | MiroVatov.noreply@github.com |
60cfc9014c29b483d349ca6430bea75baef9e675 | 5164dc11387ac2bab5d4bcabf7c1ce0e63cdbaaa | /appenlight_client/ext/logging/logbook.py | 5ec8ef3a02b434ec8892e436aead2f68d0adc3fe | [
"BSD-3-Clause"
] | permissive | jpwilliams/appenlight-client-python | ba472035794556c6624284150b5724c280eae7b0 | 9f3b0fd7d7035bcafb11e686c218dd1393909912 | refs/heads/master | 2020-12-24T16:15:00.770966 | 2015-09-01T15:31:45 | 2015-09-01T15:31:45 | 41,746,574 | 0 | 0 | null | 2015-09-01T15:23:01 | 2015-09-01T15:23:00 | null | UTF-8 | Python | false | false | 3,050 | py | from __future__ import absolute_import
import logbook
import logging
import threading
import datetime
import time
from appenlight_client.ext.logging import EXCLUDED_LOG_VARS
from appenlight_client.timing import get_local_storage
from appenlight_client.utils import asbool, parse_tag, PY3
log = logging.getLogger(__name... | [
"info@webreactor.eu"
] | info@webreactor.eu |
432c617ff8df039ffb316cefcc9e72a422d2bb97 | 39b9a28d721ef3a06726004408bd9788ddcaf0bd | /omokAI/Omok.py | 2559dcd299b977c26a2a32025df4e7c31faa3e05 | [] | no_license | handaeho/Alpha_Omokjomok | 560de9c4a3376d4b3d46f43592bc38ec39fa630e | 8760a9b4c5748715fd811e4c569701e63c7c6bc7 | refs/heads/master | 2023-03-19T04:11:34.762095 | 2023-03-13T14:16:55 | 2023-03-13T14:16:55 | 241,247,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,590 | py | from rule import *
from pygame.locals import *
import random
import pygame, sys
bg_color = (128, 128, 128)
black = (0, 0, 0)
blue = (0, 50, 255)
white = (255, 255, 255)
red = (255, 0, 0)
green = (0, 200, 0)
window_width = 800
window_height = 500
board_width = 500
grid_size = 30
fps = 60
fps_clock = pygame.time.Clock... | [
"mrdh94@naver.com"
] | mrdh94@naver.com |
da196e42ba4f3cf221f3ee5836971d6489da71ed | 95d1dd5758076c0a9740d545a6ef2b5e5bb8c120 | /PY/algorithm/expression_evaluation.py | 897fa67d8b5d6359098f536be23c4e30788a29fd | [] | no_license | icoding2016/study | 639cb0ad2fe80f43b6c93c4415dc6e8a11390c85 | 11618c34156544f26b3b27886b55c771305b2328 | refs/heads/master | 2023-08-31T14:15:42.796754 | 2023-08-31T05:28:38 | 2023-08-31T05:28:38 | 117,061,872 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,254 | py | # Expression Evaluation (infix)
# Medium
#
# to support basic calculation with:
# - operator: + - * / ^
# - operand: int/float
# - Parenthesis are permitted
# - blank(s) allowed in the expression
#
#
# Solution include 2 parts:
# 1) parse the str, identify operators and operands
# 2) Expression Evaluate
# ... | [
"icoding2016@gmail.com"
] | icoding2016@gmail.com |
cd7fa9170f10eae6dfe847fde231d58eef59b1ef | db302f4f35f9c9df55ae9bbaf95f53116b77a7a8 | /specviz/core/hub.py | d893da489fe0acb1960325d07b8ab8321fe02157 | [
"BSD-3-Clause"
] | permissive | imagineagents/specviz | c8c9ef033397a20029cfbd5972594a1d1cf0ee06 | 099e05ed40a7db56f338c3b89e3a8ec646586ac7 | refs/heads/master | 2020-04-04T22:57:21.131095 | 2018-11-05T21:46:48 | 2018-11-05T21:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,169 | py | import logging
from .items import DataItem
class Hub:
def __init__(self, workspace, *args, **kwargs):
self._workspace = workspace
@property
def workspace(self):
"""The active workspace."""
return self._workspace
@property
def model(self):
"""The data item model o... | [
"contact@nicholasearl.me"
] | contact@nicholasearl.me |
2a45ff408fd370aab4729c41774fcc2437b0919b | 62fe26b309b402d0c304624bf63a8e9b9c025148 | /backend/src/food/migrations/0008_auto_20160526_1948.py | c5a13f42d2b89acff07771bcad8c733195ccddf5 | [] | no_license | brmley/fuchtard | 20c9c8229debaf54897faabffa43d87bff1f0995 | 833bcb9655fff9ff733f798d19561d9b7e6c476c | refs/heads/master | 2021-09-06T15:13:13.317894 | 2018-02-07T22:08:54 | 2018-02-07T22:08:54 | 120,173,994 | 0 | 0 | null | 2018-02-04T10:12:36 | 2018-02-04T10:12:35 | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-05-26 12:48
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('food', '0007_foodcategory_slug'),
]
operations = [
migrations.AlterModelOptions(
... | [
"roboxv@gmail.com"
] | roboxv@gmail.com |
32089584dd27fac775fd61e0b1956be135b7f3ec | 8ad9faa828ce54cddc38dc86eef30e6635babd0c | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/tlvprofile/type.py | be7ed87f72c7869b64748c8b290d96533fa14e13 | [
"MIT"
] | permissive | ralfjon/IxNetwork | d1a50069bc5a211f062b2b257cb6775e7cae8689 | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | refs/heads/master | 2020-04-04T00:36:24.956925 | 2018-10-26T16:37:13 | 2018-10-26T16:37:13 | 155,655,988 | 0 | 0 | MIT | 2018-11-01T03:19:30 | 2018-11-01T03:19:30 | null | UTF-8 | Python | false | false | 2,820 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
17524959bbf4502b8a5089c5ceb2e5302c989256 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/189/29214/submittedfiles/swamee.py | 68f4b3257c60ef461e7b8c0b735fb769787a3d60 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | import math
f= float(input('digite f:'))
l= float(input('digite l:'))
q= float(input('digite q:'))
deltaH= float(input('digite deltaH:'))
v= float(input('digite v:'))
d=(8*f*l)*(q*q)/((3.14159*3.14159)*(9.81*deltaH))
rey=(4*q)/(math.pi*d*v)
k=0.25/(math.log10(0.000002/3.7*d+5.74/rey**0.9))**2
print('O valor de D é %.4f... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
736153dda8380835b19679e18d2ea20c3f6b2f72 | ca41bc15576624f4be22c777833b6dbf80a3d5f9 | /dolly/usuarios/migrations/0002_auto_20201217_0129.py | 967d04b2b9a94870212d7fcd8ef2a34be0324eac | [] | no_license | aris-osorio/dolly | 74840477e01a020dfaaaf3a4e94c4f95f48f690e | 256042bae4d4253fbc93f50aa125047e5090b68c | refs/heads/main | 2023-02-01T14:48:19.840785 | 2020-12-17T07:30:34 | 2020-12-17T07:30:34 | 321,873,299 | 0 | 0 | null | 2020-12-17T06:51:59 | 2020-12-16T04:58:55 | Python | UTF-8 | Python | false | false | 442 | py | # Generated by Django 2.2.14 on 2020-12-17 07:29
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('usuarios', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='usuario',
name='id',
... | [
"aris.osorio@alumnos.udg.mx"
] | aris.osorio@alumnos.udg.mx |
6f8c0cd76c7b346759c4b53b13862f9053534529 | 7bed80964437032d9e1faf801153d79e089adff5 | /_downloads/plot_haxby_anova_svm1.py | 5d707d298495ba5eb28e885ad254c9dcd6e25dd0 | [] | no_license | MartinPerez/nilearn.github.io | 56fccaf0997cbf34e7929fac1da7eac26b453537 | f4f2438b5dae7aafe12ab96b24a941f5e0dde4b1 | refs/heads/master | 2021-01-22T10:25:49.288164 | 2015-07-13T21:31:42 | 2015-07-13T21:31:42 | 39,084,452 | 0 | 0 | null | 2015-07-14T15:46:53 | 2015-07-14T15:46:53 | null | UTF-8 | Python | false | false | 4,392 | py | """
The haxby dataset: face vs house in object recognition
=======================================================
A significant part of the running time of this example is actually spent
in loading the data: we load all the data but only use the face and
houses conditions.
"""
### Load Haxby dataset ################... | [
"gael.varoquaux@normalesup.org"
] | gael.varoquaux@normalesup.org |
f694f3dae80fbbf984c2319b63e7c6a577940e56 | 33a0d5ec6ca440986f22b010ffb310bf34c4fcac | /Basic_grammar/文件读写/当前目录下文件.py | cb5b5c8f00f064aa786aafd82a96d58b531d59c2 | [] | no_license | zhaozongzhao/learngit | c3de619f07840839819ffee4bbacb590caba8dbe | a6471e6d63b298882ceed020cc3b56e457ed2ca0 | refs/heads/master | 2023-07-21T23:04:51.249300 | 2021-09-17T10:29:54 | 2021-09-17T10:29:54 | 100,707,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | #能在当前目录以及当前目录的所有子目录下查找文件名包含指定字符串的文件,并打印出相对路径
import os
def get_walk(patah):
list = []
for i in os.walk(patah):
list.append(i)
return list
def get_file_path(zzz):
path = os.getcwd()
filename = get_walk(path)
list = []
for j in filename:
for name in j[2]:
if zzz in name... | [
"2206321864@qq.com"
] | 2206321864@qq.com |
1120dbc166dbe15daef9175ed8f8fb4716705a95 | 0d0afd1dce972b4748ce8faccd992c019794ad9e | /integra/integra_crm/models/__init__.py | 9975a438862c880f17b75251bec25d7b121421bd | [] | no_license | danimaribeiro/odoo-erp | e2ca2cfe3629fbedf413e85f7c3c0453fd16941e | d12577bf7f5266b571cbedeb930720d653320e96 | refs/heads/master | 2020-01-23T21:32:16.149716 | 2016-11-05T15:35:40 | 2016-11-05T15:35:40 | 67,892,809 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | # -*- coding: utf-8 -*-
#from __future__ import division, print_function, unicode_literals
from crm_motivo import crm_motivo
from crm_lead import crm_lead
from crm_lead_report import crm_lead_report
from sale_report import sale_report
| [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
0f2e65ef53114eaa498af4a3c30172d850c94f92 | 1a59a9076c1e9f1eb98e24ff41a4c1c95e2b353e | /xcp2k/classes/_detailed_energy2.py | 8b2ddffbe58ddb7a150d834a20b889d29d47662a | [] | no_license | Roolthasiva/xcp2k | 66b2f30ebeae1a946b81f71d22f97ea4076e11dc | fc3b5885503c6f6dc549efeb4f89f61c8b6b8242 | refs/heads/master | 2022-12-23T06:03:14.033521 | 2020-10-07T08:01:48 | 2020-10-07T08:01:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._each181 import _each181
class _detailed_energy2(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.Filena... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e0b0740f3d4a3e66eeecad67f9aaf7a16848b39b | f1a3bd9ad5ef76204c24dc96f113c405ece21b6d | /workshop/migrations/0023_auto__add_field_projectversion_comment_node__add_field_projectversion_.py | 2dede45c1223fc514d33ac4c6985f3965aba8ce4 | [] | no_license | JamesLinus/solidcomposer | 02f83c3731774e8008d46b418f3bf4fb5d9dab36 | ed75e576ce1c50487403437b5b537f9bfbb6397e | refs/heads/master | 2020-12-28T23:50:06.745329 | 2014-01-24T02:34:41 | 2014-01-24T02:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,117 | py | # encoding: 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 field 'ProjectVersion.comment_node'
db.add_column('workshop_projectversion', 'comment_node', self... | [
"superjoe30@gmail.com"
] | superjoe30@gmail.com |
5afadda78affa9fc07b1ed5f8c8dfb417881723f | 37433c8f7ec4ff9fded3c7bcc9403e2293436552 | /blog/admin.py | 247a86c6e199c98ee1a1d100ca4f05337c70cdf6 | [] | no_license | FreeGodCode/TYCarry_Blog | 4420d896e735789ac9104568e7bf59a85b796373 | 9be47be8ff1e33980f237227786bc9d472155114 | refs/heads/master | 2023-03-22T09:36:35.476398 | 2021-03-17T07:29:44 | 2021-03-17T07:29:44 | 314,501,947 | 1 | 0 | null | 2021-03-17T07:29:45 | 2020-11-20T09:10:48 | Python | UTF-8 | Python | false | false | 1,040 | py | from django.contrib import admin
from blog.models import Article, Category, Tag, User, ArticleComment
# Register your models here.
from django_summernote.admin import SummernoteModelAdmin
class PostAdmin(SummernoteModelAdmin):
summernote_fields = ('content') #给content字段添加富文本
list_display = ['article_id', 't... | [
"2501160661@qq.com"
] | 2501160661@qq.com |
e02980246ab4a0bcc0d1250d698e64d718bd6708 | 687928e5bc8d5cf68d543005bb24c862460edcfc | /nssrc/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_authenticationpolicy_binding.py | 2d75c963ec3e23f5f802c94939e475d7b9c85737 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | mbs91/nitro | c6c81665d6abd04de8b9f09554e5e8e541f4a2b8 | be74e1e177f5c205c16126bc9b023f2348788409 | refs/heads/master | 2021-05-29T19:24:04.520762 | 2015-06-26T02:03:09 | 2015-06-26T02:03:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,462 | py | #
# Copyright (c) 2008-2015 Citrix Systems, 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 l... | [
"bensassimaha@gmail.com"
] | bensassimaha@gmail.com |
6ebc87ec541d5938b401e1d177cedd46d683529b | ded0b1a8a91fd9af7bae98cce3cfadbb6d03f84d | /examples/upload.py | 6c3908b418a0cf28ac0b73c0d7e2511f435ff923 | [
"MIT"
] | permissive | rjw57/bdfu | d38b3871ff60703f971b6cef4fae298dfa3faf73 | 386d800738e6943ed9063f1bf904ece86410c7c7 | refs/heads/master | 2021-01-10T21:05:08.602572 | 2015-02-26T13:58:35 | 2015-02-26T13:58:35 | 31,363,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | #!/usr/bin/env python
from __future__ import print_function
import os
import sys
from bdfu.client import Client
def main():
if len(sys.argv) != 4:
sys.stderr.write('usage: {0} <endpoint> <token> <file>\n'.format(
os.path.basename(sys.argv[0])))
return 1
endpoint, token, filename ... | [
"rjw57@cam.ac.uk"
] | rjw57@cam.ac.uk |
2c5c84d785bf038db82bc52ff81160bed04bcb1f | 6d37c05de7d73e04f87c6ed796c77144cd8fa187 | /Chapter6/Challenge10.py | 4be5c2267309861fe5aace2efeae214d95106301 | [] | no_license | eizin6389/The-Self-Taught-Programmer | edc37ed6d95e8b24f590a6cbb9c75c0e5bd4e2e3 | 9c23612dfb11d5302cb26a359d02c88886cf986c | refs/heads/master | 2022-12-08T06:47:37.541256 | 2020-08-30T07:16:01 | 2020-08-30T07:16:01 | 286,423,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | word = "四月の晴れた寒い日で、時計がどれも十二時を打っていた。"
index = word.index("、")
print(index)
print(word[0:index])
| [
"hide@matsumotohideto-no-MacBook-Pro.local"
] | hide@matsumotohideto-no-MacBook-Pro.local |
b1e3f6259a636db56b537dc1e6d558ffccfe0925 | e2f9d506dcc3fee7dbbbce370c7e2c3f48275828 | /tests/test_helpers.py | f817a336beaeddf6adbd9c6a2bf097ba88fc2d9f | [
"MIT"
] | permissive | MacHu-GWU/s3splitmerge-project | d33829f1ff6aed9cc77c9b4bec30601ce4570f60 | 873892158f4a2d0ee20f291e5d3b2a80f0bae1ba | refs/heads/main | 2023-08-30T09:07:32.312453 | 2021-11-07T16:08:24 | 2021-11-07T16:08:24 | 394,803,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | # -*- coding: utf-8 -*-
import pytest
from pytest import raises, approx
from s3splitmerge import exc
from s3splitmerge.helpers import (
b64encode_str, b64decode_str,
get_s3_object_metadata,
is_s3_object_exists,
count_lines_in_s3_object,
)
from s3splitmerge.tests import s3_client, bucket, prefix
def t... | [
"MacHu-GWU@users.noreply.github.com"
] | MacHu-GWU@users.noreply.github.com |
e39b793d65bd411519cedbdc9c917e80ada47a62 | 7868c0496a96f51e602641de99e2c5d85f478c09 | /src/anomalydetection/inqmeasurement.py | f060bd647e518bc4865e6293d42d71f6665de1dd | [
"Apache-2.0"
] | permissive | Joaggi/Incremental-Anomaly-Detection-using-Quantum-Measurements | 7e05a13f62bb867ded02f4bbfad075693bbddca4 | c53cba3691f6a7af8b4b061be4a03f05121a2db9 | refs/heads/main | 2023-07-08T05:48:58.483713 | 2023-06-30T17:00:31 | 2023-06-30T17:00:31 | 522,575,822 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,371 | py | import jax
from jax import jit
import jax.numpy as jnp
import numpy as np
from functools import partial
from sklearn.kernel_approximation import RBFSampler
from tqdm import tqdm
class QFeatureMap_rff():
def __init__(
self,
input_dim: int,
dim: int = 100,
gamma: float = 1,
... | [
"joaggi@gmail.com"
] | joaggi@gmail.com |
89a55f90597435c511a95f43dd03808662a4461f | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/SONOMASYSTEMS-SONOMA-SLIP-MIB.py | 37c94cdf6f1275135ced4093657535300758d95a | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 4,019 | py | #
# PySNMP MIB module SONOMASYSTEMS-SONOMA-SLIP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SONOMASYSTEMS-SONOMA-SLIP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:01:32 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python ve... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
feca5ccc14854f43ec13b95a54fae7811bed008c | 227a48922280ba3e1f47d54a81ddbcc8ad7b2c89 | /BigCode/crawler-master/GetGithubInfo.py | fcabc199c220e52e8a1ab6534d3e27687ea92688 | [] | no_license | zk467701860/MyWorkingProject | 948f652c26886282be2afaddddd18f069271946c | b81e7cccf6f951442b177bb0cfdc68180e9b9011 | refs/heads/master | 2020-03-22T03:17:24.299582 | 2018-07-30T02:20:57 | 2018-07-30T02:20:57 | 139,423,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,570 | py | import sys
reload(sys)
sys.setdefaultencoding('UTF-8')
from redis import Redis
import MySQLdb
from github import Github
from git import Repo
import subprocess
import datetime
import traceback
## redis and mysql connection
r = Redis(host='10.131.252.156',port=6379)
while(r.llen('ids')!=0):
id = r.lpop('ids')
... | [
"467701860@qq.com"
] | 467701860@qq.com |
bea7606e2dce71427ecd585839a735739be94357 | 615f83418985b80f2a2a47200acb08dfa9418fc7 | /sales/forms.py | cd25ae516223049a1713bca426d4795827089c9f | [
"MIT"
] | permissive | alejo8591/maker | a42b89ddc426da326a397765dc091db45dd50d8e | 001e85eaf489c93b565efe679eb159cfcfef4c67 | refs/heads/master | 2016-09-06T19:36:01.864526 | 2013-03-23T06:54:21 | 2013-03-23T06:54:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,303 | py | # encoding: utf-8
# Copyright 2013 maker
# License
# -*- coding: utf-8 -*-
"""
Sales module forms
"""
from django.shortcuts import get_object_or_404
from django import forms
from django.db.models import Q
from maker.sales.models import Product, SaleOrder, SaleSource, Lead, Opportunity, \
... | [
"alejo8591@gmail.com"
] | alejo8591@gmail.com |
296867493cf551a5404fef89aabc4a5b7d4f615b | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-2596.py | 697a6e67ab606c514e991a7cf4f6bf70f29f748e | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,292 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
b1c8b3133b7b734b65f124e5a32c497835087c81 | a6b1f5ac26861dc7efd002cf3795e70f58eb76fe | /train/train_mnist.py | 053bd48b3ce0c55507dc14da6b01f32919eed938 | [] | no_license | BingzheWu/BayesNet | 6ad0e2acb1f901aaa4cd758fc815bf6cfb03742b | 7c3f87486c67e42d3c2a64548dde4a0edcb73bb3 | refs/heads/master | 2020-03-29T22:34:58.261930 | 2019-07-12T09:31:07 | 2019-07-12T09:31:07 | 150,428,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py | import torch
import sys
sys.path.append('.')
from utils import write_loss_scalars
from utils import write_weight_histograms
from models.minist_models import BayesLeNet
from dataset import data_factory
from train.train_utils import parse_args, bayes_batch_processor, get_logger
from mmcv import Config
from mmcv.runner im... | [
"wubingzheagent@gmail.com"
] | wubingzheagent@gmail.com |
887b1abd80116fb103cbdd1166213d2360b0017e | 0e3d1d4107a2664663c6906697faa3a41c7d4f57 | /src/ui/view/opalview/aui2.py | 2f91af53c015e51a85cd8dc3d4d5b752f2743740 | [] | no_license | struts2spring/Opal | c0915452fd4eab4c0bd4690cac346be8e6dc3f60 | c59c03baa10c915ca7c05196ed411da4a26ff49d | refs/heads/master | 2021-01-23T21:01:39.977412 | 2017-07-09T16:49:44 | 2017-07-09T16:49:44 | 48,582,382 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | import wx
import wx.aui
# import images # contains toolbar icons
class MyFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, wx.ID_ANY,
"AUI Tutorial",
size=(600,400))
self._mgr = wx.aui.AuiManager()
self._mgr.SetManage... | [
"struts2spring@gmail.com"
] | struts2spring@gmail.com |
f5b0d6e2ad6c275feacd9fd0fdd544bd3a7e7b88 | 12e27bcea0c43655f3c0c4690c67de2feaf8edad | /apptools/apptools-android-tests/apptools/manifest_xwalk_permissions.py | db57069587b5188da4e69dc2d3524a9f0d699666 | [
"BSD-3-Clause"
] | permissive | xzhan96/crosswalk-test-suite | b24288443463698cd60f74ff25b0e9b262d8d640 | 47710b138f4ed3498b40c2480811e24ff8d0435a | refs/heads/master | 2021-01-20T23:05:45.268897 | 2016-02-04T06:34:19 | 2016-02-04T06:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,960 | py | #!/usr/bin/env python
#
# Copyright (c) 2016 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this
# list of conditions and t... | [
"yunx.liu@intel.com"
] | yunx.liu@intel.com |
fa9e8b9e1d471cf9ad80bcbe1a6ef93e1748b3e1 | f1a9769b3589d802a4c26adfbe67915b920f3b49 | /dj_rest_security/rest_demo/views.py | ba976ed64928bb0036c3eb37278aa73f5fbb6bd1 | [] | no_license | chavhanpunamchand/Django_REST_framework | ac8b04102439f153ee77f8572dded20aac02121f | c4d602c201dff4caec645049c733127f20c0fa57 | refs/heads/main | 2023-03-18T07:42:37.072865 | 2021-03-04T13:34:05 | 2021-03-04T13:34:05 | 336,339,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #ReadOnlyModelViewSet
from rest_framework.viewsets import ModelViewSet
from .models import Emp
from .empserializer import EmpToJson
# from rest_framework.viewsets import GenericViewSet
# from rest_framework.mixins import DestroyModelMixin,UpdateModelMixin
# class MyOwnViewSet(GenericViewSet,DestroyModelMixin,UpdateMod... | [
"chavhanpunamchand@gmail.com"
] | chavhanpunamchand@gmail.com |
f940d633eef8179b017a5b3b1f99d2d04f3b6def | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Wyx_w_M_w_Sob_to_Wz_focus/IN_Sob_k15_EroM/Sob_k05_s001_EroM/pyr_Tcrop255_p20_j15/pyr_5s/L5/step10_a.py | 365f3ade28e90b9af7f43cbf404b02405444c548 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139,845 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
892dc7ef6d0384a18b2c2d612fb7032dad0acffe | 03a9facf029d3b63ef996f34395e407b2a9bafe0 | /3rdParty/waf/waflib/extras/cabal.py | 1604c753e68af733d796904002b8181b13744cd2 | [
"MIT"
] | permissive | MDudek-ICS/peach | 737b29346685106c50035177f3e656661342d5b6 | 2bea2d524707a98d007ca39455a3db175b44e8ed | refs/heads/main | 2023-03-06T19:10:48.312671 | 2021-02-17T22:00:09 | 2021-02-17T22:00:09 | 372,488,843 | 1 | 0 | NOASSERTION | 2021-05-31T11:51:38 | 2021-05-31T11:51:37 | null | UTF-8 | Python | false | false | 5,307 | py | #!/usr/bin/env python
# encoding: utf-8
# Anton Feldmann, 2012
# "Base for cabal"
import re
import time
from waflib import TaskGen, Task, Utils
from waflib.Configure import conf
from waflib.Task import always_run
from waflib.TaskGen import extension, feature, after, before, before_method
from waflib.Utils i... | [
"justin@controlthings.io"
] | justin@controlthings.io |
beefceea334dfe704bf83329bb46863e9452c439 | 4d9bb8c45b2c65a0083bc7c0f6c8c9905ee09dd2 | /flexx/pyscript/tests/test_parser1.py | bd3e6184d50acdb446111116eab7992d17da6a17 | [
"BSD-2-Clause"
] | permissive | fangbei/flexx | d291da4a58abe64f101a0adc5f7aaae965b35505 | 8a48e8800cbe79725d641ae53fcaad58e3f75d8a | refs/heads/master | 2021-01-21T16:48:07.660320 | 2015-11-30T16:13:08 | 2015-11-30T16:13:08 | 47,130,369 | 0 | 0 | null | 2015-11-30T16:10:26 | 2015-11-30T16:10:26 | null | UTF-8 | Python | false | false | 14,752 | py | from pytest import raises
from flexx.util.testing import run_tests_if_main
from flexx.pyscript import JSError, py2js, evaljs, evalpy, Parser
from flexx import pyscript
def nowhitespace(s):
return s.replace('\n', '').replace('\t', '').replace(' ', '')
class TestParser(Parser):
def function_foo_foo(self... | [
"almar.klein@gmail.com"
] | almar.klein@gmail.com |
b463ae2a7833d5227feb616aa4858b1c0db24b6d | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/servicefabricmesh/outputs.py | f3e65901f80b57e9814384a33bad4839d7cc9054 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 90,709 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | morrell.noreply@github.com |
59cec4e635106d98c8f73c90d259cf476ea169bc | e5d059896640e25a57f29f5ec972c114f8ef5866 | /src/scs_analysis/histo_chart.py | 0911cb33aa5dba10c5b7846450c692df04dd9084 | [
"MIT"
] | permissive | tonybushido/scs_analysis | 10add7b13cee29e1445ea18240bdb08e3bc908a4 | 1121be19c83b0d616772da42ea90623d6f6573c4 | refs/heads/master | 2021-01-03T03:11:31.474595 | 2020-02-11T14:27:32 | 2020-02-11T14:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,618 | py | #!/usr/bin/env python3
"""
Created on 3 Aug 2016
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
source repo: scs_analysis
DESCRIPTION
The histo_chart utility is used to create Matplotlib histogram charts and comma-separated value (CSV) histogram files.
The utility analyses a given path to a leaf node of... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
3afbf51c838358e1e7c6a436752ee852c8429703 | a298d0b4a3e9e12170651a6bf728093b4badfac7 | /LeetCode/bstToGst.py | 7de288787fbea1fb42cae497b5d058f68fcff994 | [] | no_license | gavinz0228/AlgoPractice | fc8ecd194ea2d26de59df45909838161c802b8cd | 1cb183a326a0612a5cd941778500a8265e1d7255 | refs/heads/master | 2022-07-27T11:42:06.887668 | 2022-07-18T20:38:31 | 2022-07-18T20:38:31 | 172,929,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def bstToGst(self, root: TreeNode) -> TreeNode:
self.s = 0
newRoot = self.aux(root)
return newRo... | [
"gavinz0228@gmail.com"
] | gavinz0228@gmail.com |
e8924c21c2e48eaaef9dc5a00c052f3bf798e536 | 4d01b138ebc1b23f2758811893ce214eeb96736e | /104.py | 30a114cb232f8c76739e228223eba127307c4bf6 | [] | no_license | db2398/setbeginner10 | 273c04ef12d3679e94a5478f7cd73e9dcc75bdb9 | f33f596ad63d7d8cfdbfe205eb65c640d883c2eb | refs/heads/master | 2020-06-17T04:32:42.980311 | 2019-07-08T11:42:05 | 2019-07-08T11:42:05 | 195,797,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | i1,i2=list(map(int,input().split()))
print(i1**i2)
| [
"noreply@github.com"
] | db2398.noreply@github.com |
2fdc9014f5baed53ee73acdfc52cbc28aebab88b | 657aef335ad3cd75d8355aaf9bc2db6641f0ee0e | /10.modules/lol.py | 7490a9c21a9a0865eb870529e3f75cd5df69f8e0 | [] | no_license | petershan1119/Python-practice | 73179baaa662ecf1a6861d440049f71ff5685d21 | 2234f301f2324514ac23304d181c21c0a125d0dc | refs/heads/master | 2020-04-13T00:41:01.306943 | 2017-09-21T05:45:30 | 2017-09-21T05:45:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | #from functions.game import play_game
#from functions.shop import buy_item
#import functions
from functions import play_game, buy_item, abc
from friends.chat import send_message
def turn_on():
print('= Turn on game =')
while True:
choice = input('뭐할래요\n 1: 상점, 2: 게임하기, 3: 친구에게 메시지 전송, 0: 나가기\n 선택 : ... | [
"dev@azelf.com"
] | dev@azelf.com |
eeafb1939c0530403221403c3254a0aef2b343df | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/lag82/426-tideGauge.py | 48f8dd1ce1973a730042bae1b65a4df4e76305b7 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,984 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
db3020dac85e7558a8c3c49c190f2af1eae54733 | 417d1065b90d3647c8cf83b89f0eb1b1a93f6b58 | /eventsourcing/tests/datastore_tests/test_sqlalchemy.py | b87d159862d47372c6f27fcc632744598dd76545 | [
"BSD-3-Clause"
] | permissive | AlanFoster/eventsourcing-1 | d725513c9f8e48b4fd40a8d449ae26acc4c6b6dc | 964f9473043da81f80d2e9407ef7aefee02aae11 | refs/heads/master | 2020-08-06T12:57:27.096010 | 2019-10-01T20:21:52 | 2019-10-01T20:21:52 | 212,983,685 | 0 | 0 | BSD-3-Clause | 2019-10-05T10:50:13 | 2019-10-05T10:50:13 | null | UTF-8 | Python | false | false | 2,949 | py | from tempfile import NamedTemporaryFile
from uuid import uuid4
from sqlalchemy.exc import OperationalError, ProgrammingError
from eventsourcing.infrastructure.datastore import DatastoreTableError
from eventsourcing.infrastructure.sqlalchemy.datastore import DEFAULT_SQLALCHEMY_DB_URI, SQLAlchemyDatastore, \
SQLAlc... | [
"john.bywater@appropriatesoftware.net"
] | john.bywater@appropriatesoftware.net |
75bfc7a60ab3dc427fbbf87c0657ce0f9ce2fe2e | f7965f9bebae5da7f5c85fd8ee2e06c75fc6b11c | /examples/ai_edward32tnt.py | b72df68d8f452a890f9a60414784f7df4ef8a6f6 | [] | no_license | Abhishek-commits/snake-challenge | 6a09fe613c4fe5d64587660226964dcafe9d985c | 48bf6d26e91b09fc5420398456a558b13a9677a5 | refs/heads/master | 2022-12-23T07:48:55.812178 | 2020-10-01T07:20:35 | 2020-10-01T07:20:35 | 300,184,899 | 0 | 0 | null | 2020-10-01T07:19:17 | 2020-10-01T07:19:16 | null | UTF-8 | Python | false | false | 11,239 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
"""
module: ai_edward32tnt
"""
from ailib import *
LEFT, UP, RIGHT, DOWN = range(4)
class AI(BaseAI):
def __init__(self):
self.name = 'edward32tnt ai %d' % random.randint(1, 1000)
types = ['python', 'ruby']
self.type = types[random.randint(0, 1)]
... | [
"linjunhalida@gmail.com"
] | linjunhalida@gmail.com |
73bd1399a667fde2ebc55ea845c58e86949ac808 | e4eabccc6d971289cf13653d1b6f290e39b870ab | /1227-number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs.py | 50269f16fcfe4f0d8b0cc7b72998c9203a01c939 | [] | no_license | HEroKuma/leetcode | 128b38a9f559dc9e3f21c86a47ede67ad72f7675 | b3045aaedbe98eddc7e4e518a03a9337a63be716 | refs/heads/master | 2023-01-03T12:12:31.018717 | 2020-11-01T16:56:47 | 2020-11-01T16:56:47 | 260,488,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # Given a list of dominoes, dominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d] if and only if either (a==c and b==d), or (a==d and b==c) - that is, one domino can be rotated to be equal to another domino.
#
# Return the number of pairs (i, j) for which 0 <= i < j < dominoes.length, and dominoes[i] is equivalent... | [
"zx8733520+github@gapp.nthu.edu.tw"
] | zx8733520+github@gapp.nthu.edu.tw |
f88f886baeef5abcf18ab0d0cbffcb906bd5e6e1 | d458b72b4d0e5c51446bb8b9f8a6276015dfb594 | /supervised_learning/0x0E-time_series/main.py | 138a3132081e49e51e938fc6a075feb8c63d734a | [] | no_license | mecomontes/Machine-Learning-projects | d6588cfaa7d020d3fae0fb74f6550c9e84500578 | 50e1828b58bb58eecfd3a142501b37fe701f4e49 | refs/heads/main | 2023-07-14T12:30:19.792332 | 2021-08-29T15:33:16 | 2021-08-29T15:33:16 | 376,129,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun May 4 5:40:12 2021
@author: Robinson Montes
"""
import pandas as pd
import datetime as dt
preprocess = __import__('preprocess_data').preprocessing
if __name__ == "__main__":
file_path = '../data/coinbaseUSD_1-min_data_2014-12-01_to_2019-01-09.csv'... | [
"1574@holbertonschool.com"
] | 1574@holbertonschool.com |
745e8be5553cabb487ef2d2a32d9fd05f5ba9c87 | 6e00e1ad30e19635c943b370a1aaf9b7eab4beb8 | /backend/chat_user_profile/migrations/0001_initial.py | f41e67e03a512f175dd8bb3a41235a0793f1b06d | [] | no_license | crowdbotics-apps/chat-28286 | c06bafd9ba1bd8b821fd6b76f7580cf88caae44d | 3aa33ad493ab36e00f136654aa96e6ddc4b57135 | refs/heads/master | 2023-06-22T01:56:22.263016 | 2021-06-29T06:53:41 | 2021-06-29T06:53:41 | 381,143,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | # Generated by Django 2.2.20 on 2021-06-28 19:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1fe6c3653aa6425f672737d1c45d2a5983869d29 | d5edda31631c8e71e2991817f713ba30484245c6 | /Tools/BuildSlaveSupport/ews-build/steps_unittest.py | 3448fa2c1efcbcd28df18de094f97d74c064af12 | [] | no_license | M4cs/webkit | be0a5e8a6ade907343cb29e44422224749255411 | a4feb0de129f8f6df3db666b0dfce89dd1ff7e40 | refs/heads/master | 2023-05-28T13:04:09.512865 | 2019-06-24T19:57:46 | 2019-06-24T19:57:46 | 193,574,901 | 1 | 0 | null | 2019-06-24T20:26:45 | 2019-06-24T20:26:45 | null | UTF-8 | Python | false | false | 66,458 | py | # Copyright (C) 2018-2019 Apple Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and ... | [
"aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc"
] | aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc |
abb119c8b27fc4e320f4d2c5e27a2aabd4ad94d0 | 23ef5d0633595817341b73c706db4a4c46e12354 | /it/structures/python2/default_naming-default/upper_snake.py | 4db7ebbc4fd69b28715f397a5b3bde174990a84c | [
"MIT",
"Apache-2.0"
] | permissive | c0ding/reproto | 707eb25c8d28e6d052da6d428ca00bcd5617bb91 | 92f0a4b258095bc2f8a394d0bd44209e3a599c4f | refs/heads/master | 2022-11-18T08:13:23.789214 | 2020-07-18T10:28:12 | 2020-07-18T10:28:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | class Value:
def __init__(self, _foo_bar):
self._foo_bar = _foo_bar
@property
def foo_bar(self):
return self._foo_bar
@staticmethod
def decode(data):
f_foo_bar = data["FOO_BAR"]
if not isinstance(f_foo_bar, unicode):
raise Exception("not a string")
return Value(f_foo_bar)
def ... | [
"udoprog@tedro.se"
] | udoprog@tedro.se |
55d9f917d9b308fe78ca6904fd50850bdeeef740 | a206e5d97bf4da00722ee8841fe2e0c2884d1c92 | /feature.py | 36107eba78f7ffc5f82ecfc9665070df891c70c6 | [] | no_license | mikbuch/eeg_02_interface | 969bb925758a330dbd287ad71e787bd0faa5ddf8 | 7efd6649c2176fba50c3113570697dc7f95ef9a4 | refs/heads/master | 2016-09-06T14:29:22.842641 | 2015-04-23T23:21:10 | 2015-04-23T23:21:10 | 34,334,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | #!/usr/bin/env python
from statlib import stats
# zero crossing and negative sum
def zero_negative(package):
negative = 0
zero_crossed = 0
for sample in range(len(package)):
if package[sample] > 0:
if sample != len(package) - 1:
if package[sample + 1] < 0:
... | [
"mikolaj.buchwald@gmail.com"
] | mikolaj.buchwald@gmail.com |
3f6ca5ca2b2d64456a2492ced90b6bbbb0e9dfe1 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_20254.py | 01dbac24564cec0d82afc53fd107f040f7941a65 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | # How is order of items in matplotlib legend determined?
self.*
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
06637c07f994b92112d2115b4c12d9bd35b01444 | 9703641c14b7c19f2fcf937150204ab85b4151a2 | /code pratice/设计指定长度随机密码.py | 6631266c946ef35f46c0ea5935dca28c3dfc7679 | [] | no_license | walkmiao/Little_Case | 8effbea554c930e0eb32d4335ecbd5541a9c1251 | ab445659e19c85ecfd9b99f8d615c33f900662f8 | refs/heads/master | 2021-06-11T05:30:39.415720 | 2019-05-14T10:37:29 | 2019-05-14T10:37:29 | 128,582,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : 设计指定长度随机密码.py
# @Author: lch
# @Date : 2018/10/10
# @Desc :
"""
题目2: 设计一个函数,生成指定长度的验证码(由数字和大小写英文字母构成的随机字符串)
"""
import random
def generate_code(length=6):
caplize = [ chr(i) for i in range(ord('a'), ord('z')+1)]
low = [ chr(i) for i in range(ord('A')... | [
"372815340@qq.com"
] | 372815340@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.