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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a8cc33cd2d2757f1c27da8c048ce5fa539d91f6 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/operations/_webhooks_operations.py | 4ae54819faf2034d91ecade21e580da2c75800ef | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 34,174 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
58fc33a5d4efa84fc4525ebd70ca5e1600944b5a | a5d712b886ed70edc1790536be3552b90802d84a | /env/lib/python3.6/abc.py | 155573ae0da6959cc99617821b93bc0980d37c4a | [] | no_license | NehemiasEC/django_react_full_stack | 21e1a390c9910c221869cd20f5e0f953e469e621 | ac8db7d07a023362cdae070cc5ed6feeaedfc79f | refs/heads/master | 2020-03-26T22:50:08.982883 | 2018-08-21T01:42:10 | 2018-08-21T01:42:10 | 145,490,603 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | /home/nehemiasec/anaconda3/lib/python3.6/abc.py | [
"neli92santscz@gmail.com"
] | neli92santscz@gmail.com |
dc16e1aa50408d04cc565b1a879caf73e058ce13 | 20adcce3dd974d9fe8270743aa0161a9d55fa9c7 | /test.py | df32903df1fa6c4e3b4dba9352dddf361fc8d13c | [] | no_license | AlexDel/clause_handler | 3c23c4974be858ae65b06b251b613f617fb0e711 | e7ea540f95680135f30cff14c768f0e1fbf35c68 | refs/heads/master | 2020-04-05T08:39:30.331361 | 2012-11-16T08:58:48 | 2012-11-16T08:58:48 | 156,723,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # coding=utf-8
def test():
#берем тесты из csv-файла
tests = []
for row in csv.reader(open('test_set/DB_1000.csv'), delimiter=';'):
#переводим в байты из кодировки cp1251
tests.append(tuple([r.decode('utf8') for r in row]))
return tests
o = 0
for t in tests[1:]:
s1 = split_to_clauses(... | [
"verbalab@veralab-laptop"
] | verbalab@veralab-laptop |
69657370afa71482dad27666f26a61cd6136a9e6 | 4e7742153afc6695de1838e352f2ba99bccc9e2e | /genImg.py | 8ed29169bde7e91312d3f573d83f49732cce94ca | [] | no_license | gottfriede/SFM-simulation | 77c523de2e652cdc3c5ac752bd65ad4361077468 | d0bf10d8aab54c08b0497595cdb1954d4cf5d0ad | refs/heads/main | 2023-01-30T23:45:28.093229 | 2020-12-01T03:56:56 | 2020-12-01T03:56:56 | 316,510,278 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | import openpyxl
from openpyxl import load_workbook
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
plt.rcParams['font.sans-serif'] = ['KaiTi'] # 指定默认字体
plt.rcParams['axes.unicode_minus'] = False # 解决保存图像是负号'-'显示为方块的问题
if __name__ == '__main__' :
x = []
y = []
z = []
... | [
"noreply@github.com"
] | gottfriede.noreply@github.com |
8b7fe62e7a52be37926c594a6e45bcb003570e69 | 44c4e5b10d7e1eb1d154bce602e2e863eb15ae14 | /opensea.py | fc74e332d627dcef83a901db0f7a5a19c2dfc1da | [] | no_license | holyverse/OpenSea-get-MetaData | d0b2639291233cf80a073f6cd12034c18994be4e | 1f0c4afeb941992c54e45d77c5a2e7286908dec1 | refs/heads/main | 2023-07-24T22:54:20.674334 | 2021-09-05T07:34:46 | 2021-09-05T07:34:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,269 | py | import requests
import csv
import time
def get_leaves(item, key=None):
if isinstance(item, dict):
leaves = []
for i in item.keys():
leaves.extend(get_leaves(item[i], i))
return leaves
elif isinstance(item, list):
leaves = []
for i in item:
leaves... | [
"89365132+Artsiomliaver@users.noreply.github.com"
] | 89365132+Artsiomliaver@users.noreply.github.com |
9fbc644b412de08113816ddaddca55d050d6e252 | e5b7ec56dab01e7ac65694fb0b9f51004285479e | /got_backend/gotapp/models/uczestnictwo.py | 02f7acc0186473d16c9d2ed428cfcaf92215dffb | [] | no_license | MIKE432/project-po-backend | 9a2c45a62c61e6fbd647702c005c86d320857482 | a37972119d856eef89c5adccac891f35ebb8a140 | refs/heads/master | 2023-02-27T00:27:19.089258 | 2021-01-30T01:50:56 | 2021-01-30T01:50:56 | 330,274,405 | 0 | 0 | null | 2021-02-01T13:57:00 | 2021-01-16T23:01:01 | Python | UTF-8 | Python | false | false | 626 | py | from django.db import models
from rest_framework import serializers
class Uczestnictwo(models.Model):
turysta = models.ForeignKey('gotapp.Osoba', on_delete=models.CASCADE)
wycieczka = models.ForeignKey('gotapp.Wycieczka', on_delete=models.CASCADE)
opis = models.CharField(max_length=2000, blank=True, null=... | [
"lokigameplayer@gmail.com"
] | lokigameplayer@gmail.com |
a4c53d61f3f8cec5029c106bb11270a3a472841b | 1b6e73e154beed974e7611c177e057735b439f78 | /prueba2/prueba2.py | 552f1833b1d29b2a113c0fe164a15ec0ec20cd4e | [] | no_license | crist-start/compilador-pseudo-c | d1f9dfe17cad1126724aea7a955f6cc945607e9f | 473ee2947679d22bc4adf7ff2f90d6b6261b4730 | refs/heads/master | 2022-11-06T09:47:29.042724 | 2020-06-22T18:29:09 | 2020-06-22T18:29:09 | 270,763,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py |
def triangulo(a=0):
for i in range(a):
print("*"*(i+1))
| [
"cristart.cs@gmail.com"
] | cristart.cs@gmail.com |
195e826a50c2a37aca713f35e1a54d9456d070fa | 07ea5504b7de8a67cb93eb7db1f8ea71a4642f37 | /transform.py | 77c6b7c1f971d6189f47312a8a3abc948f628943 | [] | no_license | allisterke/color-transform | 9d84ef160e5e98960f3bec03b47643c249060de7 | 5527374f51e22a8fee9c086f854b9eb71b480f5c | refs/heads/master | 2021-01-12T15:18:09.264698 | 2016-10-24T03:49:29 | 2016-10-24T03:49:29 | 71,749,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,900 | py | from __future__ import division
import numpy as np
from scipy.misc import imread, imresize, imsave
from collections import OrderedDict
color_path = 'image2.jpeg'
content_path = 'image1.jpeg'
color_unit_pixel = 8
content_unit_pixel = 16
max_size = 1042
def channel_to_rgb(image, unit_pixel):
pixel_num = 256 // uni... | [
"allister@gmail.com"
] | allister@gmail.com |
c6ab7229a6adeb73948dc28f3e733ad9ee6ecaf1 | 0680e9c5c4849a6a6650b92a58fdb8335c892379 | /nlc_model.py | 6a25659478cde641d53898fc26625a5fdcef944a | [] | no_license | wanjinchang/nlc | e62899d2e99d12f47bd6c39e62580963172801e2 | 04efb45b7c8a76f9fbbfa02c282166351a2198ee | refs/heads/master | 2020-04-05T18:58:53.500314 | 2016-05-05T06:05:19 | 2016-05-05T06:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,815 | py | # Copyright 2016 Stanford University
#
# 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 w... | [
"avati@cs.stanford.edu"
] | avati@cs.stanford.edu |
2bc47c390bbcd0f6fef0942aaca9a6b47da97c2f | 09db1ddaaa1efea440537c39249bff411b977611 | /GUI/deepsort_v5/track.py | 6d67287ea73c7827ef92414d2b8b63b27a7ff4e4 | [] | no_license | lucas-korea/AI_Bigdata_11th_B1 | 32075ab2c236508c8b2de85b1ca983beb7d59324 | 03fb1335efb4a4cc8eee3299d11963cd610a1e98 | refs/heads/master | 2023-02-02T14:16:27.440491 | 2020-12-19T15:07:48 | 2020-12-19T15:07:48 | 290,676,858 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,011 | py | from yolov5.utils.datasets import LoadImages, LoadStreams
from yolov5.utils.general import (
check_img_size, non_max_suppression, apply_classifier, scale_coords, xyxy2xywh, plot_one_box, strip_optimizer)
from yolov5.utils.torch_utils import select_device, load_classifier, time_synchronized
from deep_sort.utils.pars... | [
"jcy37012@naver.com"
] | jcy37012@naver.com |
f6988437015968d9b95b5809d4ca55b49c3b756e | 67336c27c00f6277a944c1179b77ec12c3b8ee70 | /Clases_PDI/ScriptsEjemplosGDAL/modis_open.py | d2733c6252ef34e72bda8eff794b46791900b781 | [] | no_license | ramonapariciog/LIAPRE-Masters | 7c93182398fdd1071ab5cdcb108d09a2ea0f76c0 | 1ac4f1c73ffaea9f16dfa29ad8e117e147446bf8 | refs/heads/master | 2023-05-26T09:11:58.210472 | 2023-05-18T04:40:58 | 2023-05-18T04:40:58 | 131,368,822 | 0 | 0 | null | 2018-04-28T03:27:45 | 2018-04-28T03:27:45 | null | UTF-8 | Python | false | false | 683 | py | from osgeo import gdal
imag = gdal.Open('HDF4_EOS:EOS_SWATH:"MOD021KM.A2012111.1645.005.2012112014505.hdf":MODIS_SWATH_Type_L1B:EV_1KM_Emissive_Uncert_Indexes')
band = imag.GetRasterBand(1)
imag.GetGeoTransform()
imag.GetProjection()
from osgeo import ogr
from osgeo import osr
wgs84 = osr.SpatialReference()
wgs84.Impoe... | [
"moncho_apa@hotmail.com"
] | moncho_apa@hotmail.com |
f9851548bffc16ba63bf28b707f73f90b8c199ab | e2590e0a78046a22131b69c76ebde21bf042cdd1 | /ABC201_300/ABC245/A.py | 391df3caa20a5d971169d88fe7fb49746b01f2c0 | [] | no_license | masato-sso/AtCoderProblems | b8e23941d11881860dcf2942a5002a2b19b1f0c8 | fbc02e6b7f8c6583e5a4e5187463e0001fc5f4d8 | refs/heads/main | 2023-01-22T23:57:58.509585 | 2023-01-21T14:07:47 | 2023-01-21T14:07:47 | 170,867,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py |
A,B,C,D = map(int, input().split())
takahashi = A*3600 + B*60
aoki = C*3600 + D*60 + 1
if(takahashi < aoki):
print("Takahashi")
else:
print("Aoki")
| [
"masato@seijinnoMacBook-Pro-2.local"
] | masato@seijinnoMacBook-Pro-2.local |
8890966b3630ad7736f037f9f507835ae70ccea5 | a52c3e4dfd4ef3777c9a2d5da4e762ce68d272df | /paperserver/papers/models.py | 2a66d39e54358f65180d13f693dfde6aefd32aad | [] | no_license | kevinkarsch/research-paper-database | 2b1117d639b0383a770ec7a73c046c846ccc4faa | cbb3aa154ea0993518920cd5b93f0817e0d76a0c | refs/heads/master | 2020-05-27T13:04:56.348689 | 2019-05-28T05:16:39 | 2019-05-28T05:16:39 | 188,630,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | from django.db import models
import bibtexparser
from itertools import cycle
def rotate(lst): #Places the last element first
return lst[-1:]+lst[:-1]
def extractAuthors(bibtexEntry):
cleanAuthorList = [] #Create an author list as "First1 Last1, First2 Last2, etc"
authorList = bibtexEntry.get("author")
... | [
"kevin@lightform.com"
] | kevin@lightform.com |
ebe1091d558f273639c056783c9063c71c194a84 | 4c59f79e178c78790ea6e6947bf894c8246d626c | /start.py | 62f851d982272fbd29a849c27cdffef895a7007c | [] | no_license | shitalkallole/Projects | a1b08f0acdaace717587ffbb64ec1fb2dc50e76e | c2f8306589406d64becd2d156a2e8be69ae59053 | refs/heads/master | 2020-04-13T18:36:17.799229 | 2019-01-08T14:27:14 | 2019-01-08T14:27:14 | 163,379,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | import tkinter
import tkinter.ttk as ttk #to use advanced widget
from tkinter import messagebox #to use messagebox
from tkinter import filedialog #to use file dialog
#Definition of required function
def btn_Source_Function(arg=None):
filename = filedialog.askopenfilename(filetypes=[("JPEG file","*... | [
"noreply@github.com"
] | shitalkallole.noreply@github.com |
804945d5c0cfcccdcae65df9e9c64532fcd33c8a | f947dead9b44f2a6b7d1f7de24c204d1c654d3e0 | /networks/svhn/complicated_ensemble/submodel3.py | 652d95f826868c8c0516ed60069f9841b3ea05a8 | [] | no_license | Adamantios/NN-Train | cf0b981eab806598a1b3d5961287c524d26472b4 | 160a5c7a3f06b27ee0e740f6dec940514af6bd2c | refs/heads/master | 2023-04-03T11:50:41.301950 | 2021-04-08T15:12:59 | 2021-04-08T15:12:59 | 207,342,259 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | from typing import Union
from numpy.core.multiarray import ndarray
from numpy.ma import logical_or
from tensorflow.python.keras import Model
from tensorflow.python.keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, Dropout, BatchNormalization
from tensorflow.python.keras.regularizers import l2
from networks.to... | [
"manoszaras94@gmail.com"
] | manoszaras94@gmail.com |
8ea951c1ee2703c52bb8b28fb2c185f677da2081 | 5e471e97ec337e4985a924cf31f2d5d9980de4a0 | /oakland-scraper/legistar/base.py | 915e5ff73e6e0a4b3dbbcaea6324aae35371e9a6 | [
"MIT",
"BSD-3-Clause"
] | permissive | jberardini/oakland-councilmatic | e3fddcd92d2639c9c711ff2be34a281335878575 | ffa6a5ea296cb993a8a5311622c3593ccfb4f939 | refs/heads/master | 2021-01-22T05:06:03.956618 | 2017-02-15T18:04:04 | 2017-02-15T18:04:04 | 81,616,351 | 0 | 1 | null | 2017-02-15T16:17:54 | 2017-02-10T23:30:38 | Python | UTF-8 | Python | false | false | 7,318 | py | #where is Scraper coming from? Do I need to install something?
from pupa.scrape import Scraper
import lxml.html
import lxml.etree as etree
import traceback
import datetime
from collections import defaultdict, deque
import itertools
import pytz
import icalendar
import re
class LegistarScraper(Scraper):
date_format=... | [
"jberardini@gmail.com"
] | jberardini@gmail.com |
83bf2988452341236593ec0b18f7c8fbb05f18af | 9fcd6a91132fd12731d259fe7d709cdf222381bb | /aquaq/4/foo.py | 49f7ccdf31a31dd12138a371284f70236a68ab78 | [] | no_license | protocol7/advent-of-code | f5bdb541d21414ba833760958a1b9d05fc26f84a | fa110cef83510d86e82cb5d02f6af5bb7016f2c7 | refs/heads/master | 2023-04-05T15:33:26.146031 | 2023-03-18T14:22:43 | 2023-03-18T14:22:43 | 159,989,507 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | import sys
from math import sqrt
def parse(line):
return line.strip()
xs = int(sys.stdin.read())
def factors(n):
j = 2
while n > 1:
for i in range(j, int(sqrt(n+0.05)) + 1):
if n % i == 0:
n //= i ; j = i
yield i
break
else:
... | [
"niklas@protocol7.com"
] | niklas@protocol7.com |
3d2b9c57cd9092a9f79ef33bebeab6f8683f6ab6 | 585bac463cb1919ac697391ff130bbced73d6307 | /8_StringtoIntegerAtoi/solution_1.py | c3ead2e6e4d8c093d7690f134b94737d7b047caa | [] | no_license | llgeek/leetcode | ce236cf3d3e3084933a7a4a5e8c7766f7f407285 | 4d340a45fb2e9459d47cbe179ebfa7a82e5f1b8c | refs/heads/master | 2021-01-22T23:44:13.318127 | 2020-03-11T00:59:05 | 2020-03-11T00:59:05 | 85,667,214 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py |
class Solution:
def myAtoi(self, numstr):
"""
:type str: str
:rtype: int
"""
numchar = set('1234567890')
numval = dict(zip(numchar, map(int, numchar)))
numstr = numstr.strip(' ')
if not numstr or numstr[0] not in (numchar | {'+', '-'}):
r... | [
"angleflycll@gmail.com"
] | angleflycll@gmail.com |
5df75cc146a550e84c4e6ca4ebff983f6ac56c8e | 1499592f38adcb841e3606c3b5e414cee7200cef | /setup.py | e3beb0cccc14a0cc30ed39122cb3f74746ca3ee3 | [] | no_license | vardaofthevalier/coding_practice | 8e3a8258674ed4551f4ac5193ad7eb4aaf4540f1 | 9b3162b07c9e47feb02938136adc4f0b0a90e053 | refs/heads/master | 2021-08-23T06:14:20.723957 | 2017-12-03T20:52:54 | 2017-12-03T20:52:54 | 110,907,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from distutils.core import setup
setup(
name = 'data_structures',
packages = [
'graph',
'heap',
'linked_list',
'queue',
'stack',
'tree',
'util'
],
version = '0.1'
)
| [
"abbyhahn@level11.com"
] | abbyhahn@level11.com |
6067ab1f5fe512cb7ca63b9306da128f5e6197bc | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_pragma419.py | 1264ba91718f83a89f2ae4128fae4fe48b3de51f | [
"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 | 2,626 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=16
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
class Opty(cirq.PointOptimizer):
def optimization_at(
... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
d2d13ed9606cb1b996bbda67450f74ea39612ca7 | e3af62bb620675ff351a39d1c8662b60c87d23b2 | /Cloud_Project_3.0/plots.py | 4f418315d091f7fe4b33d7f2f45db24f4ce25cfe | [] | no_license | shipra1101/twitter-sentiment-visualization | 61212f9e87ea3bddecffd58bb70806ea655cebe0 | b1ecbcd997119ed14f356528d8e3bb935ae3f5d6 | refs/heads/master | 2020-03-25T12:52:04.900449 | 2018-08-07T00:41:27 | 2018-08-07T00:41:27 | 143,797,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 22 22:51:57 2018
@author: deeks
"""
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(5)
y = np.array([53,54,76,100,76])
plt.gca().set_color_cycle(['red', 'green', 'yellow'])
plt.plot(x,y)
plt.plot(x, 2 * y)
plt.plot(x, 3 * y)
plt.le... | [
"noreply@github.com"
] | shipra1101.noreply@github.com |
431b16e4c7b6842e39ee6ee82c0aba8b8003552f | f928517af3ad26f4792929a9f5efb609469d40a2 | /indeed.py | 5c8b5cf665dda3a2d815d6e8bbb66217a9b90330 | [] | no_license | HBanana-1/jobs | d2b2b21849014a2ffd3e0e345a2a7a2d645f2f4f | b00b9f9bda748a3a32da2e5e2247fce7ca21ebd7 | refs/heads/master | 2023-04-08T22:49:45.312479 | 2021-03-25T03:33:20 | 2021-03-25T03:33:20 | 351,297,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | import requests
from bs4 import BeautifulSoup
LIMIT = 50
URL = f"https://www.indeed.com/jobs?q=python&limit={LIMIT}"
def get_last_page():
result = requests.get(URL)
soup = BeautifulSoup(result.text, "html.parser")
pagination = soup.find("div", {"class": "pagination"})
links = pagination.find_all('... | [
"64995628+HBanana-1@users.noreply.github.com"
] | 64995628+HBanana-1@users.noreply.github.com |
b59f489dc8e9b4b348f02f911acb7201b91696eb | 9238c5adf211d66cbe9bea5a89e97ca02c31da9a | /bin/.venv-ansible-venv/lib/python2.6/site-packages/ansible/runner/lookup_plugins/indexed_items.py | c1db1fdee2cf1ed8939d21ea5ff9034416395850 | [
"MIT"
] | permissive | marcusramberg/dotfiles | 803d27fb88da8e46abb283b2e2987e51a83b08aa | 413727089a15e775f532d2da363c03d9fb3fb90a | refs/heads/main | 2023-03-04T17:08:40.123249 | 2023-03-01T07:46:51 | 2023-03-01T07:46:51 | 7,285,450 | 4 | 2 | MIT | 2022-12-22T14:39:35 | 2012-12-22T11:57:42 | Python | UTF-8 | Python | false | false | 1,418 | py | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible 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 of the License, or
# (at your option) any lat... | [
"marcus.ramberg@usit.uio.no"
] | marcus.ramberg@usit.uio.no |
dfbc874a52ba184f5c211419fb24206e136ef3cf | 508c5e01aa7dce530093d5796250eff8d74ba06c | /code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/schemas/catalog_objects/columns/__init__.py | eebf05b48c6479d4365c76b52ad6186b9a6bcc35 | [
"PostgreSQL",
"MIT"
] | permissive | jhkuang11/UniTrade | f220b0d84db06ff17626b3daa18d4cb8b72a5d3f | 5f68b853926e167936b58c8543b8f95ebd6f5211 | refs/heads/master | 2022-12-12T15:58:30.013516 | 2019-02-01T21:07:15 | 2019-02-01T21:07:15 | 166,479,655 | 0 | 0 | MIT | 2022-12-07T03:59:47 | 2019-01-18T22:19:45 | Python | UTF-8 | Python | false | false | 10,760 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
""" Implements Co... | [
"jhkuang11@gmail.com"
] | jhkuang11@gmail.com |
82c1555d18d78cdb7c440ced3af6c7392fc7de65 | c5829a0e61f55cddb420f7a17f3e8ba847ab9fd5 | /aoc/day10.py | 7f760165922a1dfec6bf79cd2ddcaa57cabc6e00 | [] | no_license | jhultberg/AoC2020 | c8590dcdb606cd298b88365a01b52f11d55c96f8 | 92863da772959be4c6e0211f818c021c83b0f66f | refs/heads/master | 2023-02-01T01:01:37.735294 | 2020-12-20T19:54:26 | 2020-12-20T19:54:26 | 317,626,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | import os
current_dir = os.getcwd()
filename = "data/day10.txt"
#filename = "test.txt"
path = os.path.join(current_dir, filename)
all_jolts = []
with open(path) as f:
for line in f:
all_jolts.append(int(line.strip()))
all_jolts.sort()
def count_jolt_differences(jolts):
device_jolt = jolts[-1]
cu... | [
"johanna.chultberg@gmail.com"
] | johanna.chultberg@gmail.com |
6c839eb2e83f8a53e15346b86d09b48d10b1a008 | 4500b0c36e268fd5ae2af55b594a799b2279301d | /onlinecart/wsgi.py | a70bb449889a91d5ea4cb7aa4cc4bf4c867888d8 | [] | no_license | abhishekbudruk007/online_vegetable_shopping | 655242fc36365b892d2899ad779fa1e8822d72ef | 6407b696d5fe968dad73e0395957915424de88d7 | refs/heads/master | 2023-07-11T16:00:15.457492 | 2021-08-21T11:17:34 | 2021-08-21T11:17:34 | 396,239,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for onlinecart 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"Abhishek.Budruk@Cerner.com"
] | Abhishek.Budruk@Cerner.com |
1bbebeeb1e698b8dd505518cceb431440beb28b2 | 50ad61dbbef3a4bb4076da57038bf0b1118acca3 | /source/sentdex_data_episode22.py | f2b1ba284c0a30983c72b64dd8619ddb24523750 | [
"MIT"
] | permissive | LuposX/sentdex_fixed_market_stock | 3af98c06decfa5046252bf535b4742279f14111e | 7a0d23702b8005002a0e767c4d7866e27da84b5b | refs/heads/master | 2021-09-09T15:54:44.783281 | 2021-09-04T09:51:16 | 2021-09-04T09:51:16 | 201,447,377 | 2 | 1 | MIT | 2021-09-04T09:51:17 | 2019-08-09T10:36:17 | Python | UTF-8 | Python | false | false | 9,029 | py | # for episode 22
import pandas as pd
import numpy as np
import os
import re
path = "../datasets/intraQuarter"
def Forward(gather=["Total Debt/Equity",
'Trailing P/E',
'Price/Sales',
'Price/Book',
'Profit Margin',
... | [
"noreply@github.com"
] | LuposX.noreply@github.com |
cbeaf9e337285b006d483a4735cb492f8bf665fe | 11d75798b8c9ef545a898e84141f55f89b53154a | /node_modules/webpack-dev-server/node_modules/fsevents/build/config.gypi | fe1e3504113d780d265c036032cdb33652c49653 | [
"MIT"
] | permissive | famone/eatmeat.store | f2d4c59c4d934a380d8725cc27e69867dd41fe4c | e5d084d0f29cb02d9c00550bb0374a9e2b0350ac | refs/heads/main | 2022-12-24T11:17:32.669998 | 2020-10-07T13:19:04 | 2020-10-07T13:19:04 | 301,674,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,671 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"kt@webink.site"
] | kt@webink.site |
829a63cc03a87abff3d906ce6795c429b94e5d15 | 888df2b6fcdd50442f7f174268617b3f161a3581 | /fileReadTest.py | 387dc4d95d6283b62c392b8bca6b247723febe25 | [] | no_license | onethousandth/MyTest | a85764353c6bf8bd8d39e727245ec55ed7bfc108 | 4397455ac200a7cb0289301e3baa12911ba77729 | refs/heads/master | 2020-12-27T01:16:30.005275 | 2020-04-30T06:28:50 | 2020-04-30T06:28:50 | 237,715,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # -*- coding:utf-8 -*-
#
# Copyright (C) AddyXiao <addyxiao@msn.cn>
#
#
"A read file Test"
__author__ = "AddyXiao"
__author_email__ = "addyxiao@msn.cn"
fpath = r"D:\Documents\Python\MyTest\restrictClass.py"
with open(fpath, "r") as f:
s = f.read()
print(s)
| [
"addyxiao@msn.cn"
] | addyxiao@msn.cn |
5e97869363d3fbbbca63f2748231cad5c5937b2f | 5b4529582c9e1c6d832387672cc295e775cdd39a | /day014/person.py | b29afd74aa7f7b31c0bec51f3fef2ced814adb32 | [] | no_license | gitxf12/demotest | 8ccbc7f050eaefb96a6399171e103495371f403a | 5d4807d7e3a4e869038ceb1f08356d0caf40f6f5 | refs/heads/master | 2023-04-21T06:16:00.368012 | 2021-05-31T08:37:08 | 2021-05-31T08:37:08 | 359,756,091 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | class Person:
def per(self, name, sex, age):
print(name, sex, age)
class Worker(Person):
def word(self):
print("干活")
class Student(Person):
num = 0
def study(self,num):
print("学习,他的学号是:",num)
def sing(self,num):
print("唱歌,他的学号是:",num)
class Test(Person):
person ... | [
"sxfeng92@163.com"
] | sxfeng92@163.com |
180a57840e3c3e6069fa2aac7dee3904a77be205 | 36e23fd7c98de454b1918f3eea4df7fc2472b00f | /createPowerProfile.py | 1ca6f61b8db1193b5f66b3b2c2cdc3cd6a9f662b | [] | no_license | gcbanevicius/barcelona | d3c647e58e4a028cc764ac7cdbd004fe12646edd | 67093742085f2f0c22a28257e8933fa9659014c6 | refs/heads/master | 2021-01-25T04:01:52.622342 | 2015-05-04T16:16:32 | 2015-05-04T16:16:32 | 31,486,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,297 | py | #!/usr/bin/env python
from __future__ import print_function
import sys
import re
def adjustTime(time, startTime):
# get rid of decimal to avoid weird float precision issues
time = time * 10
startTime = startTime * 10
time = time - startTime
time = time/10
return time
def getMethodTuples(meth... | [
"gcbanevicius@gmail.com"
] | gcbanevicius@gmail.com |
c8a04e2c59e4b1e0a88a4c90a5048e22cdd6370b | 1d36543d7c137dbe839fd9f999905300a91ec7d5 | /SortingAlgorithm/ShellsSort.py | ad518e39667e3737bbde87a73f2020808fae56e9 | [
"Apache-2.0"
] | permissive | weaponsX/SortingAlgorithmForPython3 | be893b8b645f5e09cd47600cffe813ff8f0cbd5b | 8b5e1dd3aaf30b74c53ff643a225024ef8fbac13 | refs/heads/master | 2020-03-20T19:06:12.048174 | 2018-06-17T01:37:33 | 2018-06-17T01:37:33 | 137,621,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | # 插入排序-希尔排序
"""希尔排序是1959 年由D.L.Shell 提出来的,相对直接排序有较大的改进。希尔排序又叫缩小增量排序。
先将整个待排序的记录序列分割成为若干子序列分别进行直接插入排序,待整个序列中的记录“基本有序”时,再对全体记录进行依次直接插入排序。"""
"""希尔排序时效分析很难,关键码的比较次数与记录移动次数依赖于增量因子序列d的选取,特定情况下可以准确估算出关键码的比较次数和记录的移动次数。
目前还没有人给出选取最好的增量因子序列的方法。
增量因子序列可以有各种取法,有取奇数的,也有取质数的,但需要注意:增量因子中除1 外没有公因子,且最后一个增量因子必须为1。
希尔排序方法是一个不稳定的排序方法。"... | [
"houboye@outlook.com"
] | houboye@outlook.com |
53baf5384d16072d3e3c52ba7eeb141ee3e02581 | 559fe746028a02d7c5e661aa5b0e1c0a5d19f9a2 | /home/consumers.py | 14878bdbde10524260eea947d83af60325115970 | [] | no_license | Code-Institute-Submissions/crypthome | 55ac3497234ad7c083b18f88c35ee9b69ec1e989 | d65772a11c15197efd89000095e3b3c32a14ed2a | refs/heads/master | 2023-07-04T14:07:45.957217 | 2021-08-14T09:14:22 | 2021-08-14T09:14:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | import json
from channels.generic.websocket import AsyncWebsocketConsumer
# THE CONSUMER PROCESS WAS STUDIED ON THE PYPLANE YOUTUBE CHANNEL
# Instance of AsyncWebsocketConsumer class.
# We are accepting the incoming Websocket connection.
# We want to add the incoming connection to a group of channels.
class HomeConsu... | [
"francescosaponaro5@gmail.com"
] | francescosaponaro5@gmail.com |
2c7757062a92f6ee32ae03bdb602c6c1dd8193da | f14003dabe97bf1a1d44592415fdf82b7d1fbd6c | /apps/idcs/views.py | 8c3eee9b23045320da40f96729257f22554c964f | [] | no_license | eternalstop/opsweb | 45a879678f3180ce25f9cca2b35179f48149dd83 | 4cda7e33f45976a033f6fd11f0f36190894c1b0e | refs/heads/master | 2020-03-19T09:48:27.985177 | 2018-09-08T07:42:43 | 2018-09-08T07:42:43 | 136,318,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from .models import Idc
from .serializers import IdcsSerializers
from rest_framework import viewsets, generics
class IdcViewset(viewsets.ModelViewSet):
"""
retrieve:
返回指定IDC信息
list:
返回IDC列表
update:
更新IDC信息
destroy:
删除IDC记录
create:
创建IDC记录
partial_update:
更新IDC部分字段
"""
queryset = Idc.objects.all()... | [
"18655660717@163.com"
] | 18655660717@163.com |
848b1cb82de29908abfeed4866e0e6fdb3fa6e4f | f0a722b1e6ab4fb3387adcc93cb42df834b03785 | /stonehenge_game.py | 4082456961a33f21af21dc01d92180796b281c9a | [] | no_license | sultansidhu/MiniMax-SubtractSquare | 5a54d44cfe859f3b1772522dc0f79783dbbee6e7 | 9837ba229bbfdafbd2bf3f8609b215ffca8a19a3 | refs/heads/master | 2020-04-05T13:16:37.984612 | 2018-11-09T17:24:05 | 2018-11-09T17:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,288 | py | """A file representing the class Stonehenge, which is
subclass of Game, and the implementation of its functions.
"""
from game import Game
from stonehenge_state import StonehengeState
from typing import Any
class StonehengeGame(Game):
"""A class representing the game of Stonehenge, inheriting
from Game and im... | [
"sultansinghsidhu@gmail.com"
] | sultansinghsidhu@gmail.com |
fb590462194433540bece6c1a53347a3460d4404 | 2e2444bf0322f084fad4a0699166479cbdfeaad6 | /Turtle graphics/Kaleido-spiral/kaleido2.py | 02885fddf14fd11acea2c9d55fbe40856fb2e908 | [] | no_license | Puneeth1996/Coding-Projects-in-Python | ca5583541b23cdd5e897e2b0f7b4d1ee9411a17c | a061610392132b8682e13aa5a7d9b9cfcfb3efa3 | refs/heads/master | 2022-04-05T14:27:05.071075 | 2020-02-17T12:23:17 | 2020-02-17T12:23:17 | 239,437,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | import turtle
from itertools import cycle
colors = cycle(['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
def draw_shape(size, angle, shift, shape):
turtle.pencolor(next(colors))
next_shape = ''
if shape == 'circle':
turtle.circle(size)
next_shape = 'square'
elif shape == 'squ... | [
"38997799+Puneeth1996@users.noreply.github.com"
] | 38997799+Puneeth1996@users.noreply.github.com |
b44e11cad4abf27ea17279b0c0b81774cd2a3641 | 3e84230328962ca40349694c3e11c651f46c1396 | /predict.py | 13a6760820de59bb5f36e4795d8faeff275b1d49 | [
"MIT"
] | permissive | Cozyzheng/RS_DL_Junyi | 578b9a968f762f50b85beeb5f8e154c74b68845a | c2c894ee9a2c6d4d5ffba6504c3c5f55ffda03d3 | refs/heads/master | 2022-12-28T13:16:00.946021 | 2020-10-13T14:45:58 | 2020-10-13T14:45:58 | 281,114,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | def predict(args):
# load the trained convolutional neural network
print("[INFO] loading network...")
model = load_model(args["model"])
stride = args['stride']
for n in range(len(TEST_SET)):
path = TEST_SET[n]
#load the image
image = cv2.imread('./test/' + path)
# pre... | [
"45881976+Cozyzheng@users.noreply.github.com"
] | 45881976+Cozyzheng@users.noreply.github.com |
994ea97237862eb028bec8858075b318c1940f77 | 7803d6689b89b8e903082ec7009ae9181c404422 | /Array/XOR queries.py | 0df7036c43ffef5e3f2f21d6e74186aad4026027 | [] | no_license | vivekpapnai/Python-DSA-Questions | 96d0e23cd27bb4fda7fde56277215b9bd35e23b1 | 827a2199734476f3e74cc7bae281e74397e7cf47 | refs/heads/master | 2023-07-08T08:58:13.288292 | 2021-08-16T03:03:29 | 2021-08-16T03:03:29 | 396,594,002 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | """https://www.codingninjas.com/codestudio/guided-paths/data-structures-algorithms/content/118820/offering/1381864?leftPanelTab=0
"""
def xorQuery(queries):
# Write your code here.
arr = []
xor_array = [0]*10001
for i in queries:
var = i[0]
value = i[1]
if var == 1:
... | [
"papnaivivek@gmail.com"
] | papnaivivek@gmail.com |
dd9e778e66687a02aa77859c092f93d9d7f1db24 | 4fe4f39238c0a3ca571ed4a986dbf60475a2cc34 | /views/admin.py | 8949d2aef8c5ceea0969a4cd075ea59bffcf59ef | [] | no_license | Lucky13VW/HSTT | 09af09a88b3dc716e744f2a8ec6cd45c7f362b75 | b6bce1bb98d6d3d04c6e1dd5439d0223020506cb | refs/heads/master | 2020-04-23T16:32:50.964973 | 2019-09-01T15:37:52 | 2019-09-01T15:37:52 | 171,301,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,569 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Admin
~~~~~~
A microblog example application written as Flask tutorial with
:copyright: (c) 2015 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
from flask import Blueprint, request, session, redirect, url_for, abort, \
rende... | [
"vw01eipi@outlook.com"
] | vw01eipi@outlook.com |
11639a83ed7e80e7cb095bcca8e092b57a505042 | b9767a977f939e43dbddd750cf04bdc0719de85b | /tests/stores/genericstoretests/generic_store_object_tests.py | ea4eda5afeacdac8b3331d216679dda243634e7e | [] | no_license | mididecouverte/backupserver | 211e9a0489ba28aefd3b7d94646aa2e358daa24d | 8658429287ee73d6d9588812b92928c9b6b5fb2d | refs/heads/master | 2020-04-21T11:19:17.937340 | 2019-02-07T04:51:40 | 2019-02-07T04:51:40 | 169,520,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | def test_object(store):
test_store_object(store)
test_apps_object(store.apps)
def test_store_object(store):
assert store
assert store.apps
assert store.reset
assert store.clean
def test_apps_object(apps):
assert apps.create
assert apps.get_all
assert apps.get
as... | [
"frederic.jacob.78@gmail.com"
] | frederic.jacob.78@gmail.com |
9d802b5518f8b855cfddced0fee8fd0122af90e4 | e3df0e321e8bcf6e7d70644dccf5ea4f109580e8 | /byteprint/bp/contrib/filebrowser/functions.py | 8175694b0b8e1da84183ad3d443df8038ec46234 | [
"BSD-2-Clause",
"MIT"
] | permissive | colingourlay/byteprint | 65af7b9e01299c1e62f4cb03c5641e12fcf39860 | 184ddb5eac48a48507e20553f82b2f16c1a29fda | refs/heads/master | 2021-01-13T02:25:56.834846 | 2010-05-20T14:47:53 | 2010-05-20T14:47:53 | 677,022 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,805 | py | # coding: utf-8
# imports
import os, re, decimal
from time import gmtime, strftime, localtime, mktime, time
from urlparse import urlparse
# django imports
from django.utils.translation import ugettext as _
from django.utils.safestring import mark_safe
from django.core.files import File
from django.core.files.storage ... | [
"colin.j.gourlay@gmail.com"
] | colin.j.gourlay@gmail.com |
5735f84124f9710f4cc65bf8557a43eb141d1095 | 9519804cf9a0148ea357bcc26332389c6e006554 | /byld/migrations/0010_team_atm_ongoing.py | 72592ff16c30e0cf82b1d5205bff94403a5b9d78 | [] | no_license | darkryder/scripting-challenge-byld | ea8f619605d28fbfd016f87a1511350b877c1200 | 5c47eb00ca879a070d56316f2c3a3f1f13ab385d | refs/heads/master | 2016-08-11T13:15:42.256291 | 2016-03-06T22:46:10 | 2016-03-06T22:46:10 | 43,915,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('byld', '0009_team_token'),
]
operations = [
migrations.AddField(
model_name='team',
name='ATM_ongoin... | [
"sambhav13085@iiitd.ac.in"
] | sambhav13085@iiitd.ac.in |
744ff7cf7c01af7e919ca461dfa5ad71b2e664f8 | 0ed37e0f906981f93e210d32ab93735c31755c6e | /fib.py | 930a51fbb2ba32dd43a7b98a5d0a379e681aabc6 | [
"MIT"
] | permissive | helmet33/python-intro | 34541ab52d4faecb6cf6ed694b745603828dc51c | 83c1805476c859fc089681c2bf9cef7c82c01bf3 | refs/heads/master | 2021-01-21T15:44:02.059195 | 2016-02-10T01:50:52 | 2016-02-10T01:50:52 | 49,538,182 | 0 | 0 | null | 2016-01-13T00:29:03 | 2016-01-13T00:29:03 | null | UTF-8 | Python | false | false | 54 | py | a, b = 0, 1
while b < 10:
print(b)
a, b = b, a+b
| [
"garrettjor@gmail.com"
] | garrettjor@gmail.com |
a0f2431d4fbfc2daae25157ac2b08923e7b6e6bc | 7ba48f82dac0c19d41d7da51cda3aef5173dd77c | /myvenv/Scripts/django-admin.py | cdd70cd34e3559582d8dce449f4794969a6c341a | [] | no_license | saiful7/Betasmartz | 09af8b11f816adf3c2dc41ad5a70f170d6dbb981 | 337a79b59498f42294f19e53eea9cd1c8019ee48 | refs/heads/master | 2022-05-10T04:14:31.382569 | 2018-11-23T06:50:45 | 2018-11-23T06:50:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | #!f:\myworks\django\betasmartz\myvenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"31435513+blueskaie@users.noreply.github.com"
] | 31435513+blueskaie@users.noreply.github.com |
72809080d819eb5f8526eb2e26c9d06c758bdae5 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/galex_j11365+7506/sdB_GALEX_J11365+7506_coadd.py | 86d194fd14c5f0af121d8195d953f4cb63043f28 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[174.140292,75.114933], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_GALEX_J11365+7506/sdB_GALEX_J11365+7506_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCU... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
0d6acf4cd93adc8b3392b2568ad6027f977073b8 | e91991aa2c515d538a485bdf93b7c99f94ff7b31 | /Exercise Files/dash_example.py | 84b631ec4688c9339458caf26921512d6099d438 | [] | no_license | alpitabrol/learning_basic_python | a05a22047cc5c6b852c1dbca4afbe388da3849bb | caa87d0449a845fb517ee7fdad3ce45dab9c96ef | refs/heads/master | 2022-09-23T01:32:05.226796 | 2020-06-05T03:41:52 | 2020-06-05T03:41:52 | 261,611,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
external_stylesheets = [‘https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
app.layout = html.Div(children=[
html.H1(children=’Weather Dashboard’),
html.Div(children=... | [
"apt.abl@gmail.com"
] | apt.abl@gmail.com |
50e6b9307c5b51c44370f095ddb4e531cd67c800 | 1a1a9e1712ae5fe7b68b6063215df97d150887e8 | /venv/Practice.py | 0a5739eb286285343e07ad619296af190ae2034e | [] | no_license | YashaswiniPython/pythoncodepractice | 159835856b0122f7f041c8547e2bafd00fea0c38 | 66842413d1250a88b36c715f3413a7a02a136b62 | refs/heads/master | 2022-10-20T14:43:53.778464 | 2020-07-17T12:30:03 | 2020-07-17T12:30:03 | 280,417,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,471 | py | #Class example
'''class Student:
print("first class program")
def __init__(self):
self.name = "yashu"
self.age = 26
self.marks = 80
def talk(self):
print("Student name is:",self.name)
print("Student age is:", self.age)
print("Student marks is:", self.marks)
o... | [
"yashaswinicr@gmail.com"
] | yashaswinicr@gmail.com |
997575f07ab4df3c266c0a346dd7d37fef237fa3 | 1d996e00faa7f8fd7d0e6d1a6abfa6cba74c6f25 | /wizard/__init__.py | 2e344373032fadf72651b7961c67a20a1bf84398 | [] | no_license | Adiba07/Gestion-des-Formations | cc3cb28af56da5556ff6e5c9e008e4f66644edd1 | 0db85ad5ccb3d42e2d6b15daf1bda0d4e31625d5 | refs/heads/master | 2020-05-01T11:59:22.159990 | 2019-03-24T19:04:18 | 2019-03-24T19:04:18 | 177,456,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | from . import wizard_attestation | [
"boufeldjaadiba7@gmail.com"
] | boufeldjaadiba7@gmail.com |
95b8a2659fbccbdff8f71b7c5cbd59c09e079c30 | 5f830b9a4dddac8067224982d03c4fb67a175441 | /geodata/estat.py | df0a7469e9bbf0a0260f314a2317fa9ab3501246 | [] | no_license | weatherbox/warning-area | 741d7d75f44a21d24075d992c8214dcd7e6c1fb5 | 44b57d3752da53900cc070351cd79f97fbf88c4b | refs/heads/master | 2021-07-01T08:58:40.211262 | 2021-06-24T06:49:08 | 2021-06-24T06:49:08 | 91,368,122 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py | # -*- coding: utf-8 -*-
import requests
import json
import zipfile
import re
import os, sys
list_url = 'http://e-stat.go.jp/SG2/eStatGIS/Service.asmx/GetDownloadStep4ListTokeiTag'
file_url = 'http://e-stat.go.jp/SG2/eStatGIS/downloadfile.ashx'
def get_geojson(code):
filename = 'data/census-2010-' + code + '.zip'
... | [
"yuta.tatti@gmail.com"
] | yuta.tatti@gmail.com |
7794eae49f53c875ee5461f8a2f73095afbad8cb | 485ebc2821699db03fcdbf4e323c3f8a213427c0 | /catkin_ws/src/depth_controller/nodes/pressureToDepth.py | 3b25270df523eaec86fc7d106fcdf369c01f9c31 | [] | no_license | CarlGiest/FormulasAndVehicles | 5cf9039f72a8205142139bd3ddcc3c55270a8760 | f14daa2d07fa7abbf360ec7a045b2539c6d4ccf0 | refs/heads/main | 2023-02-26T00:12:08.794670 | 2021-02-03T21:12:54 | 2021-02-03T21:12:54 | 333,060,933 | 2 | 1 | null | 2021-02-01T19:00:24 | 2021-01-26T11:17:40 | Python | UTF-8 | Python | false | false | 1,072 | py | #!/usr/bin/env python
import rospy
from std_msgs.msg import Float64
from sensor_msgs.msg import FluidPressure
depth_buf = [-0.5] * 5
depth_buf_len = 5
def pressure_callback(msg, depth_pub):
pascal_per_meter = 9.81*1000.0
depth_tmp = - (msg.fluid_pressure - 101325) / pascal_per_meter
depth_buf.append(dep... | [
"carl.giest@tuhh.de"
] | carl.giest@tuhh.de |
853246bda598836b4a320111ce029dcc3fb723ae | 583eb4f8331fbc6ab99b194602aa4bf7da766c68 | /tests/array_in_struct.py | 5048c82cf62aeeeb7a99e74bc1a43fff406e0a65 | [] | no_license | stephenrkell/pycallocs | 127442140cbb815c419a3147357b316d26f03997 | 12439216bb7e774003657c61f19f4dcca45f89cc | refs/heads/master | 2023-03-16T14:51:14.377589 | 2019-07-26T13:01:45 | 2019-07-26T13:01:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | import elflib
elflib.__path__.append("libs/")
from elflib import arrays as m
print(m.make_empty())
na = m.make_named_array(2)
frodo = na[0].first_name
frodo.__init__("Frodo")
na[0].last_name.__init__("Baggins")
na[1].first_name.__init__("Samsaget")
na[1].last_name.__init__("Gamgie")
print(na)
| [
"guillaume.bertholon@ens.fr"
] | guillaume.bertholon@ens.fr |
78f942ff68dd68fe6a0c09e93d4bcc23a038b2ac | 86f21b10e09eed254bc3b32f6ff00b7ba1544c0f | /4_labelGenes/read_gene_differences.py | e68a3257ee31fd61446af8bf0fce8c51cf14aace | [] | no_license | friesen-labmember/transcriptome-qsubs | b68acff9fdf3509a5def83d48f34561d859316d5 | 6e3f12378dd885ebd8d24835579a69e0d2e4573a | refs/heads/master | 2021-01-10T11:06:45.364224 | 2015-05-27T17:27:13 | 2015-05-27T17:27:13 | 36,379,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | id_dict = {}
for num in ['3', '5', '6', '7', '9', '10', '15', '17', '18']:
print(num + " running")
labelname = "/mnt/lustre_scratch_2012/keithzac/Tf_Analysis/GeneLabelOutput/Tf_" + num + "label"
genefile = open(labelname, 'r')
for line in genefile:
linesplit = line.split(';')
if len(lin... | [
"zkeith.inbox@gmail.com"
] | zkeith.inbox@gmail.com |
7bd59a5ba13b776902a6a545c67280b487cac7a0 | 66e4e9c80c10acbf1ef3de7f9fbda7ef9bf26cb1 | /1/1.py | f2418d6e28683a553212deebe59ee952048e8b22 | [] | no_license | skabber/Euler | 4cdf8d8e8876be1e3f0219dc3223c3baa23b6b12 | 7ef9ce27ea7826e1d77645a322abe3332172be54 | refs/heads/master | 2020-12-25T19:15:01.953835 | 2013-11-23T00:04:18 | 2013-11-23T00:04:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | i = 0
for x in range(1000):
if x % 3 == 0 or x % 5 == 0:
i = i + x
print i | [
"jay@doubleencore.com"
] | jay@doubleencore.com |
318c7af82b32580b12738438640323a737c89b19 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02756/s138002025.py | 247e02cd309a3761321cc5397960055d992aff09 | [] | 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 | 611 | py | import sys
from collections import deque
sys.setrecursionlimit(10**7)
input = sys.stdin.readline
s = input().rstrip()
q = int(input())
d = deque()
d.append(s)
flag = False
for i in range(q):
qq = input().split()
if qq[0] == '1':
flag = not(flag)
else:
if flag:
if qq[1] == '1':... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c9309b6d0c534a669353c5daea9eb7db054ea482 | 6f530dae1cd9a1f978658c8a12ed391c922c61d4 | /genetic.py | 0672e45671503dba127b7d813e5180db9a8ef8b7 | [] | no_license | hoang6k/Evolutionary_stochastic_optimization_portfolio_selection | ce3a7c129b9ea0483dd72483f145217b369bd6e3 | b5e97d597f38877903b008a1fc538175ce7c7894 | refs/heads/master | 2022-11-04T18:39:17.310278 | 2020-06-22T17:48:57 | 2020-06-22T17:48:57 | 243,721,536 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,488 | py | import numpy as np
import pandas as pd
import copy
from time import time
import matplotlib.pyplot as plt
class Chromosome:
def __init__(self, weight):
if weight is None:
weight = []
self._weight = weight
self.calculate_fitness()
def calculate_fitness(self):
if self... | [
"daohoang.hust@gmail.com"
] | daohoang.hust@gmail.com |
3799ecc3442c8d26890be986edb656236b1a0acd | 5d61acc1f9595047861f76b916cd28a167496f9e | /Configuration/GenProduction/python/ThirteenTeV/GMSB/GMSB_L150TeV_Ctau200cm_Pythia8_13TeV_cff.py | d64917c620c1efc06a244556425f385a3c34f2ef | [
"Apache-2.0"
] | permissive | zhangzc11/cms-gmsb-sps8-configs | 1bbd3cf2a45ee187f3e41ff51c409976fd59f586 | 838e6aac1d13251e050c0ee8c4ed26ca0c6cef7e | refs/heads/master | 2020-06-24T05:28:46.872990 | 2019-09-24T20:05:33 | 2019-09-24T20:05:33 | 198,862,590 | 0 | 0 | Apache-2.0 | 2019-07-25T16:03:09 | 2019-07-25T16:03:08 | null | UTF-8 | Python | false | false | 58,252 | py |
SLHA_TABLE = '''
# ISAJET SUSY parameters in SUSY Les Houches Accord 2 format
# Created by ISALHA 2.0 Last revision: H Baer 27 May 2014
Block SPINFO # Program information
1 ISASUGRA/ISASUSY from ISAJET # Spectrum Calculator
2 7.87 18-JUL-2017 13:55:55 # Version number
Block MODSEL # Model se... | [
"zzhang2@caltech.edu"
] | zzhang2@caltech.edu |
b88fa8018053bde432a54f39bb27e9597983acb1 | 6d6996ac49c162217dfaf177d7c403402ebc312c | /Part3_Classification/Section17_Kernel_SVM/kernel_svm.py | 54949b6ff7e9b5ff6a6d0302064f55733ca04251 | [] | no_license | skols/machine-learning-a-to-z | 8b8c777f53a7d04ad672dd676e0527472c5c48ba | 524de4c65240f4a1ad961377d10623bf4023e1cb | refs/heads/master | 2021-07-12T16:33:51.608303 | 2017-10-15T15:57:45 | 2017-10-15T15:57:45 | 103,762,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,465 | py | # Kernel SVM
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import os
# from sklearn.cross_validation import train_test_split # deprecated
from sklearn.model_selection import train_test_split # splitting the dataset
from sklearn.preprocessing import StandardScaler # ... | [
"mikeskolnik75@gmail.com"
] | mikeskolnik75@gmail.com |
17614446989bb73801e73c432e30df3513ccf45e | b21967bb5cf52d766b0c0b5e42581e7c6480f8ae | /Python/No_Idea/main.py | 7fa6352088b63c2915545caae8d4effd025ec081 | [] | no_license | pawel200020/Hackerrank | 39e70dd0f6d57bdef699541688e913b66e798e0c | 5dccafcc57a276408734b1e7e0065cc89ffaf574 | refs/heads/master | 2023-07-04T23:03:54.676525 | 2021-08-28T21:48:59 | 2021-08-28T21:48:59 | 349,766,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | def is_in_set(search, set, size):
for i in range(size):
if set[i] == search:
return True
return False
def happines(data, aLike, bDislike):
happyscore = 0
for i in data:
if i in aLike:
happyscore += 1
if i in bDislike:
happyscore -= 1
prin... | [
"38167430+pawel200020@users.noreply.github.com"
] | 38167430+pawel200020@users.noreply.github.com |
15469192d2d585dadbad141e9287142563e3abb2 | b10ecb3464ae7270e6e522c0ae912d35c1be73cd | /src/Tensorflow Example/main.py | cacc13bbbd0bd73d98c31e9bbd092d7e641a01f1 | [] | no_license | LucDupuy/MachineLearningCourseProject | c5ad7254890af32924dde29cb1dd4c0b4a0eef24 | c4742848d6c5de6727bf01fd53b59d211c347e36 | refs/heads/main | 2023-03-18T00:37:30.311880 | 2020-12-15T11:36:38 | 2020-12-15T11:36:38 | 345,754,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | import train
import cv2 as cv
import matplotlib.pyplot as plt
import numpy as np
from tensorflow.keras import datasets, models
def main():
(x_train, y_train), (x_test, y_test) = datasets.cifar10.load_data()
x_train, x_test = x_train / 255, x_test / 255
# Order pre defined by the existing dataset
clas... | [
"luc.dupuy@ryerson.ca"
] | luc.dupuy@ryerson.ca |
f1b59d3b5c0669abd07c3ab4a3957fc93ca318c2 | 1f4f8484fb2cf8c9833e20da37556741d18decf3 | /networks/facenet_resnet50/facenet.py | 37a7f550b9b5d5cf01081b3cdefbae7a6673fe6a | [
"MIT"
] | permissive | liumusicforever/tf_models_develop_framework | c0d58a3d0860dff7967dac8f9c4e2c573d82f9f6 | 3ce5f02ca61547c1daac8cdacf459411e26cd81b | refs/heads/master | 2020-03-28T02:46:50.419651 | 2018-10-19T12:30:51 | 2018-10-19T12:30:51 | 147,595,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,139 | py | """Functions for building the face recognition network.
"""
# MIT License
#
# Copyright (c) 2016 David Sandberg
#
# 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, includ... | [
"liumusicforever@gmail.com"
] | liumusicforever@gmail.com |
764d6d15c14ad873f0234ccb4ffb024f415c6235 | d5c6dc4ecb02ab945f645321ea2e751fa76e11ac | /RL_AtoB.py | e120c83f069ca09183d2a6dfc0f4b2a9c115fcf9 | [] | no_license | 7enTropy7/Indoor_Nav_Paradigm | 87ccb26b587fc6405277cd93c77dbda3ee3e098b | 84049bddd11671eab5f0060eb62385a6271a9148 | refs/heads/master | 2020-08-22T12:12:09.059482 | 2019-10-22T06:51:59 | 2019-10-22T06:51:59 | 216,391,963 | 1 | 1 | null | 2019-10-21T03:49:20 | 2019-10-20T16:28:22 | Python | UTF-8 | Python | false | false | 1,426 | py | import random
def optimized_Q_route(R, source, destination):
n = len(R)
iterations=10000
lr=0.8
Q = [[0 for x in range(n)] for y in range(n)]
dest = ord(destination)-65
R[dest][dest] = 100
for i in range(n):
if R[i][dest]==0:
R[i][dest]=100
#Training beg... | [
"menon.uk1998@gmail.com"
] | menon.uk1998@gmail.com |
b88fb3856c8f966d03bf464ecd5d95f0239f2d37 | 46318cd429ffeea8200636126e0d1d5a2afb1cb6 | /leapp/tool/commands/new-project.py | 69fcd31c71ddbca1616ef520a98077eecbdffd5f | [
"Apache-2.0"
] | permissive | shaded-enmity/leapp-actors-stdlib | 724852cdf012a7c7579ba8391cb78902b14eafb2 | c5803d193ede0921fc5685b07cfbe9f346c41fc1 | refs/heads/master | 2021-04-27T05:01:15.800353 | 2018-02-21T21:15:22 | 2018-02-21T21:15:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | import json
import os
import click
@click.command('new-project')
@click.argument('name')
def cli(name):
basedir = os.path.join('.', name)
if not os.path.isdir(basedir):
os.mkdir(basedir)
project_dir = os.path.join(basedir, '.leapp')
os.mkdir(project_dir)
with open(os.path.joi... | [
"vfeenstr@redhat.com"
] | vfeenstr@redhat.com |
6a04f79c41b23e87813a590c81d246aec9c7629c | 9d3121d96cac1614466f3e4962306841583c4e7b | /project/trails/pl2.py | 86e0c6695d9c11d6e7719c9be8211611321d9a32 | [
"Apache-2.0"
] | permissive | shivanshseth/Digit-Addition | 8953ad4fc8b1f2104395fd32c27cf79189c54f0b | f4b3fd936f0bc4d208fb7ea460a05afa37911379 | refs/heads/master | 2023-07-18T04:35:06.580121 | 2021-09-04T13:25:46 | 2021-09-04T13:25:46 | 332,754,328 | 0 | 0 | Apache-2.0 | 2021-09-04T13:27:13 | 2021-01-25T13:22:00 | Python | UTF-8 | Python | false | false | 7,321 | py | # -*- coding: utf-8 -*-
# Rapid prototyping notebook
# Commented out IPython magic to ensure Python compatibility.
# %%capture
# ! pip install pytorch-lightning
# ! pip install pytorch-lightning-bolts
import pytorch_lightning as pl
import torch
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_s... | [
"shivansh.seth@research.iiit.ac.in"
] | shivansh.seth@research.iiit.ac.in |
ced87177d99551888e0c399e44434bd6c0a51f74 | 1193248ad31f7bf7d05669b001a0bdfac2fc68c6 | /Algorithm_3D.py | 4a794f2e3d487a9a8585ac8442d4df2b884a89f2 | [] | no_license | alina-rubina/MAV-based-2D-Localization-Simulator | a7e8e76e52e8c044698429347a4a011673d0d35c | d23f6f2079fc71b1f86548a8521949cdb1fcf5d2 | refs/heads/master | 2020-07-01T17:45:55.792269 | 2019-08-08T11:30:57 | 2019-08-08T11:30:57 | 201,243,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,025 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 11 14:06:04 2015
@author: AHMAD
"""
line_colors = ['b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'];
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
import matplotlib.cm as cmx
import matplotlib.colors as colors
i... | [
"noreply@github.com"
] | alina-rubina.noreply@github.com |
23b48d1161fc731e0cd5b5ae57b36e873bdba44d | 1f5a52f905629e5be80ed3511eb9e82a20bfed36 | /research/deeplab/deeplab_demo.py | d58ee576e204d008a2cad19e363121be269d8b30 | [
"Apache-2.0"
] | permissive | ytusdc/models | 69d0e500c658cb9426b0a5539ada900d9c40073f | 6f448355ed3bd82a3d29a65d20c30124da71fc6d | refs/heads/master | 2020-07-09T06:03:08.573446 | 2019-09-23T06:22:21 | 2019-09-23T06:22:21 | 203,901,352 | 0 | 0 | Apache-2.0 | 2019-09-21T12:33:42 | 2019-08-23T01:32:05 | Python | UTF-8 | Python | false | false | 8,730 | py | #!/usr/bin/env python
# coding: utf-8
# # Overview
#
# This colab demonstrates the steps to use the DeepLab model to perform semantic segmentation on a sample input image. Expected outputs are semantic labels overlayed on the sample image.
#
# ### About DeepLab
# The models used in this colab perform semantic segmen... | [
"ytusdc@126.com"
] | ytusdc@126.com |
3f6c643a24b78dc5927f748ae6aa4fd814e71808 | 6206ad73052b5ff1b6690c225f000f9c31aa4ff7 | /Code/Largest Color Value in a Directed Graph.py | 56a05033e7f54f9136ec0df4e44763603d24a482 | [] | no_license | mws19901118/Leetcode | 7f9e3694cb8f0937d82b6e1e12127ce5073f4df0 | 752ac00bea40be1e3794d80aa7b2be58c0a548f6 | refs/heads/master | 2023-09-01T10:35:52.389899 | 2023-09-01T03:37:22 | 2023-09-01T03:37:22 | 21,467,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | class Solution:
def largestPathValue(self, colors: str, edges: List[List[int]]) -> int:
n = len(colors) #Get n.
adjacentList = [[] for _ in range(n)] #Build adjacent list.
for x, y in edges:
adj... | [
"noreply@github.com"
] | mws19901118.noreply@github.com |
720ff468060f91a29093f7fde50ff2efc68544b7 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Cyrl.TUK/Mono_16/pdf_to_json_test_Cyrl.TUK_Mono_16.py | 36dffeac7c5530245ad098709b2f4432a643d279 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Cyrl.TUK/Mono_16/udhr_Cyrl.TUK_Mono_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
003468457e12873c6f587e20be65f2e64a7329ee | 54277288865f738e44d7be1d6b41b19c63af267e | /tools/test_recognizer.py | 56c7f0585fbb0b4f4fc07e33968e2d9425667338 | [] | no_license | scenarios/SR-SVRL | 7b41d29e16cff3020f333efc28a624d85bba4537 | 26e89ecb29355635b10a355f2f16f1b5db9c4e9b | refs/heads/master | 2023-02-26T06:16:13.314491 | 2021-01-30T16:30:57 | 2021-01-30T16:30:57 | 307,295,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,285 | py | import _init_paths
import os
import argparse
from pyvrl.builder import build_model, build_dataset
from pyvrl.apis import test_recognizer, get_root_logger
from mmcv import Config
def parse_args():
parser = argparse.ArgumentParser(description='Evaluation an action recognizer')
parser.add_argument('--cfg', defa... | [
"zyz0205@hotmail.com"
] | zyz0205@hotmail.com |
ce84046a999e5bdece12262d2999942bb929bf77 | 9f3eb4bda3264e89b85c09503d974e1896d919b1 | /omnisound/src/modifier/meter.py | 019fe67c7ae7336014366d187dfecb248463b6a2 | [] | no_license | marksweiss/omnisound | 13a12c3e8dd5adc5dd47ca684f91bcb6fef2ecc5 | f3cd6540780f204d2b2a0971cb5a83c6e28b723b | refs/heads/main | 2022-07-04T05:30:17.910008 | 2022-07-01T03:35:56 | 2022-07-01T03:35:56 | 158,024,007 | 0 | 1 | null | 2020-12-24T23:17:20 | 2018-11-17T20:52:34 | Python | UTF-8 | Python | false | false | 12,360 | py | # Copyright 2018 Mark S. Weiss
from bisect import bisect_left
from enum import Enum
from typing import Union
import pytest
from omnisound.src.container.note_sequence import NoteSequence
from omnisound.src.utils.validation_utils import validate_optional_types, validate_type, validate_type_choice
class InvalidMeterS... | [
"marksimonweiss@gmail.com"
] | marksimonweiss@gmail.com |
e7ad8972acc472e17ae998243663c3795f7d553a | 7cdbe088c4955839f9ab1a9b6d9cbc66df7ea7f9 | /practice/threshold.py | e413a3e303178c1ef666da785775e119bbc5b2fe | [] | no_license | RathanakSreang/OpenCVLearning | 0c4b7bf42ea31e249ec6db157e175c5f0eb42386 | ff450c8f704d0c6d90fe140040008a885c56db1d | refs/heads/master | 2021-01-19T05:48:15.647187 | 2017-06-18T15:29:15 | 2017-06-18T15:29:15 | 87,451,804 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | import cv2
import argparse
import imutils
import numpy as np
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True, help="The Image path")
args = vars(ap.parse_args())
image = cv2.imread(args["image"])
image = imutils.resize(image, height=400)
image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
b... | [
"sreang.rathanak@framgia.com"
] | sreang.rathanak@framgia.com |
416c1f6281e257452e1326147dd19dd16b3801b0 | c548f3ff2e03d325c4381b0da103aae443cc323e | /installer/core/providers/aws/__init__.py | 5d62551f669a8256bb7119d0a9d96e8e71f5c10d | [
"Apache-2.0"
] | permissive | rluta/pacbot | ed88f9bfe7b65d903134a91beef4bd45a0cdbbec | ac5b15bba3b1d9fe88740661b12390d7eb18a4c3 | refs/heads/master | 2020-04-21T02:56:01.409744 | 2019-02-01T22:02:52 | 2019-02-01T22:02:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,573 | py | from core.terraform.utils import get_terraform_provider_file
from core.mixins import MsgMixin
from core.terraform import PyTerraform
from core.terraform.resources import TerraformResource
from core import constants as K
from core.config import Settings
import inspect
import json
import os
class BaseAction(MsgMixin):
... | [
"sanjnur@gmail.com"
] | sanjnur@gmail.com |
9ff010773078c5ed523f2cfb8cdd669a00732bd2 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/c1e83307ed6d44728dcd9c47381a6456.py | 0464da11ccfbee758dc34237c7e4052fcd43f586 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 101 | py | def is_leap_year(year):
return year % 400 == 0 \
or (year % 4 == 0 and year % 100 != 0)
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
0aec6636a6758d7a6a62ca2119618cd6b8e95290 | 51c7a0adbffb3628f89fc8a9e9374239c3d5878e | /3DHMCrunningcalc.py | 74fb4e29db4c4ec19a314ca55f77fe3b6ef72735 | [] | no_license | aczejdo/bosons | 733342d7344fb5fbbf9c7b80860feab0852aa1f8 | 32ae9e39627e9e5789c6cfcc718cfa69e3f06cc7 | refs/heads/master | 2020-03-21T09:57:23.834532 | 2019-07-05T09:57:09 | 2019-07-05T09:57:09 | 138,426,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,742 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 31 13:24:40 2018
@author: Aleks
for things that need updates or answers
ctrl-f [#]
"""
import numpy as np
import matplotlib.pyplot as plt
import os
def corr2point(phi):
#dependent on dimensions of phi
#phi comes in with size (N+2)^d (ghost cel... | [
"noreply@github.com"
] | aczejdo.noreply@github.com |
3c1c6afaf6887cd65e37ce4c202b59569e42751e | 056ef2e008849515aa81487614259280f7f179c1 | /vrt/vfin/dain/my_package/FlowProjection/__init__.py | 0c0fbad8ee44eb0e86a3d5e6792a7af425a059fe | [
"MIT"
] | permissive | darktohka/OpenVideoEnhance | 5361c2af9b091ba3a80e4fc3e3225acbf551e180 | f31746b6b2ad510e18d6343304646bd8fb50a390 | refs/heads/develop | 2023-03-11T20:31:23.258900 | 2021-02-27T09:23:03 | 2021-02-27T09:23:03 | 344,285,821 | 1 | 0 | MIT | 2021-03-03T22:53:05 | 2021-03-03T22:53:04 | null | UTF-8 | Python | false | false | 36 | py | from .FlowProjectionModule import *
| [
"iBobbyTS@gmail.com"
] | iBobbyTS@gmail.com |
506089e8625d3b65a3e62516f0a74ab2b42214b3 | f8b252ca4c381db6457cf24f88acd52fdcda2f48 | /sparrow/spitfire/compiler/ast.py | 3c3f46910c89130ba16355699fb4bead9b7004c7 | [
"BSD-3-Clause"
] | permissive | msolo/msolo | 694a294e87f9c992300256db693b856a52a09817 | 8e73575d332614fdb52525b318aba8bb03bf1be3 | refs/heads/master | 2022-12-15T15:00:42.447984 | 2020-09-12T22:52:57 | 2020-09-12T22:52:57 | 58,083,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,621 | py | import copy
# this is a horrible hack to let the tree modify itself during conversion
class EatPrevious(object):
pass
class ASTNode(object):
def __init__(self, name=''):
self.name = name
self.value = None
self.parent = None
self.child_nodes = NodeList()
# optimization annotations
self.hint... | [
"msolo@bf66012e-f438-0410-a2e0-91e2d5152d13"
] | msolo@bf66012e-f438-0410-a2e0-91e2d5152d13 |
a3650f851e9c6b8820406b1d16728a7e21173a82 | 1b2d4375184338d1d6ff9b485ed1467a87c99631 | /pic_matching/utils.py | 48c4959f8d3ed2b9068acdcd366df188f43c4cb0 | [] | no_license | yimingliu123/siftF | db7efab36658865711b7c7373eb4348eec5b665a | 5d230c3086b59708e65edcac1adc58bd9f7791f1 | refs/heads/master | 2021-09-24T00:15:00.964565 | 2018-09-30T03:08:46 | 2018-09-30T03:08:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # -*- coding: gb18030 -*-
import pickle as pkl
import cv2
#import sift_controller
def parse_pkl(dic):
return dic["id"], dic["des"]
def pickleloader(pklfile):
try:
while True:
yield pkl.load(pklfile)
except EOFError:
pass
def parse_glob(path):
return path.split("/")[2]
def get_top_k_result(match_list=Non... | [
"noreply@github.com"
] | yimingliu123.noreply@github.com |
9e3f029b9795f6e18cd25c1004ef8c9cee136368 | 4e4a99d420b3ae13dd35bada87a8e851c903a737 | /web/resume/urls.py | c00f290c87a9c8de270a0168b3e14ec24199ee62 | [] | no_license | wellstseng/XStocker | 5870c2423f82814f14990103a347e1850299ab13 | e29e37709ae30229b3ffdd39a934e58311d81198 | refs/heads/master | 2020-03-26T09:02:30.606669 | 2019-02-19T15:06:23 | 2019-02-19T15:06:23 | 144,732,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.urls import path
from . import views
from django.conf.urls import url
from django.views.generic import TemplateView
app_name = "resume"
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='resume/index.html')),
] | [
"wells.tseng@gmail.com"
] | wells.tseng@gmail.com |
835cbfc16a8832c429cb99044691572b2bf9f192 | 10e278e496e2605de987e3c30dfd46eda231bcdd | /tests/models.py | d96084e79becdbe37567393834ebce9a4ab3bf4f | [
"MIT"
] | permissive | tuffnatty/drf-proxy-pagination | 211d82a17dfcea816626596c7f3d9f3e423ca6af | 564bc9cf961cf6888570d222bcaa11ce00b963ac | refs/heads/master | 2023-03-19T02:15:08.543795 | 2022-12-26T21:00:51 | 2022-12-26T21:00:51 | 71,636,006 | 11 | 4 | MIT | 2023-07-22T04:30:16 | 2016-10-22T11:53:54 | Python | UTF-8 | Python | false | false | 176 | py | from django.db import models
class TestModel(models.Model):
n = models.IntegerField("An integer")
created = models.DateTimeField("ordering field", auto_now_add=True)
| [
"phil.krylov@gmail.com"
] | phil.krylov@gmail.com |
f745cd32977f7f828231017c6ec843de458466f5 | 3dd4de13396eb1f13cb94765cad076db8ece8a87 | /api/apps/expenses/serializers/installment.py | af15ed245f1b199e3ea4c2989b883f98ae6616ee | [] | no_license | allenjoseph/PettyCash | cdfc9592f09ccdeeca2803def8fab783d37aa772 | a8dbc772d0b9d90e7eb164f084ecc53a833e91cd | refs/heads/master | 2021-01-10T14:30:29.591242 | 2016-09-17T22:16:56 | 2016-09-17T22:16:56 | 45,518,385 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from rest_framework import serializers
from ..models.installment import Installment
class InstallmentSerializer(serializers.ModelSerializer):
class Meta:
model = Installment
fields = (
'id',
'expense',
'month',
'amount',
'rate',
)... | [
"allen.joseph.v.a@gmail.com"
] | allen.joseph.v.a@gmail.com |
1b9b454c0c8fe6a60c79d537dc40b7ce8ccbb791 | 8c51aff248eb6f463d62e934213660437c3a107b | /Lecture_note_ML/1_basic/numpy/numpy_03.py | 091cb725597ad84c341c412482914cd55667fa94 | [] | no_license | wonjun0901/WJ_Develop_Individually | 5f839932c189adf2b2b34f7dadbdeaa8744f8d0e | e0402f5dbdda8ae8292cace124d381e29f707183 | refs/heads/master | 2021-01-02T00:13:38.851832 | 2020-02-18T01:10:15 | 2020-02-18T01:10:15 | 239,406,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | # -*- coding: utf-8 -*-
import numpy as np
# 파이썬 리스트 생성
# - range 함수를 응용하여 간편하게 생성할 수 있음
# - 1 ~ 10 까지의 정수를 갖는 리스트 생성
python_list = list(range(1, 11))
# numpy 배열 생성
numpy_array_1 = np.array(python_list)
print(f'numpy_array_1.shape : {numpy_array_1.shape}')
print(f'numpy_array_1 : \n{numpy_array_1}')
# 배열의 형태를 수정할 수... | [
"wonjun0901@gmail.com"
] | wonjun0901@gmail.com |
f73b24eaa3d1041274abb4dc7cf9292cea797e9d | e78c11d91d9d9308057b717055b9a31e2992d00c | /users/migrations/0001_initial.py | ee0cb49f52729d5674576ac7ce514b08eb25f2b3 | [] | no_license | jsobb/AJAX | b5658d0bd1a8e2ddb685a71301137c3446ab8e75 | 502cc298253de2ff7e568fd85186ab5f741d1a2a | refs/heads/main | 2023-07-16T20:51:51.471212 | 2021-08-17T13:34:10 | 2021-08-17T13:34:10 | 397,269,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # Generated by Django 3.2.3 on 2021-06-02 19:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"dlaehdus99@naver.com"
] | dlaehdus99@naver.com |
c95f81ce161d4a64c796c90eb6a808748f4bdcda | 88f7951c82ca2b49b9edab26ee50be3eb3fca5b5 | /handlers/handlers/pattern.py | c18d448498ffb930a204f549cef680923ded1b98 | [
"BSD-3-Clause"
] | permissive | rapidsms/rapidsms-contrib-apps-dev | 64ad9758edabf1956dbb870f760c4752c2076c14 | 9f3f2bf1e01d76abc808d79e963fe0cdf7d2d898 | refs/heads/master | 2021-06-01T16:00:20.200879 | 2010-08-27T19:41:01 | 2010-08-27T19:41:01 | 547,248 | 0 | 2 | NOASSERTION | 2020-09-30T20:28:27 | 2010-03-04T19:32:33 | Python | UTF-8 | Python | false | false | 1,957 | py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import re
from .base import BaseHandler
class PatternHandler(BaseHandler):
"""
This handler type can be subclassed to create simple pattern-based
handlers. This isn't usually a good idea -- it's cumbersome to write
patterns with enough flexibility ... | [
"adam.mckaig@gmail.com"
] | adam.mckaig@gmail.com |
c42ab779bf9b7e6f09e90920b6c9a45605706ec6 | b6759626cd51b4ad3d61ed05f3aeb03b80bc0157 | /config.py | cb986ee99cf048f76dc9e2f363cefb3ebd545681 | [] | no_license | Demi-Ad/db_archive | c3bdd09d4462fbf26ffedfedbba331e7a57d9119 | a13fde42597c92a5b08b9db07a7fd224375a224f | refs/heads/main | 2023-03-24T09:45:35.091090 | 2021-03-21T07:25:02 | 2021-03-21T07:25:02 | 349,341,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | from typing import Final
db_path: Final = 'DB\\DB.sqlite'
| [
"votm777@naver.com"
] | votm777@naver.com |
11930c8b40e8ee781b7e28498f363266fc6d29f9 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/eventgrid/v20200601/get_event_subscription_full_url.py | 82af64797d876ce0e32691c6741c44024652c874 | [
"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 | 2,984 | 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
__... | [
"noreply@github.com"
] | morrell.noreply@github.com |
a514019918db3ce54edd21489fdead2cf18dd6fd | b7b3244fc7e3a0970b6c75baf1aa21db732abccd | /venv/Scripts/easy_uninstall-script.py | 6be2ab08f70cc72664720c611946f6b7c5d97e82 | [] | no_license | AjayTomar3342/Movie_Recommendation_System_Python | ce5f973be86cf8b4072fd8153845b3d9161e075c | b53e8cbe1e0d693d3e12901e49d077232c1bdcfd | refs/heads/master | 2023-07-15T17:10:37.012388 | 2021-08-27T14:59:23 | 2021-08-27T14:59:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | #!c:\users\ajay\pycharmprojects\collaborative_based_recommendation_system\venv\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pi==0.1.2','console_scripts','easy_uninstall'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'pi==0.1.2'
try:
from importlib.metadata import distrib... | [
"ajaytomar6639@gmail.com"
] | ajaytomar6639@gmail.com |
d3246a5dfed956b098a2d681102dd4c853bc08b8 | d5c4c35a18fa1470a596c60a27dff7177f78ebd3 | /mysite/settings.py | f75c501a756955ecc651d129bc4f9cf9c83da9ca | [] | no_license | thebestjsyu/my-first-blog | 90bdbe3a77eaca84661605abba7a086d95493bec | b219580029efb9fcd0a7d07435b185e7d4603bbf | refs/heads/master | 2020-04-26T12:09:14.876596 | 2019-03-03T12:40:36 | 2019-03-03T12:40:36 | 173,515,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,214 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | [
"jisooyu603@gmail.com"
] | jisooyu603@gmail.com |
1209b2c0e68114b4e7c69e3f4e46b299ef1294d0 | b311517a63eaf846c75fa590a2aee079788cc524 | /test.py | a1bce0b30411f785087704b7c21ed677d837186f | [] | no_license | Super-JK/projet-bd1 | 6f63147618656a84de335da6f9ff36484e99ecaa | d74f9da01586a667d098be45f4e5ed3d1ee9f1bf | refs/heads/master | 2023-02-02T00:20:40.407469 | 2020-12-17T16:30:26 | 2020-12-17T16:30:26 | 320,002,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | from engine import *
def main():
select = Selection(Leq('sal', Const(1000)), 'emp')
proj = Projection(['ename', 'empno', 'sal', 'job'], select)
join = Join('stocks', proj)
rename = Rename('sal', 'lol', proj)
union = Union(join, 'stocks')
diff = Difference(union, 'stocks')
expr = rename
... | [
"vandechat96@gmail.com"
] | vandechat96@gmail.com |
c3f7fd09d46f1a540ef20d86f014b2ab85142efd | dd75f0a8f6305e528b26de29fa71ca5d6a8ee7e8 | /aiida_structure/data/test_kinds.py | 0afaf40ada611e40564a02d738519301b77b74ce | [
"MIT"
] | permissive | chrisjsewell/aiida-structure | daf495060ed2304896b2b350300eca3035f221c2 | 2266736bbb729f7a87381c38379c7cf068ccca9c | refs/heads/master | 2020-05-01T13:13:58.199635 | 2019-03-25T03:05:59 | 2019-03-25T03:05:59 | 177,486,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | def test_basic(new_database):
from aiida_structure.data.kinds import KindData
node = KindData()
data = {
"kind_names": ["A", "B", "C"],
"field1": [1, 2, 3]
}
node.set_data(data)
assert node.data == data
assert node.kind_dict == {
"A": {"field1": 1},
"B": {"fie... | [
"chrisj_sewell@hotmail.com"
] | chrisj_sewell@hotmail.com |
46de272c750a3d407d5c65911f3d378e608d1409 | e328200261a62b00385785a42d30b8671a9c0cfb | /dsproman/database_test.py | f69fb14e7aef9ab2ac0ba1310e56e95e712836cb | [] | no_license | gonzaponte/dsproman | 2e6f26684802e206c3ad9bca665c14e0ed8deb1c | b8070f7c9c14bc6f144f749951a6a34313d8f654 | refs/heads/master | 2021-07-20T23:06:20.775042 | 2021-04-11T10:37:05 | 2021-04-11T13:21:43 | 246,654,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | from pytest import mark
from . database import crystal_types
from . database import signals
from . database import excitations
from . database import emissions
def test_signals_are_iteratable():
for crystal in signals.values():
assert len(crystal) >= 1
for emissions in crystal:
assert... | [
"gonzaponte@gmail.com"
] | gonzaponte@gmail.com |
714d3799dec3aa79cdfa0663df21a1afaf726d38 | 1f7f3df7cb28e371d4e863d27f2342951c0e1239 | /differentiation.py | b80b90dd2325089cd6d6d0f6838e2dfd0bb5a653 | [] | no_license | mohammnas/Numerical_Analysis | e4b34f3256efe30cde2e75930e7379f5e890bbcc | 12c62da0610aaa2501ffa075fc1436abbd7488a6 | refs/heads/master | 2021-03-20T03:46:52.717401 | 2020-03-14T17:16:17 | 2020-03-14T17:16:17 | 247,172,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | import numpy as np
h = [1,0.5,0.25,0.125,0.0625,0.03125]
def f(x):
return np.log(x)
def fp(f,x,h):
z = f(x+(2*h))-f(x-h)
return z/(3*h)
print(h)
for i in h:
print(fp(f,2,i))
print('\n')
print('error')
for i in h:
e = 1/2 - fp(f,2,i)
print(e)
print('\n')
print('e/h')
for i in h:
... | [
"nassermohammed@nassers-mbp.home"
] | nassermohammed@nassers-mbp.home |
fc66e4be4d638f48574cc7916b5b2cb7f1eb4e8e | 9a671c2427e125cc933c88a910447e3897e49ded | /Assignment1/neural_test.py | 5d7acc2c59724d73f4366760bcad0b02500adc41 | [] | no_license | leopardary/CS7641 | 69dd53f6d25493851ea89e90f5f53a1b11a2bfb9 | 245a9fc07839fdd12d318f0890c6b503b221719c | refs/heads/master | 2021-01-15T18:26:35.156514 | 2016-03-12T08:46:04 | 2016-03-12T08:46:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,614 | py | import io
import pydotplus
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.neural_network import MLPClassifier
from sklearn.model_selection import StratifiedKFold
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MinMaxScaler, StandardScaler, OneHotEncoder, Im... | [
"="
] | = |
469775e2bd8d58aceac9dbb2ec9b8ca2bc005667 | dbfcb91c055db22d22967eab36a5b48f6ff4c5fc | /day11/puzzle22.py | 6b52b80dcd24dca2e3052d090d15d80fd8b39ad0 | [] | no_license | rhoogduin/AoC | e8daf057553e6afb6a4b9c1d76474a1d27dfeb5b | abb7019023da40829e01f0f49c72fcbcf85b1b1f | refs/heads/master | 2023-02-01T15:26:57.589394 | 2020-12-18T20:06:54 | 2020-12-18T20:06:54 | 317,666,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py |
#enum
FLOOR = -1
EMPTY = 0
FILLED = 1
#read input
file = open("input.txt", "r")
lines = []
lines = file.read().splitlines()
file.close()
# lists that will represent the waiting area
WA_old = []
WA_new = []
# read input and populate waiting area
for line in lines :
row = []
for char in line :
... | [
"s1247123@vuw.leidenuniv.nl"
] | s1247123@vuw.leidenuniv.nl |
e7a36347f249728f620ac8c635fb106e2807fdf2 | d9aeaf6d77114a970b8caf3accf2570430bbb592 | /ex12.py | 0bbdf25de1f590d87eba0069d7a9b1da5c899921 | [] | no_license | agungTuanany/Learn-Python-The-Hardway | 033c6f12a7acfb4f33af772624aefb75a29189d3 | 4130eda9607987f31611306849399f6c7738e5d3 | refs/heads/master | 2020-03-25T09:01:09.214703 | 2018-08-06T10:49:33 | 2018-08-06T10:50:44 | 143,643,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | # Exercise 12: Prompting People.
# When you typed **raw_input()**, you were typing the ( and ) characters, which
# are parenthesis characters. This is similar to when you used them to do a
# format with extra variables, as in **"%s %s" % (x, y).** For **raw_input**,
# you want for the prompt inside the () so that i... | [
"agung.tuanany@gmail.com"
] | agung.tuanany@gmail.com |
13d9a233ce729c06b482d163cf30e75e2fadf3a8 | d0f28dccc15804d4426bdb79c964fbc69206ec21 | /streaming/wordCount/mapper1.py | e7ffc83ea5f20a9d4466108a9fef210e1fce7580 | [] | no_license | INKWWW/python_project | f4170b435a2d08fa931c1ebff4b45bfa172181a6 | 0e4647d09ec4a7a5ea4d14863c2628402b3830d4 | refs/heads/master | 2020-04-02T08:29:54.970819 | 2019-04-13T07:52:54 | 2019-04-13T07:52:54 | 154,247,147 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
def main():
for line in sys.stdin:
words = line.split()
for word in words:
# print('{}\t{}'.format(word, 1))
print('%s%s%d' % (word, '\t', 1))
if __name__ == '__main__':
main() | [
"whmink@foxmail.com"
] | whmink@foxmail.com |
a9ea495946dead0b502d7d3481ea0618271980d4 | 2fedc543c38b3a4f659e938d5b208db4e0501caf | /xml_parser.py | 7d362b6bc1e6b4dceaf4777215d9918242a57b1d | [] | no_license | publicznyprofil/tribalwars_build_village | 595b34cbcdd1307496203d97eaafdc638eaee879 | df8a8206bcd9ba14ce6f6828de4a1903fe29f7ae | refs/heads/master | 2021-01-16T23:10:52.596503 | 2017-09-24T19:50:10 | 2017-09-24T19:50:10 | 95,709,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | import xml.etree.ElementTree as ElementTree
class XmlListConfig(list):
def __init__(self, list_):
for element in list_:
if element:
if len(element) == 1 or element[0].tag != element[1].tag:
self.append(XmlDictConfig(element))
elif element[0].... | [
"nitrobee@o2.pl"
] | nitrobee@o2.pl |
30936e83f328e3dc710f6715e1b87cf9d19f139e | 8637769c641d987cab3878a29cc84c3f983bb349 | /app/lights.py | 376f2ba07295b72dfe62372a4a31c34ee7ef3022 | [
"MIT"
] | permissive | fhopeman/mgmt-center | eca3de99c5c978bd21518ed405633682a8f59d7b | b0210f668e43be15a260463abb05f10248feeadd | refs/heads/master | 2020-04-20T23:42:46.921422 | 2015-04-03T13:33:03 | 2015-04-03T13:33:13 | 28,199,740 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from flask import render_template
from app import app
from util_communication import slaveCall, slaveRead
# define lights (id is gpio pin)
lights = {
0: {"name": "living room TV", "slave": 0x04, "id": 0, "state": 0},
1: {"name": "living room LED", "slave": 0x04, "id": 0, "state": 0},
2: {"name": "balcony",... | [
"fabian.hoffmann@otto.de"
] | fabian.hoffmann@otto.de |
0b4642b0ad7c64c8f005e679b74dc0449fc5ef1c | 72f3d2561bf74ad91b00096ff8bc2e17642ec6ce | /albamonproj/albamonproj/wsgi.py | 8fdea78f495b0f5abc37740e91db9457d22cd125 | [] | no_license | kimsongha/Likelion_albamon | 5592f8b071ec3bbe834ef8051c1725a66e63d909 | c81c1b214863fed818aadf143f4e1bc6fc695111 | refs/heads/main | 2023-05-07T22:01:38.730128 | 2021-05-21T00:35:47 | 2021-05-21T00:35:47 | 368,143,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for albamonproj 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"songha1024@naver.com"
] | songha1024@naver.com |
4d9a94e46e4043fec8be22f9d05cffcd420ad450 | 6dadceef9ffafbd2bdcc0cf64b8d541e93e2fdaa | /HINGCN-GS/helpers.py | 402a21c9d4bff820b427fed52c884c9aecc830d2 | [
"MIT"
] | permissive | dingdanhao110/HINGCN | 451683b3a1924f1cef831e5f1ab7c16ad87c937f | 281b73c03bd3b00e35bce4c5e1c27076233555e4 | refs/heads/master | 2022-11-29T21:25:55.112989 | 2020-07-30T15:07:09 | 2020-07-30T15:07:09 | 167,971,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,744 | py | #!/usr/bin/env python
"""
helpers.py
"""
from __future__ import print_function
import numpy as np
import torch
from torch.autograd import Variable
import scipy.sparse as sp
from sklearn.feature_extraction.text import TfidfTransformer
from preprocess.word_emb import count2feat
def set_seeds(seed=0):
np.ran... | [
"dingdanhao110@163.com"
] | dingdanhao110@163.com |
583f8d847bb0db995cf1b918a2034975c71c015e | 99c53abf533e1d2f47608c9f4166b050c7cb2b6d | /gym_aa/__init__.py | 3e61248ec2d39ae25a3999b572cb1bb379de2464 | [] | no_license | cair/Axis_and_Allies | 647189492e207d59ad6ed9e2852fd85eb9b692a1 | ec87ac0f02829b753a37481e902dfb13c9ef20e1 | refs/heads/master | 2020-03-23T08:29:22.078769 | 2018-09-30T22:49:32 | 2018-09-30T22:49:32 | 141,329,606 | 4 | 2 | null | 2018-10-02T20:09:49 | 2018-07-17T18:41:36 | Python | UTF-8 | Python | false | false | 189 | py |
from gym.envs.registration import register
register(
id='axis-and-allies-4x4-random-agent-v0',
entry_point='gym_aa.envs:AxisAndAllies4x4RandomAgent'
#timestep_limit=2000,
)
| [
"perara12@gmail.com"
] | perara12@gmail.com |
29942c923bc7a82bdbb8e16b87663ab7a3b9faf1 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /mks_ti_alpha_ord1/oldfiles/functions_ti_alpha_ord1_alt.py | 82174620ead2ad9de3dc717aa7eebaa1323f3448 | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,220 | py | # -*- coding: utf-8 -*-
"""
Functions connected to 3D, isotropic MKS analyses
In general these functions are not for parallel processing or chunking of data
Noah Paulson, 5/9/2014
"""
import numpy as np
import time
import itertools as it
import scipy.io as sio
def calib(k,M,resp_fft,p,H,el,ns):
"""
Summary... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.