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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e16e0bd7871dd557df86e72052bdcb86cadbeb7 | 34dcc580c301efc5796fcf08b36a75df402fb988 | /examples/test_neuro/scripts/neuro_strong.py | f39ddb1333d39bf23100279d4153051fdf0d30eb | [
"MIT"
] | permissive | riadhou/PASC_inference | a520a23ee20c35e46bfd84201c67da2434244066 | de66682f07b65dd21c7ada2fda05f21156e8cf6d | refs/heads/master | 2021-09-28T02:50:11.315746 | 2018-11-13T16:46:37 | 2018-11-13T16:46:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,230 | py | #
#
#
# import my stuff
from common_batch import write_batch
from common_batch import commit_batch
from common_batch import show_jobs
import os, shutil, sys, getopt
# parse input arguments
if len(sys.argv) < 2:
print 'neuro_strong.py <epssqr>'
sys.exit()
epssqr = sys.argv[1];
spgqpsolver_eps = "1e-6";
proble... | [
"lukas.pospisil@vsb.cz"
] | lukas.pospisil@vsb.cz |
5e7091b272e1c54fd1d9e6183d695cda270d7e0f | bd24225084894aa7e40f9d37f84b1e5d8da0cb1c | /python_basics/src/fundamentals/f_15/FileIO.py | a9395c9bea7cf791fb2402df8f6d2829160dfede | [] | no_license | rajiv0903/Python | 42baa696027eed9796853c7081553ece65350453 | 7bc6e377bb2d4b0906df03df84b149acfe7e08ce | refs/heads/master | 2020-03-27T08:18:58.310239 | 2018-11-14T16:01:05 | 2018-11-14T16:01:05 | 146,243,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | '''
Created on Aug 12, 2018
@author: rajiv
'''
import sys
#Default Encoding
print(sys.getdefaultencoding())
#Writing text to file
f = open('wasteland.txt', mode='wt', encoding='utf-8');
f.write('what are the roots that clutch, ');
f.write('what branches grow\n');
f.write('Out of this stony rubbish? ');
f.close();
... | [
"rajiv.juprod@gmail.com"
] | rajiv.juprod@gmail.com |
d4c9539c852f32e2700a86e1717cfb60dcc9f849 | 8dbba6ad04ee7cf97e0b44970be858df5115c60e | /archeage_web_crawler/settings.py | 9f4c2b5006923145e91d23dd8c785a0deeb7e9cd | [] | no_license | calanchue/ArcheageWebCrawler | 3a494fbdd7f6bd1b1c1053c53c03ac788d6de125 | 09867bb6ad0d4b04944f0e629926da6ae47d2c3d | refs/heads/master | 2021-01-25T00:09:56.799460 | 2016-10-06T05:30:39 | 2016-10-06T05:30:39 | 8,072,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,662 | py | # Django settings for archeage_web_crawler project.
import os
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS as TCP
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backe... | [
"calanchue@naver.com"
] | calanchue@naver.com |
24b0ef97881bd12bc460067ad47dc0254598e299 | e9f8d015a3257104640c5989a4165e2d30f8f564 | /jobs/migrations/0003_auto_20150614_1654.py | 9d955c5d6a432ea6fbbd5cbe3338c31e27c35484 | [
"MIT"
] | permissive | pythonph/pythonph | 956d5e4c881401c1149bbd3908ce84cb87951b21 | 4fa329b134ba0f96c4d57ff23aceb81fd7b536f0 | refs/heads/main | 2023-04-17T20:39:55.864426 | 2023-03-31T14:58:24 | 2023-03-31T14:58:24 | 28,942,531 | 25 | 28 | MIT | 2023-03-31T14:58:25 | 2015-01-08T01:21:35 | SCSS | UTF-8 | Python | false | false | 629 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('jobs', '0002_job_application_email'),
]
operations = [
migrations.AlterField(
model_name='job',
name... | [
"hello@marksteve.com"
] | hello@marksteve.com |
396e5b33aa1c7bb304b0785bb82b1573c352d6c1 | 5598c24e484177d6a5b0772013247e3118c6dcf1 | /spatialmath/base/__init__.py | 8546e1251ff85aa70bc62e59f7205d645f82cc31 | [
"MIT"
] | permissive | krenshaw2018/spatialmath-python | 587136040267984cd6a431eaae3e89c8d740a7f9 | 95629b378422d58a4c77c62ebf3b189ef7a42824 | refs/heads/master | 2023-03-28T21:14:03.992328 | 2021-04-06T10:36:53 | 2021-04-06T10:36:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,058 | py | # Part of Spatial Math Toolbox for Python
# Copyright (c) 2000 Peter Corke
# MIT Licence, see details in top-level file: LICENCE
from spatialmath.base.argcheck import * # lgtm [py/polluting-import]
from spatialmath.base.quaternions import * # lgtm [py/polluting-import]
from spatialmath.base.transforms2d import ... | [
"peter.i.corke@gmail.com"
] | peter.i.corke@gmail.com |
d72b555b7cb78b59f1bc22973844f2856fde64e9 | 0e32f58ea94c898aee048c3181f3c44c8c7b3f09 | /pull_branch.py | c857e35e599ff399ebe05dd42a66f86206e462d1 | [] | no_license | oulib/illiad-web-manager | 60c828f00b9ac3ba1b60e437fac71665d877ff78 | 9dd5cacf1db4eb9e450f64f1eda66a7699321214 | refs/heads/master | 2022-12-30T01:50:30.110345 | 2020-10-06T15:23:34 | 2020-10-06T15:23:34 | 295,766,363 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,429 | py | import requests
import secrets
from zipfile import ZipFile
import datetime
import time
import os
import shutil
import sys
import logging
def pull(branch, targetDir, git_repo, user):
# Get Releases
repo_releases = requests.get("https://api.github.com/repos/" + git_repo+ "/tags", auth=user).json()
... | [
"9438817+codybennett@users.noreply.github.com"
] | 9438817+codybennett@users.noreply.github.com |
482a8b9237a2c8bf0e2469c9062327966a46c836 | ccc407c900ac36c57f2716adcdd28f38108d62ef | /models.py | a2cb7960d1b4b75f3ca645404af912b5cd09e2ce | [] | no_license | uditduhan23/YT_FastAPI_Celery_Redis_Flower_Introduction | d1b3f2f361ae0dc11be39eded78ccde45724b45e | 124b35e3af08330cd89f3658906ec54b2f623b46 | refs/heads/main | 2023-06-16T23:30:36.456816 | 2021-07-16T14:42:16 | 2021-07-16T14:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from sqlalchemy import Column, DateTime, Integer, String
from sqlalchemy.sql import func
from db_conf import Base
class Post(Base):
__tablename__ = "post"
id = Column(Integer, primary_key=True, index=True)
title = Column(String)
author = Column(String)
content = Column(String)
time_created =... | [
"veryacademy@gmail.com"
] | veryacademy@gmail.com |
5d459c8f59a0fcb653d05d3d69886f6aaaa71def | f1919cf55f5638be697819e565d95d4c98cdfd48 | /appgarb/migrations/0001_initial.py | 9dee7520f0094e4c0eb359f4a37e83ff5529d0ae | [] | no_license | Alex111cat/SmartGarbage | 97af72e4fdf16b7997e76fc846a60f54b4a3fed7 | b61024bea3f9432e26ea22ba67cc97c38cd8659c | refs/heads/master | 2023-04-27T03:15:58.233065 | 2021-05-09T19:30:05 | 2021-05-09T19:30:05 | 365,825,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,971 | py | # Generated by Django 3.1.5 on 2021-05-01 00:40
import datetime
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"alnovikov@miem.hse.ru"
] | alnovikov@miem.hse.ru |
2ae22923dfc74228994f3bee953bc4431f2a9e04 | a2837a58873805da2f5bc63ff73dfcf869759387 | /public_method/log_method.py | b222ed0074d22d1be5fd19f319e2319a0beb3e7a | [] | no_license | liufubin-git/python | 7e6c9d1db0e6ce39263ec4391c928f09fd7de558 | eae782a78ffde1276a0812a43d7deefb0bdedeb4 | refs/heads/master | 2023-03-25T13:57:24.447255 | 2021-03-25T09:59:43 | 2021-03-25T09:59:43 | 302,522,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | # -*- coding: utf-8 -*-
"""
@Time : 2021/3/12 15:19
@Author : liufubin
@FileName: log_method.py
@description: 测试日志公共封装方法
"""
import os
import logging
# 定义日志的绝对路径
base_url = r"D:\pycharmproject\lfbTest\log"
class Logger:
def __init__(self, file_name, clevel=logging.DEBUG, flevel=logging.INFO):
"""传入... | [
"742956902@qq.com"
] | 742956902@qq.com |
089a89857138031b10406f4fcb2f102aeb2a120d | 510ec21522651fe320f65f2978ecf7cb4a93b97a | /app/arcane_real_estate/app/type/schema_test.py | f6575b2346dbc8bacda36861bc0ae7adc318f5dd | [] | no_license | NanoPish/arcane | 93131bea3861da6d56606bde777821b940612c00 | 07bbc8feecfaef95674741454f9ec31539565eae | refs/heads/master | 2022-08-04T09:03:05.133278 | 2020-01-24T18:29:13 | 2020-01-24T18:29:13 | 234,338,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | from pytest import fixture
from .model import Type
from .schema import TypeSchema
from .interface import TypeInterface
@fixture
def schema() -> TypeSchema:
return TypeSchema()
def test_TypeSchema_create(schema: TypeSchema):
assert schema
def test_TypeSchema_works(schema: TypeSchema):
params: TypeInte... | [
"paul.belloc@epitech.eu"
] | paul.belloc@epitech.eu |
91181c0b68730ffb54611139fe33385617432ba9 | 54a1a50e423a921d8069236819c51626ea681f01 | /lean/tests/first_tests.py | 784bddf16595f75fd271cdad912dcbe2d4bd1252 | [] | no_license | markng/pisa | 47b95bb9f2e4a7306e45292e98831c0d64720b56 | f5e48670f4c9aa215b4d44052e51f044c0e07805 | refs/heads/master | 2021-01-10T07:18:38.639556 | 2016-03-26T10:57:48 | 2016-03-26T10:57:48 | 54,775,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | # coding: spec
from expects import expect, be
from noseOfYeti.tokeniser.support import noy_sup_setUp
from unittest import TestCase
import nose
it 'exists':
expect(False).to(be(True))
| [
"mng@liquidweb.com"
] | mng@liquidweb.com |
d6ab9dc28e83ae2bbdb2a09423fbbd775f1261f2 | ff11b40cf4d57bc7ac673cd575f29be1cf8ad177 | /jdk-1.5-parent/console-parent/console-templates/src/main/resources/org/wicketstuff/console/templates/jython/WicketClearPropertiesCache.py | 3fc77521cf4253d1da7c0c0ca3c98f88e11bd9a8 | [] | no_license | felipefedel/core | 70ca3c02dd772b0a7e60bd79fbef24982fb03344 | b9d2d71f1a2f4588de86e395dc8a25509c6e4459 | refs/heads/master | 2020-12-25T10:59:11.652297 | 2011-08-09T17:40:36 | 2011-08-09T17:40:36 | 2,162,036 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | pf = application.getResourceSettings().getPropertiesFactory()
pf.clearCache()
print "cleared"
| [
"nick.wiedenbrueck@gmail.com"
] | nick.wiedenbrueck@gmail.com |
86f2bdaa873d82c38171fe326a3b4c7b88d19e4f | c68d3e6787a8ac627fc1e865089deda9bfa04688 | /test/test_bessel.py | b5fcc92026bfa7907919ccb5690884177b5fb525 | [] | no_license | artidoro/vivo | 570933379ec06a1293b9a4bfddb3830168da200b | 1297966fad7554486f40a8e6c7878dbc987990e1 | refs/heads/master | 2021-02-18T20:39:35.578995 | 2020-04-13T16:41:47 | 2020-04-13T16:41:47 | 245,234,356 | 2 | 0 | null | 2020-04-17T23:38:04 | 2020-03-05T18:06:23 | Python | UTF-8 | Python | false | false | 1,832 | py | import torch
import math
import numpy as np
from scipy.special import iv
"""
vMF distribution
p(e(w); µ, κ) = C_m(κ) * exp(κ * (µ @ e(w)))
C_m = κ ** (m/2 - 1) / ((2 * pi) ** (m/2) I_(m/2 - 1)(κ))
p(e_tgt; e_pred) = vMF(e_tgt); e_pred) = C_m(norm(e_pred)) * exp(e_pred @ e_tgt)
NLLvMF = - log(C_m(norm(e_pred))) - e_p... | [
"brendon.boldt@gmail.com"
] | brendon.boldt@gmail.com |
d46c7e58abc3648273a301b1ff3f9c4f7e2b1214 | 2c0e8fa208f59fb3d23c7257cb9cff426fa16d85 | /ga4gh/backend.py | 2fdefbd883323811fd1ec9d7abe5a4cb4bec5766 | [
"Apache-2.0"
] | permissive | melaniedc/server | db24c37bf0e778630d0910a1101eeb908647b02e | 9fe974e421d2e4d3510e7928053edbbce47fd4bb | refs/heads/master | 2020-02-26T16:09:18.162175 | 2015-01-30T14:52:46 | 2015-01-30T14:52:46 | 26,870,317 | 0 | 0 | null | 2014-12-05T20:26:25 | 2014-11-19T16:28:39 | Python | UTF-8 | Python | false | false | 6,006 | py | """
Module responsible for handling protocol requests and returning
responses.
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
import ga4gh.protocol as protocol
class Backend(object):
"""
The GA4GH backend. This class provides metho... | [
"jk@well.ox.ac.uk"
] | jk@well.ox.ac.uk |
80517945188af380bca8e4b933cf378338461e8b | ce1d48765b7cf98d06d134514e991ba4f842b928 | /secrets.vcs.py | ce68de348b1c87ee4efb9ad4af4453d5c304cd36 | [] | no_license | ririw/bird-catcher | f92952a99ccd060f48491127618ebab2d5f043cf | 720d390f7d8615d501e07cfb838fcc5320390e3c | refs/heads/master | 2016-09-06T11:56:20.370586 | 2012-10-10T05:11:01 | 2012-10-10T05:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | consumer_token = "Your app's consumer token"
consumer_secret = "Your app's consumer secret"
access_key = "Your OAuth access key"
access_secret = "Your OAuth access secret"
firstUser = {}
firstUser['id'] = 20
firstUser['name'] = 'jack'
firstUser['followers'] = 2003219
firstUser['friends'] = 1172
| [
"richardweiss@richardweiss.org"
] | richardweiss@richardweiss.org |
9e2df97d58052f8c1631ac45d42b4ab43d90a5fd | fc46f2778be59688e47166c8e90d5e8d07d29dc1 | /django_backend/UserGroup/models.py | 1916dd1a80d257b5dfce90c5ee4ee46e43e10d87 | [] | no_license | mmeerrccyy/synergy_way | 9710cd096fbdc0386c570b668d0a520c7ea4fc5b | 064104b7dc634d15a9fb7663d2095234bdb1cfb4 | refs/heads/master | 2023-08-26T13:04:29.347909 | 2021-10-09T22:00:24 | 2021-10-09T22:00:24 | 415,409,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from django.db import models
# Create your models here.
class CustomUser(models.Model):
username = models.CharField(max_length=45, unique=True)
created = models.DateTimeField(auto_now_add=True)
group = models.ForeignKey('CustomGroup', on_delete=models.RESTRICT, null=True, blank=True, related_name='users'... | [
"taras.mercury@gmail.com"
] | taras.mercury@gmail.com |
5e9827f8768acaf7d676c41e6bab1b7f546b6b6b | 16faf365b6175c0193554aa52291f2d40f19953f | /script/test_dep_params.py | 3e4c8c7abb8502ee25d9c9f476bb08e0521de69d | [] | no_license | waq1314/testIRHMEmp | fd987470eaa77758edce24a001e42ce976f9a035 | 04a00e3266767bd5586fef6eb1cf4cd3697d11ec | refs/heads/master | 2022-10-11T14:22:57.135256 | 2020-06-12T13:31:56 | 2020-06-12T13:31:56 | 271,805,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,063 | py | # 导包
import unittest, logging
from parameterized import parameterized
from api.dep_api import DepApi
from api.login_api import LoginApi
import app
from utils import assert_common, read_dep_data, read_dep_login_data
# 创建测试类
class TestIHRMDepParams(unittest.TestCase):
# 初始化unittest的函数
def setUp(self):
#... | [
"2503770244@qq.com"
] | 2503770244@qq.com |
ecb3f9ac751f9a4587fd65400da8ba7148a1de44 | f8556db88694c57e57aa996d0db59eac50366aab | /api/schemas/songs_schema_db.py | c7a6dc25dc9871e13e1b304f984dae766db6991f | [
"MIT"
] | permissive | barckcode/api_salsa | 667ac69c24f2cb31479364414edc977f78c28199 | 4345d3b249646bb4055147f2481912a9c10ed7e2 | refs/heads/main | 2023-08-21T19:15:19.059618 | 2021-10-01T10:01:53 | 2021-10-01T10:01:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | import datetime
from typing import Optional
from pydantic import BaseModel
class SongsModelDb(BaseModel):
id: Optional[int]
name: str
departure_date: datetime.date
| [
"barckcode@gmail.com"
] | barckcode@gmail.com |
9eb3b5e4e4cdd96a839e5c24b404869c18d5e9ee | 480e33f95eec2e471c563d4c0661784c92396368 | /GeneratorInterface/GenFilters/test/test_isotrack_cfg.py | af5d058a84dc0c93779710cc9bfda12f465b9313 | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 1,710 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
process.load("Configuration.StandardSequences.Services_cff")
process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
process.load("Configuration.EventContent.EventContent_cff")
process.lo... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
5ce5f2cf954cae97c1c9194545becd34013023ca | a71f058f6edc3539f114c9cb1a9f0e4d711d0722 | /Geohack/settings.py | 6382bce0967893ff20af5d4bd70760e2edc2e9c9 | [] | no_license | Kakoedlinnoeslovo/geohack | b57d334eef95c42f5ffa1ca8b043532ddb15dd3e | 0652f85e4edc9c65d20b355a91543ffcb5e4f299 | refs/heads/master | 2020-03-17T02:22:05.655746 | 2018-05-14T19:11:22 | 2018-05-14T19:11:22 | 133,187,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | """
Django settings for Geohack project.
Generated by 'django-admin startproject' using Django 2.0.5.
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
#... | [
"roma-degtayrev@mail.ru"
] | roma-degtayrev@mail.ru |
37ed26d4f7d5ec91f1a98a342f825e76e9ac59af | d32536da2d2d1fa6642683179dde0a1cd21fc2f8 | /resources/lib/controllers/channels.py | 68c738dba24698ed362d8eec567876d8f9f4c8d5 | [
"MIT"
] | permissive | crabvk/plugin.video.movix | 09871fb4cc6c4769f3ae36460ca3cbac9a1ac5e7 | 6117da60e0347cca56050828e3246b5960a1bb66 | refs/heads/master | 2023-05-24T17:04:49.743652 | 2023-05-07T13:56:46 | 2023-05-07T13:56:46 | 256,035,518 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | import xbmcplugin
import xbmcgui
import resources.lib.api as api
import resources.lib.utils as utils
from resources.lib.translation import _
@api.on_error(lambda r: r.redirect('root', 'index'))
def index(router, params):
handle = router.session.handle
token = router.session.token
paginate = utils.addon.ge... | [
"vyachkonovalov@protonmail.com"
] | vyachkonovalov@protonmail.com |
3b4b994f7f601322b86399b6db227a2450c6d160 | 3137890ca9260f294e9271a1b0d8302d664b2b67 | /ex1/11_for/for.py | 6235d374661272cbdc2080e2840afd30d8c6ccdd | [] | no_license | huitianbao/Python_study | 1815a82bee907543d9899e6fd641940f0dab5189 | 91e5b3ca4f5ef0da07ebbcc308a6859e4397505c | refs/heads/master | 2020-04-26T16:43:12.450561 | 2019-03-01T10:41:58 | 2019-03-01T10:41:58 | 173,689,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | #!/uer/bin/python
import time
num = 0
# for x in range(100):
# print x,"this is ",x
# for x in range(1,101):
# num=num+x
# print num
# for x in "dfghjklljfghjkl":
# print x
s = [1, 2, 3, 4, 5]
# for x in range(len(s)):
# print x,'hello world'
# for x in s:
# print x;
# =====================... | [
"1622162492@qq.com"
] | 1622162492@qq.com |
d06f9c02053dbaa64d0db28cc52b7690a08a2160 | adc6d8ee596e4710c3241332758bb6990bdd8914 | /subData/ejemplos ROI/ROI_V3.py | 48e1600ee1a3a5b4fbd7593a1e7397eb9abe764a | [] | no_license | NatalyTinoco/Trabajo-de-grado_Artefactos | cf9491c47a8a23ce5bab7c52498093a61319f834 | 5cc4e009f94c871c7ed0d820eb113398ac66ec2f | refs/heads/master | 2022-03-20T00:51:48.420253 | 2019-11-24T19:10:40 | 2019-11-24T19:10:40 | 197,964,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 15 22:32:38 2019
@author: Nataly
"""
import cv2
import pylab as plt
from matplotlib import pyplot as plt
import numpy as np
from pylab import *
from readimg import read_img #leer imagines ### img=read_img(imgfile)##
from skimage.morphology import disk
from skimage.fil... | [
"51056570+NatalyTinoco@users.noreply.github.com"
] | 51056570+NatalyTinoco@users.noreply.github.com |
5b01a0dbeb188b5186ce2c9757ac5da7a4312aa3 | 8e00a42f935ee15ed0dd27241f30fd2a909891c2 | /config.py | 481a95097620da6d15f1258a08e9dbf541d129a4 | [] | no_license | MrBrunotte/Microblog | c17965cc34b42332b95748adae75bd0abdd17996 | b1f33a843d717685481c22ab203c740a589177f2 | refs/heads/master | 2020-06-30T10:44:22.527410 | 2019-08-11T15:00:40 | 2019-08-11T15:00:40 | 200,802,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = Fal... | [
"mrbrunotte@gmail.com"
] | mrbrunotte@gmail.com |
3c21c874290414cd6192f699632f2e64c674bd1f | 46e1db8df96707d3a2effbdea6d06e3622c7ecd7 | /tensorflow/contrib/distributions/python/kernel_tests/mvn_diag_plus_low_rank_test.py | 834877769e887b902f79ddb94aaedbc9cdc313f3 | [
"Apache-2.0"
] | permissive | adammalpass/tensorflow | eeb8973fcd220b55118207703919aa9df71506f4 | b340000aeeb2eae9b48354e42177fb03b30860db | refs/heads/master | 2021-01-22T08:33:52.824616 | 2017-02-20T09:04:33 | 2017-02-20T09:04:33 | 81,909,244 | 1 | 0 | null | 2017-02-14T05:37:57 | 2017-02-14T05:37:56 | null | UTF-8 | Python | false | false | 16,462 | py | # Copyright 2016 The TensorFlow Authors. 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
de747df6d9a508372bb51e7bccfc136bdb88d5b3 | 61c19513982fd790d9ef3e576323dcc6da723b7b | /app/handlers.py | e2d53aa6538344372943e45e6a186aa0f0bf8220 | [] | no_license | tatiano/SmartHomeNode | 8f6fd81ff3baee9d97f28d91e8fe32c35a7efcc0 | 2a4f897cab9391146a9c509b6ca2c13ce214635d | refs/heads/master | 2023-03-15T14:36:25.038630 | 2020-10-04T13:54:43 | 2020-10-04T13:54:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py |
class Const(object):
"""
Class to make variable constant in Python
* Example:
```python
c = Const(ONE=1, PI=3.14259)
print(c.ONE)
c.ONE = 22 # Will trigger ValueError
```
* Return:
* All python datatypes
* Exception:
* ValueError
"""
def _... | [
"mats.eriksson@exsensia.se"
] | mats.eriksson@exsensia.se |
9968458e13544aa5327e6cf2c794b27bbafaf7db | 3c8827db86f20c5728158e8cd6aa81eb3c13cb8b | /wakesnet/manage.py | 29fd6d7656bafdc655ffedeebbdf25c5aff5ac90 | [
"MIT"
] | permissive | jmintel7/social_network | 12afdb60b3e013f0ca3296f43bb392683e24f399 | 430cb58da02e7f5ccb15f8b5424fcd0761e11d89 | refs/heads/master | 2020-08-14T08:14:30.357783 | 2019-10-14T19:37:44 | 2019-10-14T19:37:44 | 215,129,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wakesnet.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"jmintel7@gmail.com"
] | jmintel7@gmail.com |
0e91187cd1c363c623c71648471d0a741b416aba | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/accounts/migrations/0118_auto_20190430_1544.py | 87abb4310a3d8a0e7ce02fa18928b782a13d894b | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.1.7 on 2019-04-30 13:44
import diventi.accounts.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0117_auto_20190430_1543'),
]
operations = [
migrations.AlterModelManagers(
name='diventiuser'... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
4fb0587ecefb339bb21f3860de550cb150cf0369 | 7e564e539db72f8fa73a32a335114793df715d2f | /stores/models.py | c76a8c3e1f2f8b71b7e0bdfc2166055e559460e6 | [
"MIT"
] | permissive | kirega/stocks | e3976ad2cb039fa7ac4607241d2a279accbba235 | 11b0d86054bb54feca5a59d40ddd50f11ce216da | refs/heads/develop | 2022-12-10T09:51:33.188847 | 2019-03-22T10:06:49 | 2019-03-22T10:06:49 | 175,512,328 | 1 | 0 | null | 2022-12-08T04:52:20 | 2019-03-13T23:07:35 | Python | UTF-8 | Python | false | false | 324 | py | from django.db import models
# Create your models here.
class Store(models.Model):
name = models.CharField(max_length=255)
location = models.CharField(max_length=255)
capacity = models.PositiveIntegerField(blank=True, null=True)
def __str__(self):
return '{} - {}'.format(self.name, self.locat... | [
"joseph.mutiga@gmail.com"
] | joseph.mutiga@gmail.com |
1aaf94941509d6657afde305abf9e24c8dc3abe3 | 3c1a4179e46f7d361059be21b2c1a43993bf65a8 | /11.树/树的递归/101.Symmetric Tree (Easy).py | 789db5a2033163585d0c95d08884439907703443 | [] | no_license | longshuicui/leetcode-learning | 1e982dbd20b08fb7a76c7bf87a5b2bff4e68ce32 | de0386c7301cddc6eef8aaca8ca2d4a40e8bfac1 | refs/heads/master | 2023-05-29T19:52:01.140545 | 2021-06-03T02:48:17 | 2021-06-03T02:48:17 | 337,602,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | # -*- coding: utf-8 -*-
"""
@author: longshuicui
@date : 2021/2/9
@function:
101. Symmetric Tree (Easy)
https://leetcode.com/problems/symmetric-tree/
题目描述
判断一个二叉树是否对称。
输入输出样例
输入一个二叉树,输出一个布尔值,表示该树是否对称
题解
判断一个树是否对称等价于判断左右子树是否对称,
1.如果两个子树都为空指针,则他们相等或者对称
2.如果两个子树只有一个为空指针,则他们不相等或者不对称
3.如果两个子树根节点的值... | [
"lscui@vova.com.hk"
] | lscui@vova.com.hk |
e2cc047b7cd5216552d5667bf63496afc02e548b | e74463d223acfe6b849177177cb409060e7a44d1 | /Data Structures and Algorithms/01 Algorithmic Toolbox/Week 4 - Divide-and-Conquer/poly_mult.py | 3d6d01b5f543a0a0108a339b3a2bfa564fdb5742 | [] | no_license | AlexEngelhardt-old/courses | 24f4acf6de22f6707568024c5ee4a2fde412e461 | 739be99265b0aca1c58abe6f107b4c49de055b9d | refs/heads/master | 2023-05-05T22:25:50.327739 | 2020-12-09T14:57:46 | 2020-12-09T14:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | def lfill(arr, length):
"""Prepends [0] elements to arr so that its total length is at least length."""
return [0] * (length - len(arr)) + arr
def poly_mult_naive(A, B):
"""Naive O(n^2) implementation of polynomial multiplication.
A and B are coefficient arrays:
Example
-------
A = 3x^2... | [
"alexander.w.engelhardt@gmail.com"
] | alexander.w.engelhardt@gmail.com |
3e036e276640d9c2da31ce3c38fa68d0687dca9e | 4e432db63eb6b0e3dba12a09ca9405aea2c229ed | /models.py | fe096064578354fb9b6e004ae2e31fecdc8aa7ea | [] | no_license | KritiBhatia/django-book-record | 842cb120687f928ac4b759e10f1d6ecc08935d14 | dbcbf4508dab0f6ab7b68a855a6700d6fd3788a9 | refs/heads/main | 2023-01-28T21:18:47.513442 | 2020-12-11T11:47:02 | 2020-12-11T11:47:02 | 320,556,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from django.db import models
class Employee(models.Model):
eno=models.IntegerField()
ename=models.CharField(max_length=30)
esal=models.FloatField()
eaddr=models.CharField(max_length=60)
def __str__(self):
return self.ename
| [
"noreply@github.com"
] | KritiBhatia.noreply@github.com |
9720b397cbc8cd2c66fa38cabf689b20b781de7c | 1c0ef3e1a1ad33fbf6c7d49857ff42d85c859da2 | /date/date0817/class1.py | f603d41831140d956c4deb136fffd62c044edb86 | [] | no_license | s570504071/learngit | 1f18525382a6edbaf1ffbd8d07652e382e60cff3 | 8215c175ef0b270bc877474a9d6986952065c648 | refs/heads/master | 2021-09-08T17:40:24.424038 | 2018-03-11T13:35:33 | 2018-03-11T13:35:33 | 105,953,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | class c1(c2,c3):
def setname(self,who):
self.name=who
i1=c1('bob')
i2=c1('mel')
print i1.name
| [
"570504071@qq.com"
] | 570504071@qq.com |
78d8ff1315659190e523ddabf9753cb6e744b0aa | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fv/rtsvcbdtobdatt.py | f1ffb7ed17d1fb278b7698c60d82bd28d78ea0a0 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,548 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
847572bca0968733191b1a2b732263fce52874bb | 58c82deb2b6d5ad77eca46537bc98133c7a9f365 | /mniststuff.py | 8a7b28d3524215ec1d16b94825b71e78f167743b | [] | no_license | PerthGoat/juggernautsGAN | fb2d8ec7c605d474775a195560b072d545c5acfb | ffcd2d6a189fda8626f7dbb1ca6bbc66e3ce8ff3 | refs/heads/master | 2023-03-30T01:16:57.965394 | 2021-04-06T00:56:32 | 2021-04-06T00:56:32 | 337,470,642 | 1 | 0 | null | 2021-04-06T00:56:32 | 2021-02-09T16:44:11 | Python | UTF-8 | Python | false | false | 1,761 | py | import torch
import torchvision
import torchvision.transforms as transforms
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import numpy as np
from tqdm import tqdm
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.conv1 = nn.Conv2d(1, 5, 3) #convolu... | [
"rybothecamel@gmail.com"
] | rybothecamel@gmail.com |
fe6eb6766bddca0cda94ac4719dea56be6aa33ce | 65830f3fd1abd1bae68b0a89c77244f7d25d14c4 | /easylinkage/__init__.py | c83ede5ed4e3931c86416a2712ebcd85abfdd2a7 | [
"MIT"
] | permissive | ersilia-os/easylinkage | 2324957f0dcb61580fe9ddb1286808547ad0bb96 | 390fff38bb6ad474e70abecb0fab49b41572802a | refs/heads/master | 2022-11-23T23:49:07.407386 | 2020-07-30T13:08:10 | 2020-07-30T13:08:10 | 203,118,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | __all__ = ["algorithms", "postprocessing"]
import recordlinkage.config_init # noqa
from recordlinkage.index import FullIndex
from recordlinkage.index import BlockIndex
from recordlinkage.index import SortedNeighbourhoodIndex
from recordlinkage.index import RandomIndex
from recordlinkage.classifiers import *
from rec... | [
"mduran@ALOY17.local"
] | mduran@ALOY17.local |
58afd8e194a66d93081d602c1b5562695a2aacc7 | 7e41d70ee3bf07dc3043afef020cde173d5fb0bc | /airflow_client/client/model/resource.py | 4db2b1d4fdbe4e8423ff2bc14774439fc6e6dd11 | [
"Apache-2.0"
] | permissive | apache/airflow-client-python | fb11789076bfed191d730c459c84273781d50246 | 38d55888f7533253857baa878322007f4581fc21 | refs/heads/main | 2023-09-05T18:23:37.049610 | 2023-08-23T13:10:27 | 2023-08-23T13:10:27 | 275,569,232 | 251 | 44 | Apache-2.0 | 2023-08-23T07:49:13 | 2020-06-28T11:20:41 | Python | UTF-8 | Python | false | false | 19,801 | 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... | [
"noreply@github.com"
] | apache.noreply@github.com |
d7cadf05cf410500013836c138a65129dfd1a7e7 | 0c11d581fa04e99960c6f5fcb8e9cfd188451a95 | /Information Security/Lab3/setup.py | fc4ea076203f5a96ddee25dd98b9e39e2ec35b52 | [] | no_license | Vanchez23/VIHT | c907229935978d1044446ecb3c5a78be3e82866a | fd8530d92667e9d88e6b2a830c72ec091a3a59b6 | refs/heads/master | 2020-03-30T13:54:07.329480 | 2019-05-05T13:36:25 | 2019-05-05T13:36:25 | 151,292,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from cx_Freeze import setup, Executable
setup(
name = "Freelance",
version = "1.0",
description = "Freelance Parser",
executables = [Executable("PrivacyPolicy.py")]
) | [
"bukunivan23@gmail.com"
] | bukunivan23@gmail.com |
4d39d846840e01114a83ec7bece187bdf76b160d | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/kusto/v20210101/event_grid_data_connection.py | a5730756f74d4be6193881f22a8298b833bd3bfb | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 24,727 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
9f55f8e376210ed4f32a255f43a2e2372c23a574 | 8583d704ecfcbd14ae590ba7f7210a2302ade5e8 | /config.py | ea80c3be94d3182679ebd13ee9130c972c5f6d54 | [] | no_license | jmaroeder/wattsup-poster | 077dbd09a8d42c4ecc07c7cfe120b3df357392a1 | 2910c16a7562272baa448ef9aa90fb3ff402b123 | refs/heads/master | 2021-05-29T16:35:58.220898 | 2015-06-04T16:00:33 | 2015-06-04T16:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # Linux default
# SERIAL_PATH = '/dev/ttyUSB0'
# Mac default
SERIAL_PATH = '/dev/tty.usbserial-AD02022O'
UPDATE_INTERVAL = 300
POST_URL = 'http://wattlog-hathawaybrown.rhcloud.com/measurements/'
POST_USERNAME = 'secret'
POST_PASSWORD = 'secret'
| [
"james.m.allen@gmail.com"
] | james.m.allen@gmail.com |
d02f06d35f7d783eea32c5aa7952e01a19410317 | b7f36f13b15b9ae9d8ff58199dc18cfadc67023b | /src/lc0_az_policy_map.py | f7a2dff9788963fc9dd70762fe6e43602c53f27e | [] | no_license | advait/lc0-transfer | c59cbb64a77edb8b55231aa347d743ec8d64d9a9 | 500fb7f22bce2daca30f3ab7c4e2207ec121d95f | refs/heads/master | 2020-05-18T10:46:32.755580 | 2019-05-01T02:43:33 | 2019-05-01T02:43:33 | 184,359,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,297 | py | #!/usr/bin/env python3
import sys
import numpy as np
from .policy_index import policy_index
columns = 'abcdefgh'
rows = '12345678'
promotions = 'rbq' # N is encoded as normal move
col_index = {columns[i]: i for i in range(len(columns))}
row_index = {rows[i]: i for i in range(len(rows))}
def index_to_position(x):
... | [
"advait.shinde@gmail.com"
] | advait.shinde@gmail.com |
2b72601aa35f22fe7285d28cc4fd151b2cd8bd11 | fa798e1779af170ee31bfd710a6faca9904a99ef | /6day/2. parameter2.py | ee3813869b83825983ac1f98dfcf349e50f27af4 | [] | no_license | itwebMJ/pythonStudy | 1c573f98b78ce8c9273ae17a44d59a5a26c61b2c | 8ea3112c9c587b6aeb8a5fa6ef715053286fbaae | refs/heads/master | 2023-06-28T05:37:29.239010 | 2021-08-06T08:01:54 | 2021-08-06T08:01:54 | 375,879,186 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | def f1(*x): #가변인자. 튜플로 받아옴
print('함수시작')
for i in x:
print(i)
print('함수 끝')
def add(*num):
s = 0
for i in num:
s+=i
return s
def main():
f1()
f1('aaa', 'bbb')
f1('ccc','ddd','eee','fff')
s=add(1,2,3)
print('add(1,2,3):',s)
s=add(1,2,3,4,5)
print('ad... | [
"rlaalwn61@naver.com"
] | rlaalwn61@naver.com |
430400a477c6d5ddc458784abdd68e1536c37106 | 8a4ba59012227e9d69f215bef11d48eccadfd0eb | /oracle1.py | 0b2629eb9b5e8816149e61decf64900efa5be9c4 | [] | no_license | dwijdeep/python | 2958f7516f0cb5fab31eb24fc96a28e0fc2a9711 | 38834fd981fbe1992a69110b756b0551169238e1 | refs/heads/main | 2023-08-31T11:32:19.176755 | 2021-10-01T11:59:16 | 2021-10-01T11:59:16 | 412,447,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | l=[1,2,3,5]
x=l[0]#1
y=l[-1]#5
for i in range(1,y):
if i not in l:
print(i) | [
"noreply@github.com"
] | dwijdeep.noreply@github.com |
fa43a838c4978b258a9605d31ab39eb249c8b487 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /thing_and_time/year/different_group_or_way/own_hand/bad_woman/old_week.py | 9639b61edb0de71dc9e7ec473e80b69899594523 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py |
#! /usr/bin/env python
def great_week(str_arg):
year_and_day(str_arg)
print('way_and_little_place')
def year_and_day(str_arg):
print(str_arg)
if __name__ == '__main__':
great_week('want_first_time')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
3f72c481ca01adc01b3586629f7ef8971957621b | 5475adba82eecfe37d9d5d3f4faf98c3916ab38c | /lesson_7/exercise_6/my_inv_kb.py | a4a755404e84b664c5ed774f03f7709010116827 | [] | no_license | cdelbrug/anisble-class | 93373cb49174aadaa631128052b9fd9d2f8addc3 | 1f45b1e272f88b70a53469f0c92d244f2f953e7c | refs/heads/master | 2022-09-29T02:29:21.806578 | 2020-06-04T16:43:36 | 2020-06-04T16:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,911 | py | #!/usr/bin/env python
"""
Ansible dynamic inventory experimentation
Output dynamic inventory as JSON from statically defined data structures
"""
import argparse
import json
ANSIBLE_INV = {
"all": {
"vars": {
"ansible_connection": "network_cli",
"ansible_python_interpreter": "/home/c... | [
"caleb.delbrugge@intlfcstone.com"
] | caleb.delbrugge@intlfcstone.com |
85858a9e401ac0e3d50eaf34cc4cb785ca8aaf19 | 1dccb74674fc5c81692e851735d3302610bb5ef1 | /weekly report/赵普/2018.9.3——2018.11.2/Python学习笔记与代码/Test code/PythonTest4/PythonTest4/main.py | 84fd0541901ca66fb36510d3e85c102acaaed3e4 | [] | no_license | Automation-Seu/Lab-stuff | 47773ab276ee45118cfe5250c5e80d2b585c8472 | 7825f81312dc03ea0593c7612a1324fb221b007d | refs/heads/master | 2020-04-04T00:12:46.396498 | 2020-03-03T00:54:26 | 2020-03-03T00:54:26 | 155,644,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | print("this is main.py")
import os
os.system("py -3 ifTest.py")
os.system("py -3 ifSentence.py")
os.system("py -3 ifAndList.py") | [
"noreply@github.com"
] | Automation-Seu.noreply@github.com |
b3bcac61808534e11cb1da0504ac8237f8e56aa3 | 233692c01e4f3cb9a00c933b932dae93d560a5e8 | /bot/__main__.py | c94cba9f6de1b16c1e3b42737486b9884f7c1994 | [
"MIT"
] | permissive | uvobot/testing-archlinux-repository | d6f6836f986ae898be48fd65e6bc79244fa35445 | f7956eb824596c9d7fd86bf835de3bfa88fc4e7c | refs/heads/master | 2020-06-17T17:46:38.087052 | 2019-07-19T04:31:26 | 2019-07-19T04:31:26 | 195,997,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | #!/usr/bin/env python
"""
Copyright (c) Build Your Own Arch Linux Repository developers
See the file 'LICENSE' uor copying permission
"""
from environment import environment
from interface import interface
from repository import repository
from validator import validator
from core.contextual import get_base_path
fro... | [
"developer@lognoz.org"
] | developer@lognoz.org |
d594976c71a71dee03a06c97b4225da81f63733e | 4c807a2b3df7d9967b0b4abb6baaa0f1e76afc81 | /server/__init__.py | cfbe3a896bfb1e930c1330da0a11f0e952d66883 | [
"MIT"
] | permissive | luiscaputo/voter-app | 0aea7a5d115f695330712d77af9c136af8ad5d95 | 0d6b844aab964f74edcde6e3e0697abb0049f7bd | refs/heads/main | 2023-03-29T15:09:11.568689 | 2021-04-09T12:44:43 | 2021-04-09T12:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,959 | py | from socket import *
from sys import base_exec_prefix, set_asyncgen_hooks
from dataBase import JsonFiles
## ____ ON BUILDING ______
class Server:
serverName = "localhost"
serverPort = 12000
serverSocket = socket(AF_INET, SOCK_STREAM)
serverSocket.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) ## I the port i... | [
"true4321king@gmail.com"
] | true4321king@gmail.com |
7d8996f2266f4ca3814431bc9929251ffd4b09bc | 51636a6c14fcaa40ed43a3f0ca1eea6c7b64eeb3 | /reinforcement/valueIterationAgents.py | f6d30a79020987af549ef8db3b5e2b3188e165cd | [
"MIT"
] | permissive | yzj-again/CS181 | 76e4b54ad8a13bffc793a7bee8d1b07b7b4685fd | 133ed1437561a4a458fc38f4ed2afa716f117c42 | refs/heads/master | 2023-02-19T18:29:47.135630 | 2021-01-22T07:45:57 | 2021-01-22T07:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,585 | py | # valueIterationAgents.py
# -----------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to ht... | [
"chibinzhang@hotmail.com"
] | chibinzhang@hotmail.com |
5577adbf39c30e7cfa89c76e8eb07f81dca2ff8c | 37c6507cb937312017fb05e1010007419e68e5a8 | /post_to_gminer/client_send.py | 94e58eb54cd07a652d151cf836a26292163b5a0e | [] | no_license | bbcf/gdv | 5fc04e186fd0487db6bce850538cba77e82b6284 | f8738e7dc49ca826e29f4454484d2da716389bd2 | refs/heads/master | 2021-01-21T19:28:54.558176 | 2011-07-01T15:01:21 | 2011-07-01T15:01:21 | 1,186,918 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | # Modules #
import httplib2, urllib
# All parameters #
args = {
'data' : '''{"operation_type":"desc_stat","characteristic":"number_of_features","compare_parents":[],"per_chromosome":["per_chromosome"],"filter":[{"name":"Ribi genes","path":"/scratch/genomic/tracks/ribosome_genesis.sql"}],"ntracks":[{"nam... | [
"lucas.sinclair@me.com"
] | lucas.sinclair@me.com |
76899b983e2ad467054a90a4de6099d345f0cb33 | 79fe6de10f9af48d25fd02e624984d05f2c580be | /iter_documents.py | 71272fc09c2b7e89bac8e474be37856e08cab749 | [] | no_license | clasocki/text_categorization | 5255d9887f910bee2779e5fb3af7005d46697a40 | d4969a554e070f7ab09f67ec0a7db7f9f608398e | refs/heads/master | 2021-08-10T14:53:42.123291 | 2017-11-12T17:45:29 | 2017-11-12T17:45:29 | 75,674,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | import re
import os
from helpers import Document
DOCS_HCI_GRAPHS = ["Human machine interface for lab abc computer applications",
"A survey of user opinion of computer system response time",
"The EPS user interface management system",
"System and human system eng... | [
"clasocki@gmail.com"
] | clasocki@gmail.com |
2951978989a085b93e5ed9357c2bf2d6381a16a0 | 19a2378a7fc2aef762b0e3a70669208818feeaa9 | /src/transformers/models/upernet/modeling_upernet.py | 6143c57e92d598b2db52e36ef60bc3a18dff8085 | [
"Apache-2.0"
] | permissive | pytorch-tpu/transformers | 494ee005c6d156161171f2a8e60f25603189408f | 6112b1c6442aaf7affd2b0676a1cd4eee30c45cf | refs/heads/master | 2023-09-03T19:34:30.326852 | 2023-07-19T20:57:40 | 2023-07-19T20:57:40 | 220,075,881 | 7 | 2 | Apache-2.0 | 2023-09-14T17:58:25 | 2019-11-06T19:40:45 | Python | UTF-8 | Python | false | false | 17,414 | py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | [
"noreply@github.com"
] | pytorch-tpu.noreply@github.com |
4c715851b353565af9b991d0e1b8525c5db52d4e | 05202494054839e9a1521ad8f085ae5630ea61f4 | /node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/config.gypi | c61edab5cb853fef095c1b2fbcf9c1cc9fbb2026 | [
"Apache-2.0",
"MIT"
] | permissive | a1GoXplorer/MySite | 3ca97b98fed07a352f8d102942a8fc13fea08507 | a8ae3b9f371da4deb6a4eb8c4719eda6bc50501f | refs/heads/master | 2021-01-22T01:33:35.708456 | 2015-07-23T02:02:57 | 2015-07-23T02:02:57 | 39,535,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"node_install_npm": "true",
"node_prefi... | [
"mark_daniels1982@hotmail.com"
] | mark_daniels1982@hotmail.com |
313fc8191b1743de3783064de080d33d44b1a948 | 889733653caad8d387de9b45abf1b6ae11c73f00 | /src/stump.py | 34e83e90868ac1a8174564f581fb3a4d3c65d125 | [] | no_license | wkru/car-evaluation | 3a8620cd8f6ee0305747601ffbca7d863be82a40 | 738ff24349d7ad734f24464eeeab76620434c747 | refs/heads/master | 2020-12-21T04:28:59.817009 | 2020-01-28T14:35:53 | 2020-01-28T14:35:53 | 236,307,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | import names as n
import sys
import math
import numpy as np
class Stump:
def __init__(self, features):
self.decision_dictionary = []
self.features = features
self.feature = -1
def learn(self, dataset):
self.decision_dictionary = []
self.feature = -1
counters = ... | [
"a.iskandar.j@gmail.com"
] | a.iskandar.j@gmail.com |
1be1bbed7d3387625c039c4ccd2ba612719d214c | fa12ab2fcc2540b1d4617610369996ceb5a11501 | /assignment-3-an-object-oriented-pokedex-pikachu/pokedex_request.py | 94adfdca387b12364b55d6ee875822a660a8205b | [] | no_license | lizhiquan/learning-python | f0fd4dbc790f1881bd4f742e5996475650efaee9 | e86956c69006f96221349fe9bd4925ad2255601e | refs/heads/master | 2023-02-17T21:50:10.317836 | 2021-01-17T19:50:33 | 2021-01-17T19:50:33 | 330,473,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,518 | py | """
This module contains the PokedexRequestManager for the program.
"""
import asyncio
import aiohttp
import pokemon
from cli_request import QueryMode
class PokedexRequestManager:
"""
Manages HTTP GET requests to the Pokedex API.
"""
ENDPOINT = "https://pokeapi.co/api/v2/{0}/{1}/"
"""
Unforma... | [
"quyen.lechi@gmail.com"
] | quyen.lechi@gmail.com |
bfba7db224c5d590de0eaa96f0737a4849accb57 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nipype/interfaces/minc/tests/test_auto_Dump.py | bcca2a480195741d1cc2f4ccc5cdf6e3271a276a | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 1,907 | py | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..minc import Dump
def test_Dump_inputs():
input_map = dict(
annotations_brief=dict(
argstr='-b %s',
xor=('annotations_brief', 'annotations_full'),
),
annotations_full... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
917dadb212ec658472de836a5b21d4d5c5744946 | 1cc17b2eb1c885389126299602dbaa3bbd1e6dd7 | /liaoxuefeng_python/innerbuilt/do_wearth_parse.py | cc2b69122069756e6f36f542b652328b8a61a467 | [] | no_license | shulu/python_note | e611093ff2af321fbc889167424574b214052b44 | 93b101a1723d2d47b435a25e81e447f0d5d95022 | refs/heads/master | 2021-01-02T22:47:53.717930 | 2019-03-26T08:55:48 | 2019-03-26T08:55:48 | 99,391,822 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,138 | py | # -*- coding: utf-8 -*-
from xml.parsers.expat import ParserCreate
import json
data = {}
textlist = []
class WeatherSaxHandler(object):
def start_element(self, name, attr):
if not name in data:
data[name] = []
data[name].append({'attr' : attr})
def char_data(self, text):
te... | [
"qq961085397@163.com"
] | qq961085397@163.com |
ea5aa6c50f98a175bed92349bae0a7dfb2f69265 | 13b70fefe74a4df57c80207a9f5fddb2c2474f1d | /Ui/Ui_FormConfig.py | f8737de39a52a6332ceafb06dfe1692b405643d9 | [] | no_license | golden7602/zion | 4f8ae947fd754d64de44bb16d9bd2bd7f8c819a5 | 70a5ba13eb1b504f94fdaceba7cc6d0564618c00 | refs/heads/master | 2021-07-01T13:46:03.769916 | 2020-12-01T11:15:01 | 2020-12-01T11:15:01 | 196,413,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,713 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'e:\Zion\zion\Ui\FormConfig.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
... | [
"419331959@qq.com"
] | 419331959@qq.com |
0e0907a2c30e43dfe4c7e066e907fee82622fc62 | 54060498cf7bd55d606746fb957e92d00b6c00d0 | /vention_ws/src/moveit_tutorials/doc/move_group_python_interface/scripts/test.py | b32ab21c423768fa373b4cd9d2804ef229d9c15f | [
"MIT"
] | permissive | chinmaymulayy/panda_robot | b240c7bd80878e4a002c814c3a060705b70818ac | ef9df8b047d9a01d62618bad526e7d6f2b8a36b4 | refs/heads/main | 2023-02-21T21:38:54.827561 | 2021-01-25T03:41:25 | 2021-01-25T03:41:25 | 331,768,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,780 | py | #!/usr/bin/env python
# license removed for brevity
import rospy
from std_msgs.msg import Float32
from geometry_msgs.msg import Pose
from std_msgs.msg import String
import tf
import geometry_msgs.msg
from tf.transformations import euler_from_quaternion, quaternion_from_euler
import time
from move_group_python_interface... | [
"64719497+chinmaymulayy@users.noreply.github.com"
] | 64719497+chinmaymulayy@users.noreply.github.com |
50edad4a7618fb6a26b91055346521ede9e9263a | 8db2dfa1b2e6bbc7397835e071e5f981527102cf | /video_edge_detect.py | 31b646a684417cd6fd206ae363d4bfaeeed411ca | [] | no_license | 91180000020/Digital-Image-Processing | 075ee4caf793e53f92cb29ccc16190daf4acf2be | 4a839507baca127ed70d946a617fbd220c2f37ac | refs/heads/master | 2020-04-21T13:10:21.213472 | 2019-02-07T15:33:00 | 2019-02-07T15:33:00 | 169,589,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | import cv2
import numpy as np
cap = cv2.VideoCapture('maroon5.avi')
while cap.isOpened():
ret, frame = cap.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
edges = cv2.Canny(gray, 100, 200)
gauss_blur = cv2.GaussianBlur(gray, (5, 5), 0)
gray_hist1 = cv2.equalizeHist(gray, 1)
cv2.... | [
"noreply@github.com"
] | 91180000020.noreply@github.com |
d4ce1a9bba78c0cd1fde8da0dcbce30e5ef64c78 | e0f2992ec02a1cff9acc6c4725370d5b6949321a | /pinoyvibescoin/contrib/seeds/generate-seeds.py | 2845d3f1682ffec1b8500ecbf42e045fe50faf85 | [
"MIT"
] | permissive | bradtech151929/test | 73031b4c923988d5960462a12aac78fda3fbdd01 | a582857fcafb826b75eb207f7654e2405cf788f6 | refs/heads/main | 2023-06-23T04:23:25.394585 | 2021-07-14T02:39:23 | 2021-07-14T02:39:23 | 385,789,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,348 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the dir... | [
"support@bradtech.live"
] | support@bradtech.live |
83552ee7a0c8d3eb64dcc41986b7cd785e9a71cc | 979bed6a6f73965b2b3ef441004586a44075cbf7 | /hm/migrations/0007_classroomreport_healthinformation_parent.py | ba5849252dc7ebd4a1f4ce448933aca8038492b1 | [] | no_license | josephezati/mps | 854c650ba9b564c240722d9830ba5735d5077ee2 | 87af5c8193a4e41dc51ac1bf72775a124beaddc6 | refs/heads/master | 2021-03-08T03:07:01.446206 | 2020-03-10T13:21:02 | 2020-03-10T13:21:02 | 246,312,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | py | # Generated by Django 2.2.6 on 2020-01-07 08:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"josephezati@gmail.com"
] | josephezati@gmail.com |
f418da5dea058b1002eb272df3600d07312d7f09 | c3fd86805597a0ffccfe986b11eecde30bdc5d72 | /pypgtap/core/test_kit/pypgtap_testing.py | acc2d2906cd07088f84a25e2c067f6fd3538474a | [] | no_license | itissid/pypgTAP | d0d61afbee451006cef1a450ddf1709f40b7a0b6 | 15713c31db44723ee30e8c1af2a76f2b5d35e78c | refs/heads/master | 2022-12-06T16:30:54.848933 | 2022-11-25T17:05:10 | 2022-11-25T17:05:10 | 22,315,146 | 20 | 1 | null | 2022-11-25T17:05:11 | 2014-07-27T16:08:11 | Python | UTF-8 | Python | false | false | 11,517 | py | """
This contains a part of the core API that helps in
bootstrapping the pypgTAP test harness and executing tests on it.
The running state of the harness is not managed by this module.
In addition it also contains utilities to execute sql scripts.
"""
import logging
import os
import pkg_resources
import subprocess
impo... | [
"sidharth@knewton.com"
] | sidharth@knewton.com |
a242affb11032739d86eaec1e797b8b7161fb28d | 91910a93eb120a46424119a163eeb646c9b7b948 | /test_json.py | 540b1d20bcfb9b01e641fe826b5992ae15aae26c | [] | no_license | aoyoo/tornado | 2ab0943d929a47fb263307c3d2b1ae56da8e80fc | d2fe7f9090620e56435318ea546fe144d60738d6 | refs/heads/master | 2021-01-10T20:43:26.982198 | 2013-09-02T07:23:55 | 2013-09-02T07:23:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
import sys
import time
import json
import string
import copy
import re
#reload(sys)
#sys.setdefaultencoding('utf-8')
raw_str = """[{"title":"title1", "price":"500"},{"title":"title2", "price":"441"}]"""
raw_list = [{"title":"啊啊啊", "price":"500"},{"title":"title2", "price":... | [
"aoyoo.po@gmail.com"
] | aoyoo.po@gmail.com |
6a9d31362c7703d086eaf8885a1a7df445238bb2 | baf792fe21c7c097469e6a7776b361fde73df14e | /section05-1.py | 22956a8cf38c6a095eadd4ed87f6657ea6205e7c | [] | no_license | SeolHuiGwan9478/Web_Crawling | 67b7c4ca37c3877f77d04da9f72196dce17d97b9 | d1fdcc7684797d5bfba04e4844632091694fb4a6 | refs/heads/main | 2023-06-30T00:53:54.943666 | 2021-07-31T10:13:20 | 2021-07-31T10:13:20 | 382,503,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,726 | py | #Section05-1
#BeautifulSoup
#BeautifulSoup 사용 스크랩핑(1) - 기본 사용법
from bs4 import BeautifulSoup
html = """
<html>
<head>
<title>The Doremouse's story</title>
</head>
<body>
<h1>this is h1 area</h1>
<h2>this is h2 area</h2>
<p class="title"><b>The Dormouse's story</b></p>
... | [
"shg5977@naver.com"
] | shg5977@naver.com |
d84e266712ab016b57c02f337ed36cb13b123d9a | 75e16fc6883e3e314b21ccf337beb0320bbcae50 | /train.py | 2f18cc8ed8e16739d9b6c577004d390b0b4c6768 | [] | no_license | mihirp1998/convHypernetComp | a0a9404ab6abf29a56733ea88d45a10f397d551d | 6ed0632af965b81ac38cf3ed7bd9215adadb1902 | refs/heads/master | 2021-08-18T11:11:32.464130 | 2020-04-24T23:44:15 | 2020-04-24T23:44:15 | 169,819,367 | 0 | 0 | null | 2019-02-09T18:08:45 | 2019-02-09T01:07:13 | Jupyter Notebook | UTF-8 | Python | false | false | 7,212 | py | import time
import os
import argparse
import numpy as np
import torch
import torch.optim as optim
import torch.optim.lr_scheduler as LS
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import torch.utils.data as data
from torchvision import transforms
from torch.nn.parameter i... | [
"mihirp1998.mp@gmail.com"
] | mihirp1998.mp@gmail.com |
508d6ae083c9e4dd5e88df2f98ff5ffe1ed2f997 | f1790e298bcbf7b26cacd3c27850f243c446b9eb | /courses/pythonBrasil/EstruturaDeDecisao/ex006.py | e023d983077c2e8cfaf09eb5788f0c2eeb6359b5 | [] | no_license | misa9999/python | 36001a1bf0eb842d00b010b02e05b01aa4dfac57 | 251c5226db1bfef4a8445b025f232a27a6924930 | refs/heads/master | 2023-03-04T16:25:48.610233 | 2021-02-22T21:37:51 | 2021-02-22T21:37:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # pede três números e informa o maior deles
# pede os números
n1 = int(input('n1: '))
n2 = int(input('n2: '))
n3 = int(input('n3: '))
maior = n1
# verifica o maior número
if n2 > n1 and n2 > n3:
maior = n2
elif n3 > n1 and n3 > n2:
maior = n3
else:
print('Todos números são iguais')
print(... | [
"yuukixasuna00@gmailcom"
] | yuukixasuna00@gmailcom |
0ca1c1d552e8fa8c24fcb96b77f1f6893c9c58ba | 9e6cea9fcfe5c55bce5fb0f96c0d7722e58ca489 | /code/projutils_ts.py | 6644d163d52edaecae62735a4ecacbb959c89ab0 | [] | no_license | bert9bert/forecast_wiki_traffic | 0116b359581b832522f1c06d047cdecc074140a0 | 89ed8a4a176795fd62d9bbaf5e86b94eb88dc7eb | refs/heads/master | 2021-04-18T18:45:34.624045 | 2018-10-28T18:23:33 | 2018-10-28T18:23:33 | 126,279,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,622 | py |
import numpy as np
import pandas as pd
from collections import OrderedDict
import time
import warnings
from statsmodels.tools.eval_measures import mse
from projutils import smape
import rpy2.robjects as robjects
from rpy2.robjects.packages import importr
# import r objects
ts = robjects.r("ts")
forec... | [
"bert9bert@users.noreply.github.com"
] | bert9bert@users.noreply.github.com |
ad7faa54a46d5965e09d67a6f9c2c498b2bbbec0 | fcd965c9333ee328ec51bc41f5bc0300cc06dc33 | /DailyCoding/invert_tree.py | 9c1f7f53cc075075fb4ac08a3358a5e3da55f484 | [] | no_license | henrylin2008/Coding_Problems | 699bb345481c14dc3faa8bab439776c7070a1cb0 | 281067e872f73a27f76ae10ab0f1564916bddd28 | refs/heads/master | 2023-01-11T11:55:47.936163 | 2022-12-24T07:50:17 | 2022-12-24T07:50:17 | 170,151,972 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # Daily Coding Problem #83
# Problem
# This problem was asked by Google.
#
# Invert a binary tree.
#
# For example, given the following tree:
#
# a
# / \
# b c
# / \ /
# d e f
# should become:
#
# a
# / \
# c b
# \ / \
# f e d
# Solution
# Assuming we could invert the current node's left and ri... | [
"henrylin2008@yahoo.com"
] | henrylin2008@yahoo.com |
48ce48f4d288816ab6af2ac00fce960d7f7e911f | 31e571f4b975c5178a7b2e18823c00897ce2bc0b | /music/admin.py | dab285c854228750bac8fa62ea86e770744d943a | [] | no_license | lsj8972/MusicBox | fc46897fcd9698ea5e20743dcc527b8222e73223 | f3cf9d2ad85886509eba9583d4442a81da4db3da | refs/heads/master | 2023-01-24T09:17:07.353110 | 2020-11-27T05:30:35 | 2020-11-27T05:30:35 | 316,385,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from django.contrib import admin
from music.models import Music, Artist, Entertainment
admin.site.register(Music)
admin.site.register(Artist)
admin.site.register(Entertainment)
| [
"dltmdwornt@naver.com"
] | dltmdwornt@naver.com |
04ca532abc1f721a651008e03b2fc480c37452cf | 9cd25c62e501741bbf4f982058ac60b8cdf815dc | /_unittests/ut_testing/test_template_dl_torch.py | 2ee7a06eb55e118202d4f461b0f1bb82357dabb5 | [
"MIT"
] | permissive | sdpython/lightmlrestapi | c60c2960b271e59750ebfe8fafc9c70304f92cbc | def172965eb197d8ab7f812c3f5f5ce129593cef | refs/heads/master | 2022-07-09T06:56:31.458790 | 2022-05-19T23:46:52 | 2022-05-19T23:46:52 | 110,975,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | """
@brief test tree node (time=12s)
"""
import os
import unittest
import numpy
from PIL import Image
from pyquickhelper.pycode import get_temp_folder, ExtTestCase
from lightmlrestapi.testing.template_dl_torch import restapi_version, restapi_load, restapi_predict
def get_torch():
try:
import torch #... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
b20ad72d7d3234c25c78fa8f2db9e79cba24aeb3 | dd66fa1726f4bae553644672a4bf33d1ef9452a4 | /venv/bin/python-config | 8a60ef81d5e4adc9658aecd69e37b93715c4f03d | [] | no_license | yanhao-li/Blog | a2453fceddf2c7f486f21b948fcafedae7b9c96c | 6c2a96da357ac68fdb984c475dabf19648d98f07 | refs/heads/master | 2021-05-31T12:52:25.253469 | 2016-06-05T16:18:16 | 2016-06-05T16:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,379 | #!/Users/Max/Dropbox/Personal/Develop/Lab/PersonalWeb/Blog/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append... | [
"hi@maxlee.im"
] | hi@maxlee.im | |
8e7a86c55d6c00056deac08ea9da15dc0e7d4880 | b09fb143298d47b72ebdc41c81ac2b6048321a7b | /snippets/urls.py | 938734f3f0766f1a0efc58046c1ead1feb5775e3 | [] | no_license | aniket9465/pastebin | 87d26b63747a4d5d38bac727a7094f9218228a81 | 6384c1c31839c4866e5aede95389d308c359495c | refs/heads/master | 2020-03-07T00:31:27.297641 | 2018-03-29T00:21:29 | 2018-03-29T00:21:29 | 127,159,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django.urls import path
from snippets import views
urlpatterns=[
path('',views.create,name='create'),
path('view/<int:key>/',views.view,name='view'),
]
| [
"aniket14goyal@gmail.com"
] | aniket14goyal@gmail.com |
59125fada11245cb2fd16d583346fea7808880f8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03803/s808013287.py | d06c71951fe118e1fa63c59d59e0f64d918f0c20 | [] | 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 | 134 | py | a, b = map(int, input().split())
a = a if a > 1 else 14
b = b if b > 1 else 14
print("Alice" if a > b else "Bob" if a < b else "Draw") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
532ccd9ee7c659589dbdc2903a405f781452eac5 | 777660665e3c3c8f01615ace0659539963c6f339 | /Sublime Text 3/Packages/LaTeXTools/toggle_fwdsync.py | fd2510664f8cb6f1bd57e99d1ebab27db0e51c5e | [] | no_license | schaefer-dev/dotfiles | f85c2ce6e11aaab52ccfdeb545e8e635793d7bc9 | 185590b05890c690a0421812b0ec67d7e2e8c733 | refs/heads/master | 2023-05-27T08:57:01.224734 | 2023-05-21T20:11:04 | 2023-05-21T20:11:04 | 37,656,728 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | # ST2/ST3 compat
from __future__ import print_function
import sublime
if sublime.version() < '3000':
# we are on ST2 and Python 2.X
_ST3 = False
else:
_ST3 = True
import sublime, sublime_plugin
# Toggle forward syncing to PDF after compiling
class toggle_fwdsyncCommand(sublime_plugin.TextCommand):
def... | [
"schaefer.dev@gmail.com"
] | schaefer.dev@gmail.com |
20124e1270bd850d805dff7e9a4b3e4ce2eba4a7 | f2e33b0d1a4c0976443950b4a88c4b32ee055f04 | /DEAP_covariances_regression_eda_mean_var.py | d4ae30c81385a2e7aa3833c8c224962c575fdd5a | [] | no_license | tomdamelio/arousal_decoding | 5e0245c71e4f71bdcdd435e75c6a5e73f2e6c490 | 1bb0b03e826798da983c45615ff2b00e8e8f7146 | refs/heads/master | 2023-07-25T02:41:55.238214 | 2021-09-01T06:52:39 | 2021-09-01T06:52:39 | 401,931,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,114 | py | import os.path as op
import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import datetime
import mne
from mne_bids import BIDSPath
from sklearn.linear_model import RidgeCV, GammaRegressor
from sklearn.model_selection import (
cross_val_score, ShuffleSplit, KFold, GroupShuffleSplit,
... | [
"tomas.d-amelio@inria.fr"
] | tomas.d-amelio@inria.fr |
4740f1c48776dc66f80b11287c862d0fcf4766a6 | 45ca434bdb9e48fdbb2cda0e7fdd9a76474117b0 | /aliyun-python-sdk-push/aliyunsdkpush/request/v20150827/QueryPushDataByMessageIdRequest.py | 81f214595cd3f2e94b6ea05d93fea2bd6a0a3d30 | [
"Apache-2.0"
] | permissive | wanyanzhenjiang/aliyun-openapi-python-sdk | e41e9937ad3f851e5a58f6bea95663e88f7fee13 | 4a5bf1b35f2395d047ead4444ea46721976bdd24 | refs/heads/master | 2020-12-30T10:37:55.789911 | 2017-07-27T06:55:15 | 2017-07-27T06:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | 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... | [
"ling.wu@alibaba-inc.com"
] | ling.wu@alibaba-inc.com |
79d2ab3c42d1d127d5bd6a2dda721a7b86bae39c | acecde67044b84c9592493b81db727c5325343f9 | /restaurant_exercise.py | 2a6c6cfbba144930a82259c0d5ffc05eb7510b9c | [] | no_license | StellaMarieL/DataScienceFundamentals | cc8711b06432bf4b1f1a9e2ce2ed3c01e8081007 | ece57362d8e2bc63279d37a11b958160cd538488 | refs/heads/master | 2020-03-29T15:47:54.096760 | 2018-10-22T11:21:18 | 2018-10-22T11:21:18 | 150,081,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from bs4 import BeautifulSoup
import pandas as pd
with open("thewolfhound.html") as f:
page = BeautifulSoup(f, "lxml")
#The URL used was https://www.thewolfhound.nl/
page.select("title")[0].get_text()
title = page.select("title")[0].get_text()
print(title)
page.select(".widget-text")[0].get_text()
description =... | [
"noreply@github.com"
] | StellaMarieL.noreply@github.com |
7404a3f2cbb5cdc826b84086c3531719beadec9e | 75ef065b7d7098018bfa35d60f7813ca796ae158 | /NAVIO2/PeoplesRepublic/biases copy-paste.py | 1d42b36454e813ec08d5f137ebcf5b71ac5fe030 | [] | no_license | kyakid1/MAE5010 | 5b60b1d3ad748511cb5c0cdbcb975cdb287a9cb8 | 239314c793764d8dee6f3b827591eb70e1ba1036 | refs/heads/master | 2020-09-15T07:33:24.909907 | 2019-11-20T01:13:46 | 2019-11-20T01:13:46 | 223,380,928 | 0 | 0 | null | 2019-11-22T10:32:44 | 2019-11-22T10:32:43 | null | UTF-8 | Python | false | false | 1,509 | py |
#servo_0, servo_1, servo_2, servo_3, servo_4, servo_5 = range(7, 13)
#throttle, aileron, elevator, rudder, none, flaps = range(7, 13)
# define indices of cmd for easier access.
#psi_c, h_c = range(2)
class bias(object): #creates an object that avgs bias for 25 inputs--Christian Coletti
def __init__(self):
... | [
"bcwhitecb@gmail.com"
] | bcwhitecb@gmail.com |
1427b718206e6a7f9871e5fefdc4f16bc57f0dff | d6bcb97570eec91bd0a4ea4bea5b95cfa58b5429 | /invoices_sorter/invoices_sorter.py | b15abcba0083960bd6e0fd16efded873db632024 | [] | no_license | bartosz-bartosz/work_automation | 63f794e8012fd7161643b7ab35dcd0a9573d65d0 | 8b3d3cfa719cd494b03da3d2552e9ed4e551967a | refs/heads/master | 2023-07-19T17:22:46.720568 | 2021-08-27T12:33:04 | 2021-08-27T12:33:04 | 400,500,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | '''I have an excel file with two columns ("Billing Document" and " Customer Name"),
and folder full of PDF documents containing the billing document number in their filenames.
This script compares all these filenames with the excel file and finds the Customer Name
corresponding to the PDF. Then it moves the PDF to a ne... | [
"badalecki@gmail.com"
] | badalecki@gmail.com |
4e3aa48c6e65837a4e521b92970cb5723002af43 | b7a75077547b22f65b2578429ce92be39a2fe9bc | /loader.py | 40c64c25d19f5a092177df6df95ed718a567dbae | [] | no_license | t0rr3sp3dr0/IF998-CittaPET-StreamService | bca6f8e4d3b842f8483607857edc9a50b3d1fd81 | 870d00c0ba6c299a20a471aeb2148f17dfaa1e9f | refs/heads/master | 2020-05-24T22:27:07.731034 | 2019-05-19T23:09:26 | 2019-05-19T23:09:26 | 187,497,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | import csv
from threading import Thread
from datetime import datetime
from db import BusEvent, UTM, connect
def read_file(name):
connect()
current_file = './data/' + name + '.csv'
with open(current_file) as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
line_count = -1
... | [
"pgrr@cin.ufpe.br"
] | pgrr@cin.ufpe.br |
95656e453a0c0b0fe5ed41a8ff62c64758218a8b | 89f91ded95cde5a55b4d5d1459ef0e49dd2ac344 | /Análisis estimados iniciales - Montecarlo.py | be051678f27b77282c93101497c2dde74e4f6801 | [
"BSD-3-Clause"
] | permissive | Arn960/Regular_Solution_Model | 022f4117aefef558d22df87e77dba868f839de88 | 14ab20951e97a25affc5f0c3f9c8c5a94b8f4614 | refs/heads/main | 2023-08-02T07:18:50.151785 | 2021-10-08T00:16:07 | 2021-10-08T00:16:07 | 414,789,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,611 | py | # -*- coding: utf-8 -*-
"""****************************************************************************************************************************
Created on Wed Feb 10 18:59:20 2021
@author: damv_
El crudo de Indonesia es el unico que utiliza nC5 como solvente en la prueba de floculacion.
Indonesia
w = np.arra... | [
"arn.90600@gmail.com"
] | arn.90600@gmail.com |
076e9da84a5ca277c5b3c7a7d91b7c7594ad151a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/2720.py | ad1a9ec15bca1a694901004c379c73f110bc065c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | def nopalin(li):
count = 0
for i in range(li[0], li[1]):
if ispalin(str(i)):
if ispalin(str(i**2)):
count += 1
return count
def ispalin(a):
return a == a[::-1]
infile = open('C-small-attempt0.in', 'r')
outfile = open('ansfairsq_small.in', 'w')
no = in... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3c2ec0c60a20d05ddb15a5a95803d3dabf75ab9c | 3f4da796e5273fc15078846ef1eadc1da1889225 | /ex14.py | 88dfa0a345f84bcabe7322a3a697088029304b9f | [] | no_license | gil-parce/learnPython | e0058f72da2d08f949454ef17361a14cac000be1 | 48b72a795d2b793ce17da203af9cffc151f6236c | refs/heads/master | 2023-01-19T05:57:37.561854 | 2020-11-17T18:46:14 | 2020-11-17T18:46:14 | 313,976,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # Prompting and Passing
from sys import argv
script, user_name = argv
prompt = "Answer me now please " #This variable will be the prompt for our raw_input
print "Hi %s, I'm the %s script." % (user_name, script)
print "I'd like to ask you a few questions."
print "Do you like me %s?" % (user_name)
likes = raw_input(pr... | [
"gilselby@gmail.com"
] | gilselby@gmail.com |
ed1160b800c691610916a7e632db8b658681bcc0 | f05a759a5789231dd132f0822f457e415a75ca87 | /libs/pypower/t/t_qps_pypower.py | 7ee56c4c5dfc98cd0826e69f9d873cb193d84e8d | [] | no_license | AdrianBajdiuk/PowerGridResillience | f9cd0987fd4ed964a9b7b81299915467165d0b8e | 60fc64b17a89cd3aba0e1ed113647adc7d6aaa1f | refs/heads/master | 2021-01-01T05:26:55.162767 | 2016-11-17T08:07:57 | 2016-11-17T08:07:57 | 57,984,761 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,753 | py | # Copyright 1996-2015 PSERC. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
"""Tests of C{qps_pypower} QP solvers.
"""
from numpy import array, zeros, shape, Inf
from scipy.sparse import csr_matrix as sparse
from pypower.ppoption import ppo... | [
"adrian.bajdiuk@gmail.com"
] | adrian.bajdiuk@gmail.com |
a95fdccca63eabb8357efc31abfedb51d7ac8e83 | 17cc8bffed3fadb413506f1545c455d7b9406ed6 | /parts/zodiac/venusian/tests/fixtures/two/mod2.py | 538ca16324ce1614318fbae18501cdb30d38c29a | [] | no_license | stinett/zodiac | f7a4f788942930fa217e7e1c7d525b82a557258f | 22b247719694b0f5aa5135b3cb68c1e84aaf7629 | refs/heads/master | 2020-05-21T01:14:59.949571 | 2014-01-13T15:53:47 | 2014-01-13T15:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | /home/stine/myenv/zodiac/eggs/venusian-1.0a8-py2.7.egg/venusian/tests/fixtures/two/mod2.py | [
"stine@funkydesktop.(none)"
] | stine@funkydesktop.(none) |
08133c58c09c445d6a5267a27b83d6146b132d2b | 922b900772eec2b34ed8878acb29b60a0f340dd0 | /app/forms.py | 0c8674d144535b64c9150288b18b8812c3d35380 | [
"MIT"
] | permissive | gardoroman/menuscript | 8d4a8a01ba612896ea5df489f61ba283af39d6a8 | 8aedd3fa9f8891a7ffb5eb9507e6cecc1bbadc1b | refs/heads/master | 2021-01-19T17:17:14.069405 | 2017-02-27T19:19:10 | 2017-02-27T19:19:10 | 82,433,100 | 1 | 0 | null | 2017-02-27T19:19:10 | 2017-02-19T03:42:32 | Python | UTF-8 | Python | false | false | 1,301 | py | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, RadioField
from wtforms.validators import DataRequired, Length
class StoreForm(FlaskForm):
store_name = StringField('store_name', validators=[DataRequired()])
# address = TextAreaField('address', [validators.required(), validators.... | [
"gardoroman@gmail.com"
] | gardoroman@gmail.com |
13023ff2a81b93f3e670549f19317f83d8372c59 | c3350fa6ea9a522c416e60e648bf6aeb86267f73 | /2to3/calculate_3d.py | e0e1a7b615e948714cfde214a5c1f9c7dea6cc51 | [] | no_license | Magman11/2to3 | 459420ad6c88653bd113e0e2aefefe6a9a919e5e | a92fd8b8ece210323e0703d6495e51b8d52a824a | refs/heads/master | 2022-06-29T08:15:25.994721 | 2020-05-12T11:52:00 | 2020-05-12T11:52:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,586 | py | import numpy as np
from scipy.linalg import svd
import cv2
from solve_pnp import DLT
import pickle
import json
import math
def build_matrix(tracklet_2d, g, P, times):
M = []
n = len(times)
R = []
start_time = times[0]
for i in range(n):
frame_num, x, y = tracklet_2d[i]
t = (times[i... | [
"2193078662@qq.com"
] | 2193078662@qq.com |
6b6146c45215396338bd3bb5785fd5f25561bacc | aa957c6ec8e5b19949beb0a521bb77bf40f45f33 | /src/modules/postprocess/renderer.py | 5fc11dc19d01251cc05b64caa29fc9255fe7dc09 | [] | no_license | LifeIsStrange/derendering-text | 05c17e42c6ce22ebfe9351624c6974f1c87d07bb | fd105efb538e41a91a1d27658b07e68c981c7297 | refs/heads/master | 2023-08-22T01:26:16.429344 | 2021-10-07T11:02:44 | 2021-10-07T11:02:44 | 414,710,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | import numpy as np
from typing import Tuple
from src.dto.dto_postprocess import VectorData
from src.skiaLib import skia_paintor as skp
from src.skiaLib import skia_util as sku
def get_offset(i, vd) -> Tuple[int, int]:
x0, _, _, _ = vd.tb_param[i].box
offset_x = int(
x0 / max(float(vd.tb_param[i].text_... | [
"shimoda-k@mm.inf.uec.ac.jp"
] | shimoda-k@mm.inf.uec.ac.jp |
277613ceb14da0871595c2b6422d5a4012935a08 | 04a57a8cd6867741e8343e01a3e2dd184f4481b1 | /python/tfSyst.py | 1a4733f4312a3f6d17d7fdc304ba6dabbaa4d79d | [] | no_license | mattleblanc/BkgdSysts | f4dad1661f07c56fa08ca8caf047386e33ed1fc2 | 2ff4429be7b080b2d760208b6ae285d4702c0343 | refs/heads/master | 2020-04-02T06:05:06.624674 | 2016-07-29T12:28:43 | 2016-07-29T12:28:43 | 63,276,151 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,301 | py | import os
import logging
import json
import math
import re
import string
import glob
import ROOT
from ROOT import gROOT,gPad,gStyle,TCanvas,TFile,TLine,TLatex,TAxis,TLegend,TPostScript
from optparse import OptionParser
from math import fabs
ROOT.gROOT.SetBatch(True)
ROOT.gStyle.SetOptTitle(False)
logging.basicConfig(l... | [
"matt.leblanc@cern.ch"
] | matt.leblanc@cern.ch |
7d33906b9b9e31703206b7b5f1c75ce8317c90de | e5b8b003720a68b17b4b6d89dba42c8273aa95f5 | /feature_selection_models/fs_MI.py | cdb0671aa1947b4429e8edd653b706be2cc87a7f | [] | no_license | xfysq1/machine-learning-algorithm-library | dd98671ec1efbcc7b40deaba9d55ca5a2bac1ab1 | 17ef5fa791eaf4a4d90328b7c35068f99e281b71 | refs/heads/main | 2023-04-18T13:13:21.583024 | 2021-04-29T13:51:22 | 2021-04-29T13:51:22 | 362,391,070 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,659 | py | import math
import numpy as np
from sklearn import preprocessing
from sklearn import metrics
import pandas as pd
class fs_MI:
def __init__(self, z, n_components, preprocess=True):
self.z = z
self.preprocess = preprocess
self.n_components = n_components
if self.prepr... | [
"noreply@github.com"
] | xfysq1.noreply@github.com |
2b17cdab4f563615f7fac547cd0bace64dfa5f1c | 7caddbbace351050dbd2bf473b021dc8e32d94ae | /marketplace_parser/management/commands/export.py | 04c690950cb1ebd40dd3d1e967b57378f6081244 | [] | no_license | dharmagetic/atlassian-marketplace-parser | 749780bb247dd70e8adb307051bc041ee59ff1c1 | f068e1ce9bf7960d111a9c09908dfbb06cb96a4b | refs/heads/master | 2020-12-02T16:27:55.752793 | 2017-07-07T16:31:23 | 2017-07-07T16:31:23 | 96,556,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from django.core.management import BaseCommand
from marketplace_parser.exporter import export_to_csv
class Command(BaseCommand):
def handle(self, *args, **options):
export_to_csv() | [
"dharmagetic@gmail.com"
] | dharmagetic@gmail.com |
a15de04300eb2c29a2ad29fed2bd1a9da39ad5d7 | 62554d5ab2b479f900472358ced074b799f684b4 | /blog/urls.py | 28ced961d96c675d91187468ca44af32d38e69da | [] | no_license | nimfalyda/my-first-blog | d692de32eb6085cf31d45112fd80ad0e17e40943 | 9bae26b7f6b2e734c277fb5cd6ce1fe2c21a2059 | refs/heads/master | 2020-04-01T20:04:33.657621 | 2018-10-25T15:08:08 | 2018-10-25T15:08:08 | 153,587,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from django.conf.urls import url
from blog import views
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
url(r'^post/new/$', views.post_new, name='post_new'),
url(r'^post/(?P<pk>\d+)/edit/$', views.post_edit, name='post_e... | [
"krizhanovskaja.lidia@yandex.ru"
] | krizhanovskaja.lidia@yandex.ru |
2f55c8537b87cd05e7322df3dd42c98d8395247a | 4f0a4bd71954ea50675f9d741cf921244e59354a | /go.py | 03b22e08faf1837dad5f6cccf2a713cc159858ce | [] | no_license | woogers/mjgl-tools | bc619b5bef1d757c870c57a781e41acfd9d1ccf1 | 977ea7bbb82caf0d18c76f595f700070039ad146 | refs/heads/main | 2023-05-29T05:17:18.419926 | 2021-06-03T13:18:23 | 2021-06-03T13:18:23 | 361,856,965 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,945 | py | # commands: match show, match #, rankings, stats
import configparser
import datetime
import json
import shutil
import matplotlib.font_manager as mfm
import matplotlib.pyplot as plt
import pytz
import requests
from fontTools.ttLib import TTFont
def char_in_font(uc_char, font):
"""See if a given unicode character... | [
"woogers@gmail.com"
] | woogers@gmail.com |
3338d4cfeb1fc3bc8f40cc93c1f094d07f8e0cd2 | 5767118ec6e6c4350d226cc6714ac5c9e7afb511 | /utils/preprocess.py | 65641ef555c975e0ffff65ebb8c5f6e7c6e7db5f | [] | no_license | inwaves/ml-training | 43aaaa8d2198805c854a265672d2b0a4bf7258cd | 0a03e48182f68eea7f6f139ad5380da1dd9292ec | refs/heads/main | 2023-01-19T06:34:34.135144 | 2020-11-29T17:59:02 | 2020-11-29T17:59:02 | 304,938,916 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,545 | py | import pandas as pd # data manipulation
from sklearn.model_selection import train_test_split
def impute_categorical(df, categorical_column1, categorical_column2):
"""Imputes categorical_column2 using the mode of it corresponding to each value in categorical_column1"""
cat_frames = []
for column_value in ... | [
"inwaves@live.com"
] | inwaves@live.com |
7593e3d69947e1c79ab1ac96622bbf72ed0e4f02 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /accelbyte_py_sdk/api/seasonpass/models/tier.py | 2f85703a05dbe98fe8aaa8b3cba6d42d71842b3a | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 5,204 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: ags_py_codegen
# AccelByte Gaming Services Seasonpass Service (1.19.0)
# pylint: disable... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
26f9a7b7981574936001e8170cdc4ff857f3007e | 8b7495b943e11237a1509f3cbbdef848111e06a7 | /code/preprocess.py | 4349a3b569c1190c3a7ea3b2f26a2f54b5c33d14 | [] | no_license | zeusm9/Chinese-Word-Segmentation | 04ea48ed04fdb7d66239ff43efffb0705e99da19 | f3032210f74b7fd22769293961be74c0f3989471 | refs/heads/master | 2020-05-24T21:35:25.938398 | 2019-05-19T19:29:56 | 2019-05-19T19:29:56 | 187,478,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | # Generates a file without white spaces and a file with characters in 'BIES' removing empty lines from the original file
def generate_files(input_path, input_name, label_name):
input_file = open(input_name, 'w',encoding='utf8')
label_file = open(label_name, 'w',encoding='utf8')
original_data = open(input_pa... | [
"matteocanavicci@gmail.com"
] | matteocanavicci@gmail.com |
535b83b0f934ececa93c6623cc4f6733b31a8a77 | 9619658616266c553ee234b9ce12aa39ab8fcba2 | /createuser.py | 279f32d50c60aa31d9885a5d802a007d9910e93e | [] | no_license | phincylp/mydash | a04cb39db27db099cd148a8799c91f3ac2e9d5a7 | 82db38fcb266e3f3b7f9822852180f40d6394e71 | refs/heads/master | 2020-05-23T02:59:13.108934 | 2017-01-10T11:32:16 | 2017-01-10T11:32:16 | 45,746,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,613 | py | #!/usr/bin/python
from utils import dbactions, template, config
import cgi, os
import socket
import string
import random
# get data from url and browser
formdata = cgi.FieldStorage()
dbhost = formdata.getvalue('dbhost')
user = formdata.getvalue('user')
dbname =formdata.getvalue('selectminor')
role = formdata.getvalue... | [
"ppious@linkedin.com"
] | ppious@linkedin.com |
d602ca9e5536cadf5301afd667d2d6e7c265d08a | 3d97eb02c03554b1fa9e9778ba575290636fde72 | /profiles/models.py | faf04670eb5623138e67c7f0e0c883a9526ca8c9 | [] | no_license | Code-Institute-Submissions/gamer-supplies | 752cfdfff2b603462012367b63ef7bc70ec03841 | efd4b31cb95a087ae064ec79653d3f8d228856e5 | refs/heads/main | 2023-07-19T07:36:01.966024 | 2021-08-14T03:00:08 | 2021-08-14T03:00:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | # Imports
from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
from django_countries.fields import CountryField
# User profile model
class UserProfile(models.Model):
user = models.OneToOneField(User, on_delete=... | [
"joey-scott@live.com"
] | joey-scott@live.com |
8dc52b2e15d341887cfcded2544e901cdabe38a1 | 64c2bb7d4ac99e530ca36e90b49eabe06f448d0c | /python/sentdex/matplotlib/1python_mpl_charts.py | 4aa063645eefca96e9c85bd068d46a9756500986 | [] | no_license | bhagsukraj/commands | 5ea76a5adfcaceb2941d1bea858bf914b9ddbf19 | e0799b63f1ead9b74bec38173c108465dc8d0751 | refs/heads/master | 2021-01-02T22:35:23.226498 | 2018-05-26T05:41:33 | 2018-05-26T05:41:33 | 99,348,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | #!python3
from matplotlib import pyplot as plt
x=[1,2,3,4]
y=[4,5,6,7]
x1=[3,2,5,6]
y1=[4,7,2,10]
x2=[5,4,3,7]
y2=[2,9,10,4]
print(x)
print(y)
plt.plot(x,y)
plt.plot(x1,y1,linewidth=5,label='x1y1')
plt.plot(x2,y2,label='x1y2')
plt.title('plot')
plt.xlabel('x - axis')
plt.ylabel('y - axis')
plt.legend()
plt.show()... | [
"bhagsukraj@gmail.com"
] | bhagsukraj@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.