blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f32c47e27a4ed6dfd41d6154529bbafd699be8a3 | a38eb2457fc834109cbb1d5cd2f5649d932cbb00 | /blog/migrations/0001_initial.py | 7115d435920cd0178d44e08eebf29f71a8ba7649 | [] | no_license | anitalmada/mi-primer-blog | 0a5daef6aa87273ab4ab09c1f6d1ff51706fdae2 | 872709baeef37c30608231a746d749c9d11afb0e | refs/heads/master | 2020-06-10T01:47:37.291475 | 2017-10-09T00:16:38 | 2017-10-09T00:16:38 | 76,130,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-12-10 15:47
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depende... | [
"admin@admin.com"
] | admin@admin.com |
c3ff723b2a28454b46b22d8b8d29fc224907cbe8 | 666ae8ea0e992e72293fc2624e8ce0e06eb376da | /optionhouseapp/models.py | a1fd888eabbd54adfb37ca3bb0e7f8394a3b41e3 | [] | no_license | kghudgens/OptionHouse | 7e2e8a1ffb81a7627f2b0896bbc3246425893149 | 26197cbe810f8127d9aefbe1b4c1d7e962c40690 | refs/heads/master | 2023-04-19T12:43:48.078274 | 2021-05-04T13:23:17 | 2021-05-04T13:23:17 | 309,648,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
from PIL import Image
class Post(models.Model):
title = models.CharField(max_length=100)
author = models.ForeignKey(User, on_delete=models.CASCADE)
content = models.TextField()
date = models.DateFie... | [
"hudgens1073@gmail.com"
] | hudgens1073@gmail.com |
ddec73e39fc0ae3040f5a8f4618b0f6d20a21d5d | 2a3cb67f05ceaec9b150553f4afdffcf1e84a52c | /testsuites/base_testcase.py | ecf188272d71878d9b863a7e883b0e0b7db259c3 | [] | no_license | liucaifengname/liucaifeng | ad89fef4e9032a8986f8445bc25b1838cbe26674 | 2694f71fa7ea4e7c9db307e301403036a3ef4d25 | refs/heads/master | 2020-04-02T06:10:47.601898 | 2018-10-24T09:43:26 | 2018-10-24T09:43:26 | 154,134,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | from selenium import webdriver
from luntan.framework.browser_engine import BrowserEngine
import unittest
import time
class BaseTestCase(unittest.TestCase):
def setUp(self):#测试提前准备工作
browser=BrowserEngine()
self.driver=browser.open_browser()
def tearDown(self):#主要是测试结束后要做的工作
self.dr... | [
"1213637440@qq.com"
] | 1213637440@qq.com |
1b9cf57ef224079edd8a55d3520d461748966596 | 003556f7ca1c8b9b92aebfb727c45ee44b025ace | /models/transformer/__init__.py | cee3b0047eaab38a36c9bf3e4af18e5f8237d5bd | [
"MIT"
] | permissive | pinakinathc/VisualGPT | fbd88fca200ab779ad562d0f99d750750ebfd9e3 | 45aaa8f1cddf33f1f9f197078b089edf9f27bfd7 | refs/heads/main | 2023-04-12T15:27:54.830700 | 2021-04-18T08:40:40 | 2021-04-18T08:40:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | from .transformer import Transformer
from .encoders import *
from .encoders_aoa_baseline import MemoryAugmentedEncoder_baseline
from .attention import *
from .transformer_m2 import Transformer_m2
from .m2_attention import *
from .transformer_visualGPT import Transformer_visualgpt
| [
"jun.chen@kaust.edu.sa"
] | jun.chen@kaust.edu.sa |
143015e6f533e9a7ff15567a923069a6255caf56 | 4ba0b403637e7aa3e18c9bafae32034e3c394fe4 | /python/proto/google/protobuf/internal/type_checkers.py | c88b8d028eb494464a1dd6e1420d1b256e13d83d | [] | no_license | ASMlover/study | 3767868ddae63ac996e91b73700d40595dd1450f | 1331c8861fcefbef2813a2bdd1ee09c1f1ee46d6 | refs/heads/master | 2023-09-06T06:45:45.596981 | 2023-09-01T08:19:49 | 2023-09-01T08:19:49 | 7,519,677 | 23 | 6 | null | null | null | null | UTF-8 | Python | false | false | 11,442 | py | # Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions o... | [
"asmlover@126.com"
] | asmlover@126.com |
0fbcacb35b0929a4980ce63924016e6e561beb9a | 1f3f0dc8799dac1e7974b1b05211c2bb863db787 | /ohwada/python/ex21.py | 87e024a3307e4b5409357cd8af76ca58a93fbb15 | [] | no_license | m-note/100knock2015 | 665bb27bc84a0eacaa795523b5e65a5b64c426ac | 84cd1d0617b0b5c15f64e593dd2e0ae21a4dcef7 | refs/heads/master | 2021-01-18T19:41:54.111994 | 2015-07-28T16:15:53 | 2015-07-28T16:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import sys
f = open("article_uk.txt", "r")
for line in f:
if "Category" in line:
print line.strip()
| [
"oowadakenichi@oowadakenichi-no-MacBook-Air.local"
] | oowadakenichi@oowadakenichi-no-MacBook-Air.local |
2f3d4e4d43c70ea1932284f8d01a37bbecc10fef | debec8751026989acc1516b43cb938d2bcf6898d | /dashboard/test_4.py | 4f37fa877411c894a3ddd1500a060105828e2597 | [] | no_license | tuomijal/TLO-32410 | 9705458341e5c10fbaa1ac31345a5884aa9cbe93 | 3545252e8820f849ad8de41cf7a0f3d1473f70d4 | refs/heads/master | 2021-02-16T02:49:34.806243 | 2020-05-02T13:37:49 | 2020-05-02T13:37:49 | 244,958,664 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | import sqlite3 as sql
from os.path import dirname, join
import numpy as np
import pandas as pd
import geopy.distance
from bokeh.io import curdoc
from bokeh.layouts import column, layout
from bokeh.models import ColumnDataSource, Div, Select, Slider, TextInput
from bokeh.plotting import figure
from bokeh.sampledata.mo... | [
"jalmari.tuominen@gmail.com"
] | jalmari.tuominen@gmail.com |
001b2620fba71bf6672fffa7ba7578a6ef07180f | c838b0eaf08c63284bd29442f8a0a297d1558fd5 | /lagom/runner/rolling_segment_runner.py | 6f42c595b4aa4688010ec63e73d889e6d6601428 | [
"MIT"
] | permissive | vin136/lagom | ccd0f4a3e469c1ee8ef88b1f5248e712b51c5704 | 54e1890e6450f4b1bf499a838963c5d1a3b2da6a | refs/heads/master | 2020-04-22T21:45:51.488458 | 2019-02-13T16:41:32 | 2019-02-13T16:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | import torch
import numpy as np
from lagom.envs import EnvSpec
from lagom.history import BatchSegment
from lagom.runner import BaseRunner
class RollingSegmentRunner(BaseRunner):
def __init__(self, config, agent, env):
super().__init__(config, agent, env)
self.env_spec = EnvSpec(self.en... | [
"zuoxingdong@hotmail.com"
] | zuoxingdong@hotmail.com |
e35f7c5af2e92036ce16caa95070c2cccec270fb | 9dba716cfe998aef8503fdf862a108120cb7ca96 | /webapp.py | d5a9544680cb2cbd489967a1639d08a22e0b08e9 | [] | no_license | pascaleli/my_web_app | 09bb4dab6355b975a7db8bfc691a5bc05596076d | 2a91a2739ff98fc63bd33ede95c3b2f88498ff63 | refs/heads/master | 2020-03-23T00:20:36.623231 | 2018-07-12T22:56:10 | 2018-07-12T22:56:10 | 140,857,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'Hello world pasczal jjfjfjfjjfjfjfjfj'
if __name__ == '__main__':
app.run(debug = True , host ='0.0.0.0')
| [
"pascalhugues0104@gmail.com"
] | pascalhugues0104@gmail.com |
fa3c81e8655206c62c0e1c0548c42cc70ab771ae | c1261b9181d86c418df612dc809af933cfbb2c0d | /blog1/migrations/0003_auto_20190616_1338.py | c8a7d136c991ab23980daf09e24fe9de1d3d62e1 | [] | no_license | gitlGl/myblog | 122a598407d12a7397420ce50f9c1ca68a3107d2 | b3d7d1130e81ca625cb9d2b7204e19da6efe7d07 | refs/heads/master | 2023-09-01T14:06:04.720407 | 2022-10-22T08:47:02 | 2022-10-22T08:47:02 | 198,171,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # Generated by Django 2.1 on 2019-06-16 05:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog1', '0002_auto_20190616_1334'),
]
operations = [
migrations.CreateModel(
name='Page',
fields=[
('i... | [
"you@example.com"
] | you@example.com |
55f1dc9325861a9e19d2e9a887425c689284659e | 0c6c7365d6ff8b694bc906ec5f74c741e8bb0d37 | /Algorithms/922-Sort-Array-By-Parity-II.py | b95848daeaa9b922111c67403417c1599a5222c5 | [] | no_license | XiongQiuQiu/leetcode-slove | d58ab90caa250c86b7a1ade8b60c669821d77995 | 60f0da57b8ea4bfb937e2fe0afe3caea719cd7e4 | refs/heads/master | 2021-01-23T11:21:15.069080 | 2019-07-08T15:42:48 | 2019-07-08T15:42:48 | 93,133,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | '''
Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even.
Sort the array so that whenever A[i] is odd, i is odd; and whenever A[i] is even, i is even.
You may return any answer array that satisfies this condition.
Example 1:
Input: [4,2,5,7]
Output: [4,5,... | [
"zjw2goo@gmail.com"
] | zjw2goo@gmail.com |
0335ea1ef74f03b8d96b21d5130f5d0988090a9f | ccf7b194ecdff46f02a9e280511709d716d311aa | /ecommercedev/ecommercebd/ecommercebd/settings.py | e59b2395b93795408498b0c883b83cf6faf79007 | [] | no_license | imon91/test12 | 24a505a5545eca217436cf6ccff7e54acaca4d30 | 0c28a50f0b66be5c717f5ad28d8e189fbe21b002 | refs/heads/master | 2020-12-17T22:44:04.640363 | 2020-01-21T09:37:39 | 2020-01-21T09:37:39 | 235,298,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,503 | py | """
Django settings for ecommercebd project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"39309@wgbd.com"
] | 39309@wgbd.com |
b8666ae4b48669c0120964f5809b6f7b3e720aef | 3e48bddb2ffdc4998c69ce8e1b3ebf54ef8c0cfe | /python_compiled_backend/app/iris/state_machine/model.py | 1c6f84971bdbbc34e1feac6dac5b59faa2797d27 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | direkshan-digital/iris-agent | f4229359c1fc3ec5403301a77efbf9ed00565627 | 97d1fcd8fb8946f7df1c41777e8a133322ca5727 | refs/heads/master | 2022-11-26T20:20:28.058664 | 2020-11-22T12:23:37 | 2020-11-22T12:23:37 | 101,836,065 | 0 | 0 | null | 2022-11-22T05:48:15 | 2017-08-30T04:03:15 | Python | UTF-8 | Python | false | false | 54 | py | from ..model import IrisBase
IRIS_MODEL = IrisBase()
| [
"ethanfast@Ethans-MacBook-Pro.local"
] | ethanfast@Ethans-MacBook-Pro.local |
1907c67c5b3ab0232e31a71b012d06cd4662a0be | 3d852809edef71da5ce6cc3df63ae7e77c1c01f7 | /day28/file_io/freadline_animal.py | 90ef9b27c9640e337305f6e56e968e8fe815599f | [] | no_license | yeomye/pyworks | f85f30e3592215efdbdd830c40a54586f636c8cd | b741068264f4a09dd2dcbde1c66617dcc1aa7f37 | refs/heads/master | 2023-08-03T03:18:37.789783 | 2021-09-24T04:19:50 | 2021-09-24T04:19:50 | 402,286,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | with open('animal.txt', 'w') as f:
animal = ['dog', 'cat', 'horse', 'cow']
for i in animal:
f.write(i +'\n')
with open('animal.txt', 'r') as f:
#line = f.readline() #한줄 읽기
#print(line)
lines = f.readlines() # 전체 읽기
print(lines) # 1차원 리스트
# 2차원 리스트로 만들기
animal... | [
"yyz2999@naver.com"
] | yyz2999@naver.com |
9192c7935e9c169b9153a802bea4b6b3e121b0bf | d1deb9beb165756c043ad752919424a0eb41c74f | /collective/regexredirector/browser/browser.py | 71bb6eedbca9229b414ea212138f9c087caaee34 | [] | no_license | ebrehault/collective.regexredirector | 80d641d07e0d8b3d2e86ca9d18a915d36ab06aa0 | 333f9a78ec4cd29f3039f67c0e93a820df40a900 | refs/heads/master | 2021-01-16T20:51:47.738112 | 2013-01-30T11:10:34 | 2013-01-30T11:10:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | from zope.component import queryUtility
from zope.interface import implements
from plone.app.redirector.browser import FourOhFourView
from Products.MimetypesRegistry.base_zope import getToolByName
from collective.regexredirector.interfaces import IRegexFourOhFourView,IRegexRedirectionStorage
class RegexFourOhFourVie... | [
"davisp@xenbox.fr"
] | davisp@xenbox.fr |
171b120236c34872af91814ca27829cc1e019db6 | 6a55a55eb384a5b2e7c8e2ae6419a9e811b7ff5d | /config/settings/base.py | a082b0af29cefc245a6d5788562e43c82a10bc1c | [
"MIT"
] | permissive | ChrisKeefe/homeslice | 343b718ae71b125a48e5d1519074b2914d4c418a | 6070e8a40d1a3b300eb5eb156216552663675975 | refs/heads/main | 2023-05-06T04:25:51.488115 | 2021-06-05T22:03:46 | 2021-06-05T22:03:46 | 328,460,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,006 | py | """
Base settings to build other settings files upon.
"""
from pathlib import Path
import environ
ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
# homeslice/
APPS_DIR = ROOT_DIR / "homeslice"
env = environ.Env()
READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=False)
if READ_DOT_... | [
"crk239@nau.edu"
] | crk239@nau.edu |
3cb7621806e4937f1291b1f0db2257539d8f5b06 | 89daf19b7d920507e109cc9a7f7ab623d23da0d1 | /Giraffe/Modules_PIP.py | d4999e5d200dcf82ab6c257bbc2d656204d52588 | [] | no_license | ryanthemanr0x/Python | 18e3e54a1b385216daa1633734937b0f7aed587f | 9d25decfe25a24d99617a087c74de2dc53d6fb90 | refs/heads/master | 2022-12-25T15:08:06.686575 | 2020-10-15T00:52:33 | 2020-10-15T00:52:33 | 304,021,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | #Modules and PIP
# Import/Call other file
import useful_tools
print(useful_tools.roll_dice(10))
# Python Module Index: https://docs.python.org/3/py-modindex.html
# Python Modules local cache: %AppData%Local\Programs\Python\Python39
# External modules are installed to: %AppData%\Local\Programs\Python\Python39\Lib\sit... | [
"72871400+ryanthemanr0x@users.noreply.github.com"
] | 72871400+ryanthemanr0x@users.noreply.github.com |
3d73f889afa776a5b31de5114443a72c0eb17e8b | d4c04d637d991c212986c9945a2d7a28ae294a38 | /users/admin.py | 87432000a63831705da1403eafc31e73abddbac8 | [] | no_license | Python-Zone/web | c2ea3ff8b1fa74009295c3f1e1f878a3e17d9a9e | 4b4a19e9626f9a599b59f28d0637ea0f0edcaeec | refs/heads/master | 2021-01-18T21:45:13.224677 | 2017-03-02T05:07:55 | 2017-03-02T05:07:55 | 48,666,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,060 | py | from django import forms
from django.contrib import admin
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from .models import User
class UserCreationForm(forms.ModelForm):
"""A form for creating new us... | [
"jingping.yi@gmail.com"
] | jingping.yi@gmail.com |
330b773c30e9394678ce85a54e3f32455377b5c6 | 6249bc6388cc525e734f485edcb0ceb18dad31b2 | /contact/migrations/0002_cv.py | 0f43c43f2ec5a22899a1fef4c332aa311fd906e0 | [] | no_license | islamtaha/cube_webapp | cf33727f447d6a391811a436e01ed19d8dc6c23d | f99c2e5ae83ba877ecc920ca851214474ef45107 | refs/heads/master | 2020-12-29T18:47:49.153968 | 2016-09-06T09:46:46 | 2016-09-06T09:46:46 | 65,671,057 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-23 12:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contact', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"itaha48@yahoo.com"
] | itaha48@yahoo.com |
c160904d672d4b4ed90daa9fc2225301c3fa0c89 | fb7a324bb697cbd024093146d2eefd7b44fc1b2a | /SelfOrganisedMap.py | 41b46e19c51941b847355f54060d8afa97940e02 | [] | no_license | Lebo124/Exoplanets | d47ef98ceba71c0c3a50d02a0192f58e7c73c789 | 15131510f2f8e9a1920551cfde225fa2fa287fa5 | refs/heads/master | 2020-04-08T16:39:40.535071 | 2018-11-28T16:08:45 | 2018-11-28T16:08:45 | 159,528,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,299 | py |
# coding: utf-8
# # Final Assignement
#
# For the final assignement i was curious how unsupervised learning could help in clustering data. I was impressed of all the beautiful things that could be made by the neural networks, like deep dreaming, but i also am curious about the way deep learning can be used in scienc... | [
"noreply@github.com"
] | noreply@github.com |
2dca00f6397ed40ea58e0b77e3e87b5dd9332bb3 | d33ff04629a6772d7ac0a0e8c5ea4d27c8a9b3e7 | /hpc_clust2qiime.py | d13785c522dee4029e4bd7aae0b30b61918763ca | [] | no_license | waoverholt/overholt_scripts | 0c17e1341856cd7ee7aa9a14a4cde9cda0a7211a | fa46786415c4e93841a582b8d0edba6717343f51 | refs/heads/master | 2023-06-21T18:23:09.235615 | 2023-06-09T15:13:17 | 2023-06-09T15:13:17 | 172,920,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | #!/usr/bin/env python
import sys,os
import re
import argparse
from collections import defaultdict
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input_file", help="the otu file created using the make-otus.sh script found in htc-clust", required=True)
parser.add_argument("-o", "--output_file", help="th... | [
"waoverholt@gmail.com"
] | waoverholt@gmail.com |
03cfdcd1222e28f24a08bac54f33697fc9fdd4db | 032c6131ac12d07536056eba38cfde6dacf3d830 | /0x04-python-more_data_structures/0-square_matrix_simple.py | 5deec046864ccaf24ea8777d5397516020be75d5 | [] | no_license | GioRubioHolberton/holbertonschool-higher_level_programming | 4e5872839b557b6d0052eb60f80b0a2af7e7d9da | 08bbd471de6b702afac1af3fc6351253007913a9 | refs/heads/master | 2020-05-18T02:48:10.454190 | 2019-09-27T03:11:43 | 2019-09-27T03:11:43 | 184,127,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/python3
def square_matrix_simple(matrix=[]):
new = matrix[:]
new = [list(map(lambda y: y**2, x))for x in new]
return new
| [
"759@holbertonschool.com"
] | 759@holbertonschool.com |
bdd9eb2a0e740f5082e96fbccdc2a7f8b3cb016a | 3a3db844fbb83a03b64730624206d7f108c69687 | /pc_health.py | e64b7072716fec63d76201075bec48de44bc57f1 | [
"MIT"
] | permissive | encrypted-jpg/CleanPy | b2527c52bae31fe628bfa37fd36ec74ac2176e22 | d78cf1dfc070ba79a6ee8195f9a1291cef895919 | refs/heads/master | 2023-02-01T20:38:11.980984 | 2020-12-19T05:35:51 | 2020-12-19T05:35:51 | 319,217,657 | 1 | 0 | MIT | 2020-12-07T05:52:03 | 2020-12-07T05:52:02 | null | UTF-8 | Python | false | false | 996 | py | import subprocess
def system_info():
"""
It Prints the Brief System Information by using the following command.
"""
command = "systeminfo"
print("Retrieving Information... ")
info = subprocess.run(command, shell=True, capture_output=True)
cat = info.stdout.decode()
print(cat)
def o... | [
"vallakatlaaditya@gmail.com"
] | vallakatlaaditya@gmail.com |
33298d89b69714b92013d275a06ba985e9250f11 | 04c09e7b0255e4adb1915d3576f76b1bf8144308 | /def_test/reverse_test.py | 2d43e7adf623e40d020a6ce81d384c8c4bf81b4c | [] | no_license | mingyu0519/python_sample | 99d5562e0c52b3e9facfc18c248a5c9022eeb087 | 86240a239c511ecc61e7a59187b3b73fc6d536f0 | refs/heads/master | 2020-05-21T16:43:59.120270 | 2016-11-16T15:14:12 | 2016-11-16T15:14:12 | 62,772,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | def reverse(a):
b = a.split()[::-1]
print b
reverse('abc edf degd')
| [
"mingyu0519@gmail.com"
] | mingyu0519@gmail.com |
1eb7553184f9f93b4f42a7d94f77117f5205d59e | 78171e8cfbc44c547ee07d6e5a85e595fb7397a1 | /analytics/migrations/0001_initial.py | c0e9b067863b881a1c5ab3492b2f8dbcc91c19cf | [] | no_license | jimpalowski/URLshortener | 37b41a3818679c1e0707f02f57147e87a651063c | f7b8450ce2e858dff1e6fec11f9fd5dfec3d3e26 | refs/heads/master | 2021-09-05T11:44:36.564719 | 2018-01-27T01:59:56 | 2018-01-27T01:59:56 | 118,685,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2018-01-26 19:04
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('shortener', '0003_auto_20180125_2359'),... | [
"palowskijim@gmail.com"
] | palowskijim@gmail.com |
0d1f4be94b416dba2fe989466c6736cc23c35903 | 613434b8996b067b22cb6dc54a14be326e89eac2 | /entrant/views.py | beb314e598cb52c39e5d648985b25411203b8196 | [] | no_license | Alex-Abat/course_work | 82ff7cac222e972bbb6f3913d4656eb716a4cfd0 | c86ef44af7bc65de7fdbf582e89ef2a6a9e9f40d | refs/heads/master | 2020-05-20T22:07:56.558947 | 2019-05-10T06:24:55 | 2019-05-10T06:24:55 | 185,776,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from entrant.forms import AnketaForm, ExamForm, SpecForm, DiscForm
from entrant.models import Anketa, Special, Exam, Disc
def index(request):#главная страница
return render(request, 'index.html')
def add_anketa(request):#д... | [
"a.abatnin@mail.ru"
] | a.abatnin@mail.ru |
63eb7d87a1aafc03f35dda54a66e8ee6749dbf55 | 0e56bfa9b9f345aad98ae08e45dfeb800258d9de | /data_structures/Node.py | 30c71fec77fd050d46dddc88e7ccb1cc1a565cf0 | [] | no_license | karenngomes/learning_python | 02a8e1864b243fb382b4c1e979a43d82af69c472 | f45747217928955212bd03b4184efd1e646d236e | refs/heads/master | 2021-07-07T04:49:44.988553 | 2019-01-25T06:21:55 | 2019-01-25T06:21:55 | 119,829,113 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | class Node():
def __init__(self, initialData):
self.data = initialData
self.next = None
def getData(self):
return self.data
def getNext(self):
return self.next
def setData(self, newData):
self.data = newData
def setNext(self, newNext):
self.next = newN... | [
"kngs@ic.ufal.br"
] | kngs@ic.ufal.br |
193b11d29a749d3ccdc5410eba8d70b5f4c3f6e9 | 3740c368be952b6bc2a7f92e97dc7171aa8cb3e5 | /auctions/migrations/0004_watchlist.py | 5b82c967bb17c01551fde62a97fad3745b16535a | [] | no_license | OliviaU-B/commerce-project | 5a0a10a7a878bb39e0859583db94dbe80132cebf | ad0b01aa2c1b0723ab26b299f00ffe6da4af5ed6 | refs/heads/master | 2023-05-07T01:00:32.170414 | 2021-05-23T19:14:02 | 2021-05-23T19:14:02 | 359,079,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | # Generated by Django 3.2 on 2021-04-14 11:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auctions', '0003_auto_20210412_1837'),
]
operations = [
migrations.CreateMod... | [
"olivia.u-b@hotmail.com"
] | olivia.u-b@hotmail.com |
0b702ab72911a2f200bcb1db6308248af3527d9f | e10ab6310fb0b6e83cb64f0bcc91fc72116738e7 | /color_table.py | b32e1e96317cc96c052d48de7ba16920102f690f | [] | no_license | penguin-of-linux/gifparser | 0f5080974cfa200280f37d306f01a65b3f4ae095 | c38eea5f4013a4ff941c74c414cfdd4e398675fa | refs/heads/master | 2021-01-22T04:24:34.426619 | 2017-02-10T08:06:16 | 2017-02-10T08:06:16 | 81,542,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | class ColorTable:
def __init__(self, data: bytes, pos: int, size: int):
self.colors = list()
i = pos
while i < pos + (2 ** (size + 1)) * 3:
color = data[i:i+3]
self.colors.append(color)
i += 3
def __str__(self):
result = "Color table:\n"
... | [
"kulc_hacker@mail.ru"
] | kulc_hacker@mail.ru |
1650ea5291fb078028b18bc7b1d33ce095acb1aa | 3fce653f12af1b98b6b87e3d87e7d10483ef6fac | /hood/migrations/0003_auto_20181018_1012.py | f514eafff572aa923446e6983049b97236ec7ec9 | [] | no_license | IreriVIkki/hoodip | 6dba100d75a69b0dd146205557cbaba4ec2555e2 | 610629d6a54920e66b7e30156b11887de7fe8db4 | refs/heads/master | 2020-04-01T14:31:31.729134 | 2018-10-23T11:27:31 | 2018-10-23T11:27:31 | 153,297,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-10-18 07:12
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('hood', '0002_auto_20181018_0936'),
]
operations = [
migrations.RenameModel(
... | [
"wambsviki@gmail.com"
] | wambsviki@gmail.com |
10d583fbfb838d17ebed30ad91fdbb483af79e7a | b44a890564f1d79b78781319beac05178084b120 | /test01/customers/views.py | 6e8ee2be95d424d6e747f8cbd749e1e25005dcbe | [] | no_license | ryuzak/api01 | 130f90b944b8fce93c8a18bab7d195059fb858a0 | 4f510c78618e47e7b1d6c08eb7eaca8f5fc1548a | refs/heads/master | 2022-12-10T13:01:44.600969 | 2020-07-06T19:23:49 | 2020-07-06T19:23:49 | 209,666,207 | 1 | 0 | null | 2022-12-08T04:27:30 | 2019-09-19T23:34:48 | Python | UTF-8 | Python | false | false | 1,171 | py | from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.permissions import IsAdminUser, IsAuthenticated
from rest_framework import status
from .serializers import CustomerSerializer
from accounts.serializers import UserSerializer
from .models import Customer
class Cr... | [
"roberto@sml.mx"
] | roberto@sml.mx |
b8050e8ae95f6ce9bc0e786016ccb3db9cb88646 | 2a8e5a3c0fce77326eec0b8f4d543fc5a81f83ce | /dht_log.py | 25fc59e4d870ac6488eff91f47dd9e5321917c19 | [] | no_license | sbrunas/dht11 | 5ec8002e91b79c27f28e522affe7fd62a739eb23 | 0983fb1c99fccbac553c01622b8a40c58a4c63c4 | refs/heads/master | 2020-07-19T12:50:13.465676 | 2019-09-26T01:06:18 | 2019-09-26T01:06:18 | 206,452,199 | 1 | 0 | null | 2019-09-21T16:32:57 | 2019-09-05T01:54:00 | Python | UTF-8 | Python | false | false | 1,374 | py | #!/usr/bin/python
#--------------------------------IMPORT LIBRARIES--------------------------------
import sys
import time
import Adafruit_DHT
import datetime
#--------------------------------PATH LOG FILE--------------------------------
log_path = "/home/pi/log/iot/"
#--------------------------------CONF TYPE OF SE... | [
"seb.bruna@gmail.com"
] | seb.bruna@gmail.com |
037914c9c349ecf834267d3eb3e6e5b20c208d0b | 50dd2a43daa8316fc11e0c176b5872738fcc5dde | /Learning/049_Decorators/deco.py | a73431eabd8fc058356752fa444fc38ffd559521 | [] | no_license | FrenchBear/Python | 58204d368e3e72071eef298ff00d06ff51bd7914 | b41ab4b6a59ee9e145ef2cd887a5fe306973962b | refs/heads/master | 2023-08-31T18:43:37.792427 | 2023-08-26T15:53:20 | 2023-08-26T15:53:20 | 124,466,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,383 | py | # deco.py
# Exercices on decorators
#
# 2018-09-03 PV
# 2018-09-07 PV Variant with a class
# 2018-10-01 PV Expanded with execution time and following code
import functools
def uppercase(func):
# Preserve __name__ and __doc__ of original function in the decorated version
@functools.wraps(f... | [
"FrenchBear38@outlook.com"
] | FrenchBear38@outlook.com |
0ce5180b40afe8c903c9525c4abcb1538e4239d9 | 3cfaf190c329f1926ef1c73cdf72f852a0679e8f | /misc/array_rotation.py | a8ba96e1f4efb04b989833b31d1469c7fb35f634 | [] | no_license | venbalas/problem_solving | 525a5d9d7eba4f1771d44d54340f8c8607e07c87 | 8deaf42b6a3361d28de023632cf91e5fd7172b45 | refs/heads/master | 2023-02-01T15:59:31.877687 | 2020-12-13T02:06:53 | 2020-12-13T02:06:53 | 288,044,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # Given an ascending sorted rotated array Arr of distinct integers of size N. The array is right rotated K times. Find the value of K.
class Solution:
def perform_binary_search(self, arr, n):
if n <= 1:
return 0
mid =n//2
if n%2==0:
... | [
"venktech91@gmail.com"
] | venktech91@gmail.com |
1d7c91369001c27e093bf5a5535b4b94070065b5 | bca49526f88955ea6924e26cb6d2d6ea3ec79663 | /backend/brainhi/asgi.py | 9700090e6217da98ff9eef4f4addd7e98fd768a7 | [] | no_license | resparra/marketplace-project | 35999d6f5283ccfba4dbfa332a689dbfdef3fc42 | 2ceb08fbc890519b649adb4ebef48c55918f68d1 | refs/heads/master | 2023-01-11T02:18:16.367006 | 2020-11-12T15:54:29 | 2020-11-12T15:54:29 | 312,104,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for brainhi project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"rafaelesparra@akcelita.com"
] | rafaelesparra@akcelita.com |
bbd9e679b4854159d1c9db7300416a259fbcf773 | 8a171056b5d8d2ac184d66afa2c4573bf54ec8a0 | /Examples/Python/ExtractImageRegion.py | c7a669126fc8001d845248bb5406671b83518920 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | radpointhq/GDCM | 7b03d5a27c0f1f733d336fa24317d58329a3cf03 | 63bd2fc37b6ed3630183a3c2d8ee561027a9e574 | refs/heads/master | 2022-05-21T19:05:01.961938 | 2022-03-15T17:36:51 | 2022-03-15T17:36:51 | 189,388,523 | 1 | 0 | NOASSERTION | 2022-03-15T17:36:54 | 2019-05-30T09:50:16 | C++ | UTF-8 | Python | false | false | 2,650 | py | ############################################################################
#
# Program: GDCM (Grassroots DICOM). A DICOM library
#
# Copyright (c) 2006-2011 Mathieu Malaterre
# All rights reserved.
# See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
#
# This software is distributed ... | [
"mathieu.malaterre@gmail.com"
] | mathieu.malaterre@gmail.com |
3ca2132c184222c94e395d4cfe2db671fd4aabff | 4bcba1c79b04268f043c0ec3fed582412a6a7dfa | /flipping-an-image.py | e7a9108d259d9586071d147bad075b497180ffb4 | [] | no_license | AjeshV/SolvedProblems | add6063f0b1aacf15e16fe6e4fc902f01e300580 | 40ac1f9bd1f81c3ce43bccf75e54c5661baf4529 | refs/heads/master | 2023-02-09T12:25:38.880657 | 2020-05-19T13:38:40 | 2020-05-19T13:38:40 | 175,366,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | class Solution(object):
def flipAndInvertImage(self, A):
"""
:type A: List[List[int]]
:rtype: List[List[int]]
"""
return [[1-i for i in row[::-1]] for row in A]
| [
"noreply@github.com"
] | noreply@github.com |
ee0d03e5ed294173e0df5f582729e2d0b61ef73f | 17926b196d9db43816453d16f3da84de6664f2fd | /155_Mini_Stack.py | 76a37a32f326092b1b0ac94945275b9c1a9c62f7 | [] | no_license | luchang59/leetcode | 66690a3c9b28a5201a7be8cd0134142b48418adb | feab001b9291f6e57c44eeb0b625fdaa145d19b4 | refs/heads/master | 2020-05-28T06:57:20.667138 | 2019-09-20T18:18:11 | 2019-09-20T18:18:11 | 188,914,681 | 0 | 0 | null | 2019-05-27T22:17:44 | 2019-05-27T22:08:54 | null | UTF-8 | Python | false | false | 717 | py | class MinStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.stack = []
def push(self, x):
"""
:type x: int
:rtype: None
"""
curMin = self.getMin()
if curMin == None or x < curMin:
curMin = x
... | [
"luchang1991@gmail.com"
] | luchang1991@gmail.com |
c2d2d05327906bec3330c6c47792a5758a692f5b | fe1aee55f9f8dd5f3e9aeac62c64b3d14e9212c4 | /guest/tests_account.py | cf18bb45c803b81a50474dc2229788ab949f48c9 | [] | no_license | loreleivillatte/BungalowApp_project_13 | 74efeff44e133a285b68556252279a87538af173 | 4664de69155d0427d63ef51f8c4a3b4f05c1b26c | refs/heads/master | 2020-05-09T22:54:04.126568 | 2019-04-15T15:55:32 | 2019-04-15T15:55:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | from django.contrib.auth.models import User
from django.test import TestCase
from django.urls import reverse, resolve
from guest.forms_account import RegistrationForm, AuthForm
from .views_account import registration
class SignUp(TestCase):
def setUp(self):
url = reverse('signup')
self.response = ... | [
"jaune.pixel@gmail.com"
] | jaune.pixel@gmail.com |
3c021cf4f14b5f3be35dfef76e10378b37fcbff5 | ef8cc76ac4f80b91b729be21a883f25790e66b93 | /students/kevin_cavanaugh/Lesson01/assignment/inventory_management/market_prices.py | 94ce4875a304bd19efd927c21251540b55f8aac8 | [] | no_license | KevCav91/Python220A_2019 | 21d3a0c996427881755bd501c04760f7ef60750b | fdf934b27ac90086f562577f9c49933d7ccefb4d | refs/heads/master | 2020-05-04T19:32:35.070883 | 2019-06-11T04:57:40 | 2019-06-11T04:57:40 | 179,398,443 | 0 | 0 | null | 2019-04-04T01:27:17 | 2019-04-04T01:27:17 | null | UTF-8 | Python | false | false | 168 | py | """
Raise an exception to force the user to Mock its output
"""
def get_latest_prices():
"""
get the latest price for an inventory item
"""
return 24
| [
"kevincavanau@gmail.com"
] | kevincavanau@gmail.com |
004186567890d8ae2239bc073d0fdebcb8886cdb | a37b8ac91d4b1f9c03a9719299f1439f26a72bb9 | /ex24(更多练习).py | ab11085bb50e2d7aa7bbf6db18c5b412c423ca63 | [] | no_license | seasoncool/Exercises_Python | 1e32731f4ffcbbfd596d014fb6cd92f68215ae75 | fa839a84a44bd35d88e801f401f6ea161de3814b | refs/heads/master | 2020-12-24T17:08:45.879619 | 2014-02-09T01:56:51 | 2014-02-09T01:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | #coding:utf-8
#更多练习
print "Let's practice everything."
print 'You\'d need to know \'bout escapes with \\ that do \n newlines and \t tabs.'
poem = """
\t The lovely world
with logic so firmly planted
cannot discern \n the needs of lovelynor comprehend passion from intuition
and requires an explanation
\n \t \t where t... | [
"150401848@qq.com"
] | 150401848@qq.com |
e7982834dd489c2a5adb36b9cf06bc776b2f8548 | c9379bc004a89a74e03ab59227c1a97d5ebc819e | /SEPT18B/Chef_and_Adventures.py | 533c93dd7c599c73632ffde6e0557e8fa641a250 | [] | no_license | Darkshadowrule/Competitive_Programming_Solutions | 9ab966522311b72a79eab97c0b3dd8d85b0fde9d | ed9982b806c67e3ed383cb2069575c711fb53339 | refs/heads/master | 2020-03-31T02:49:55.679362 | 2019-08-20T14:44:26 | 2019-08-20T14:44:26 | 151,841,177 | 0 | 0 | null | 2018-10-07T13:50:46 | 2018-10-06T13:11:36 | C++ | UTF-8 | Python | false | false | 276 | py | # cook your dish here
for i in range(int(input())):
n,m,x,y=map(int,input().split())
n=n-1
m=m-1
if(n//x==n/x and m//y==m/y):
print("Chefirnemo")
elif((n-1)//x==(n-1)/x and (m-1)//y==(m-1)/y and(n-1)>=0 and (m-1)>=0):
print("Chefirnemo")
else:
print("Pofik") | [
"prajjwaldxi3@gmail.com"
] | prajjwaldxi3@gmail.com |
b07ebe4341d3f201e7ded401c8ae97e2d1385731 | cbe264842df4eae3569b28ed4aae9489014ed23c | /python/coding_dojang/judge_regular_expression.py | 5418ef520574bac18ef5149097b2d76c3df53c2e | [
"MIT"
] | permissive | zeroam/TIL | 31e176c2f4c3e1ef72b1155353690cc2f7160f96 | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | refs/heads/master | 2021-07-23T01:43:34.135033 | 2021-07-10T06:47:17 | 2021-07-10T06:47:17 | 167,952,375 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import re
p = re.compile('^(http(s)?://)?[\w\-]+\.[\w\-]+[\w\-_.?=/&#:]+$')
urls = [
'https://www.example.com',
'http://www.example.com',
'www.example.com',
'example.com',
'http://blog.example.com',
'http://www.example.com/product',
'http://www.example.com/products?id=1&page=2',
'http:... | [
"imdff0803@gmail.com"
] | imdff0803@gmail.com |
2caae5f00b788e0f8bb0d2dcb65a49a0c99739a9 | 1eaf0d12c9739c1c8be295800cc0cb0a0d9db8e2 | /eval/simulation.py | 171288c84661f4c35f46d532d71f1986050fce86 | [] | no_license | juhuntenburg/nonlinear_coreg | 5b3b95ba14a038c950e409bb9c0199828eb57422 | c4faa41c5c1401eaf6955557750f3d9834dfa271 | refs/heads/master | 2021-01-10T09:25:09.714712 | 2016-01-28T07:34:46 | 2016-01-28T07:34:46 | 50,565,020 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,002 | py | # see readme file for how to get the simulated data
#import libraries
from nipype.pipeline.engine import Node, Workflow
from nipype.interfaces import Function
from nipype.utils.filemanip import filename_to_list
import nipype.interfaces.utility as util
import nipype.interfaces.fsl as fsl
import nipype.interfaces.ants as... | [
"ju.huntenburg@gmail.com"
] | ju.huntenburg@gmail.com |
34de46783263cd0ce2b4f87983353a8ecd82a2f7 | d6ec56cc79104a071f92e67a53835325fbc6849a | /gdifb/apps/home/views.py | ca3ab4db45eeadd01a0ba5346763e4dfa81d9dc3 | [] | no_license | dedy-purwanto/gdifbgroup_archive | 6869333a28bd30f74f47182b6e6433a69b7f1302 | 3e358d0b7f447bcfeeb81bd1c41da3e8a2ed7401 | refs/heads/master | 2023-05-27T01:35:19.636538 | 2012-01-22T10:07:29 | 2012-01-22T10:07:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from django.views.generic import TemplateView
from archive.models import Post
from search.forms import SearchForm
class MainView(TemplateView):
template_name = 'home/main.html'
def get_context_data(self, **kwargs):
data = super(MainView, self).get_context_data(**kwargs)
posts = Post.objects.fi... | [
"kecebongsoft@xxxxx.(none)"
] | kecebongsoft@xxxxx.(none) |
0d54a8ca3d2b786f788a93b14b7817b06777b682 | b48764e6684ffbd73b0043dc889c013860642e8d | /1학기/area1.py | f237fe223ef10a6ce0fda088efe636035c0f451d | [] | no_license | tanghee/Programming-Python- | c6d32a1e49d5c95c8359aeb8775cb52cc665167a | eb402357ad31638d867042e76af507bc6c67a0b4 | refs/heads/master | 2022-03-27T07:27:18.888660 | 2019-12-10T02:06:41 | 2019-12-10T02:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | width = 3
height = 5
print("가로 ", width, "세로", height, "인 삼각형의 넒이: ", 3*5*1/2)
print("가로 ", width, "세로", height, "인 삼각형의 넒이: ", 3*5*1/2) | [
"s2018w37@e-mirim.hs.kr"
] | s2018w37@e-mirim.hs.kr |
205efb274edcb8929e297ffc3733401eeae233cf | 0d24176768f1426408163db84d77e3ca745fcaed | /app_target_data.py | dca33810f55555a09b5c34b36bac37cb61a2a563 | [] | no_license | maclobdell/platform_scorecard_server | e99a42a5c45868205619e3683f8802a6e60c2ab1 | b319929d0fc9a2eac1dcf03c6117bb9db3450ed0 | refs/heads/master | 2020-03-15T01:15:41.500389 | 2018-05-25T16:55:45 | 2018-05-25T16:55:45 | 131,889,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,188 | py | #!flask/bin/python
from __future__ import print_function
from flask import Flask, jsonify, abort, request, make_response, url_for, render_template, redirect
#from flask.ext.httpauth import HTTPBasicAuth
import sys
app = Flask(__name__, static_url_path = "")
#auth = HTTPBasicAuth()
#@auth.get_password
#def get_pass... | [
"maclain.lobdell@arm.com"
] | maclain.lobdell@arm.com |
3ca51b06306029cc0282304b612125671375254a | d451be63acf0c749ba0a2915845732e277161925 | /untitled0.py | d157fe6ff366f73f1fe388a02db99b8bda2fe07d | [] | no_license | GeraldWu23/top5leaguesBIRCH | 7e202466173d36b164e70f348270ca5cdc5c362c | 5ec14127af95ab9039d8c9c3bb0725a9c363ba37 | refs/heads/master | 2020-09-17T02:30:40.858448 | 2019-11-25T13:54:45 | 2019-11-25T13:54:45 | 223,960,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,868 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 3 18:15:40 2019
@author: wukak
"""
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 31 14:16:42 2018
@author: wukak
"""
import numpy as np
import csv
import time
from sklearn.cluster import KMeans
B = 10 # how many children can non_leaf node have
L = 38 # how many c... | [
"wukakit96@gmail.com"
] | wukakit96@gmail.com |
44d75b8a7809f73f43c9dcd4a257dbe35e97baef | c29c1e8c689834879b5a9df6f78b667a22076f1a | /MFMA/MSE/MSE_backend.py | 3b8097dc0955aee471461398f106df7b4f67cd88 | [] | no_license | darkrush/MFMA | 5ac1e685fe4c689d92aa59eaec485b89a06267cb | 25183d36364c27a7e3c7dbe94f68ac3dd1069cc1 | refs/heads/master | 2020-06-18T12:35:08.521540 | 2019-07-14T06:30:49 | 2019-07-14T06:30:49 | 196,305,299 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,831 | py | from . import core
from multiprocessing import Process, Queue, Manager
import threading
import time
class MSE_backend(object):
def __init__(self,scenario):
self.agent_groups = scenario['agent_groups']
self.cfg = {'dt':scenario['common']['dt'],}
self.use_gui = scenario['common']['use_gui']
... | [
"kidfatenight@gmail.com"
] | kidfatenight@gmail.com |
eac0ec2067c7052cd8bde320aac728f64cfd1fa1 | d27453de856afd4e03c30ec92099a7833551431e | /lib/libnmap/plugins/backendplugin.py | 224cdd037a5e606e37ea412d8f55e8356ce4043f | [
"Apache-2.0"
] | permissive | webvul/Scanver | 1ec413a1ba53d1ec846c158fa0d750d8fedbd40a | f058eb7361e9c539917b85d3be69cf6655c2694f | refs/heads/master | 2020-04-10T15:46:20.733579 | 2018-12-07T07:03:11 | 2018-12-07T07:03:11 | 161,122,235 | 1 | 0 | Apache-2.0 | 2018-12-10T05:32:47 | 2018-12-10T05:32:47 | null | UTF-8 | Python | false | false | 1,147 | py | #!/usr/bin/env python
class NmapBackendPlugin(object):
"""
Abstract class showing to the minimal implementation for a plugin
All subclass MUST at least implement the following methods
"""
def __init__(self):
self.dbname = 'nmapdb'
self.store = 'reports'
def insert(self... | [
"664284092@QQ.COM"
] | 664284092@QQ.COM |
72119a8d59b11a5ee1ee031256a0a0a8c7a9261f | d6cd27a4bd6637eca3bc4b97e6679d17754adb34 | /EJERCICIOS PYTHON/BANCO UNILEÑO.py | 459942ec9f0bed2f64e9ebbf7b7cd71af2728f32 | [] | no_license | andresafanador2/Inicial | ab9a2f53e544bab7227d306e74a53d0f41333022 | 0854ff27616a27375646f43debb68cb2c0bef6a4 | refs/heads/master | 2023-01-28T19:41:05.820745 | 2020-12-13T22:50:40 | 2020-12-13T22:50:40 | 317,550,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | valor_retirar = int(input('Bienvenido al banco Unileño,\n por favor ingrese el valor que desea retirar.\n No olvide ingresar solo valores que sean multiplos de $10.000: '))
billetes_100 = (valor_retirar // 100000)
residuo = (valor_retirar % 100000)
billetes_50 = (residuo // 50000)
residuo = (residuo % 50000)
billetes_2... | [
"andresafanador2@gmail.com"
] | andresafanador2@gmail.com |
4b2aec7026e8d5b97ce07f443f08c72bc421e584 | 35a040eae2df4fe0e0f7048b7be7084da7934c8f | /03-10.py | 843ed22d1198ef0a581f3c2c6ce601b4ce19b160 | [] | no_license | hungapp/big_o | cf52203462e9d271cecb901af29f00e7b44574d6 | 2af0576b309a643d348d6df52951a20cbab746ef | refs/heads/master | 2022-02-27T22:43:50.004087 | 2019-10-14T17:50:22 | 2019-10-14T17:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # 10935 uva throwing cards
import queue
while True:
n = int(input())
if n == 0:
break
deck = queue.Queue()
for i in range (1, n + 1):
deck.put(i)
discarded = []
# size >= 2:
# discarded.add(deck.get())
# deck.add(deck.get())
while deck.qsize() >= 2:
discarded.append(deck.get())
... | [
"hunnguyen@tripadvisor.com"
] | hunnguyen@tripadvisor.com |
75a8817080fb9e0fa35ca3a4ee320288ede53acc | 4c48ae521936086922dfaa320f647ae9d286baa5 | /parser.py | ac94bfee3fc8748e3c3d6538fd0dbd7df7a89976 | [] | no_license | mpaulon/udp_discussion | f77185a55b56ffc6b8ac85206a0daaa94008612d | 573f98beb5c9cfb758d3dc64d922a002956aa9e5 | refs/heads/master | 2021-08-26T08:10:55.480229 | 2017-11-22T10:40:07 | 2017-11-22T10:40:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,687 | py | import struct
from ipaddress import IPv6Address
from datetime import datetime
import tkinter as tk
def get_tlvs(body, ls_tlvs, client):
"""
Retourne la liste des tlvs composant le message
"""
# Tout le body a été parsé
if body == []:
return 0
# Si le tlv est un Pad1
elif body[0]... | [
"paulon@crans.org"
] | paulon@crans.org |
4457fd40dfb85b6dc603f03a909b8f1cb3a54d03 | 92d033abfec9fcbca389dd769cc3b4b54f7e0a59 | /src/SpiderPi/HiwonderSDK/Sonar.py | 9f177815e71226a503e164341d872b3f7727a56e | [
"MIT"
] | permissive | peteh/spiderpi | c3475fce43de4ae3fb2267e04ad0cf0fc76f94a2 | 19c4e254979a756acb641b67e944568c7c79520c | refs/heads/main | 2023-06-27T02:24:23.223675 | 2021-08-06T03:34:01 | 2021-08-06T03:34:01 | 376,849,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,507 | py | #!/usr/bin/env python3
import os
import sys
import time
import smbus
from smbus2 import SMBus, i2c_msg
# Hiwonder iic ultansonic using example#
if sys.version_info.major == 2:
print('Please run this program with python3!')
sys.exit(0)
class Sonar:
__units = {"mm":0, "cm":1}
__dist_reg = 0
__RGB_... | [
"github@kthxbye.us"
] | github@kthxbye.us |
7454cf6efe86e121133d4f676780dde446ac0859 | 06fe8a3bb7971066a204be73731a9af3e67edbb9 | /soccer/gameplay/tests/test_constants.py | 1493f44ca313729a8e14841601d4ca525ae01788 | [
"Apache-2.0"
] | permissive | sgadgil6/robocup-software | 130099715dafd80155bf07966f186f036280455a | 2b647345f0cdcc50021558b5cccf109239d3e954 | refs/heads/master | 2020-12-26T04:38:28.196256 | 2015-09-29T23:33:58 | 2015-09-29T23:33:58 | 43,398,854 | 1 | 0 | null | 2015-09-29T22:49:27 | 2015-09-29T22:49:27 | null | UTF-8 | Python | false | false | 477 | py | import unittest
import constants
import robocup
class TestConstants(unittest.TestCase):
def test_our_goal_zone(self):
# right in the center of the goal zone
in_zone = robocup.Point(0, constants.Field.PenaltyDist / 2.0)
out_zone = robocup.Point(0, constants.Field.Length / 2.0)
sel... | [
"justbuchanan@gmail.com"
] | justbuchanan@gmail.com |
a34037b1c1fe078a27df35d1ff82fdebec3be9d0 | cf472aada5c668b4b87a86dbdafd944b41dff102 | /st1/lambda.py | cd4a3e074d9a4c5b6bf676926666d39d6c3b6797 | [] | no_license | ywt2016/python | fe94c0717d4546934737be2ba4b86ed497e929dd | 0da124fa5da04536b5ee860988359f35425084cb | refs/heads/master | 2020-12-20T00:40:23.430388 | 2016-10-27T07:16:34 | 2016-10-27T07:16:34 | 64,358,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | #!/usr/bin/python
def make_repeater(n):
return lambda s: s*n
twice = make_repeater(2)
print twice('word')
print twice(5) | [
"yangwentao@tianxinweb.com"
] | yangwentao@tianxinweb.com |
91cb60f0828d4a36883b9e461baa1ffc15bc2fd6 | 1518691b26dc4455df1ffcbaeb3557c8098451b6 | /bayes/bayesian_test_func.py | 8d23dfbdec7adad5b19fdf96e981c35cbe56b107 | [] | no_license | c-d-cotton/python-math-func-examples | 20329041e7863fbdda9ef3e414df997ed114633d | e993082e25755d1858a40aa1f9cedd80d6e5e0e8 | refs/heads/master | 2023-02-11T08:15:28.485224 | 2020-12-31T15:07:25 | 2020-12-31T15:07:25 | 325,791,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,837 | py | #!/usr/bin/env python3
import os
from pathlib import Path
import sys
__projectdir__ = Path(os.path.dirname(os.path.realpath(__file__)) + '/../')
import functools
import numpy as np
from scipy.stats import norm
# Basic Functions:{{{1
def mh_basic():
"""
Take 100 draws from an N(mean, std) distribution
"""... | [
"cdc2175@columbia.edu"
] | cdc2175@columbia.edu |
b9f9e1e91b89e92ddefe5b36a65bf4c688a97812 | 578eaf1e0f13fead93044c9aa46005298568ac0a | /Task.py | fff70a18d3ea4e50369833456e626e431ba49ab1 | [] | no_license | burkozel/Task9 | ad7fe8c74bbeb7522e35d3a53cd797686c3994a2 | bb551644d33cdf04773e1dc76951271875fd5610 | refs/heads/main | 2023-01-02T19:30:14.352272 | 2020-10-27T19:52:09 | 2020-10-27T19:52:09 | 306,976,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | import json, xml.etree.ElementTree as ET
def get_words_xml():
parser = ET.XMLParser(encoding="utf-8")
tree = ET.parse("newsafr.xml", parser)
root = tree.getroot()
items = root.findall("channel/item")
b = []
a = []
for x in items:
b.extend(x.find("description").text.split(" "))
f... | [
"i.raspitin@yandex.ru"
] | i.raspitin@yandex.ru |
21ba112baf36402810baa753c284b894a47fcbc4 | b39dc1024655e9db5433dbfe326a5dd47d75c3c1 | /extapps/xadmin/plugins/ueditor.py | 06005028af63c1020a6efb3dfb7e436e41c8d10e | [] | no_license | cjxxu/A_Fiction_web | 381ab9e52714156879ee44978b450d1156346b61 | f9f0fc40bc27f5307de8c61bcc75fca82c75d8ed | refs/heads/master | 2021-06-22T13:16:30.989697 | 2020-12-10T09:05:35 | 2020-12-10T09:05:35 | 144,845,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | #!/usr/bin/env python
# encoding: utf-8
import xadmin
from xadmin.views import BaseAdminPlugin, CreateAdminView, ModelFormAdminView, UpdateAdminView
from DjangoUeditor.models import UEditorField
from DjangoUeditor.widgets import UEditorWidget
from django.conf import settings
class XadminUEditorWidget(UEditorWidget):... | [
"747603365@qq.com"
] | 747603365@qq.com |
96a2cacdcd037bcf6449b66ff12d4873ec8b85e0 | a885bf84322df537c4648974d03a7a7a2108a062 | /Code_for_Classification/ABR_CNN/model/mel_22_33_cnn_v0.0.2.py | 935c7088cbb3597435d1071c66a2d3135fd18a73 | [
"MIT"
] | permissive | puyaraimondii/biometric-classification-of-frequency-following-responses | 2120e510fd76d07ef94b27fc599889aa3ba8e932 | f5b5dca516592be451a3133acb8fa178519bc991 | refs/heads/main | 2023-04-05T20:50:30.548543 | 2021-04-20T15:39:15 | 2021-04-20T15:39:15 | 353,116,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,694 | py | # 1. set up train validation test split
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Flatten
from tensorflow.keras.layers import Conv2D, MaxPooling2D
from tensorflow.keras.layers import Bat... | [
"brucesun0122@gmail.com"
] | brucesun0122@gmail.com |
518f36e7dd50671fb932404dbd0926bb72f75438 | fdc24295d1cb39da093a254efa7a7cb07644a27f | /teacher/inferface/interface_proj/testcases/weather.py | 54da3020f3d145f2effb9a48e8203158726eea4e | [] | no_license | lijiale0625/lijiale-zuoye1 | 0bba345ac6f511a4cf9bdf054484924cf984e14e | e000ff4f0d8434aa500f558ebda45ac953fccdd6 | refs/heads/master | 2020-12-02T07:57:07.890291 | 2017-11-11T08:53:15 | 2017-11-11T08:53:15 | 96,751,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,123 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import time
import unittest
import requests
import json
import logging
from lib.utils import *
#from config import *
class WeatherTest(unittest.TestCase):
u"""根据城市名获取天气预报"""
base_url = r'http://v.juhe.cn/weather/index'
def setUp(self):
pass
def tearDown... | [
"1052551319@qq.com"
] | 1052551319@qq.com |
40c4213f556c610b7fb9ec03447179aecc9d300c | 0c85b64687456cda797ed91a86cd8ec9225e7f5d | /tip_cal.py | 57219399935f114ff398b2a10f6060f70c9e3464 | [] | no_license | Adarsh8198/getting-started-with-python-programming | 0e34a2e36633af1f3e659595ea0716777c8d1527 | a3bcb5f6d6f8ed8f59475ec804c447944091567c | refs/heads/main | 2023-07-20T04:36:24.303421 | 2021-08-31T11:25:04 | 2021-08-31T11:25:04 | 323,071,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,075 | py | from tkinter import Tk, Button, Label, IntVar,StringVar,Entry,Radiobutton
class TipCalculator():
def __init__(self):
window = Tk()
window.title("Tip Cal App")
window.config(background="sky blue")
window.geometry("375x250")
window.resizable(width=False, height=F... | [
"noreply@github.com"
] | noreply@github.com |
6599fda660a020fbc1972dae24d4e1cb898e6c27 | 466660115eafd99b72f81339d86c5bcbf4c7efb0 | /codes/15/spectrum_50HzRepeat.py | b04979b971b4acfdd85218fcd1fe02f82e9fb818 | [] | no_license | CoryVegan/scipybook2 | c2bb68c169c632ab389600034beb33ac921b0ba1 | a8fd295c2f2d7ee18f351e5622ca7eeb4649ee50 | refs/heads/master | 2020-03-23T14:50:28.056482 | 2017-08-25T06:00:00 | 2018-06-02T14:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | # -*- coding: utf-8 -*-
import numpy as np
import pylab as pl
t = np.arange(0, 1.0, 1.0/8000)
x = np.sin(2*np.pi*50*t)[:512]
pl.figure(figsize=(8,3))
pl.plot(np.hstack([x,x,x]))
pl.xlabel("取样点")
pl.subplots_adjust(bottom=0.15)
pl.show() | [
"qytang326@gmail.com"
] | qytang326@gmail.com |
cb59a8916dc8473cadb40e803cec48e07088e241 | 9fbbccf6368d190fcc6c2a51bbc3cb82aec7bf44 | /day_seven/protocol.py | f1ea727c064f496a598c81e67e09224095ecccf3 | [] | no_license | alkemann/advent2016-python | 351fe507411cdafa1f194440f580ed79deac5150 | d0338c085c27447c938c9d7917f7f8e843ddddca | refs/heads/master | 2021-05-04T10:47:14.569873 | 2017-11-30T09:40:14 | 2017-11-30T09:40:14 | 50,387,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | import re
def has_ssl(ip):
length = len(ip)
in_brackets = False
i = 0
while i < length - 2:
c = ip[i]
if c == '[':
in_brackets = True
elif c == ']':
in_brackets = False
else:
o = ip[i + 1]
if not in_brackets and c is ip[i+... | [
"alek.morland@gmail.com"
] | alek.morland@gmail.com |
939d450330b0fb24f8dd86ede70d63af06cba57e | 3851b7b888873d57f2e4718931cd492a31bc6c2c | /hohmannmoon.py | 36eacbdd4f217c287fab1f7bc73ce5dda9729135 | [] | no_license | kadivadavidak/hohmannmoon | 4943c3d88ef8f00bea382f8e73ebe20bf0b136be | 7be71a5f1446003b9ee714735409131ee22e998c | refs/heads/master | 2020-04-11T05:59:55.751719 | 2018-12-13T01:31:48 | 2018-12-13T01:31:48 | 161,567,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,858 | py | GlowScript 2.7 VPython
# Hohmann Moon Transfer Orbit
# David Kirschman
# 2018-12-12
# Transfer orbit from earth to moon
#Set Scene
scene.background = color.white
scene.userspin = False
scene.fov = 0.01
scene.width = 600
scene.height = 600
# Setup variables for the system
t = 0
xInit = x
initRate = 2000
# Moon varia... | [
"noreply@github.com"
] | noreply@github.com |
98915198b2d3d87da7b8d1d3f4d86a9605663a1b | 5202f34c1f7016ca40d8aa454ebc1f01ba1fe79e | /server/client.py | c422045997321cd877b60f13e08641fa958d934a | [] | no_license | kkevinchou/sam | 91173fb4a9131ef6747e929338324c6fc9d8e21e | 0e0cc192234094f4524fd64f59986f4ac25ab34e | refs/heads/master | 2020-06-04T17:46:41.882392 | 2014-01-26T22:59:16 | 2014-01-26T22:59:16 | 16,225,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import socket
import sys
HOST, PORT = 'localhost', 8887
data = '{"action": "player_connect"}'
# SOCK_DGRAM is the socket type to use for UDP sockets
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# As you can see, there is no connect() call; UDP has no connections.
# Instead, data is directly sent to the re... | [
"kchou@tinyco.com"
] | kchou@tinyco.com |
9361603f524a0d1e30f0a17a54c5c6ff4b05b2a6 | a5ad207961fddfb0bab8c7471b6f91b69865e0fc | /app/agis/models/enormal/menu.py | 09ca2c47c0709f53c80e61db7cfffc14356895c6 | [
"LicenseRef-scancode-public-domain"
] | permissive | yotech/agis | b2465fc340e366fbe0267c4000bb0ae728386399 | 4abbecd175337d4942ac133847ce8fc870670571 | refs/heads/master | 2020-12-15T09:10:58.076323 | 2016-05-10T14:36:54 | 2016-05-10T14:36:54 | 32,155,630 | 0 | 2 | null | 2016-05-10T14:36:54 | 2015-03-13T12:52:01 | Python | UTF-8 | Python | false | false | 687 | py | # -*- coding: utf-8 -*-
from gluon import *
from agiscore.gui.mic import Accion
if not request.ajax and request.controller != 'appadmin':
# import si se necesita
from agiscore.gui.escuela import escuela_menu
from agiscore.gui.unidad_organica import unidad_menu
from agiscore.gui.enormal import enormal_m... | [
"ybenitezf@gmail.com"
] | ybenitezf@gmail.com |
d183ed3228a22b349e37f909003e3df337f583d1 | a3d4cd934ea67157ff33f07a6b0dad73add76739 | /models/models.py | 460b82f69895c157c9219fc0c6c01efee232a2dd | [] | no_license | saramoyano/Incidencias | 9a0cd4cc996f562ad822dcf950c1028573ec0dbc | 6b8df95e36c0a6bae0207d93f839d71e00bee155 | refs/heads/master | 2022-11-11T13:23:01.477575 | 2020-07-01T15:00:22 | 2020-07-01T15:00:22 | 276,407,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,707 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class Incidencia(models.Model):
_name = 'examen_ut3.incidencia'
name = fields.Char(compute="_calcular_nombre")
description = fields.Text(required=True)
fecha_inicio = fields.Date(required=True, default=fields.Date.today)
fecha_fin = fi... | [
"7975891@alu365.murciaeduca.es"
] | 7975891@alu365.murciaeduca.es |
3e2d2ca36519027c1ba92fbbfab8c38a0064069c | 08ce4f3e350704a3ce35e1d4cf97f10ea6e634e1 | /Pythonweb/8Flask/venv/bin/wheel | 4e9cc3ad4b20df706709209e6f52107b2a5e80e9 | [] | no_license | tqvv/first-linux | 22c193582e1553d548714b429a02bb2f7176b01e | 4a285738387d79fc9295a2f606393bf76a7a9a84 | refs/heads/master | 2021-07-10T18:40:57.592338 | 2017-10-12T16:34:10 | 2017-10-12T16:34:10 | 106,262,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/home/tqvv/PycharmProjects/Pythonweb/8Flask/venv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tqvv@foxmail.com"
] | tqvv@foxmail.com | |
8668384044ca509a73507605c8a99010b106646c | 066ed780ba6423ff0e943a30524c7e5d205d4f67 | /saleor/dashboard/menu/utils.py | 5c272298465f2fcab53199f331049b8f5cea6b6c | [
"BSD-3-Clause"
] | permissive | iamishraqhc/saleor | 24289fe4ecccee3af5bdcae936b010254a1e1080 | 4e1a0a81812c5914c38c7382506479f8d8522b55 | refs/heads/master | 2023-02-22T13:38:52.120807 | 2020-05-31T09:29:09 | 2020-05-31T09:29:09 | 165,777,840 | 1 | 1 | BSD-3-Clause | 2023-02-07T21:59:03 | 2019-01-15T03:19:44 | Python | UTF-8 | Python | false | false | 3,151 | py | import json
from django.db.models import Q
from ...menu.models import Menu, MenuItem
from ...page.models import Page
from ...product.models import Category, Collection
def update_menu_item_linked_object(menu_item, linked_object):
"""Assign new linked object to a menu item. Clear other links."""
menu_item.ca... | [
"ishraqhaider.chowdhury@graaho.com"
] | ishraqhaider.chowdhury@graaho.com |
336f4d4411eeba5c0c893551a99f095742759f77 | f0da7148bc760f9849d459e7a22bc8cb9d2b1abb | /covid codes/covid_diag_date.py | c863fc3bad0475cfd3fece1dd38bb2c75dcdb74e | [] | no_license | surajplk3/covid19 | d4fa090956f21948e01883e7b9f3d953de588476 | aa15fd82f650a51354ea27ab55f0fc5e6370b971 | refs/heads/master | 2022-04-14T16:20:11.714642 | 2020-04-11T04:19:41 | 2020-04-11T04:19:41 | 254,706,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 10 18:36:00 2020
@author: utpal
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
df = pd.read_csv('IndividualDetails.csv', parse_dates=['diagnosed_date'], dayfirst = True)
newdf = df['diagnosed_date']
newdf = pd.DataFrame... | [
"suraj.plk3@gmail.com"
] | suraj.plk3@gmail.com |
c52f3e1bfc686f4b2741b8f938e0509c68500366 | 35b099848dbd310ae3b5c892c640785e8f33ec13 | /online_system/manage.py | 838e518e57bdb3b808ed00a8eb9b145dd0b7dbf1 | [] | no_license | shubhamupadhyay99/Online_system | 66579eba4916b05078011552a88dddb610180794 | a2c2794d2d5b867bc24b6eb15f8eeb8743ebab5c | refs/heads/master | 2020-11-25T16:35:04.203704 | 2019-12-18T04:32:47 | 2019-12-18T04:32:47 | 225,323,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | 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', 'online_system.settings.base')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:... | [
"noreply@github.com"
] | noreply@github.com |
63f4970d203971e6b87ce1413f3580da08d7436c | 5f9bdfc588331ef610ba01d7ef90c4f8a96fdc63 | /plot.py | 3d8ca3134805bf8f081d2405810a8936d42eb86c | [] | no_license | imrehg/fuel | 1c3c73c79f0aaf500a6024bd4fc32980987201c7 | 41c2afa3506172eab31ac1618e6ea3706277fef1 | refs/heads/master | 2016-09-10T09:58:26.424418 | 2011-05-05T06:10:21 | 2011-05-05T06:10:21 | 1,702,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | import numpy as np
import pylab as pl
from matplotlib.transforms import offset_copy
filename = "data.csv"
types = {'names' : ['code', 'name', 'gdp', 'ppp', 'oilout', 'oilin', 'price'],
'formats' : ['S30', 'S30', 'f4', 'f4', 'f4', 'f4', 'f4']
}
data = np.loadtxt(filename, delimiter=",", dtype=types)
... | [
"imrehg@gmail.com"
] | imrehg@gmail.com |
6cc53beb34a4c17d3e26c052d61fb4527ce2d5d2 | 4302d3ceaa44e62dc8f752a604b60f6bfbea8242 | /mmcv/runner/hooks/logger/wandb.py | 2de257781d6475a002043361b9435fb92b96014a | [
"Apache-2.0"
] | permissive | dingmyu/mmdetection | 096f7d8c3a2ef2779d1fe3d87049e4306381dda0 | 705dc91ca43ea62f4f69355a81271d5bd81268ca | refs/heads/master | 2020-11-25T05:50:20.079304 | 2020-02-21T03:06:57 | 2020-02-21T03:06:57 | 228,527,081 | 0 | 0 | Apache-2.0 | 2019-12-17T03:42:23 | 2019-12-17T03:42:22 | null | UTF-8 | Python | false | false | 1,361 | py | # Copyright (c) Open-MMLab. All rights reserved.
import numbers
from ...dist_utils import master_only
from .base import LoggerHook
class WandbLoggerHook(LoggerHook):
def __init__(self,
log_dir=None,
interval=10,
ignore_last=True,
reset_flag=Tru... | [
"d130143597@163.com"
] | d130143597@163.com |
43889f7adf66d737f736433ada368b6276a9ccac | ce06d306de5f10d20eccd4cd0edde33638d6f3a1 | /myblog/myblog_views.py | 4692c7dbd5ee118a457cc2607e00e91d590c81f1 | [] | no_license | sauravjha221/my-first-blog | 3a6dce2b702e76a8f2623528516566c63cf3f519 | 667d7661613607a0c42c7d725c7fe9ed908f20ea | refs/heads/master | 2021-01-11T15:03:49.276970 | 2017-11-14T19:25:20 | 2017-11-14T19:25:20 | 80,291,412 | 0 | 0 | null | 2017-11-14T19:25:21 | 2017-01-28T15:19:11 | Python | UTF-8 | Python | false | false | 224 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.template import loader
def index(request):
template = loader.get_template('homepage.html')
return HttpResponse(template.render(request))
| [
"sauravjha221@gmail.com"
] | sauravjha221@gmail.com |
ef3f4ca1f02f57a1d00a845f054e57b10411e8c5 | 25b914aecd6b0cb49294fdc4f2efcfdf5803cc36 | /homeassistant/components/trafikverket_weatherstation/config_flow.py | 103af1c7eb4157ad3f6eb2f593bd8fa981f47a36 | [
"Apache-2.0"
] | permissive | jason0x43/home-assistant | 9114decaa8f7c2f1582f84e79dc06736b402b008 | 8bf6aba1cf44ee841de063755c935ea78040f399 | refs/heads/dev | 2023-03-04T01:14:10.257593 | 2022-01-01T12:11:56 | 2022-01-01T12:11:56 | 230,622,861 | 1 | 1 | Apache-2.0 | 2023-02-22T06:15:07 | 2019-12-28T14:45:43 | Python | UTF-8 | Python | false | false | 2,802 | py | """Adds config flow for Trafikverket Weather integration."""
from __future__ import annotations
from pytrafikverket.trafikverket_weather import TrafikverketWeather
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.const import CONF_API_KEY
from homeassistant.helpers.aiohttp_client i... | [
"noreply@github.com"
] | noreply@github.com |
80eecbbad4731c8487ee68a5f07ddf6b6984017d | 415936fd518a0285ed47a0c0702f351179c69620 | /common/views.py | 777c0aa61428ff8498ab749ff32e4e33c449a019 | [] | no_license | huhaiqng/djproject | 1730a89218683fd97dc1007df9ce19ecd7e0829e | 9c41dacf507fb4be28e889a63700bccc3af37def | refs/heads/master | 2020-07-31T23:02:04.480372 | 2019-12-31T07:12:13 | 2019-12-31T07:12:13 | 210,779,417 | 0 | 1 | null | 2020-07-19T23:29:59 | 2019-09-25T07:11:41 | Python | UTF-8 | Python | false | false | 18,953 | py | from django.shortcuts import render,redirect,HttpResponseRedirect,reverse
from django.views.decorators.csrf import csrf_exempt
from dwebsocket.decorators import accept_websocket
import paramiko
from deployjar.models import *
from django.core.paginator import Paginator
from .models import *
import socket
from django.htt... | [
"hu158168"
] | hu158168 |
bd877cacf7bca0b2ec599f3b58d0811bbde3dfea | 0862f957fc35401b6b7ade3a3d361d7df90c8ae9 | /src/jsonscript/interpreter.py | 9c7942a8421f4610f6dbaa7b7845f98c1d47046f | [
"MIT"
] | permissive | m3g4p0p/jsonscript | 546aed8c17faf8b58ca22db32286697ee0890907 | 9f55c46bd75c5f55a6fa8235abeffa8e5d8ee31b | refs/heads/main | 2022-12-18T11:26:58.382018 | 2020-08-15T11:30:52 | 2020-08-15T11:30:52 | 301,088,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,677 | py | from functools import partial, reduce
from itertools import chain
from .module import (
get_exports,
update_exports,
resolve_module,
init_module
)
from .prefix import (
resolve_prefix,
is_assignment,
is_directive,
is_binding,
)
from .std import std
from .util import (
assign,
ge... | [
"bassistsagainstracists@gmx.net"
] | bassistsagainstracists@gmx.net |
778cba9d73eea69ab1460f031f62cff3f506dd80 | e01747dd6e85d2f292f722303de8a6d0857d7baa | /music/reproductor/rep.py | e76e7d9d50d9600f44ef2b7c04011ffb1738aad6 | [] | no_license | Chaguin/PruebasPython | 72ce5ee8c98162e3f73637ce84187087a3887858 | 01d739a270c11d0d904895cbdf71e72ee8089848 | refs/heads/master | 2020-09-01T07:47:37.044875 | 2019-11-01T04:23:01 | 2019-11-01T04:23:01 | 218,912,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # -*- coding: utf-8 -*-
import sys
import reload
import pygame.mixer
import pygame.cdrom
pygame.mixer.init(44100, -16, 2, 4096)
reload()
sys.setdefaultencoding()
pygame.mixer.music.load('E:\Documentos\PRUEBAS PYTHON\music\reproductor')
pygame.mixer.music.play()
pygame.mixer.music.set_volume(0.5) | [
"noreply@github.com"
] | noreply@github.com |
f9c167a3a2c771ee929c0917fcd59a3570853e4f | 2074d6e741e7e79ec8368377a7a6d1dcabb94d67 | /src/python/S04_printing.py | 02256b5d56a180c6df1f90810b92a9f4b94e6e11 | [] | no_license | alex-pakalniskis/Intro-Python-I | 177fde638b7e1bdd91f0fb7fcea226bfd271dd44 | df55e757ebc555e1460c1a5dbd0ed0299812f930 | refs/heads/master | 2022-09-20T19:31:24.483927 | 2020-06-04T03:07:53 | 2020-06-04T03:07:53 | 268,584,651 | 0 | 0 | null | 2020-06-01T17:14:20 | 2020-06-01T17:14:19 | null | UTF-8 | Python | false | false | 601 | py | """
Python provides a number of ways to perform printing. Research
how to print using the printf operator, the `format` string
method, and by using f-strings.
"""
x = 10
y = 2.24552
z = "I like turtles!"
# Using the printf operator (%), print the following feeding in the values of x,
# y, and z:
# x is 10, y is 2.25... | [
"alexpakalniskis3@gmail.com"
] | alexpakalniskis3@gmail.com |
4dc887d06be135e85b8c750d90b707effa4d6aee | 08c4592629f79b1890dd0a23cc01656ed1094c30 | /school/urls.py | cf92a5c5a6515ef51ee98050e137b9a0b03c5cfe | [] | no_license | Dean-shiyi/django_school | 5ffbf6b5e189a3e3cac7404d8fe0178364e81f6d | 59419a165d4d962d87d3f12d37e80df98679e643 | refs/heads/master | 2020-05-20T03:59:31.495713 | 2019-05-10T10:01:43 | 2019-05-10T10:01:43 | 185,372,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | """school 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... | [
"admin@shiyi.local"
] | admin@shiyi.local |
3a1d59865dfce3ac2e286e1bc46c66d7a83d631e | c9ab4257b894a2d992233efdbdd468b82ee84876 | /button.py | 63c5f2fc1fd2d6ff9e82ef07baa2683cb28f7f9b | [] | no_license | GochaUgulava/alien_invasion | fe237c7dae6577a74353f6ca524cfadaa408199f | 11bef98de6fe47b00ad654853cd8c5b7c5deddd7 | refs/heads/master | 2021-04-08T09:42:33.435234 | 2020-03-20T13:47:26 | 2020-03-20T13:47:26 | 248,763,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | import pygame.font
class Button:
""" class for play button """
def __init__(self, game_set, screen, msg):
self.screen = screen
self.screen_rect = screen.get_rect()
self.width, self.height = 300, 100
self.button_color = (0, 255, 0)
self.text_color = (255, 255, 255)
... | [
"gochaugulava@gmail.com"
] | gochaugulava@gmail.com |
11f96be98b5c5a354373930a6d5cc0d583e6f56f | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/jg4.py | 512215a3807d0213823f517008cc4bdcbfc83ab2 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
3853cfc54e250b5bcef0bcad7cadaef4cfaad522 | 744f3452ffadb99e932391c7aac3d60f6ddcb259 | /Dashboard/LogParser/NeutuLogParser.py | 8a41853b9d8d72167d54f6e8d9c8d3db6ecd2e48 | [
"MIT"
] | permissive | janelia-flyem/DVIDScripts | 16bfa1090461aaa72d422dcd86cb198768518996 | 4738c3d8af6ab7edabce0d248fddc29327d081a9 | refs/heads/master | 2020-04-06T13:55:09.501525 | 2016-11-01T20:00:10 | 2016-11-01T20:00:10 | 47,574,541 | 0 | 0 | null | 2016-06-07T17:25:51 | 2015-12-07T19:34:27 | JavaScript | UTF-8 | Python | false | false | 6,634 | py | import os
import re
import sys
from datetime import datetime, timedelta
import json
import argparse
from pprint import pprint
import neutu_log_module as nt
def calctimings(log):
single_log = {}
for end_type, chunk in nt.loadchunks(log):
start, stop, duration = nt.parsefortime(chunk)
chunk_time = nt.getworking... | [
"weaverc10@janelia.hhmi.org"
] | weaverc10@janelia.hhmi.org |
36a36f5f168822ac47b387e889cbc36fadb4707e | 1df5b64f7e30f3ef4a1f0f61f8c99d6a235d330c | /ptb_parser.py | 6ed30f650c445e5f16bc0dea8374b1ec5c40e802 | [] | no_license | wjack/QMemNet | 7ba305398751595df2baae4348e8f46b9a2586db | d90869aae5d5734e0e067293a5653eb8a28270eb | refs/heads/master | 2021-01-09T21:58:47.468218 | 2015-11-20T22:01:35 | 2015-11-20T22:01:35 | 45,767,676 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,488 | py | # pylint: disable=unused-import,g-bad-import-order
"""Utilities for parsing PTB text files."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import os
import sys
import time
import numpy as np
import tensorflow as tf
import nltk
from skle... | [
"wjack@mit.edu"
] | wjack@mit.edu |
60ef15920e2df990a1a7215da4cc819aa82ebc58 | e8e088b8dd38ec3509c3ff7bfb7c83e800414f5e | /conductor/conductor/tests/unit/api/controller/v1/test_v1_root.py | 512c0c200fe2df7b4923dd24b3df674d6ff3617a | [
"Apache-2.0"
] | permissive | onap/optf-has | ef5a86bb22c15dad3d54f9652ad8903a06bcb655 | 9c828b70d48d6c7d6668eda4d61239cfb2b28570 | refs/heads/master | 2023-07-20T23:09:22.393581 | 2023-07-03T12:36:45 | 2023-07-03T12:36:45 | 115,063,283 | 5 | 4 | NOASSERTION | 2021-06-29T19:10:06 | 2017-12-22T01:33:24 | Python | UTF-8 | Python | false | false | 1,110 | py | #
# -------------------------------------------------------------------------
# Copyright (c) 2018 Intel Corporation Intellectual Property
#
# 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... | [
"dileep.ranganathan@intel.com"
] | dileep.ranganathan@intel.com |
ee871cd72bc5b1dc655bf57c87757136f718cbd0 | a20b1081a58059383a158b730dd35f62673a9e22 | /Learning from Data/4_biasvariance/biasvariance.py | 2a22982ddd62da99a0bab4f5e21ea27797036945 | [] | no_license | kdpenner/poocs | 3d104ec56805ccaa604ebfa30faf3737ba86759d | 113b5c4c23a36bc448de8b0f80b46a551155a95e | refs/heads/master | 2021-01-01T20:00:20.340783 | 2015-05-21T14:55:30 | 2015-05-21T14:55:30 | 27,941,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | #!/usr/bin/python -tt
import numpy
import matplotlib.pyplot as plot
def linreg():
N_points = 2
x = numpy.random.uniform(low = -1, high = 1, size = (N_points, 1))
y = numpy.sin(numpy.pi*x)
x_dagger = numpy.dot(numpy.linalg.inv(numpy.dot(x.T, x)), x.T)
# print numpy.sum(x*y)/numpy.sum(x*x)
w = nu... | [
"kdpenner@users.noreply.github.com"
] | kdpenner@users.noreply.github.com |
ba16d3f1f5e3298952b25368f81618f8c2d92a94 | ec480987526842d5215a23473ea74a57e5a44c3b | /lenstronomy/Data/pixel_grid.py | 87af1967be853d5ed2526ec184e0fa849d9c12b3 | [
"MIT"
] | permissive | SSingh087/lensotronomy-1.7.0 | 1e29255823cb7719cd8c39b45caccca6400e0c15 | 3e454352230e0a1365e13c90df3a5bb1c0067645 | refs/heads/main | 2023-07-16T19:36:12.590405 | 2021-08-14T03:45:08 | 2021-08-14T03:45:08 | 375,677,493 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | import numpy as np
from lenstronomy.Data.coord_transforms import Coordinates, Coordinates1D
__all__ = ['PixelGrid']
class PixelGrid(Coordinates):
"""
class that manages a specified pixel grid (rectangular at the moment) and its coordinates
"""
def __init__(self, nx, ny, transform_pix2angle, ra_at_xy... | [
"shashwat98singh@gmail.com"
] | shashwat98singh@gmail.com |
fdbc1f43a71346831be0842082d897421cd4a1c8 | 369ef21cc6a766154776ab49005723fcc1ae2bb3 | /inflearn/dataset_load.py | 1ab0fc99ee754836c789d60c71be77a0048c7db8 | [] | no_license | xxoellie/all_of_tensorflow | 28403d5adcc49a58b13704682bfb0e63bc6d7712 | 638617f55d5ad7cac7139e8d60ee18ff6cf64b27 | refs/heads/master | 2023-08-29T22:19:03.280076 | 2021-10-26T00:58:59 | 2021-10-26T00:58:59 | 419,736,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | import numpy as np
import tensorflow as tf
import sys
from tensorflow.python.eager import context
train_x = np.arange(1000).astype(np.float32).reshape(-1,1)
train_y = 3*train_x + 1
train_ds = tf.data.Dataset.from_tensor_slices((train_x, train_y))
train_ds = train_ds.shuffle(100).batch(32)
# for x, y in train_ds :
#... | [
"elliesohyeon1202@gmail.com"
] | elliesohyeon1202@gmail.com |
25ea536a18938b55f803948192960e98a1cb31a7 | 546661af492ac021a797fdbae98cf0d73a85dcb6 | /pset1/ps1_partition.py | 3c1a1c58ac6e6e659b1dc8d651565e65dcf1e7f7 | [] | no_license | FateXRebirth/MITx-6.00.2x- | 1e21a0759b4ad350575f6501c1f5f4f81dd9492d | 8f704f0c7938ce62cd55fc45b149eb0ebd671805 | refs/heads/master | 2021-01-19T23:52:30.633846 | 2017-05-01T06:16:06 | 2017-05-01T06:16:06 | 89,043,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | #From codereview.stackexchange.com
def partitions(set_):
if not set_:
yield []
return
for i in range(2**len(set_)//2):
parts = [set(), set()]
for item in set_:
parts[i&1].add(item)
i >>= 1
for b in partitions(parts[1]):
... | [
"FateXRebirth@gmail.com"
] | FateXRebirth@gmail.com |
3d2649b1dc0da59e87d9650fdc443d6ac3042872 | 521efcd158f4c69a686ed1c63dd8e4b0b68cc011 | /tests/test_utils/timetables.py | 838ecb5323451c89d32a0c27b6e248c5acbe51f3 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | coutureai/RaWorkflowOrchestrator | 33fd8e253bfea2f9a82bb122ca79e8cf9dffb003 | cd3ea2579dff7bbab0d6235fcdeba2bb9edfc01f | refs/heads/main | 2022-10-01T06:24:18.560652 | 2021-12-29T04:52:56 | 2021-12-29T04:52:56 | 184,547,783 | 5 | 12 | Apache-2.0 | 2022-11-04T00:02:55 | 2019-05-02T08:38:38 | Python | UTF-8 | Python | false | false | 1,746 | 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"
] | noreply@github.com |
4f02f47d567cc9ed98d4c954889ee0a2271d002c | 6c1ca203fef93643ea0e4d5ef11d19f54d041504 | /test/test_health_status.py | 574f71d9f4634952a8a60f4d6446741894fc6cdd | [
"MIT"
] | permissive | marmikreal/airflow-python-sdk | 0ad03d7213101dc4d4a4dbbf654d8c1c4f78e395 | 70b5d08955a9e218fa6163b0612856e09eedce63 | refs/heads/master | 2023-03-26T19:53:21.083972 | 2021-04-02T16:31:18 | 2021-04-02T16:31:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,332 | py | """
Airflow API (Stable)
# Overview To facilitate management, the Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This mea... | [
"zach.z.liu@gmail.com"
] | zach.z.liu@gmail.com |
c7c6ddccb752e6215bef5c942cbca995497d4b16 | ece57b240e2644502b438cf3628ed779e711ae2c | /utils/meshcat_viewer_wrapper/visualizer.py | 34b73fc207f92474622b7784bb8da01a8ecbb6c8 | [
"BSD-3-Clause"
] | permissive | fengzileee/supaero2021 | 3873a6bdda2dfcda5144210391848ea4038cda2c | 1f2b32ac2b2974bc3e751dd114716847c8650242 | refs/heads/main | 2023-07-11T12:41:20.886265 | 2021-07-13T16:44:52 | 2021-07-13T16:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | import numpy as np
import meshcat
import pinocchio as pin
from pinocchio.visualize import MeshcatVisualizer as PMV
from . import colors
def materialFromColor(color):
if isinstance(color,meshcat.geometry.MeshPhongMaterial): return color
elif isinstance(color,str): material=colors.colormap[color]
elif isins... | [
"nmansard@laas.fr"
] | nmansard@laas.fr |
a69bb7598337b910f322bcf2f158a3c6f8a5fe70 | f910033c2ddb9544a249b4740112892824ec4d44 | /accounts/serializers.py | b78924419df6e43d9725fd07983d810ce3268997 | [] | no_license | arviesan24/social_media | b110282597888a18b7321f1e4ba4ba4ce614ea6f | faee901943371ed85f8ecde456b342efdb07e865 | refs/heads/master | 2022-04-30T07:08:50.600972 | 2019-05-18T14:51:59 | 2019-05-18T14:51:59 | 189,255,156 | 0 | 0 | null | 2022-04-22T21:19:44 | 2019-05-29T15:45:57 | HTML | UTF-8 | Python | false | false | 2,337 | py | """Serializers for Accounts app."""
from rest_framework import serializers
from . import models
class UserSerializer(serializers.HyperlinkedModelSerializer):
"""Serializer for User model."""
class Meta:
model = models.User
fields = (
'url', 'username', 'email', 'active',
... | [
"ctechnology24@gmail.com"
] | ctechnology24@gmail.com |
954003c011927ceac919c0a3558e60f527ea4cad | 8158465c55d9279e50a17e1e111f613fff0eab4f | /Grumblr/grumblr/migrations/0007_auto_20151004_2338.py | 5e411fc420105788f7802d1612d379cf01133168 | [] | no_license | charliewang92/project | 223a6374f2fbe8206f4ef51bf0d91151bbb514ce | b1a41e2d28204d7489670e79720ae610cf209115 | refs/heads/master | 2021-01-17T14:30:53.699996 | 2016-07-16T18:34:13 | 2016-07-16T18:34:13 | 43,920,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('grumblr', '0006_grumblruser'),
]
operations = [
migrations.AlterField(
model_na... | [
"charliewang92@gmail.com"
] | charliewang92@gmail.com |
ec0caebdf95faefbd3e6e1aafb4ecea66eb45168 | 0f85889da823218f2bbed3b524ee43389432aacb | /populate_scenario_close_open.py | 2a3a0ebb1d5896ce88cbd012fd03447afcf46a29 | [] | no_license | tonyflo/cordurn_backend | 2ac848f95cd176c9c7917a462941e778a5884810 | ca5d7d3743569e8021c56e0afdaf82fb303ed3c1 | refs/heads/master | 2020-08-30T06:19:12.004197 | 2016-06-14T01:05:12 | 2016-06-14T01:05:12 | 218,288,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 7 19:46:02 2016
@author: tony
"""
import MySQLdb
def populate_scenario_close_open():
try:
conn=MySQLdb.connect(host="mysql.cordurn.com", user="vptfitm", passwd="K0naBrewingC0", db="cordurn")
conn.autocommit('on')
print('Connected to MySQL db... | [
"tflorida17@gmail.com"
] | tflorida17@gmail.com |
185e9bf209083a58cc3e05c24aa5c47f2572cd9b | c00e5d2b8bf2cc5fea026ffaabd26a127cdc41f1 | /linkgraph/linkgraph_app/forms.py | 8a0b77d1a8c9a97fa3b21c1a22ba0019676b6704 | [] | no_license | Drznedaj/linkgraph | 7deb9dd835dffcd6304df5ae542c9a7e2237acae | 6c68e7e3a49b5254bb1c7b3449a578382d615225 | refs/heads/main | 2023-04-30T10:06:40.067178 | 2021-05-24T13:29:22 | 2021-05-24T13:29:22 | 369,167,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django.forms import ModelForm
from .models import Writer, Article
class CustomUserCreationForm(UserCreationForm):
class Meta:
model = Writer
fields = ('username', 'email', 'is_editor')
class CustomUserChangeForm(UserCha... | [
"cvajblumen@gmail.com"
] | cvajblumen@gmail.com |
d17dd4f3b9f61b3e1801ba67e7634cf81fb2742e | 648162a451d10d0e4d9234f37d9e41ecf953df71 | /app/core/migrations/0005_recipe_image.py | 680a668fe8e2b19fdac93b288e8084db0e10a8b6 | [
"MIT"
] | permissive | coreycoole/recipe-app-api | 2fbe46b36d7ecb65ccb314c6216e590062b73708 | e0803898b9e6dfedb3e52c607ca2c915ce21e78a | refs/heads/main | 2023-06-06T07:23:36.156706 | 2021-06-29T00:32:15 | 2021-06-29T00:32:15 | 369,918,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # Generated by Django 2.1.15 on 2021-06-28 04:06
import core.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_recipe'),
]
operations = [
migrations.AddField(
model_name='recipe',
name='image',
... | [
"coreycoole@MacBook-Pro.local"
] | coreycoole@MacBook-Pro.local |
94d63c75f91bc15b6f609c544b588c547cae2aae | 820c0faf29ce639023e0b5b3220ab42d93a8495b | /Products/ZenModel/migrate/setMariaDbTimeouts.py | 0ad92c58b870c01cd39ebad618411678879eaefc | [] | no_license | zenoss/zenoss-prodbin | 7c736ec6c8e09a334a3f759b0e53c10ffc9c6a2a | 1ea508c3d2b51742bc3b448c445cd0a3dba9e798 | refs/heads/develop | 2023-09-01T04:12:14.836439 | 2023-08-30T13:29:55 | 2023-08-30T13:29:55 | 10,389,144 | 27 | 29 | null | 2023-09-04T07:32:01 | 2013-05-30T18:36:05 | Python | UTF-8 | Python | false | false | 1,497 | py | ##############################################################################
#
# Copyright (C) Zenoss, Inc. 2016, all rights reserved.
#
# This content is made available according to terms specified in
# License.zenoss under the directory where your Zenoss product is installed.
#
##################################... | [
"carl@vinebranches.com"
] | carl@vinebranches.com |
d80b6b89a25564d8fa8790e453a5c7c476769ade | aab6e559ce87c8ddf2f5b0b25f92d42a13bdf702 | /Module9/examples/netconf/ctrl_capabilities.py | 6e0ea4374b2fe0e6af78fb9ae627cc6ba5fcca49 | [] | no_license | s-garbuzov/PyNE | 5bd86f3a7571fc75a99d7682c7377e155320ed94 | 2b8132e491ac69f59b79d22c6a8cb4263e16d889 | refs/heads/master | 2021-01-10T03:54:38.483557 | 2015-12-04T20:48:49 | 2015-12-04T20:48:49 | 44,407,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,281 | py | #!/usr/bin/env python
"""
Sample script that retrieves and shows NETCONF capabilities of the Controller
"""
# Python standard library modules
import httplib as http
# this package local modules
from Module9.controllers.odl.controller import ODLController
from Module9.controllers.odl.netconf_topology import NETCONFNo... | [
"gsf@elbrys.com"
] | gsf@elbrys.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.