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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ea78325d350912216e46f960d2a74c62a66ac05 | c54d598652b1270ab134a0bc342755d0506b445a | /replace.py | 7cbd20dca4c6ee11f6b49df25f54e82a879def55 | [] | no_license | nendek/war | 0426cf3771630bb56cf8c8c3041cb83dd9daa753 | ba3ebe0c6706424eeab7576eff9f28f718c3ffac | refs/heads/master | 2020-12-06T00:19:24.122754 | 2020-01-07T09:21:23 | 2020-01-07T09:21:23 | 232,287,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,454 | py | from get_vals import \
memcpy_addr, bis_size, loader_size, main_end, main_start, offset_1, offset_2, offset_3, offset_4, offset_5, offset_6, in_pestilence, in_pestilence2, offset_rip, call_1, call_2, call_3, call_4, call_5, hook_1, hook_2, hook_3, hook_4, hook_5, \
full_size, payload_size, \
exit_1, exit_2, exit_3, ... | [
"p.nardozi@gmail.com"
] | p.nardozi@gmail.com |
8521b46d423a4699a9b0209ffcdcbbb364cbe453 | abebd304a9bc3ff1b90db09eba66c003f51a74d5 | /sug/preprocess/dump_pinyin_weight.py | fe42a90aeb11b3365e0eb4b3b7cd656d851913df | [] | no_license | jiakechong1991/search | 817715c58a1b117d177a7b49f443cb2411ee3c6f | 86c644e9d26f2eba25d4cf50821ffcc8e14e7953 | refs/heads/master | 2021-04-15T17:42:01.074581 | 2018-04-10T14:04:17 | 2018-04-10T14:04:17 | 126,668,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,860 | py | # coding: utf8
import argparse
import codecs
from collections import defaultdict
import copy
import json
import logging
from config.conf import MIN_WORD_LEN, MAX_WORD_LEN, MAX_MIX_NUM, LOGGING_FORMAT
from utils.common import get_row_num
from utils.pinyin_generator import PinyinGenerator
def dump_pinyin_weight(file_in... | [
"wangxiaoke@xuetangx.com"
] | wangxiaoke@xuetangx.com |
908fdaa7f393a77d34b107b9c79ab0e2f18cfe51 | d29e681adefca59c8b7f05e2f24303a96dd4825b | /src/service.py | 4efdeb060735d6287694812e9c9bc9e5862aa64b | [
"MIT"
] | permissive | MetuMobile/WeatherService | ebd77ce22e3e921651ee5cf36934a5efd0a41710 | 7be637e047d0b96fd14a6542f7bd2f4eb7cf468e | refs/heads/master | 2021-01-20T00:47:44.493038 | 2017-05-12T16:37:26 | 2017-05-12T16:37:26 | 89,190,766 | 0 | 1 | null | 2017-04-30T09:27:17 | 2017-04-24T02:45:47 | Python | UTF-8 | Python | false | false | 1,170 | py | from flask import Flask, jsonify#, request, render_template
import sys
from Config import Config
from Weather import Weather
class WeatherService:
serviceName = "weather"
def __init__(self):
self._initializeService()
self.app.add_url_rule('/summary', '', self.getDailyWeather)
self._run... | [
"borakrc@gmail.com"
] | borakrc@gmail.com |
7810385ef7e3c7c1b931680d6a30cd82e4f10a47 | d9eef8dd3489682c8db41f2311e3058d1f369780 | /.history/abel-network-files/mcmc_alg_implementation_own_two_20180704115025.py | 971d63b8aa2ad664cc1c93d9e62cd650d73a9178 | [] | no_license | McKenzie-Lamb/Gerrymandering | 93fe4a49fe39a0b307ed341e46ba8620ea1225be | b7a7c4129d6b0fcd760ba8952de51eafa701eac3 | refs/heads/master | 2021-01-25T06:06:43.824339 | 2018-10-16T14:27:01 | 2018-10-16T14:27:01 | 93,526,515 | 0 | 0 | null | 2018-07-12T19:07:35 | 2017-06-06T14:17:47 | Python | UTF-8 | Python | false | false | 10,917 | py | # Author: Abel Gonzalez
# Date: 06/26/18
#
# Description:
# This program uses the .shp file to create a network graph where each node
# represents a census tract and the edge represents adjacency between each
# tract, usign graph-tool instead of networkx
import random
import math
import numpy as np
import graph_tool.al... | [
"gonzaleza@ripon.edu"
] | gonzaleza@ripon.edu |
c8904d327b1057cf99c8f56b6a9a66f8aecad6f6 | 02e26e2cbea74a97b56262de031563c8bfb3f468 | /Projects/todo/tasks/migrations/0001_initial.py | 0f8b45c9371344c24ce1c7ec6c02198aff212578 | [] | no_license | LalityaSawant/Python | f2845ecbe83b9c4dbd987c6d4e6fa5352bf54c3c | 7377499629883311029a94e14058599ac166c318 | refs/heads/master | 2022-12-12T06:17:00.311059 | 2020-08-30T06:24:12 | 2020-08-30T06:24:12 | 288,286,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # Generated by Django 3.0.7 on 2020-06-28 07:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Task',
fields=[
('id', models.AutoField(aut... | [
"lalitya.sawant@gmail.com"
] | lalitya.sawant@gmail.com |
6098a8d7522753840f023d7974708f6d2e0e7675 | a4cb825776922fb9030b41d072165d2345538c60 | /Graph.py | 64713cff960d43b699ccc3d8a9efce829fae1253 | [] | no_license | chaiwat-boom/SCMA_247_Homework | 8b4fde7accad5857572805b7e381cb73ae198974 | 6eaa6931fabdf2f74ec2fe5e49bc9c4e94d2f066 | refs/heads/main | 2023-04-23T00:49:46.159223 | 2021-05-15T08:24:51 | 2021-05-15T08:24:51 | 367,565,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,186 | py | #!/usr/bin/env python
# coding: utf-8
# # Graph
# Chaiwat Khampamuan 6105005
# In[1]:
#Represent Graph in Adjacency matrix
class GraphAdjMatrix:
def __init__(self,n):
self.order = n;
self.adj = [[0]*n for i in range(n)];
def display(self):
print("ADJMatrix","order :",self.... | [
"noreply@github.com"
] | chaiwat-boom.noreply@github.com |
ffd2b24dc87d99684dca0f458c3970cd7cf4b8dd | 1eab574606dffb14a63195de994ee7c2355989b1 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/switchhostrangehopslearnedinfo_9zdfjhbmdlsg9wc0xlyxjuzwrjbmzv.py | a9217efc563072505ad588370bd54d1ec01eb023 | [
"MIT"
] | permissive | steiler/ixnetwork_restpy | 56b3f08726301e9938aaea26f6dcd20ebf53c806 | dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9 | refs/heads/master | 2020-09-04T12:10:18.387184 | 2019-11-05T11:29:43 | 2019-11-05T11:29:43 | 219,728,796 | 0 | 0 | null | 2019-11-05T11:28:29 | 2019-11-05T11:28:26 | null | UTF-8 | Python | false | false | 4,428 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 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,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
32c4c4ae98dd31dfa43723e716df04dba6ec898e | e48053bc7bf064bc28ffb1949f74970005243c83 | /src/graphql_relay/utils/__init__.py | 2490b59425ba1c6d1fc11da92727d81f7003e738 | [
"MIT"
] | permissive | markedwards/graphql-relay-py | 5dd8eb775bc6d87e18bf71ca5b46d60d27dad09b | 611c0333eeca53663d9b47f7994098edda81b087 | refs/heads/master | 2023-03-08T04:59:27.118363 | 2022-07-23T13:48:14 | 2022-07-23T13:48:14 | 264,901,446 | 0 | 0 | MIT | 2020-05-18T10:10:13 | 2020-05-18T10:10:13 | null | UTF-8 | Python | false | false | 98 | py | """graphql_relay.utils"""
from .base64 import base64, unbase64
__all__ = ["base64", "unbase64"]
| [
"cito@online.de"
] | cito@online.de |
d471de3c47b8bb684ef59ddfcc1774d08abef858 | 819dbb98d33784ed595eea562ae692bf40930ef8 | /Disnaker/appium/publish/_AI_Desain.py | e8eb26e59de323675405d1690986b8df87419374 | [] | no_license | RachmadAgungP/crowling_pribadi | e20dd4ea877ad20ed49342dcd60dfaa4efbbf6f3 | 07fad09d95a160d9c55127ebdf8f78e1789dd248 | refs/heads/main | 2023-03-06T02:57:16.482675 | 2021-02-22T09:24:39 | 2021-02-22T09:24:39 | 332,108,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,975 | py | import pandas as pd
import ast
import win32com.client as win32
import os
import textwrap
import datetime
# df = pd.read_csv("data_namapekerjaan1.csv")
import shutil
import _AI_Size_otomatis
def listToString(s,skalar,kod,uk):
str1 = ""
tnpa_tnd_bca = ""
str1_over = ""
kod = kod
if kod == []:
... | [
"pambudi171@windowslive.com"
] | pambudi171@windowslive.com |
d42bab9b46b1ce7a269fd7d3f5a0583fc29c0f2a | 89854257a02b2b3e3cf00c7f5ddde15222286af5 | /tower_of_hanoi.py | 8ab3110e4aa1ec916b8ff23147352b7ab8a74f4d | [] | no_license | gmraju/tower-of-hanoi-solver | 8efdcd003d2e87e974d4bd810e9e3446fb5ba8fe | 22d1f4e9bc71a7da459f44de0594615ff242d323 | refs/heads/master | 2021-04-15T07:16:44.367579 | 2018-03-21T08:17:10 | 2018-03-21T08:17:10 | 126,145,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,107 | py | import copy
from copy import deepcopy
"""
Objects of class game_state represent states of the tower of hanoi game.
The objects hold the value of their parent state, representation of the game state as a list of lists, and have a class method to calculate the list of
legal moves from the current state.
"""... | [
"noreply@github.com"
] | gmraju.noreply@github.com |
3c01cb626309ed4ad616f8ba9963b0b2f8b8fd2e | 0707663f07d2a2010d44bd5f9dc74dbf289b2606 | /master_table.py | c793b9a1621eed547fa0a9ca5d95a09900af513e | [] | no_license | ejgillia/csc495_amazon | e96c327cccc541acd8709379d6ab62d4240fe599 | f1bfc55d6d6a6e802d8ee88d7da789bcfef107c4 | refs/heads/master | 2021-04-30T05:34:01.100693 | 2018-04-28T21:13:37 | 2018-04-28T21:13:37 | 121,418,784 | 0 | 1 | null | 2018-04-28T21:09:56 | 2018-02-13T18:20:07 | Python | UTF-8 | Python | false | false | 2,652 | py | #!/usr/bin/python3
import pandas as pd
filenames = ["commute_times_amazon_cities.csv", "cities_anshul.csv"]
logistics_base_filepath = ["Logistics"]
logistics = ["State-City-MSA - Airport Connectivity to Major Hubs.csv",
"State-City-MSA - Airport Travel Time.csv",
"State-City-MSA - Inrix Traffic Index.csv",
"S... | [
"edwardjgilliam@gmail.com"
] | edwardjgilliam@gmail.com |
f48d27f70ae9b6d5aaca30d1dd33762d180d6539 | 35e2aa7ecbb94a7f3eb07f5e326440251f0cb1a4 | /parameters.py | 375b0c16442f29e6830b311fcb3143639691adc0 | [] | no_license | Coutlaw/Programming-1 | 648929e09ad0329bfba7f477a5bd36ca1e21607c | e3e304cfe8f9b44ee5a1df4c20dbdafc740dab7a | refs/heads/master | 2020-06-13T03:59:59.860069 | 2019-06-30T14:39:25 | 2019-06-30T14:39:25 | 194,526,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | # input - 2 numbers through parameters
# output - sum returned
def add(op1, op2):
total = op1 + op2
# stores total as local value
return total
def main():
answer = add(4,7)
print(answer)
#creating a program that calls another program to do the math and work
def power(op1, op2):
total = op1 ** ... | [
"cass.d.outlaw@gmail.com"
] | cass.d.outlaw@gmail.com |
651e8d0d02919c339533bbab8a88b973a7774f3b | 68827850d67688b0e196a29057d4698859665624 | /interno/urls.py | 9104d234ec2451c758ac3caa621febcb89751cf9 | [
"Apache-2.0"
] | permissive | jeKnowledge/JekOffice | 2ba4ca741b06ec34ce58a1c9ad440d590b72463c | 010cef87840bf15280328b56d31f7ea12967ab85 | refs/heads/master | 2022-12-06T06:51:05.905496 | 2019-06-26T14:01:00 | 2019-06-26T14:01:00 | 192,950,335 | 0 | 1 | Apache-2.0 | 2022-11-22T03:53:57 | 2019-06-20T16:05:43 | Python | UTF-8 | Python | false | false | 315 | py | from django.urls import path
from . import views
urlpatterns = [
path('novo/', views.relatorio_novo_view, name='criar_relatorios'),
path('', views.relatorio_lista_view, name='relatorios'),
path('download/<int:relatorio_pk>/', views.download_relatorio_recrutamento_view,name='download_recrutamento'),
]
| [
"bernardo.prior@hotmail.com"
] | bernardo.prior@hotmail.com |
e8f51dc8787882d6db42b81be2c792dd429af2b6 | f088f19958d43dfcd2f1851347519f5deb4a2d64 | /migrations/versions/b6f70a4bc682_added_breed_column.py | f5640ce00d02807a00bd1630a7bbe1fde3f44cf2 | [] | no_license | assyifarostiana/project_day3 | 69e5eaacd0c6b1512dcc092bdd15c400ca296d27 | 172ceff7c42aeb058ed4fc2292d27cb16d7e2455 | refs/heads/master | 2022-11-27T20:10:58.020369 | 2020-08-02T19:26:32 | 2020-08-02T19:26:32 | 283,554,169 | 0 | 0 | null | 2020-07-29T16:54:00 | 2020-07-29T16:54:00 | null | UTF-8 | Python | false | false | 632 | py | """added breed column
Revision ID: b6f70a4bc682
Revises:
Create Date: 2020-08-03 00:46:58.793323
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b6f70a4bc682'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto... | [
"assyifarostiana@gmail.com"
] | assyifarostiana@gmail.com |
34a4face36485e6ae83f65edb28e357f514b966c | b100c09e0ea0f777a70de276c67dec3dcd9698b6 | /diverging/PiYG-r.py | 2486429842fad10b5e2758a2e412f9b0764e5961 | [
"Apache-2.0"
] | permissive | trungnnguyen/colorbrewer-colormaps-4-abaqus | cd3e8781af532a9bbde5b802fdc11f97a367c800 | 3b43d12e2ce8ea5019f2d9b9d939cd3649be0e4d | refs/heads/master | 2021-01-21T07:15:14.742357 | 2015-09-17T10:47:33 | 2015-09-17T10:47:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # Color Schemes for Abaqus/CAE contour plot
# compatible with Abaqus >= 6.14-1
# author: Xiaojun GU
#PiYG-r
from abaqus import *
from abaqusConstants import *
session.Spectrum(name="PiYG-r", colors =(
'#276419',
'#4d9221',
'#7fbc41',
'#b8e186',
'#e6f5d0',
'#f7f7f7',
'#fde0ef',
'#f1b6da'... | [
"myaccadd@outlook.com"
] | myaccadd@outlook.com |
512331448a7d867fef27e66fb94fea9861bd4feb | 93a5ee3a612a218f53541d60c70f9d26da4de35a | /scripts/fpl_cx1_0_vgg_1ss.py | 6591e43a688404a9e81c205ff98fdcac0f9e2372 | [
"BSD-3-Clause"
] | permissive | alexshevelkin/flypylib | 8a0228992c3191a28ab5d7fcb8b6da9e9edcaf10 | b52aa96aca3ae1fcd5e10c22de75e832cf0590c6 | refs/heads/master | 2022-01-25T23:58:05.356570 | 2018-11-02T21:01:41 | 2018-11-02T21:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | from flypylib import fplobjdetect, fplmodels, fplnetwork, fplsynapses
import numpy as np
import matplotlib.pyplot as plt
# choose a net architecture
# possible models: baseline_model, vgg_like, resnet_like, unet_like
model = fplmodels.vgg_like;
network = fplnetwork.FplNetwork(model)
n_gpu = 4
batch_... | [
"gbhuang@cs.umass.edu"
] | gbhuang@cs.umass.edu |
3798b22e381da18c59fb8d1affcc594e8ca661f2 | 2dd5ac139cde8317e04203b02b3692a0e4feb7b2 | /Universidad/Aplicaciones/Academico/urls.py | a2b1afa8cdcdcefd23995584a32b25c63a6527c2 | [] | no_license | Oriel-Barroso/Crud-django | d0d37cdcf9e981338639a0f2b33255bfd8cdc5f0 | 4e5355bcfa4929b89e6f91a47c52a64237741e96 | refs/heads/main | 2023-07-30T20:48:39.308382 | 2021-09-21T04:15:48 | 2021-09-21T04:15:48 | 408,684,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from django.urls import path
from .views import home as Home, registrarCurso as Registro, eliminacionCurso as Eliminacion, edicionCurso as Edicion, editarCurso as Editar
urlpatterns = [
path('', Home),
path('registrarCurso/', Registro),
path('eliminacionCurso/<codigo>', Eliminacion),
path('edicionCur... | [
"oriel_gold97@outlook.com"
] | oriel_gold97@outlook.com |
e2c48acc861f4854a7ca006b52a39240c47de4bd | 1292e182157da89a228e006fa6194140dd1196eb | /venv/bin/pip3 | 754afe3bfa0a3b71dd34f1e7b885d9c1e115e7df | [] | no_license | kandruch/keith-blog | b9d6f16d79c962ac64cc2357527d13353a7dff1e | 212d380dfe9ef2ed442e79db5ae57418633925b7 | refs/heads/master | 2023-04-11T03:30:04.685395 | 2021-04-25T02:32:34 | 2021-04-25T02:32:34 | 361,307,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | #!/Users/kandruch/PycharmProjects/day-69-blogusers.py/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kcandruch@gmail.com"
] | kcandruch@gmail.com | |
6c184b37d53fc6a5a548935fc3e615c2a6c233b3 | 76e1d13f91f9b69c75910f91376782b462135017 | /CryptoCurrency/phase2/Tx.py | df2a6423d40e62351e63b38ba0813639cb27c16c | [] | no_license | herentug/CS411 | a57e94f2f75f0dab5516dd6fbdd105cb7554e02e | 5c52bdc5917570999073addf7ababe4f3f7f1360 | refs/heads/master | 2020-08-12T01:20:16.003822 | 2020-01-11T22:44:46 | 2020-01-11T22:44:46 | 214,662,366 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | import random
import DS
import os
def serialNumberGen(b):
#b for bitsize
serial = random.randrange(2**(b-1),(2**(b))-1)
return serial
def gen_random_tx(q,p,g):
lines = [""]*7
lines[0]="***Bitcoin transaction"
lines[1]="Serial number:"+str(serialNumberGen(128))
a,b=DS.KeyGen(q,p,g)
lines[2]="Payer public key (... | [
"herentug@sabanciuniv.edu"
] | herentug@sabanciuniv.edu |
75e0ae37ecf9f70341b825d25e43feb4e1676ba9 | ba4650b4d096bab85b5b8c503a7dee36330efdd7 | /car_pole.py | 5099d3a81163ffe4c7ab67e71c0022e8db9c39da | [] | no_license | ZHUDEJUN1985/policygra | e2001c7ebcd977b969a19334102ddb0ede86d621 | 99eccebb3f9b2d664b7a1e519b9fe85543d1a248 | refs/heads/master | 2021-06-27T04:37:38.804730 | 2017-09-21T09:26:32 | 2017-09-21T09:26:32 | 100,348,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | import gym
from pg import PolicyGradient
import matplotlib.pyplot as plt
DISPLAY_REWARD_THRESHOLD = -200
RENDER = False
is_train = False
env = gym.make('MountainCar-v0')
env.seed(1)
env = env.unwrapped
print(env.action_space)
print(env.observation_space)
print(env.observation_space.high)
RL = PolicyGradient(n_actio... | [
"zhudejun@levelup.ai"
] | zhudejun@levelup.ai |
2f67faca481b05d0be5e0b525efd110a623f5179 | cb8a597cb241eae62903e0354069b524be369d17 | /events/Events.py | b492193287746bc5cc8fe763982436435f2222e7 | [] | no_license | TilerTheTiller/ArdentBot | 25e252f648229d7b168b8e2aeff64df936235f73 | 9070265ab50b98b558266d93601c130b641c4bbf | refs/heads/master | 2022-11-12T20:44:43.099591 | 2020-07-10T23:10:26 | 2020-07-10T23:10:26 | 278,749,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,842 | py | import discord
import random
import datetime
import index
import json
from discord.ext import commands
class Events(commands.Cog):
def __init__(self, client):
self.client = client
# events
@commands.Cog.listener()
async def on_member_join(self, member):
welcomech = memb... | [
"noreply@github.com"
] | TilerTheTiller.noreply@github.com |
2da20cd7cb1f6406ed6a080f65357ac1e174a6db | 403d4677aa6fc2d3028fec07424c5ef88eeeba2d | /src/spaceone/core/fastapi/__init__.py | 7384818630ef604154b893cecda9a0062bc7fac9 | [
"Apache-2.0"
] | permissive | jean1042/python-core | c3b0e03bbef3c5a9498bcd0f91090d11f58cb720 | 66613dbaad5a0c1d8917cbb6f38fd02d1b82adf6 | refs/heads/master | 2023-08-21T10:33:03.485806 | 2021-10-29T14:06:08 | 2021-10-29T14:06:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from spaceone.core.fastapi.server import serve
__all__ = ['serve']
| [
"bluese@megazone.com"
] | bluese@megazone.com |
43f7a02ca6b0f5d64bc9776f56f202cf86a514e8 | a761a5c6fc3b56ec252e4d475d0cd1bedc457d47 | /blog/migrations/0003_post_tags.py | b1a0498afe84ce225501c41a6756f3f6afbdd532 | [] | no_license | GlebMironov/blog | 8f6e1d1f47173372b013d31cdeac492109270228 | 7e639efb570d2329561b0caefb64da4766b6dcbd | refs/heads/master | 2016-09-14T10:43:25.116656 | 2016-05-12T10:43:25 | 2016-05-12T10:43:25 | 58,632,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-08 12:17
from __future__ import unicode_literals
from django.db import migrations
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('taggit', '0002_auto_20150616_2121'),
('blog', '0002_comment'),
]
... | [
"glebmi69@gmail.com"
] | glebmi69@gmail.com |
44c47f9b49a9efe84572482f9094e171c3a4f866 | 83b3a3da85c228aa9592c1d09ba9bf9266e77b40 | /backpro/api/migrations/0003_auto_20190514_0153.py | 8a9b16581343442dc8522b7b105c9d7389d7fdf3 | [] | no_license | abzalmyrzash/SE-Project | 7ba65a65cead83bd11927a7b79021930656ddf0b | 51a7d184a26e8ab54d6cbf39e4059c981f49f9a3 | refs/heads/master | 2020-05-26T05:57:18.338845 | 2019-05-22T23:47:59 | 2019-05-22T23:47:59 | 188,128,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # Generated by Django 2.2.1 on 2019-05-13 19:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0002_auto_20190514_0112'),
]
operations = [
migrations.AlterField(
... | [
"abzal.myrzash006@gmail.com"
] | abzal.myrzash006@gmail.com |
0d0a2f0c3406abe0ae8d8f37a49dd1c04e589fdb | c0e493d0590945f511316e44d14f0f5691fee2c9 | /limix_inference/lmm/_fastlmm/_fastlmm.py | 474fde42b806cedc8630a3752281c92ce811328d | [
"MIT"
] | permissive | fpcasale/limix-inference | afc6f00261c4fb7b48d43ea71d8f4afb16df70d7 | 3c2aab9792b4885cf575a8b0e8aaa3e445cda782 | refs/heads/master | 2021-01-17T14:10:41.464861 | 2017-03-06T13:43:33 | 2017-03-06T13:43:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,519 | py | from __future__ import division
from numpy import exp
from numpy import clip
from numpy import atleast_2d
from numpy_sugar import is_all_finite
from optimix import maximize_scalar
from optimix import Function
from optimix import Scalar
from ._core import FastLMMCore
class FastLMM(Function):
r"""Fast Linear Mi... | [
"danilo.horta@gmail.com"
] | danilo.horta@gmail.com |
d421446cf2b427f23e932808b0a6411885c968a4 | 59f64b5cf799e31c97b11828dba4787afb8f3f17 | /batch/setup.py | 5745340b5d80e1ab1635dfe1ee89c67ad12a54c7 | [
"MIT"
] | permissive | hail-is/hail | 2089e6f3b38548f13fa5c2a8ab67f5cfdd67b4f1 | 07a483ae0f46c66f3ed6fd265b48f48c06298f98 | refs/heads/main | 2023-09-01T15:03:01.450365 | 2023-09-01T02:46:35 | 2023-09-01T02:46:35 | 45,069,467 | 913 | 262 | MIT | 2023-09-14T21:53:32 | 2015-10-27T20:55:42 | Python | UTF-8 | Python | false | false | 300 | py | from setuptools import find_packages, setup
setup(
name='batch',
version='0.0.2',
url='https://github.com/hail-is/hail.git',
author='Hail Team',
author_email='hail@broadinstitute.org',
description='Job manager',
packages=find_packages(),
include_package_data=True,
)
| [
"daniel.zidan.king@gmail.com"
] | daniel.zidan.king@gmail.com |
f18362bf2c4a16f951dd16960374458c73bfda04 | d863e33c41c71fc2c33092830dd91279acde9214 | /tarefas/migrations/0002_tarefa_completado.py | 29b535b49c1bb1f7675f2711e37addcf04fef3cb | [] | no_license | Graziele-Rodrigues/AppToDo | d250cafabf808fb4ea5a8c5642c413e242654331 | 007939f97b49acb4044e5390a6e09e5991e90ca6 | refs/heads/main | 2023-06-18T16:29:28.844205 | 2021-07-15T01:23:24 | 2021-07-15T01:23:24 | 386,118,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.0 on 2021-07-15 00:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tarefas', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='tarefa',
name='completado',
f... | [
"c.graziele.rodrigues@gmail.com"
] | c.graziele.rodrigues@gmail.com |
3bc3d4f99351278c4c04a4e008454576c15d83cb | 5d7d652a38cb3ae6eb90f20ec2413c6dca9be26f | /basic/functions.py | b6e8a570e436ad1e187ad3cd47078492399814c5 | [] | no_license | HeWangchen/LearnPython | 8cd145e9d63e96a9152b7669a3cae0ec75f84aff | 1e6de8c2b48c89498b79bac129ec51e3d86abc2e | refs/heads/master | 2021-01-22T20:44:18.718505 | 2012-09-03T08:49:15 | 2012-09-03T08:49:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,332 | py | def sqrt(x):
ans = 0
if (x >= 0):
while ans*ans < x:
ans += 1
if ans*ans != x:
print(x , 'is not a Integer square',end = '...\n')
return None
else:
return ans
else:
print(x,'must > 0 !',end = '...\n')
return None
def f(... | [
"hewangchen0727@gmail.com"
] | hewangchen0727@gmail.com |
d4a23ed0b13e657f4111bcccb64f7c5499707cc3 | 31cf6cb28568307ffa3551f2fbf8a006f26ff52c | /FactorGo/__init__.py | 6027c27adadca8836e107b02189a52360efdc3ee | [] | no_license | LUS8806/FactorGo | 74aa136ee0551b91b4c91bb4c598d2f106e92d05 | cd1f225b1c2fe5499476f62ceab86a7d7d20e8a6 | refs/heads/master | 2022-11-17T11:15:33.465663 | 2020-07-15T13:10:16 | 2020-07-15T13:10:16 | 278,116,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from FactorGo.factor_base import FactorDataStruct
from FactorGo.factor_process import FactorProcess
from FactorGo.factor_process import FactorWinsorize, FactorNeutralize, FactorCodeFilter, FactorStandardize
| [
"sonne.lu@hotmail.com"
] | sonne.lu@hotmail.com |
cef7f4cf6998c60638388556429591f77e314c61 | 4bdd12fc089d3cc5a9b36030dc53b73a8d4b3064 | /src/api/views/review.py | 9d937106955b7a116229348ab025bd1996368ac4 | [] | no_license | CodingCobrasCS480/CPPCarpoolBackend | e888671bf6aa5761a1cebc6928080f304c648416 | 616c239320d015ce68a353e2c9548ceec71d4e5b | refs/heads/master | 2021-01-11T00:36:38.166441 | 2016-12-01T00:46:56 | 2016-12-01T00:46:56 | 70,534,697 | 0 | 1 | null | 2016-11-26T06:39:23 | 2016-10-10T22:39:43 | Python | UTF-8 | Python | false | false | 4,020 | py | from flask import Blueprint, request, jsonify
from flask_restful import Api, Resource
from api import db
from psycopg2.extras import RealDictCursor
from api.extensions import requires_auth
review_bp = Blueprint('review_bp', __name__)
review_api = Api(review_bp)
def get_form(key):
if key not in request.form:
... | [
"Christian.T.Hill@jpl.nasa.gov"
] | Christian.T.Hill@jpl.nasa.gov |
189bb8a25718fb9f0a4778453cbd0bb5d9197b31 | 537ddf1ca5d9b5f141a82aa3baf4bee782fd9a4e | /utils/dataset.py | 36456d8cd409705706a07d4b1ea360b34ca89e24 | [
"BSD-3-Clause"
] | permissive | iceshade000/ADGT | 113ef60b8edab2fb26b3901031a30c1e870ba381 | 54cf5df302b9ff4a9007856ae2596d136d40c84b | refs/heads/master | 2023-01-01T00:04:31.664843 | 2022-06-07T02:08:10 | 2022-06-07T02:08:10 | 286,201,922 | 0 | 2 | MIT | 2020-10-28T05:50:01 | 2020-08-09T08:59:54 | Python | UTF-8 | Python | false | false | 7,275 | py | from torch.utils.data import Dataset, DataLoader
import os
from PIL import Image
from torchvision.datasets.cifar import CIFAR10
from torchvision import transforms
def is_image_file(filename):
IMG_EXTENSIONS = [
'.jpg', '.JPG', '.jpeg', '.JPEG',
'.png', '.PNG', '.ppm', '.PPM', '.bmp', '.BMP', '.tiff... | [
"857332641@qq.com"
] | 857332641@qq.com |
f9eddd2dfd9872cc121bf34cf56a369349327ca5 | 15a706ff72f16291622d3cb038c579a346bd85ef | /config.py | 2675040ad2f672c6b1337ba245b670328299ac5a | [] | no_license | land-pack/clothes-gallery | 418616cde9b9f475c723aa74dd018cc860193d8a | d715871bd1d7974349be5abc865ae2698645586e | refs/heads/master | 2021-01-17T13:00:16.090961 | 2016-06-14T01:59:54 | 2016-06-14T01:59:54 | 58,244,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
LANDPACK_MAIL_SUBJECT_PREFIX = '[Gallery]'
LANDPACK_MAIL_SENDER = 'Landpack <landpack@sina.com>'
ADMIN = '123@qq.co... | [
"landpack@sina.com"
] | landpack@sina.com |
9ebab208afe1bd2f7614df1c2de549eb77d9db95 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.9.55/2/1569574642.py | 90461df7fb044b3bea3b407adea39ed89bcc0d15 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,229 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def is_palindromic(n: int)-> bool:
n_list = (str(n)).split()
return n_list
######################################################################
## Lösung Teil 2. (Tests)
def test_is_palindromic():
assert is_palind... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
7e5f0852a9d3e0223cd78d222333b91a9e678a04 | 3ba76ce98cdc5578f1ce38fba41da152404224fa | /python/test/grammar_translator/testCallEnd.py | 20d874cf234ddb191d66611c5aac626a8862662e | [
"MIT"
] | permissive | DiaosiDev/gpufort | 258a4d3f8e8a8d53428f34f377ad8ff662369a53 | e60e99dfa3b17306ad65a01d56a764aac471eaba | refs/heads/main | 2023-08-14T13:15:08.266532 | 2021-10-05T09:51:23 | 2021-10-05T09:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python3
# SPDX-License-Identifier: MIT
# Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
import addtoplevelpath
import sys
import test
import translator.translator
import grammar as translator
testdata = """
1 )
a_d )
psi_d )
2 * lda, ps_d, 1, 1.D0, psi_d, 1 )
spsi_d )
a_d )
1, spsi... | [
"docharri@amd.com"
] | docharri@amd.com |
32c5c444b69f867b603c9b38706e48446c3ed75b | 4e9923dca942f7bb861fcd8399d4eb28d2f990f3 | /core/get_pic.py | 44eecfa6164c12f61d8bcb36572378261074ba7b | [] | no_license | ses4j/empid | c8549a03baeb422f5add52d36e610cf97cc37fc4 | cc68e255ae6377b4fbbe3c5ec8409853c34650be | refs/heads/master | 2022-05-31T11:17:30.684792 | 2022-05-21T03:45:01 | 2022-05-21T03:45:01 | 207,694,752 | 0 | 0 | null | 2022-05-21T03:45:37 | 2019-09-11T01:21:08 | Python | UTF-8 | Python | false | false | 1,933 | py | import logging
import requests, pprint
logger = logging.getLogger(__name__)
def get_image_urls(species, taxonCode='', count=50, sort_by="rating_rank_desc", regionCode='', mr='MCUSTOM', bmo=1, emo=12, yr='YPAST10'):
# taxonCode = "aldfly"
# https://ebird.org/media/catalog.json?searchField=user&
# q=&taxonC... | [
"scott.stafford@gmail.com"
] | scott.stafford@gmail.com |
483dceab4a240864aa0361b1ab4ea50699ff9ed0 | 81f5216dcff3755d008f1202e187d7f761bc6dbf | /system_tests/system_tests_async/conftest.py | 9669099245dceb5d5eebac8d3a488a845f2bb169 | [
"Apache-2.0"
] | permissive | bojeil-google/google-auth-library-python | 46cde46cd220148d118ea98eefb2eaa26b2031f1 | a37ff00d7afd6c7aac2d0fab29e05708bbc068be | refs/heads/main | 2023-08-06T23:51:31.529892 | 2021-09-28T21:44:05 | 2021-09-28T21:44:05 | 411,832,250 | 0 | 1 | Apache-2.0 | 2021-09-29T21:18:15 | 2021-09-29T21:18:14 | null | UTF-8 | Python | false | false | 3,362 | py | # 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 agreed to in writing, ... | [
"noreply@github.com"
] | bojeil-google.noreply@github.com |
9a6fe69b312cfd1dbfdc8bf7ac6a4bb97248c01b | 232c8c85b4277e9a51b1ded461f27f761c13c2e1 | /Software/Python/grove_gps_arduino.py | 150560d81065e5462386833caf7df8051423724b | [
"MIT"
] | permissive | schrein/GrovePi | 4b3d6cc4e153fd201fc231c139bfe27843d4b903 | 75fe88c118d8c53ec92e20eca670970cd5c29acf | refs/heads/master | 2021-01-18T09:39:43.254970 | 2015-08-12T07:56:12 | 2015-08-12T07:56:12 | 40,587,212 | 0 | 0 | null | 2015-08-12T07:43:21 | 2015-08-12T07:43:21 | null | UTF-8 | Python | false | false | 1,937 | py | #!/usr/bin/env python
#
# GrovePi Example for using the Grove Temperature & Humidity Sensor Pro (http://www.seeedstudio.com/wiki/Grove_-_Temperature_and_Humidity_Sensor_Pro)
#
# The GrovePi connects the Raspberry Pi and Grove sensors. You can learn more about GrovePi here: http://www.dexterindustries.com/GrovePi
#
# ... | [
"schreiner@unistra.fr"
] | schreiner@unistra.fr |
eae719c94696afaae249e39f8bfddef165b649e6 | dae7de26f09bf1d0fcc9231082a0cddd5eb88074 | /python_src/d01_FESTIVAL_03.py | 551f2ed0e2f874b34b1235aa4456cf8da0c6a44f | [] | no_license | dubu/algospot | e9b50f27d7b3cf5866841429d736c6839234ecba | 1665321321bd99546b512ce6a285738c92a76c35 | refs/heads/master | 2016-09-11T08:50:29.747545 | 2014-11-24T15:38:20 | 2014-11-24T15:38:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | __author__ = 'dubuapt'
def main():
import sys
f = sys.stdin
caseCount = f.readline()
# print range(int(caseCount))
result = []
ret = 0
for n in range(int(caseCount)):
# print n
line01 = f.readline()
line02 = f.readline()
ln = str(line01).strip().split()
... | [
"kozazz@hanmail.net"
] | kozazz@hanmail.net |
ce05fe6a4190b4e43561937b674f94d5b8483423 | d82db03a258eafd28a758a7b7e56f991e599d798 | /docs/source/conf.py | 4dec93ff7d8aeb16c048a3a6e37d0601df186574 | [
"MIT"
] | permissive | preems/nltk-server | 3fe65e817fb8cc100c8e74dac91fc709808d796f | cf7644b6d5529bcf6bb9a74eedb46761b5b164ab | refs/heads/master | 2021-06-03T19:03:41.905014 | 2021-01-08T21:48:05 | 2021-01-08T21:48:05 | 28,204,818 | 24 | 17 | MIT | 2021-01-08T21:48:07 | 2014-12-18T22:43:50 | Python | UTF-8 | Python | false | false | 8,398 | py | # -*- coding: utf-8 -*-
#
# NLTK Server documentation build configuration file, created by
# sphinx-quickstart on Tue Dec 23 16:54:51 2014.
#
# 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.
#... | [
"me@preetham.in"
] | me@preetham.in |
c71f6184c1b42c8351075c6e0810a10da0e108af | 7f52cc0952b39218b12b401c9136d0ae92bb8387 | /Text_Classifier.py | a6410a7f24e8a868ccd0f2d933ed1da8011091c8 | [] | no_license | Subhash3/Sentiment-Analysis | b1336bb48128b0db29cd2807660e9335ba4dd9ab | 159e4727e3b54f4638d5dfb591ac5cd52250a44c | refs/heads/main | 2023-04-28T20:30:01.674730 | 2021-05-21T05:22:20 | 2021-05-21T05:22:20 | 368,753,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,328 | py | import pandas as pd
import json
from helpers import customArgmax, shuffleArray, splitDataframe, splitArr
from Pre_Processor import PreProcess
import sys
from custom_exceptions import RequiredFieldsNotFoundError
class TextClassifier:
"""
Class to classify text using Naive Bayes algorithm
Attribute... | [
"subhashsarangi123@gmail.com"
] | subhashsarangi123@gmail.com |
c578909d8cbe9e593b253df1984ea9ee3076609c | fda71dfb60ef4be197382fbd900f6dfc28da86bd | /asifncfetv2/model_tests/fit100nm.py | 4b93628639c437ec035ab333ff82acae11f0878f | [] | no_license | jpduarte/userjp | d9bfa2a46c0d8eda5796a785f1ed6082617520ce | 3e6190681e706d954976790af2419509613056f6 | refs/heads/master | 2021-03-22T00:05:04.018130 | 2016-06-16T22:21:36 | 2016-06-16T22:21:36 | 34,271,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,090 | py | #example: run hspice Id-Vg using python
#Juan Duarte, BSIM Group
rootfolder = '/home/juan/research'
#indicate path for folders containing required classes
import sys
sys.path.insert(0, rootfolder+'/cmdp/pycsimsupport')
sys.path.insert(0, rootfolder+'/cmdp/plotscripts')
sys.path.insert(0, rootfolder+'/cmdp/fittingsupp... | [
"jpduarte@berkeley.edu"
] | jpduarte@berkeley.edu |
878906624466eab280cf92986ee00507d5c002c8 | 813c2a273a6c973d358d38e6016da7f8a7e5d840 | /src/api_wrapper/api.py | d2bc0b35dee9538189da4ae495892a157401196b | [
"MIT"
] | permissive | MSDuncan82/api_wrapper | 22e49f2f54c3ef857f0a0d6d1e59aedd71bc4698 | 602d0ad901cc0c95a302404af609ca6f28d842ee | refs/heads/master | 2022-11-15T00:09:29.689197 | 2020-07-09T12:24:31 | 2020-07-09T12:24:31 | 261,279,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from base_api import API
from geo_api import MapboxAPI
from census_api import CensusBoundaries
| [
"msduncan82@gmail.com"
] | msduncan82@gmail.com |
9c5405c5f44f1cba5e09270396b0321ed198f4d0 | 01f4bf71d200039bf38508aab253a0686a9cba8e | /flink-runtime-web/web-dashboard/node_modules/fmin/test.py | f55af9abffc7cf1888d23be232aa4742da1cc9eb | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"OFL-1.1",
"ISC",
"LicenseRef-scancode-free-unknown",
"MIT-0",
"CDDL-1.0",
"CDDL-1.1",
"EPL-1.0",
"Classpath-exception-2.0",
"CC-BY-2.5",
"GCC-exception-3.1",
"AGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause-Views",
"MPL-2... | permissive | MinJeromeXU/flink_source | 4599bf88f3eb0152d9a310e4d9a0d11b45472226 | 140c345df48b703582337ae59e465f0765c310a7 | refs/heads/master | 2022-11-06T00:08:32.307280 | 2019-08-24T12:43:39 | 2019-08-24T12:43:39 | 204,151,561 | 2 | 0 | Apache-2.0 | 2022-11-01T23:02:43 | 2019-08-24T12:02:02 | Java | UTF-8 | Python | false | false | 1,353 | py | import scipy.optimize
import math
def himmelblau(x, y):
return (x * x + y - 11) * ( x * x + y - 11) + (x + y * y - 7) * (x + y * y - 7)
def beale(x, y):
return math.pow(1.5 - x + x*y, 2) + math.pow(2.25 - x + x*y*y, 2) + math.pow(2.625 - x + x*y*y*y, 2);
def main():
if True:
initial = [-3.67060... | [
"xuminsong@xuminsongdeMacBook-Pro.local"
] | xuminsong@xuminsongdeMacBook-Pro.local |
f85399095b8e9d78821d2f926b73f4272a10b01d | 14fb0e7645b9d7a8672a87ae369880dba0737521 | /kmeans_tutorial/iris_plot.py | e2114556593538b0336c7eb7595279385dbb933d | [] | no_license | danielgwak/GA_homework-1 | 4a5f40de42f420194299da6437082b8147e8aa49 | 472043d5527d8bad4cb7d298576d09f2d860adfc | refs/heads/master | 2021-01-19T18:08:10.738188 | 2014-01-15T04:09:51 | 2014-01-15T04:09:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | import matplotlib
matplotlib.use("AGG")
from matplotlib import pyplot as plt
from sklearn.datasets import load_iris
import numpy as np
# We load the data with load_iris from sklearn
data = load_iris()
features = data['data']
feature_names = data['feature_names']
target = data['target']
plt.figure(1)
for t,marker,c i... | [
"rob@ip-172-31-33-228.us-west-2.compute.internal"
] | rob@ip-172-31-33-228.us-west-2.compute.internal |
a392e98adcfc9228bc16e69bb9ab4986edb5cd45 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/tornado/2018/4/iostream_test.py | cb0967f8c09ce908838377aba724ed3bab180f85 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 51,339 | py | from __future__ import absolute_import, division, print_function
from tornado.concurrent import Future
from tornado import gen
from tornado import netutil
from tornado.iostream import IOStream, SSLIOStream, PipeIOStream, StreamClosedError, _StreamBuffer
from tornado.httputil import HTTPHeaders
from tornado.locks import... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
e8966e77faf7d525ddb1849377f1a78e5cbe9e59 | f98f34290455c7845a6deb31abc8b1d5cfa3a384 | /coati/web/api/auth/__init__.py | 732da7cba743a8123a85bcbdec1e04236a43ba2c | [] | no_license | gastonrobledo/coati | a8d19a88bbc49178786ad0d6e0037294c28bf8e6 | 5022d252d79a62d097608727b40295f7970175b5 | refs/heads/master | 2021-01-12T13:52:09.431004 | 2015-05-10T19:29:26 | 2015-05-10T19:29:26 | 29,596,215 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,886 | py | """
Authentication resource.
"""
from flask import request, current_app, g as flask_g
from flask.ext.restful import Resource
from coati.core.models.user import User
from coati.web.api import errors
from coati.web.api.auth import oauth, utils, decorators
from coati.web.api.auth.utils import current_user # noqa
oauth... | [
"gaston.robledo@santexgroup.com"
] | gaston.robledo@santexgroup.com |
cb948eb99e8c59e381efd73f6582454c59444afc | f52a45048f169175286b52b1f24012642a6e4c99 | /tools/giza-align/scripts/a3ToTalp.py | 610c7259bf865c81bc3c6efde7bdf9963e9a6a92 | [
"MIT"
] | permissive | bingrao/Bug-Transformer | 8efd868e128b0cc383ee588083cf0ab6f857d61b | 9e39dc553c281f6372b7a8cfc8205aa186645899 | refs/heads/master | 2023-08-15T03:25:14.735190 | 2021-09-28T13:58:03 | 2021-09-28T13:58:03 | 266,435,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | #!/usr/bin/env python3
import fileinput
import re
REGEX_ALIGNMENTS = re.compile(r'\({[^}]*}\)')
FAIL_STRING = "ASDFFDS42fsdafads"
def get_id(line):
# line_id is enclosed in parenthesis
# e.g.: Sentence pair (79) source length 12 target length 15 alignment score : 5.75958e-25
start_pos = line.find("(") +... | [
"bing.rao@outlook.com"
] | bing.rao@outlook.com |
927cf692f6e4c73c01ee931bcd6f0ccc32a25f3a | 79aae87837d01e0ddd82e77d5b3bbf2e60e3d076 | /.history/my_django_app/tareapp/views_20210501203254.py | 45455eaceb2a112dc29990d8d6dfbaa6757ca4dd | [] | no_license | jiisamitt/Taller-de-integracion | d4c25c8692a8201f5fe5846c6214f574ecb399a6 | cedc999149a63c60b445d726d67a33b1c9cc1287 | refs/heads/main | 2023-05-06T17:55:08.812455 | 2021-05-19T01:38:56 | 2021-05-19T01:38:56 | 363,818,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | from django.shortcuts import render
from .models import Artist, Album, Track
# Create your views here.
from ninja import NinjaAPI
from django.http import JsonResponse
api = NinjaAPI()
@api.get("/hello")
def hello(request):
return JsonResponse("Hello world", safe=False)
#########GET#######
@api.get("/artists")... | [
"jiisamitt@uc.cl"
] | jiisamitt@uc.cl |
6313ce3c9888ef5c1cb94158eac8d12924ff763f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02865/s890600458.py | 1a486eb538995fa9afae5b083b50858eda56c26a | [] | 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 | 34 | py | n=int(input())
print(int((n-1)/2)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c5750e26f74d1e9f2ae44c7e2ada0083a67e0fc8 | 29332b729802dd04b973167c357a7db288a8ec3e | /blog/templatetags/blog_tags.py | dd552f0e1f86ed3835671766f3ee1b394ca64104 | [
"MIT"
] | permissive | michiko5173/ano | 017912cbd7d9b29617e3e559f907127dc11de26f | 7b9e1bdf56098948fbcc7f9897cc1cd94752b007 | refs/heads/master | 2022-12-12T02:15:43.599188 | 2018-07-13T01:48:38 | 2018-07-13T01:48:38 | 140,777,273 | 0 | 0 | MIT | 2022-12-08T02:16:25 | 2018-07-13T00:27:17 | Python | UTF-8 | Python | false | false | 9,294 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: ??
@author: liangliangyy
@license: MIT Licence
@contact: liangliangyy@gmail.com
@site: https://www.lylinux.org/
@software: PyCharm
@file: blog_tags.py
@time: 2016/11/2 下午11:10
"""
from django import template
from django.conf import settings
from django.template.d... | [
"liangliangyy@gmail.com"
] | liangliangyy@gmail.com |
a13201cdc3fe10e5273d7eda84cf72171719be25 | 42044df01721592b3a8de98ade7d1b322e8cb0db | /project v2/title_state.py | 0f391af5debe5de9bb1117514610ed0cc8be1083 | [] | no_license | jingle23/2D | 4069d0ca304ac68e4858c990ba993def4a3850f6 | 5e33b96d9c782fcc712df34fd2b90660d658cecb | refs/heads/master | 2020-06-05T08:40:37.733669 | 2015-12-14T18:35:26 | 2015-12-14T18:35:26 | 42,495,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | import game_framework
import main_state
from pico2d import *
name = "TitleState"
image = None
def enter():
global image
image = load_image('Background/title.png')
def exit():
global image
del(image)
def handle_events():
events = get_events()
for event in events:
if event.type ==... | [
"wlsrms23@naver.com"
] | wlsrms23@naver.com |
ad6d42e85d7e43cb070f0ced7a2556eec4858ae0 | 24a9165aad8676a58a48325d21403c1a8f2d8b63 | /actionToMenu.py | bb2353266320e833ec178d9c27a417ed70438fd5 | [] | no_license | xiajun325/IDA7script | e8b4dad5f7802b5d2780fbe0726cdcf0c7c76588 | c81b5fcb613201b7f03a75e5865cfbd00c845b5c | refs/heads/master | 2023-03-30T15:06:52.472695 | 2021-04-03T13:33:43 | 2021-04-03T13:33:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | # coding=utf-8
import idaapi
from Qing.action_utils import Action
from PyQt5 import QtWidgets
import idc
class TestAction(Action):
description = "Test"
hotkey = ''
def __init__(self):
super(TestAction, self).__init__()
def activate(self, ctx):
print("testAction activate")
ret... | [
"1109162935@qq.com"
] | 1109162935@qq.com |
16b523fe67d2ae523036aafa03ab2b9a7446c5f1 | 1f124b3e177506f9df9d28829f4db2fff995822f | /smic/smic.py | 27ef197f5843d8ad6f2863e28ef2a66c0cb6e6f9 | [
"MIT"
] | permissive | dgreyling/smart_image_classifier | 9ed8186bc66639e76843007f6880d3da6ad67615 | 7f41011974f09437f2dd604786501e124ef3759a | refs/heads/master | 2020-03-27T10:55:09.712607 | 2017-11-07T13:24:51 | 2017-11-07T13:24:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,778 | py | from keras import applications
from keras.models import Model
from keras.optimizers import SGD, RMSprop, Adam
from keras.models import Sequential
from keras.layers import Input, Dense, Dropout, Flatten, Conv2D, MaxPooling2D
from keras.layers.normalization import BatchNormalization
from keras.metrics import categorical_... | [
"anuragmishracse@gmail.com"
] | anuragmishracse@gmail.com |
1c9bc6c6faafc6aedb79166907f3152dcbcdea0e | 48e26473938aecf6ce172da231d47127c650be44 | /决策树(Decision_Tree)算法/Decision_Tree_1/tree_Fish.py | 5496f00f218fe3b4958f053cb607d801421b325f | [] | no_license | JunchuangYang/Machine-Learning | fa5ce6ecea6d2a54d67032cbe9540cff2211b021 | 9609d7cd4967318efd81c2490debfbc2989bfb4a | refs/heads/master | 2020-03-29T22:17:43.845422 | 2019-05-15T04:13:41 | 2019-05-15T04:13:41 | 150,412,820 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,657 | py | # -*- coding=utf-8 -*-
# 创建数据集
import numpy as np
import pandas as pd
def createDataSet():
row_data = {'no surfacing':[1,1,1,0,0],
'flippers':[1,1,0,1,1],
'fish':['yes','yes','no','no','no']}
dataSet = pd.DataFrame(row_data)
return dataSet
'''
函数功能:计算香农熵
参数说明:
dataSet ... | [
"554002970@qq.com"
] | 554002970@qq.com |
17944a1883dd42251678b15ef4124732d9e722fa | a8042cb7f6a4daec26b8cea6b7da2cb7cb880a84 | /496_NextGreaterElementI.py | 3962e7c60ac961dc07daa18ad0a1a1e5d8f34394 | [] | no_license | renukadeshmukh/Leetcode_Solutions | 0108edf6c5849946623a75c2dfd57cbf9bb338e4 | 1211eac167f33084f536007468ea10c1a0ceab08 | refs/heads/master | 2022-11-10T20:48:42.108834 | 2022-10-18T07:24:36 | 2022-10-18T07:24:36 | 80,702,452 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | '''
496. Next Greater Element I
You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the
next greater numbers for nums1's elements in the corresponding places of nums2.
The Next Greater Number of a number x in nums1 is the first greater number to its righ... | [
"renud1988@gmail.com"
] | renud1988@gmail.com |
ac1317e1f649bb38d9f032a1159d414fce1b195e | ab4ede55a042fdbf8f4ae72943c644e3d125b48b | /app/config/views.py | ec6bf64e82359646c04ec36783ab542193d5d992 | [] | no_license | rkfflrtodn/instagram | 40f1632bdf8e5840cc696bf670b12f3c6ecee346 | 3b138cc89da88ce01e9df3005881afcb058ec9b0 | refs/heads/master | 2022-12-12T17:01:08.182474 | 2018-11-22T13:25:59 | 2018-11-22T13:25:59 | 152,712,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | # from django.shortcuts import redirect
#
#
# def index(request):
# return redirect('posts:post-list') | [
"zxcehdghks@gmail.com"
] | zxcehdghks@gmail.com |
f6e0bd5c8a3d4cb5a8bfebd68aa95541db5b50c6 | 55766b93376f35c9959e5ab9ac292de5188c1d0f | /1.py | c21ec42f4a7b776a2bfbc4cd0122c34703d1ae47 | [] | no_license | AnatolyDomrachev/test-1 | 86284a4fbee63c213e7c75b8d3486cdd1fbf7ea1 | dcede87360bc73898d6a2179323c4e1dbfc154e9 | refs/heads/master | 2022-11-29T16:43:38.709219 | 2020-08-18T15:38:22 | 2020-08-18T15:38:22 | 288,495,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | print('hello');
print('good bye');
| [
"you@example.com"
] | you@example.com |
0978c5a042390a51f314350f00cfe245b9357ea9 | 5fff2532a7dacda0c48c409fea4700b9b3f31bd4 | /src-python/day22.py | 8a70f984b5b9e74580626da0a653188e30fee1e4 | [
"MIT"
] | permissive | virtuNat/aoc-12020 | 857faccc575fc5b89a31fdfd0b304d378bc8b448 | d08879ade8aaae0eb2f3ee3f4bca818646dd6c36 | refs/heads/main | 2023-02-08T21:29:45.376704 | 2020-12-26T15:52:07 | 2020-12-26T15:52:07 | 324,528,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | #!/usr/bin/env python
from functools import cache
from itertools import accumulate
from aoc import get_input
@cache
def combat(deck1, deck2, recurse, level=0):
if level:
m1 = max(deck1); m2 = max(deck2)
if m1 > m2 and m1 > 1 + len(deck1) + len(deck2):
return deck1, deck2
deck1 = lis... | [
"janlothan@gmail.com"
] | janlothan@gmail.com |
562cc4a952c6cfa40b2f83a026396169f3908a41 | 1e6cb730dea7fb3afb3d166fd9388d53d226d7d5 | /WSGI/venv/lib/python3.4/heapq.py | 9744325bfdb6079ec82ea572f48c9fc8b327f177 | [] | no_license | colinfrankb/py10000 | adc761f1b71eeac40090c91390d0534f0cd53543 | 126e04c99182c72908666f5aecf460725c1ae9ec | refs/heads/master | 2021-01-10T21:05:36.459624 | 2016-09-26T07:52:45 | 2016-09-26T07:52:45 | 31,061,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | /Users/Frank/.pyenv/versions/3.4.2/lib/python3.4/heapq.py | [
"colinfrankb@gmail.com"
] | colinfrankb@gmail.com |
83eb959651aa8bd7a6a586e2cd39c7c55930733b | c9a49cbd10348e8023df2ebdb067486d14c9deea | /073/name_art.py | 57d9ede07be275b3a82346fa9d979beb485e6e0d | [] | no_license | kay0/programming-projects-for-n00bz | 48d5ba40cb44bed1a984667fbff6761c951466c0 | 0786dc173814e1a0cd887d49893e55c0072f1919 | refs/heads/master | 2021-01-22T08:48:20.872295 | 2014-02-17T19:11:51 | 2014-02-17T19:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,361 | py | #!/usr/bin/env python3
letters = {" 0": " ",
" 1": " ",
" 2": " ",
" 3": " ",
" 4": " ",
" 5": " ",
" 6": " ",
"a0": " ",
"a1": " ",
"a2": " _____ ",
"a3": "| _ | ",
... | [
"kayoproject@gmail.com"
] | kayoproject@gmail.com |
d76f17a3e54122471383f7595237bdae17a61185 | 3a68cd19b35fd59ab5c8af285b3be143479de396 | /pysc2/pysc2/tests/versions_test.py | 32d4f6052e7725782c4db512a00d0a234726c831 | [
"Apache-2.0"
] | permissive | kiriphorito/COMP3096---MARL | 7abe7f3e93d8740394f08d03898723392597ac11 | 5e05413b0980d60f4a3f2a17123178c93bb0b763 | refs/heads/master | 2021-09-10T15:55:44.022893 | 2018-03-29T00:03:11 | 2018-03-29T00:03:11 | 119,538,854 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | #!/usr/bin/python
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"now-raymond@users.noreply.github.com"
] | now-raymond@users.noreply.github.com |
27fc6dcd930ae36d00ebec839c5c3f009e5a42be | ef158af9d47fb1f0c974b49405174ba5b34e4721 | /polu/a_la_main/particule.py | 48e5982b2cd644c636af5c45672802a034cecf13 | [] | no_license | LeGrosLezard/bobo | 1227bcae22d9eb7d9e0423009cae154df5466994 | 7c50de512fb22c8bdf1a1127307fc4fd2f371152 | refs/heads/master | 2020-07-01T17:38:14.145955 | 2019-07-01T21:29:49 | 2019-07-01T21:29:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | """Here we define for database
the numbers of particle,
ranking pollute in France and industrail poles"""
import requests
import datetime
import urllib.request
from bs4 import *
from CONFIG import PATH_PARTICLE_RATE
def particule2(lieu):
"""we search particule rate from plumelabs"""
nb = []
... | [
"noreply@github.com"
] | LeGrosLezard.noreply@github.com |
e2b6852e10dedc2433da7e611507517cfb5a6207 | d7641647d67d110e08997767e85bbea081c2537b | /bitmovin_api_sdk/encoding/statistics/statistics_api.py | 8cb831b413480ef89454e83eec9181f76b9fcaf5 | [
"MIT"
] | permissive | aachenmax/bitmovin-api-sdk-python | d3ded77c459852cbea4927ff28c2a4ad39e6026a | 931bcd8c4695a7eb224a7f4aa5a189ba2430e639 | refs/heads/master | 2022-11-16T08:59:06.830567 | 2020-07-06T07:16:51 | 2020-07-06T07:16:51 | 267,538,689 | 0 | 1 | MIT | 2020-07-06T07:16:52 | 2020-05-28T08:44:44 | Python | UTF-8 | Python | false | false | 2,754 | py | # coding: utf-8
from __future__ import absolute_import
from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase
from bitmovin_api_sdk.common.poscheck import poscheck_except
from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope
from bitmovin_api_sdk.models.response_error import ResponseError... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
3fa6277d5fed03298c5e2cbebf437ed5eb267d71 | a2c90d183ac66f39401cd8ece5207c492c811158 | /Solving_Problem/daily_222/1216/1941.py | 3fcd0ee746db59aa838e64510132779712bee202 | [] | no_license | kwoneyng/TIL | 0498cfc4dbebbb1f2c193cb7c9459aab7ebad02a | c6fbaa609b2e805f298b17b1f9504fd12cb63e8a | refs/heads/master | 2020-06-17T11:53:38.685202 | 2020-03-18T01:29:36 | 2020-03-18T01:29:36 | 195,916,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | near = [[-1,0], [0,1], [1,0], [0,-1]]
def sellect(st, ls=[], rs=0):
if rs > 3:
return
if len(ls) == 7:
perm.append(ls)
return
for i in range(st, 25):
sellect(i+1,ls+[i],rs+bd[ht[i][0]][ht[i][1]])
def check():
global rs
for i in perm:
q = [i[0]]
vis =... | [
"nan308@naver.com"
] | nan308@naver.com |
47f86cfcedff9c6e9486d4d13f24348ee2f16128 | b595a92331fd798739abb1190650258c5998cd40 | /patterns/filtering.py | 7982a540833751afdc113d1337c4afc3bacaa63f | [] | no_license | dbulthuis/Class_Problems | 526b175b2b216b8d3722daa89ebc189ef2b65e25 | 261ffe0197427af619c5627607044550b8a848e9 | refs/heads/master | 2021-01-17T09:05:10.864706 | 2016-08-03T16:22:32 | 2016-08-03T16:22:32 | 64,411,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | #!/usr/bin/python
import sys
import csv
import re
# To run this code on the actual data, please download the additional dataset.
# You can find instructions in the course materials (wiki) and in the instructor notes.
# There are some things in this data file that are different from what you saw
# in Lesson 3. The data... | [
"dbulthuis@gmail.com"
] | dbulthuis@gmail.com |
7e3e9ece6ae1c2ecd56110b1f3fcb44de6fb286a | 4799cb1f6bdb40b5a2fd6ec739346da3d087fe33 | /explog/config/urls.py | 640dad04e1f2904b7678991709911a7a5cfb2955 | [] | no_license | gangbok119/Team-project | fe4527ae53bec30f4e5738d57978b5c6f71bcebe | 8418e611699143e43f5113bf5e83975e1829883a | refs/heads/master | 2021-09-03T13:16:23.109377 | 2017-11-24T01:58:34 | 2017-11-24T01:58:34 | 111,489,261 | 0 | 0 | null | 2017-11-21T02:38:18 | 2017-11-21T02:38:18 | null | UTF-8 | Python | false | false | 841 | py | """explog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"kaythechemist@gmail.com"
] | kaythechemist@gmail.com |
62fb4bd8b4a3c2dce98be1e19cf29ad7013b7988 | 59b74e5ffc0b592ce80a6e6d2d6257dd46c4fc8c | /http-key-value-tester.py | 8eff29492f9c1043d50ffac5ae95253becf57ee3 | [] | no_license | msb1/async-http-keyvalue-tester | f0b4dbfabcce7e100ff4be423bb58efa2509ca8c | 0e8466f359661d53d91619d352dafe26c620f043 | refs/heads/master | 2022-11-20T00:15:12.682264 | 2020-07-08T13:31:39 | 2020-07-08T13:31:39 | 278,097,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,496 | py | import json
import random
import aiohttp
import asyncio
url = 'http://localhost:8080'
iterations = 1000000
def generate_random_string(strlength):
chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
s = ""
for _ in range(strlength):
idx = random.randint(0, 61)
s += cha... | [
"44041613+msb1@users.noreply.github.com"
] | 44041613+msb1@users.noreply.github.com |
9784160e26ac966f5afa53feef970bd9880c33df | bcf7a2d7d3220972316a374f5cb831706d50dad1 | /src/hub_pip/api/model/MetadataView.py | 080795182d2cd5809f99a3723881e801a5a6bf39 | [
"Apache-2.0"
] | permissive | blackducksoftware/hub-pip | 64d52565e2a384d08757d23c2b536c47d289c624 | fa37ac208827461d4c5918b0d54a802dbde5ca37 | refs/heads/master | 2021-07-10T03:13:55.243296 | 2017-10-11T15:26:32 | 2017-10-11T15:26:32 | 85,363,641 | 1 | 3 | null | 2017-05-04T15:25:01 | 2017-03-17T23:47:01 | Python | UTF-8 | Python | false | false | 221 | py | class MetadataView(object):
allow = None
href = None
links = None
attribute_map = {
"allow": "allow",
"href": "href",
"links": "links"
}
def __init__(self):
pass
| [
"mathewsj2@wit.edu"
] | mathewsj2@wit.edu |
066ce5740925cc80fbe9b0006bafe587fe53762a | 0ca8e83f1eccc18d59c6f98eb1dea70e2ba1e132 | /smtp_ex.py | 751a25d82ece9fc7f62a670c8e4ee8f970be8806 | [] | no_license | isarkhan95/python_project | 0d54f69ed3db224c9e909a2bf525bf1e1b0c3902 | d7292ff4288124c130b213c3d57c9fe10d9defdd | refs/heads/master | 2022-11-16T20:26:24.181816 | 2020-07-18T14:11:56 | 2020-07-18T14:11:56 | 280,668,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import email.mime.image as img
# me == my email address
# you == recipient's email address
me = "isarkhan95@gmail.com"
you = "isarkhan95@gmail.com"
# Create message container - the correct MIME type is multipart/alternat... | [
"isarkhan95@gmail.com"
] | isarkhan95@gmail.com |
2982213b633aae5378196ba8985cb4851b3f8543 | 8dce9bdf64bd16ace5580444f45867a90f324dcf | /pyspark_scripts_logfiles/Python test scripts/2018-12-31/mife-copy4.py | 816624fde2c4764cac9bffec9da6059f29a07e85 | [] | no_license | SaralaSewwandi/pyspark | 160d91ef9f09102b8945c4471cdc21879f0b8041 | 8e41aa88778b89e29798c95691422cc984151421 | refs/heads/master | 2020-05-02T03:06:39.556096 | 2019-03-26T06:04:09 | 2019-03-26T06:04:09 | 177,719,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | from pyspark import SparkContext, SparkConf
conf = SparkConf().setAppName("MIFE Application").setMaster("local")
sc = SparkContext(conf=conf)
print("=====================================")
print(sc)
print(sc.version)
print("=====================================")
lines = sc.textFile("hdfs://sandbox:9000/user/root... | [
"sarala.kumarage@boolean-lab.com"
] | sarala.kumarage@boolean-lab.com |
36e9e5f41b2dce0377e76d241ecf9ea929a12da6 | d06a954f54ef6d1ddf19396618d36f8ddfe4c5fb | /demo2/users/views.py | 6dbe7294258050051778137b32cede53b134ea80 | [] | no_license | land-pack/flask-example | 76be2eb370505a895aa99ed4e189046887ec88bf | 16d55d693c99a03e0f492306ecc4f72f7e7c5b45 | refs/heads/master | 2020-03-10T03:54:45.835797 | 2018-07-05T06:28:10 | 2018-07-05T06:28:10 | 129,178,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from flask import render_template, Blueprint
# config
users_blueprint = Blueprint('users', __name__, template_folder='templates')
@users_blueprint.route('/register')
def user_register():
return render_template('register.html')
@users_blueprint.route('/login')
def user_login():
return render_template('login... | [
"xuhongtian@seeletech.net"
] | xuhongtian@seeletech.net |
08f5e185ee56706b489941cc2f8531ad1dbbf181 | 14a9d65b4599392f1f81111a8dd0a15d9d235fb4 | /word_vector/fasttextProcess.py | c0b8036f72762de28e4abc32b4fd41365751baad | [] | no_license | AshkenSC/Python-Gadgets | ca39be842f59aebe35ba4be37a83601631ba721f | 8ff86c68eb332a1441ee87434b72f43864395566 | refs/heads/master | 2021-04-05T23:47:18.166385 | 2020-08-11T16:14:39 | 2020-08-11T16:14:39 | 125,301,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,937 | py | from random import shuffle
import pandas as pd
class _MD(object):
mapper = {
str: '',
int: 0,
list: list,
dict: dict,
set: set,
bool: False,
float: .0
}
def __init__(self, obj, default=None):
self.dict = {}
assert obj in self.mapper, ... | [
"393940378@qq.com"
] | 393940378@qq.com |
128fd01d414ac7e06e8f5bf213ad56fd619862fe | f7827259ab40a903ac52cd77176be47c35e22125 | /anunidecode/x7d.py | 0eb4b59dba0c24cd57a72c93209cfb18d9377ca9 | [] | no_license | DevTable/anunidecode | 143fec2df17c494aa3adbc0bfad9de5c0c7011eb | d59236a822e578ba3a0e5e5abbd3855873fa7a88 | refs/heads/master | 2021-01-10T19:20:45.172892 | 2014-08-01T19:14:46 | 2014-08-01T19:14:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | page = [
'Ji ', 'Cha ', 'Zhou ', 'Xun ', 'Yue ', 'Hong ', 'Yu ', 'He ', 'Wan ', 'Ren ', 'Wen ', 'Wen ', 'Qiu ', 'Na ', 'Zi ', 'Tou ',
'Niu ', 'Fou ', 'Jie ', 'Shu ', 'Chun ', 'Pi ', 'Yin ', 'Sha ', 'Hong ', 'Zhi ', 'Ji ', 'Fen ', 'Yun ', 'Ren ', 'Dan ', 'Jin ',
'Su ', 'Fang ', 'Suo ', 'Cui ', 'Jiu ', 'Zha ', 'Kinu ', '... | [
"jake@devtable.com"
] | jake@devtable.com |
dec1c98e80a8749dc73e49e0d50a6e2cd8e73cc5 | 0f7f1d8737f66da2443b3fcd5a2140ed34163146 | /Tools/broadAudio.py | 1f8468be93c5e9518e75cef686aed0e7b00fea9e | [] | no_license | lxy1492/TradeHelper | 2fd43e29b17e621953bee1a018c4a9642be70fac | 6df99dd25d0ecd8ddbd5aa9dcb0733d8784ed2c3 | refs/heads/main | 2023-01-20T13:57:09.340159 | 2020-11-30T11:54:58 | 2020-11-30T11:54:58 | 317,207,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | import os
import pyttsx3
try:
import win32com.client as win
except:
win=None
def voiceBroad(text):
if win==None:
return -1
if isinstance(text, str):
speak = win.Dispatch("SAPI.SpVoice")
speak.Speak(text)
elif isinstance(text, list):
speak = win.Dispatch("SAPI.SpVoice... | [
"415997348@qq.com"
] | 415997348@qq.com |
8799d4cb98eb9ede7976808b49107eafbecb05dc | c848015268e430b10f1bc39a2fd5a6f7a8cda44d | /bin/Compare_RILs_SV/lumpy/bin/vcf2gff.py | f189d20c3f24843a8e5d8b47d801c3effcbfef89 | [] | no_license | wangpanqiao/Transposition | 36b87d2f9032170112fce993f17454b6562bb108 | e102de63df2bcd5f7b41075a447eb937ee753832 | refs/heads/master | 2020-08-27T00:07:00.923134 | 2015-12-01T22:30:45 | 2015-12-01T22:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,819 | py | #!/opt/Python/2.7.3/bin/python
import sys
from collections import defaultdict
import numpy as np
import re
import os
import argparse
import glob
from Bio import SeqIO
sys.path.append('/rhome/cjinfeng/BigData/software/ProgramPython/lib')
from utility import gff_parser, createdir
import gzip
def usage():
test="name"... | [
"jinfeng7chen@gmail.com"
] | jinfeng7chen@gmail.com |
ffba8fa530d1a9d8530420700237e7d66a45468b | 98d5a58202ce76741c0257b8a5fe27029536aef3 | /modules/extractNet_resnet.py | 2c67812f7765bbcb8757561233f73d47af1b03ed | [] | permissive | MNRKhan/aps360-project | 885ebc2bea1b1e7b28955e9b5be4a882e8e60813 | 1d91a4262c95cd6b5610aae16e1a30f2749a4373 | refs/heads/master | 2021-07-02T12:49:10.344370 | 2020-09-20T00:41:49 | 2020-09-20T00:41:49 | 170,795,039 | 3 | 2 | MIT | 2019-03-17T17:46:11 | 2019-02-15T03:17:12 | Jupyter Notebook | UTF-8 | Python | false | false | 2,935 | py | # extractNet_resnet.py
# Contains Interconnected Autoencoder model (Encoder ResNet, Decoder Resnet-mirror)
import torchvision
import torch
import torch.nn as nn
import torch.nn.functional as F
encode_out_r = []
def hook_r(module, input, output):
encode_out_r.append(output)
class extractNet_resnet(nn.Module):... | [
"mohsin.hasan@mail.utoronto.ca"
] | mohsin.hasan@mail.utoronto.ca |
4b4f5409ba78d98922a6b99bf6dc945f87eab890 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /iP4ixkQffELyHvHi5_20.py | 05b3289c03b50db6a166632e2631ae1c484a3db9 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | """
Given radius `r` and height `h` (in cm), calculate the **mass** of a cylinder
when it's filled with water and the cylinder itself doesn't weigh anything.
The desired output should be given in kg and rounded to two decimal places.
How to solve:
* Calculate the volume of the cylinder.
* Convert cm³ into dm³.... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
997d5dd9d73da798d2cd7ce51c64790f47654917 | 5a522d6950c081611316d7b3c5d7bc6a62730873 | /venv/Scripts/easy_install-3.6-script.py | da09ab1a06b19c2b0326d2f01732f0f5e5cdaee9 | [] | no_license | Tree-lcf/Api_Test_framework | 219cec640b2a7b2651aa7dbd1cb94fa895640648 | a3eea20048c4d146002174e5ade7a9894841eebc | refs/heads/master | 2020-03-18T12:25:23.337664 | 2018-05-24T01:59:26 | 2018-05-24T01:59:41 | 134,644,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | #!F:\python_work\Api\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys... | [
"lincf97@163.com"
] | lincf97@163.com |
f391943f2a15c651c6a501877029913d0b83fdf6 | 941f7fe303318c1b71e94181b4e2e266efb043db | /run.py | 1b0c7744db5e9b0d65a7bb79a7165a2f0380a9cc | [] | no_license | jshiv/cronicle-sample | 86c13a5e7a81a79467d5c34a3e2aecc445595da8 | f99ad6af7dec32830d21dc555906123474509cf8 | refs/heads/master | 2020-07-25T02:21:20.386878 | 2019-09-21T05:12:20 | 2019-09-21T05:12:20 | 208,131,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | import random
if __name__=="__main__":
x = random.random()
print("X: {}".format(x))
| [
"jason.shiverick@udemy.com"
] | jason.shiverick@udemy.com |
bcfa68567d4997a04693e4b0c4ec9db821fb7a24 | f452078b7a73161b7676922867df62d9a89f6fd5 | /config/jinja2.py | d9a9afefa6aa8698299abcebc52db498fe84a23f | [] | no_license | arthexis/django-template | 07a11b4c6fe6a9029153c95fdeaaec715315c1bc | be9fa72f804f7fb1aa0992527f74626fec664e52 | refs/heads/master | 2021-01-19T10:42:52.932445 | 2016-07-09T01:07:51 | 2016-07-09T01:07:51 | 62,763,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from django.contrib.staticfiles.storage import staticfiles_storage
from django.core.urlresolvers import reverse
from jinja2 import Environment
from django.conf import settings
def environment(**options):
env = Environment(**options)
env.globals.update({
'static': staticfiles_storage.url,
'url'... | [
"arthexis@gmail.com"
] | arthexis@gmail.com |
c727646241ae9d0f8a55917eecd853bf202125fb | 1e43fd5e134157e6f034327ffbf3e6501c67275d | /mlps/core/apeflow/interface/utils/__init__.py | b86fbf8d8db90190972c4e419cdd67cbb59838e6 | [
"Apache-2.0"
] | permissive | sone777/automl-mlps | f15780e23142e0f3f368815678959c7954966e71 | a568b272333bc22dc979ac3affc9762ac324efd8 | refs/heads/main | 2023-08-24T10:07:30.834883 | 2021-11-03T07:41:15 | 2021-11-03T07:41:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | from . import gs, pytorch, tf
| [
"wonjoon.lee@seculayer.com"
] | wonjoon.lee@seculayer.com |
3bc90fdc10f6e6da998132d2552b5caf83b7a148 | 5ae6d9dff1536e0f45d02a35024d2406de1934bd | /job_board/apis/authentication.py | 4b5eab0ce42bf4e5d2f2b0ff4ae3a2da525e5df9 | [] | no_license | Mediusware-Ltd/dajngo-job-board | 879a397a05d0ab1f31da81e3363c4d9f9bf4f6ec | ea130e2ef81ab332067fc5dbfb20752b627c2f0d | refs/heads/master | 2023-06-25T01:15:21.461024 | 2021-07-29T16:34:18 | 2021-07-29T16:34:18 | 390,732,834 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | from rest_framework import status
from rest_framework.generics import GenericAPIView
from rest_framework.mixins import CreateModelMixin
from rest_framework.response import Response
from rest_framework.views import APIView
from job_board.auth.CandidateAuth import CandidateAuth, CredentialsSerializer
from job_board.mode... | [
"kmrifat@gmail.com"
] | kmrifat@gmail.com |
75b8da8e95f8839860db8e1e3e2331f914bb49fe | 9e567b8241ce00e9d53843f5aba11c4a119b079f | /tags/v0_64/htdocs/examples/color_demo.py | 0acc32eb62a054c76bf5460b61b170340a7868bb | [
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | neilpanchal/matplotlib | 3d2a7133e858c4eefbb6c2939eb3f7a328b18118 | 7565d1f2943e0e7b4a3f11ce692dfb9b548d0b83 | refs/heads/master | 2020-06-11T09:20:43.941323 | 2011-01-21T21:50:16 | 2011-01-21T21:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | #!/usr/bin/env python
"""
matplotlib gives you 3 ways to specify colors,
1) as a single letter string, ala matab
2) as an html style hex string
3) as an R,G,B tuple, where R,G,B, range from 0-1
See help(colors) for more info.
"""
from matplotlib.matlab import *
subplot(111, axisbg=(0.1843, 0.3098, 0.30... | [
"(no author)@f61c4167-ca0d-0410-bb4a-bb21726e55ed"
] | (no author)@f61c4167-ca0d-0410-bb4a-bb21726e55ed |
bda4691d48a3c76ade290758ddb17e4cdf7774a4 | b55988591d370a26ac62dcc99f7033364b9ec035 | /easy/116-morse-code/morse_code.py | 635155c730ede46af91d26a5b162481542e8ed98 | [
"MIT"
] | permissive | cyr1z/codeeval-problem-statements | 979a1b5d6547ca4f0ed25e618b545858eda7a36e | dff8e46c353c8fdd14cbd0243d878e863d76ec41 | refs/heads/master | 2022-11-24T11:50:34.144785 | 2020-08-03T20:20:24 | 2020-08-03T20:20:24 | 282,584,302 | 1 | 0 | null | 2020-07-26T05:41:36 | 2020-07-26T05:41:36 | null | UTF-8 | Python | false | false | 2,266 | py | import sys
morse_code = {
"0": "-----",
"1": ".----",
"2": "..---",
"3": "...--",
"4": "....-",
"5": ".....",
"6": "-....",
"7": "--...",
"8": "---..",
"9": "----.",
"a": ".-",
"b": "-...",
"c": "-.-.",
"d": "-..",
"e": ".",
"f": "..-.",
"g": "--.",
"h": "....",
"i": "..",
"j": ... | [
"cyr@zolotarev.pp.ua"
] | cyr@zolotarev.pp.ua |
a308a6b52879f1727b9b927f7284ace2d5ff57a2 | a95a9e8482317c89bd0d5ed4b2dac87dcb1c99d7 | /SyndromeMeninge.py | 881298919fe57cd89ea9880e2dd59ab613da3a01 | [] | no_license | edlingerpm/DetectionMvtFinal | 277cbbcd0e616a9e4947b48e4b91d85cd12b7d2b | 566ab0a54f7894271e787d67969430b5c9c6132d | refs/heads/master | 2021-03-11T16:32:00.858087 | 2020-03-25T10:43:45 | 2020-03-25T10:43:45 | 246,542,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,822 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 28 2020
@author: Pierre-Marie EDLINGER
"""
import cv2
import RutaipCommonFunctions as Rtp
from datetime import datetime
testMenton=False
testProfilGauche=False
testProfilDroit=False
visageFaceDecele=False
profileDecele=False
retourFace=False
testMentonC... | [
"noreply@github.com"
] | edlingerpm.noreply@github.com |
e527bf93849739260c31b26f65301c4e9d1dcf95 | a67f7ae56ff7fcbd1fe665c77e7efc1ba54b7675 | /MazeGame/qlearning.py | 2c6b03bfd215a40e2f6b7f102d5c8844f9e6093e | [] | no_license | thdiaman/deeplearning | a013d16c59932ccfe62d87012613093d3a46e9d3 | 9ddc46b6ad257ad0885d1d5dc8eb64589d618f2b | refs/heads/master | 2021-07-02T02:08:52.778443 | 2019-05-31T23:42:14 | 2019-05-31T23:42:14 | 133,405,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,806 | py | import random
import numpy as np
from qmaze import Qmaze, show, completion_check
class Experience(object):
def __init__(self, model, max_memory=100, discount=0.95):
self.model = model
self.max_memory = max_memory
self.discount = discount
self.memory = list()
self.num_action... | [
"themisdiamantopoulos@hotmail.com"
] | themisdiamantopoulos@hotmail.com |
9b00c0d2275d1ad3ca8db698d431c061f2b019ba | bbd863498dc6104867a9148f7a0be281f7127a41 | /src/perfect_bot.py | 4dfb67d23046fe0c6d36863bb704d8d880035c2e | [
"MIT"
] | permissive | tongplw/Pretty-Perfect-Connect4 | ee37bebde384997fa4e0b9d8f16a2e86f87333b5 | 24d3d9c989ba2f3d77a824b00e0b07bf3776bad5 | refs/heads/main | 2023-01-12T17:22:45.500694 | 2020-11-11T15:12:15 | 2020-11-11T15:12:15 | 312,004,785 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | import time
import random
import requests
import numpy as np
import pandas as pd
URL = 'http://connect4.ist.tugraz.at:8080/moveinfo'
df = pd.read_csv('data/perfect_cache.csv')
d = df.set_index('k').to_dict()['v']
def get_perfect_move(game, cache=False):
board = game.board
if cache:
k = ''.join(m... | [
"bangkok.tong@gmail.com"
] | bangkok.tong@gmail.com |
201c525e8d07c192a2c57f48953459ae11439cea | 1e1a7d770eec7c384ebda97f1d366c3161a6180b | /backend/last_man_standing_24889/urls.py | 0f3905ee6f3bc9f91a99cb05ac1c145a2ee1cc19 | [] | no_license | crowdbotics-apps/last-man-standing-24889 | 71156b8fc0410aac4fa2297d695895e80385d67c | 2d86807701b0f8fc2cf6327e23ba17e7ede88879 | refs/heads/master | 2023-03-24T20:29:10.536058 | 2021-03-06T23:48:34 | 2021-03-06T23:48:34 | 345,219,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | """last_man_standing_24889 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='ho... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
0affb5edcfe1c576e69b4027f3da3a0ac9436a78 | a6f149a095086ba7a75831eab0c770c7469a321e | /demo/fastlane/send-qq.py | 5d7fff4908e04753cf48c30ffc112f1059f4d5e1 | [
"MIT"
] | permissive | zmn-dc/travis-ci | f4b185e0443906d0f321292b12d2547a0170b154 | 9cd6abe973339b097883da80aa7184c3c9a8721f | refs/heads/main | 2023-06-14T07:11:23.612019 | 2021-07-09T01:55:27 | 2021-07-09T01:55:27 | 384,062,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | #!/usr/bin/env python3
# coding=utf-8
# sendEmail title content
import sys
import smtplib
from email.mime.text import MIMEText
from email.header import Header
#配置发送的邮箱
sender = '965524749@qq.com;'
#配置接收的邮箱
receiver = 'daichao@xiaoma.cn;'
#SMTP邮件服务器 以QQ邮箱配置的
smtpserver = 'smtp.qq.com'
#smtpserver = 'smtp.exmail.qq.com... | [
"daichao@xiaoma.cn"
] | daichao@xiaoma.cn |
e8b4799621687dda853e01de4ed16064e980d8b6 | 4607cff205c99c7e45850a03e4f0b737dd8c285c | /env/bin/django-admin.py | 6679e447f87d282011865091c9d9e6bc250e158d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | k-koech/gallery_django | e81aefe21a09559886abc383c5f9dbd2e6b66af8 | 20250f354d8846bf4ac7312c29f6a7ded54d9ea7 | refs/heads/master | 2023-08-05T09:33:45.566345 | 2021-09-15T21:40:23 | 2021-09-15T21:40:23 | 402,822,297 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | #!/home/moringa/Desktop/DJANGO/ip1/env/bin/python
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was deprecate... | [
"kelvin.koech@student.moringaschool.com"
] | kelvin.koech@student.moringaschool.com |
2b87163c16099d48e7c7ea96de41b9ee650ad3d5 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/carry/carry_sim_posture.py | ad984a857162d8fc98d41b913d4ffe33fe12bc11 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,730 | py | from animation.animation_utils import flush_all_animations
from animation.arb import Arb
from animation.arb_element import distribute_arb_element
from animation.posture_manifest import Hand
from carry.carry_postures import CarryingObject
from carry.carry_utils import SCRIPT_EVENT_ID_STOP_CARRY, SCRIPT_EVENT_ID_START_CA... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
93bc94442f0b56d3348d91e0d767235eff9f2d13 | f62fd455e593a7ad203a5c268e23129473d968b6 | /tacker-0.7.0/tacker/common/config.py | ecb277d892bf8f96651169cd778b6c9f9a76f9a5 | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 4,829 | py | # Copyright 2011 VMware, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
f42db952ff91b058705876e37bd662b1f8ac5259 | d4ea7073d36c7c96b30c5e3e60af8554243ec9c2 | /S01/preprocessfile.py | 7752460f732fc5b6cf55ac2e76838be8d6f0b5c5 | [
"MIT"
] | permissive | vishwesh5/FRIENDS-RNN | 6d6679258b156e17369d1a2855fdd2a943cb1596 | 136210d426a8a533f1531871c1a0d41533ab3daa | refs/heads/master | 2020-03-31T03:42:04.170827 | 2018-10-08T17:15:45 | 2018-10-08T17:15:45 | 151,874,494 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | f = open('0101.txt')
lines = f.readlines()
file_ = open('0101_new.txt', 'w')
for line in lines:
if(len(line) != 1):
print(len(line))
file_.write(line.strip("\n"))
file_.close()
| [
"ubuntu@ip-172-31-40-180.us-east-2.compute.internal"
] | ubuntu@ip-172-31-40-180.us-east-2.compute.internal |
ffbe12694526ef1d024fb44c3213fd6d5b2276ca | 1ca9cd89f14510a0084d572df3de3063cbac1847 | /bin/concept_lattice_manager.py | 48fef4307e4223ef90896d592a0b44778ade1f96 | [
"MIT"
] | permissive | zeal4u/FCA_Faceted_Search | 379d4d5b4a840361bdc15ddd8532267e627e027c | fb43fb4c35a906fd0484e8bb422f54656772ab41 | refs/heads/master | 2021-01-24T06:57:04.902769 | 2017-06-30T13:46:37 | 2017-06-30T13:46:37 | 93,328,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,474 | py | # -*- coding: utf-8 -*-
__author__ = 'jsz'
__version__ = 0.1
import networkx as nx
import hashlib
import base64
from networkx.exception import NetworkXError
from db_stuff import DBHelper
def intersect(l, i):
u"""
:param l:
:param i:
:return:
"""
t = [index for index in xrange(... | [
"jsz1995@live.com"
] | jsz1995@live.com |
2258933f2f9a6ea29c2577e6a2dabf52d0b9e192 | 6e652507874d4f6835092e6e504525d71bc1a48d | /Python/hackerrank/compress the string.py | baf25dff7960029cfcf4faed0caebd3b8bef0e3b | [] | no_license | Geek-Tekina/Coding | be4876b2b3b9a16f32c92bb1cabb3694fb03a837 | 15ee5c830dbf02d90cc972355c5054471985ebc5 | refs/heads/main | 2023-08-07T11:17:58.362604 | 2021-10-01T08:47:25 | 2021-10-01T08:47:25 | 412,362,390 | 2 | 0 | null | 2021-10-01T06:58:49 | 2021-10-01T06:58:49 | null | UTF-8 | Python | false | false | 140 | py | from itertools import groupby
user = input()
for key, group in groupby(user):
a = len(list(group)), int(key)
print(tuple(a))
| [
"noreply@github.com"
] | Geek-Tekina.noreply@github.com |
d286a5b5fa3e6d8eedf81d2b02625c19ac94bd85 | 91b3c095f600a18d6dee1ca347eef098debcdf6a | /scoreboard.py | f04b56e14e92b00e3676b1c5f130996f3678ed44 | [] | no_license | panxogol/python-snake-game | 3aa4fa30a55790dfff5b8f0d4b890562f5e991df | ccfbbf145db9740b8d97abe707aa2329f9b747f2 | refs/heads/master | 2023-02-01T08:32:12.583095 | 2020-12-20T02:12:48 | 2020-12-20T02:12:48 | 321,801,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | # ---IMPORTS---
from turtle import Turtle
from constants import *
# ---FUNCTIONS---
def getHighestScore():
with open(file="data.txt", mode="r") as file:
highest_score = int(file.read())
return highest_score
# ---CLASSES---
class Scoreboard(Turtle):
def __init__(self):
super().__init__()
... | [
"juan.martinez.p@usach.cl"
] | juan.martinez.p@usach.cl |
a893e66ac629cabd0ef3a579f175bfafa8cd05ff | 5390755819caea3801cf1d448409ffd57bd02b9c | /Scripts/Figure4/Figure4_MetricComparisons.py | c16cc287164e65e59c03b2894376fef67be2ad58 | [] | no_license | PhillipPapastefanou/DroughtAnalysis | ccb43e252f8a355f1e59824e9abc2f8a16b10f17 | c73eea678709079eeaa5fe45e6f6d0061629e485 | refs/heads/master | 2023-07-17T17:20:07.607105 | 2021-08-27T11:24:26 | 2021-08-27T11:24:26 | 287,946,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,515 | py |
from A02_MCWD_Dataset_Analysis.Setup2016 import Setup2016
from A02_MCWD_Dataset_Analysis.Pylibs.MCWD_Analysis21 import MCWDFile
from A02_MCWD_Dataset_Analysis.Pylibs.PrecAnomalyDry21 import PrecAnomaly
from A02_MCWD_Dataset_Analysis.Pylibs.scPDSI2021 import scPDSI
import pandas
import numpy as np
import matplotlib.py... | [
"papa@tum.de"
] | papa@tum.de |
814eaee8516a6718559e22ca73e1626aeb25f1e4 | df7238046190e6245d88fc97045e40967520a6e0 | /test_rest_api.py | 32a03a0d2e3e0ba445892f9104b6ccb98c13ce09 | [] | no_license | Hsing-Wei/reqres-api-test-python | ad33ae7d22e12fff6c7be834807a806a051696b9 | 3c3818d4eadb7963295f8a9515ca86d2b09c0f76 | refs/heads/master | 2022-12-17T19:46:56.004437 | 2020-09-17T10:58:00 | 2020-09-17T10:59:26 | 296,300,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | import pytest
import requests
def register_unsuccessful_data():
return [
{
"email": "eve.holt@reqres.in",
"password": "",
},
{
"email": "",
"password": "cityslicka",
},
{
"email": "",
"password": "",
... | [
"ijerrycen@gmail.com"
] | ijerrycen@gmail.com |
b7f829944132ef7f53e103fbcdf10515528d36d8 | 19bbbf2a0f9de41f4c58d276520981ad442f40df | /Algorithms/Sorting/CountingSort1.py | ca95cac6af527b788bd76792d1be182ceeb4e602 | [] | no_license | benjdj6/Hackerrank | b6e2f43d793eaf6774d5dcee330d578849f99c38 | d92ef462601f2a1cd9a0bc0ecc9438333f5769b5 | refs/heads/master | 2020-12-25T16:57:25.074925 | 2017-10-16T04:03:22 | 2017-10-16T04:03:22 | 41,611,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
n = int(raw_input())
ar = map(int, raw_input().split())
count = [0]*100
for num in ar:
count[num] += 1
for val in count:
print val, | [
"benjdj6@vt.edu"
] | benjdj6@vt.edu |
673f462419396445b10e6a597d0e1216a48926d0 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-domain/aliyunsdkdomain/request/v20180129/SaveSingleTaskForUpdateProhibitionLockRequest.py | 91ad7fbc5e3a6b99891b61c97dac6d191d4a8b14 | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.