seed
stringlengths
1
14k
source
stringclasses
2 values
local escaped_property="${property//./\\.}" if [ -f "${file}" ]; then # Remove comments and print property value sed -E '/^[[:blank:]]*\#/d' "${file}" | \ grep -E "^[[:blank:]]*${escaped_property}[[:blank:]]*=" | \ sed -E "s/[[:blank:]]*${escaped_property}[[:blank:]]*=[[:blank:]]*//" fi } # Returns the HTTP status code for the specified url. All other output from # curl is discarded. This can be used to check the validity of urls, for # example the WildFly download url.
ise-uiuc/Magicoder-OSS-Instruct-75K
* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and
ise-uiuc/Magicoder-OSS-Instruct-75K
def is_string(thing): try: return isinstance(thing, basestring) except NameError: return isinstance(thing, str)
ise-uiuc/Magicoder-OSS-Instruct-75K
class MyApp(App):
ise-uiuc/Magicoder-OSS-Instruct-75K
int main(int argc, char** argv) { return SUM(40, 2);
ise-uiuc/Magicoder-OSS-Instruct-75K
void req::__parse_raw() { if (this->_raw_len == this->_raw_readed_len) { this->_stat = rwg_web::req_stat::req_stat_end; return; } while (this->_raw_readed_len < this->_raw_len) { if (this->_buf_pos == this->_buf_avail_size) { this->__load();
ise-uiuc/Magicoder-OSS-Instruct-75K
NO_CACHE_OPT="--no-cache" fi docker build -t ${FULL_REPO_NAME}:${CODEBUILD_GIT_BRANCH} ${NO_CACHE_OPT} \ --cache-from ${FULL_REPO_NAME}/builder:${CODEBUILD_GIT_BRANCH} \ --cache-from ${FULL_REPO_NAME}/build-and-test:${CODEBUILD_GIT_BRANCH} \ --cache-from ${FULL_REPO_NAME}/github-release:${CODEBUILD_GIT_BRANCH} \ --cache-from ${FULL_REPO_NAME}:${CODEBUILD_GIT_BRANCH} \ --build-arg CODECOV_TOKEN=$CODECOV_TOKEN \
ise-uiuc/Magicoder-OSS-Instruct-75K
if t == f.full_name: return f raise # pragma: no cover @property def full_name(self) -> str: """ Returns a more-complete name of this format. For example, "gzip" "bzip2", "xz", and "none". """ return {CompressionFormat.gz: "gzip", CompressionFormat.bz2: "bzip2"}.get(self, self.name) @property def is_compressed(self) -> bool:
ise-uiuc/Magicoder-OSS-Instruct-75K
name='grade',
ise-uiuc/Magicoder-OSS-Instruct-75K
public extension URL { /// URL safe constructor from a static string
ise-uiuc/Magicoder-OSS-Instruct-75K
# API sentiment from deeptrade.sentiment import * # API stocks from deeptrade.stocks import *
ise-uiuc/Magicoder-OSS-Instruct-75K
] # if you set a property in SESSION_CONFIG_DEFAULTS, it will be inherited by all configs # in SESSION_CONFIGS, except those that explicitly override it. # the session config can be accessed from methods in your apps as self.session.config, # e.g. self.session.config['participation_fee'] SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=1.00, participation_fee=0.00, doc=""
ise-uiuc/Magicoder-OSS-Instruct-75K
from go.contacts.parsers import ContactFileParser class ContactImportException(Exception): """ Exception raised when an import handler determines that an import cannot succeed. """ def dispatch_import_task(import_task, request, group, check_fields=None): file_name, file_path = utils.get_file_hints_from_session(request) file_type, parser = ContactFileParser.get_parser(file_name)
ise-uiuc/Magicoder-OSS-Instruct-75K
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
ise-uiuc/Magicoder-OSS-Instruct-75K
binary_password="<PASSWORD>"
ise-uiuc/Magicoder-OSS-Instruct-75K
let mut base = None; for prop in recv_props { let name = bin.deref_c_str(prop.name).unwrap().to_str().unwrap(); let offset = prop.offset as u32; let ty = if let Ok(table) = bin.deref(prop.data_table) { let name = bin.deref_c_str(table.name).unwrap().to_str().unwrap(); Type::DataTable(name) }
ise-uiuc/Magicoder-OSS-Instruct-75K
'show' => __( 'Display' ), 'hide' => __( 'Hide' ) ), 'priority' => 4, ))); $wp_customize->add_setting('subfooter_branding_bg_type', array('default' => 'default')); $wp_customize->add_control( new WP_Customize_Control( $wp_customize,
ise-uiuc/Magicoder-OSS-Instruct-75K
} } else: DATABASES = { "default": { "ENGINE": os.environ.get("SQL_ENGINE", "django.db.backends.sqlite3"), "NAME": os.environ.get( "SQL_DATABASE", os.path.join(BASE_DIR, "db.sqlite3") ),
ise-uiuc/Magicoder-OSS-Instruct-75K
} func drag(gestureRecognizer: UIPanGestureRecognizer) {
ise-uiuc/Magicoder-OSS-Instruct-75K
void m() { int i; for( i = 0, ; true; i++) ; }
ise-uiuc/Magicoder-OSS-Instruct-75K
__FILE_NAME = 'settings.json' def __read_file(self) -> json: f = open(self.__FILE_NAME) str = f.read() f.close() return json.loads(str)
ise-uiuc/Magicoder-OSS-Instruct-75K
import json import matplotlib.pyplot as plt import numpy as np HOST = '192.168.50.254' # Standard loopback interface address (localhost) 192.168.50.254 PORT = 3000 # Port to listen on (non-privileged ports are > 1023) # use ggplot style for more sophisticated visuals plt.style.use('ggplot') def main(): size = 100 t_vec = np.linspace(0,1,size+1)[0:-1] x_vec = np.zeros(size) y_vec = np.zeros(size)
ise-uiuc/Magicoder-OSS-Instruct-75K
</form> </div> </div> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
return data encoded_text = urllib.parse.quote(text, safe='') if no_detail: z = '&no_detail=1' else: z = '' raw_data = get_raw_data_from_web(base_uri + encoded_text + z) return raw_data.decode("UTF8") print(coref('My sister has a dog named Sam. She loves him')) print(coref('My sister has a dog named Sam. She loves him', no_detail=True))
ise-uiuc/Magicoder-OSS-Instruct-75K
'main_jap','Ins_DT','delflg'), 'selectboxfields'=>array('id','main_eng', 'main_jap','Ins_DT','delflg'), 'displayfields'=>array('id','main_eng', 'main_jap','delflg'), 'insertfields'=>array('main_eng', 'main_jap','delflg','Ins_DT','Up_DT','CreatedBy','UpdatedBy'),
ise-uiuc/Magicoder-OSS-Instruct-75K
public Dictionary<int, LocalDefinition> StackStoredLocals = new(); public Stack<IAnalysedOperand> Stack = new(); public Stack<IAnalysedOperand> FloatingPointStack = new(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
<a href="posts.php" class="list-group-item"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Posts <span class="badge">33</span></a> <a href="users.php" class="list-group-item"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> Users <span class="badge">203</span></a> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
__version__ = '0.1.3' __release__ = '0.1.3'
ise-uiuc/Magicoder-OSS-Instruct-75K
import { EmptyRow } from './EmptyRow' type Props = { guesses: string[]
ise-uiuc/Magicoder-OSS-Instruct-75K
path('<int:pk>/document/create/', DocumentCreateView.as_view(), name='document-create'), path('<int:pk>/questionaire/create/', QuestionaireCreate.as_view(), name='questionaire-create'), path('questionaire/<int:pk>/', QuestionaireDetail.as_view(), name='questionaire-detail'), path('questionaire/<int:pk>/delete', QuestionaireDeleteView.as_view(), name='questionaire-delete'), path('question/<int:pk>/edit', QuestionUpdate.as_view(), name='question-update'), path('question/<int:pk>/delete', QuestionDelete.as_view(), name='question-delete'), path('document/<int:pk>/edit/', DocumentFormView.as_view(), name='document-update'), path('document/<int:pk>/preview/', DocumentPreviewView.as_view(), name='document-detail') ]
ise-uiuc/Magicoder-OSS-Instruct-75K
assert nb.file == file assert isinstance(nb.node, NotebookNode) assert nb.node.cells[0].source == "# This is simple Jupyter Notebook" def test_creation_empty(): nb = JupyterNotebook()
ise-uiuc/Magicoder-OSS-Instruct-75K
sleep 2
ise-uiuc/Magicoder-OSS-Instruct-75K
setup(ctx, pixel_width, pixel_width, background=Color(0.8)) x, y = 50, 100 text = Text(ctx).of("Text size", (x, y)).font("Times").size(100).fill(Color('blue'))
ise-uiuc/Magicoder-OSS-Instruct-75K
token = encode_attachment_token(self.user.uuid.hex, self.customer, 'image') with freeze_time('2019-01-02'): self.assertRaises(ValidationError, decode_attachment_token, token)
ise-uiuc/Magicoder-OSS-Instruct-75K
from infi.systray import SysTrayIcon from traylert.traylert_crypto import encrypt, decrypt
ise-uiuc/Magicoder-OSS-Instruct-75K
self.prot = sd.ServiceAnnouncer(mock_sd) self.setup_timing(self._mock_send_sd) self.ep_1 = hdr.IPv4EndpointOption( address=ipaddress.IPv4Address("254.253.252.251"), l4proto=hdr.L4Protocols.UDP, port=30335, ) self.ep_2 = hdr.IPv4EndpointOption( address=ipaddress.IPv6Address("2001:db8::abcd:f00b"), l4proto=hdr.L4Protocols.TCP, port=30330, )
ise-uiuc/Magicoder-OSS-Instruct-75K
sleep(.5)
ise-uiuc/Magicoder-OSS-Instruct-75K
import json import traceback
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import misc # from . import postpone_message
ise-uiuc/Magicoder-OSS-Instruct-75K
def __str__(self): return "{}. {}".format( self.id, self.label) class Inventory(models.Model): """Raw materials in purchase""" raw_material = models.ForeignKey(MasterRawMaterial) quantity = models.IntegerField()
ise-uiuc/Magicoder-OSS-Instruct-75K
HOME=$INSTDIR /usr/lib/libreoffice/program/unopkg validate -v --bundled fi }
ise-uiuc/Magicoder-OSS-Instruct-75K
float: 'left', } export interface DustbinProps { accept: string[] lastDroppedItem?: any dropResult: any[] onDrop: (item: any, monitor: any) => void } const Dustbin: React.FC<DustbinProps> = ({ accept, lastDroppedItem, dropResult,
ise-uiuc/Magicoder-OSS-Instruct-75K
@NotEmpty String description; @ManyToMany(fetch = FetchType.EAGER, cascade=CascadeType.ALL) @JoinTable(name = "compatible_pet_types", joinColumns = @JoinColumn(name = "care_id"), inverseJoinColumns = @JoinColumn(name = "pet_type_id")) @NotEmpty Set<PetType> compatiblePetTypes; @ManyToMany(fetch = FetchType.EAGER, cascade=CascadeType.ALL) @JoinTable(name = "incompatible_cares", joinColumns = @JoinColumn(name = "compatible_care_id"), inverseJoinColumns = @JoinColumn(name = "not_compatible_care_id"))
ise-uiuc/Magicoder-OSS-Instruct-75K
with open('d06.txt') as f: real_input = f.read() instr = real_input letter_counts = [Counter() for _ in range(instr.find('\n'))]
ise-uiuc/Magicoder-OSS-Instruct-75K
class ReadOnlyAdmin(BaseAdmin): list_display = ['__str__'] def get_readonly_fields(self, *args, **kwargs): return [f.name for f in self.model._meta.fields]
ise-uiuc/Magicoder-OSS-Instruct-75K
int b = (j >= 0) ? s2[j] - '0' : 0; int temp = (a + b + carry); f.push_back(temp % 10 + '0'); carry = temp / 10; i--; j--; }
ise-uiuc/Magicoder-OSS-Instruct-75K
export const textMedium16: string;
ise-uiuc/Magicoder-OSS-Instruct-75K
sys.path.append('../config') sys.path.append('../../app') else: # python running from should be within folder app sys.path.append('./libs') sys.path.append('./config') from starlette.testclient import TestClient
ise-uiuc/Magicoder-OSS-Instruct-75K
path: '/transform/table', method: 'get', action: tableController.transform_table } ];
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> <div class="row"> <div class="col-md-4"> </div> <p class="col-md-8 text-center"> <?php echo "Alamat ".preg_replace('/(?!^)[A-Z]{2,}(?=[A-Z][a-z])|[A-Z][a-z]/', ' $0', ucfirst(camel_case($profil_desa->alamat))) . ". Desa ".preg_replace('/(?!^)[A-Z]{2,}(?=[A-Z][a-z])|[A-Z][a-z]/', ' $0', ucfirst(camel_case($profil_desa->desa))) . ". Kecamatan ".preg_replace('/(?!^)[A-Z]{2,}(?=[A-Z][a-z])|[A-Z][a-z]/', ' $0', ucfirst(camel_case($profil_desa->kecamatan))) . ". Kabupaten ".preg_replace('/(?!^)[A-Z]{2,}(?=[A-Z][a-z])|[A-Z][a-z]/', ' $0', ucfirst(camel_case($profil_desa->kota))) . ". Kode Pos ".$profil_desa->kode_pos."."?> </p> </div> </div> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
// found in the LICENSE file. #include "remoting/client/chromoting_view.h" #include "base/message_loop.h" #include "base/waitable_event.h" #include "remoting/base/tracer.h" namespace remoting { ChromotingView::ChromotingView() : frame_width_(0),
ise-uiuc/Magicoder-OSS-Instruct-75K
super().__init__(config) self.num_labels = config.num_labels # self.device = config.device self.reforBert = ReforBertLM( num_tokens=config.vocab_size, dim=config.embedding_size, depth=config.depth, heads=config.heads, max_seq_len=config.max_seq_len,
ise-uiuc/Magicoder-OSS-Instruct-75K
class Tile(): """ The smallest building block in a map """ def __init__(self): self.tile = '.' def get(self): return self.tile def set(self, item): self.tile = item
ise-uiuc/Magicoder-OSS-Instruct-75K
files = [('files[]', (filename, open(filename, 'rb'))) for filename in filenames] request_headers = {'access-token': self.token} r = self.post(url, data=form_data, headers=request_headers, files=files) return r if __name__ == '__main__':
ise-uiuc/Magicoder-OSS-Instruct-75K
@property @abstractmethod
ise-uiuc/Magicoder-OSS-Instruct-75K
from multiprocessing import Pool from os.path import join, exists import numpy as np import tensorflow as tf import tensorflow.contrib.slim as slim from numpy.lib.format import read_array_header_1_0, read_magic from tqdm import tqdm from config import MovieQAPath from legacy.inception_preprocessing import preprocess_image from legacy.inception_resnet_v2 import inception_resnet_v2_arg_scope, inception_resnet_v2
ise-uiuc/Magicoder-OSS-Instruct-75K
version="0.0.5", description='Fetch data from the IEX API', long_description=open('README.md').read().strip(), author='<NAME>', author_email='<EMAIL>', url='http://www.github.com/danielecook/iex-api-python', packages=['iex'], install_requires=required, keywords=['finance', 'stock', 'market', 'market-data', 'IEX', 'API'], license='MIT License', zip_safe=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
name = 'bqtools', version = VERSION, description = 'Python Tools for BigQuery', long_description = LONG_DESCRIPTION, long_description_content_type = 'text/markdown', author = '<NAME>', author_email = '<EMAIL>', url = 'https://github.com/42DIGITAL/bqtools', packages = find_packages(exclude=['tests']), install_requires=DEPENDENCIES,
ise-uiuc/Magicoder-OSS-Instruct-75K
id = db.Column(db.Integer, primary_key=True, autoincrement=True) shop_id = db.Column(db.Integer)
ise-uiuc/Magicoder-OSS-Instruct-75K
return 0
ise-uiuc/Magicoder-OSS-Instruct-75K
from api.models.bigpicture import * from api.models.vote import * from api.models.user import *
ise-uiuc/Magicoder-OSS-Instruct-75K
dataset = dataset.map( lambda x: tf.io.parse_example(x, features), num_parallel_calls=utils.AUTOTUNE,
ise-uiuc/Magicoder-OSS-Instruct-75K
#P = PseudocolorAttributes()
ise-uiuc/Magicoder-OSS-Instruct-75K
paint.setStyle(Paint.Style.STROKE); paint.setColor(Color.BLACK); while(iterator.hasNext()){ RectF rf = iterator.next(); Rect r = new Rect((int)frame.left*(int)(1+rf.left),(int)frame.top*(int)(1+rf.top),(int)frame.right*(int)(1-rf.right),(int)frame.bottom*(int)(1-rf.bottom));
ise-uiuc/Magicoder-OSS-Instruct-75K
def message_detail(request, value, object_id): user = get_object_or_404(User, username=value) if user != request.user: return HttpResponseForbidden("<h1>Unauthorized</h1>") message_list = tcdMessage.objects.filter(recipient=user).order_by('-pub_date') message = message_list.get(comment_ptr=object_id)
ise-uiuc/Magicoder-OSS-Instruct-75K
this.ClientSize = new System.Drawing.Size(215, 130); this.Controls.Add(this.button1); this.Controls.Add(this.lblContent); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
ise-uiuc/Magicoder-OSS-Instruct-75K
help='Port on which the exporter is listening (9221)') parser.add_argument('address', nargs='?', default='', help='Address to which the exporter will bind')
ise-uiuc/Magicoder-OSS-Instruct-75K
sys.exit(1) gc, ttl = calculate_gc(sys.argv[1])
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Indicates which Node the request is coming from pub(crate) id: NodeID, /// Which Epoch the request is for pub(crate) epoch: Epoch,
ise-uiuc/Magicoder-OSS-Instruct-75K
total_labels = tf.concat((true_labels, neg_labels), axis=0) scores = model(total_input_batch)
ise-uiuc/Magicoder-OSS-Instruct-75K
import collections def is_restricted_to_values(value, valid_values): assert isinstance(valid_values, collections.Iterable) if not value in valid_values: raise ValueError('Invalid "{}" value, expected any of: {}' ''.format(value, valid_values))
ise-uiuc/Magicoder-OSS-Instruct-75K
# Question 1 q1 = curs.execute(""" SELECT ProductName, UnitPrice FROM Product ORDER BY UnitPrice DESC LIMIT 10; """).fetchall() print("The ten most expensive items (per unite price) in the database are: ", q1)
ise-uiuc/Magicoder-OSS-Instruct-75K
assert_true(self.parser.is_in_command_mode()) def test_big_messages_are_rejected(self): """Check that messages which exceed the configured maximum message size are rejected. This tests all the code setting the maximum allowed input size in the transport layer."""
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>markcx/pecan-dataport-DB
ise-uiuc/Magicoder-OSS-Instruct-75K
renderer::{ plugins::RenderToWindow, //types::DefaultBackend, rendy::util::vulkan::Backend,
ise-uiuc/Magicoder-OSS-Instruct-75K
// furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. import Foundation
ise-uiuc/Magicoder-OSS-Instruct-75K
protocol A{ typealias e:e protocol C{ protocol A{ protocol C{ extension A{
ise-uiuc/Magicoder-OSS-Instruct-75K
url : str
ise-uiuc/Magicoder-OSS-Instruct-75K
print("Hello world")
ise-uiuc/Magicoder-OSS-Instruct-75K
mul = 1 def fact(num): if num == 1: return num else: return num * fact(num - 1) num = int(input('Enter a number to get the factorial of it: ')) if num == 0:
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * {@inheritDoc} */ @Override public Object execute(ExecutionEvent event) throws ExecutionException { IStructuredSelection selection = (IStructuredSelection) HandlerUtil.getCurrentSelection(event); AbstractRootEditor rootEditor = (AbstractRootEditor) HandlerUtil.getActiveEditor(event); TreeSubView subView = (TreeSubView) rootEditor.getActiveSubView(); List<Integer> visibleColumnOrder = subView.getColumnOrder(); StringBuilder sb = new StringBuilder();
ise-uiuc/Magicoder-OSS-Instruct-75K
is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=192, serialized_end=398, )
ise-uiuc/Magicoder-OSS-Instruct-75K
} encryptor.close();
ise-uiuc/Magicoder-OSS-Instruct-75K
intf, # match the first OUT endpoint
ise-uiuc/Magicoder-OSS-Instruct-75K
from peewee import SqliteDatabase CACHE_FOLDER_NAME = '.sydler' DB_FILE_NAME = 'member.db' # create the cache folder before connecting to the data store path_to_db = path.join(environ.get('HOME'), CACHE_FOLDER_NAME) makedirs(path_to_db, exist_ok=True) # create and connect to data store DB = SqliteDatabase(path.join(path_to_db, DB_FILE_NAME)) DB.connect()
ise-uiuc/Magicoder-OSS-Instruct-75K
'alert-type' => 'sukseshapus'
ise-uiuc/Magicoder-OSS-Instruct-75K
sample = sample[1] data = {} with open(os.path.join(APP_STATIC, 'metadata.csv')) as csvfile: file_reader = csv.reader(csvfile, delimiter=',') for row in file_reader: if row[0] == sample: data['ETHNICITY'] = row[2] data['GENDER'] = row[3] data['AGE'] = row[4] data['BBTYPE'] = row[6] data['LOCATION'] = row[7]
ise-uiuc/Magicoder-OSS-Instruct-75K
from .regrets import compute_regrets, plot_regrets from .online_vs_batch import compute_regrets_and_batch, plot_online_vs_batch from .n_tree_sensitivity import ( compute_aucs_n_trees, read_data_n_trees, plot_comparison_n_trees, )
ise-uiuc/Magicoder-OSS-Instruct-75K
_devs = std::move(other._devs); other._id = 0; } return *this; } bool Context::create(EDeviceType type) {
ise-uiuc/Magicoder-OSS-Instruct-75K
dict[line_array[7]] = {"count":1,"size":int(line_array[5]), "first_time":float(line_array[0]), "last_time":float(line_array[0])}
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>YangJae96/KMU_Visual-SLAM<gh_stars>0 from . import slam opensfm_commands = [ slam, ]
ise-uiuc/Magicoder-OSS-Instruct-75K
import os import re import sys import pandas as pd SEP = '[SEP]' def read_data(data_fn, output_fn): data = pd.read_csv(data_fn) with open(output_fn, "w") as f: for i, row in data.iterrows(): f.write(f"{row['Name']}{SEP}{row['Description_Visual']}\n") return
ise-uiuc/Magicoder-OSS-Instruct-75K
} self.bills.sort { $0.introduced_on.compare($1.introduced_on) == .orderedDescending} // let dateFormatter = DateFormatter() // dateFormatter.dateFormat = "YYYY-MM-DD" // self.bills.sort { dateFormatter.date(from:$0.introduced_on)?.compare(dateFormatter.date(from:($1.introduced_on))!) == .orderedDescending } // // print(self.bills[0].introduced_on) self.tableView.reloadData()
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "http://localhost:4041/ingest" echo "http://localhost:4042" echo "http://localhost:4043" echo "http://localhost:4044 .*rbspy.*"
ise-uiuc/Magicoder-OSS-Instruct-75K
{column_name2: {operator: value}} {"and": List( {column_name3:{operator: value}} {column_name4:{operator: value}} ) } ) }
ise-uiuc/Magicoder-OSS-Instruct-75K
import {Store} from '@ngrx/store'; import * as authReducer from '../store/auth.reducers'; import * as authActions from '../store/auth.actions'; import {FacebookLoginViewModel} from './facebook-login-view-model'; declare var FB: any; @Component({ selector: 'app-facebook-login', templateUrl: './facebook-login.component.html', styleUrls: ['./facebook-login.component.scss'] }) export class FacebookLoginComponent implements OnInit {
ise-uiuc/Magicoder-OSS-Instruct-75K
@staticmethod def execute(machine: Machine, parsed: argparse.Namespace) -> bool: subcommand = _supported_subcommands[parsed.subcommand] return subcommand.execute(machine, parsed)
ise-uiuc/Magicoder-OSS-Instruct-75K
for( ; beg1 != end1; ++beg1, ++beg2 ) { auto val = BinOp::neutral; for( const auto &idxnl : NlList ) { auto currentidx = *beg1 + idxnl; if( !vInbound.contains(currentidx) ) continue; val = BinOp::process(val, i_vin[currentidx]); } o_vout[*beg2] = static_cast<T2>(val); } } } };
ise-uiuc/Magicoder-OSS-Instruct-75K
} async loginUser(loginDTO: LoginDTO) { const user = await this.usersService.getUserByUsername(loginDTO?.username); if (!user) return null; const token = this.jwtService.sign(loginDTO);
ise-uiuc/Magicoder-OSS-Instruct-75K
def get(formatter_type): """Return the requested formatter""" formatter_type = formatter_type.lower() if formatter_type not in _formatter_map: #pragma: no cover
ise-uiuc/Magicoder-OSS-Instruct-75K